diff options
author | Jeremy Linton <jeremy.linton@arm.com> | 2015-08-12 17:06:26 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-13 16:58:29 -0700 |
commit | 4c96b7dc0d393f12c17e0d81db15aa4a820a6ab3 (patch) | |
tree | a0003f7e85ee92cebf5cf224266d26b3a738ab39 /include/linux | |
parent | 5bbbcc0073331d4e37c9f91c59cfc9f5d2033860 (diff) | |
download | linux-stable-4c96b7dc0d393f12c17e0d81db15aa4a820a6ab3.tar.gz linux-stable-4c96b7dc0d393f12c17e0d81db15aa4a820a6ab3.tar.bz2 linux-stable-4c96b7dc0d393f12c17e0d81db15aa4a820a6ab3.zip |
Add a matching set of device_ functions for determining mac/phy
OF has some helper functions for parsing MAC and PHY settings.
In cases where the platform is providing this information rather
than the device itself, there needs to be similar functions for ACPI.
These functions are slightly modified versions of the ones in
of_net which can use information provided via DT or ACPI.
Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/property.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/property.h b/include/linux/property.h index 76ebde9c11d4..a59c6ee566c2 100644 --- a/include/linux/property.h +++ b/include/linux/property.h @@ -166,4 +166,8 @@ void device_add_property_set(struct device *dev, struct property_set *pset); bool device_dma_is_coherent(struct device *dev); +int device_get_phy_mode(struct device *dev); + +void *device_get_mac_address(struct device *dev, char *addr, int alen); + #endif /* _LINUX_PROPERTY_H_ */ |