summaryrefslogtreecommitdiff
path: root/include/linux/property.h
diff options
context:
space:
mode:
authorJeremy Linton <jeremy.linton@arm.com>2015-08-13 01:06:26 +0300
committerDavid S. Miller <davem@davemloft.net>2015-08-14 02:58:29 +0300
commit4c96b7dc0d393f12c17e0d81db15aa4a820a6ab3 (patch)
treea0003f7e85ee92cebf5cf224266d26b3a738ab39 /include/linux/property.h
parent5bbbcc0073331d4e37c9f91c59cfc9f5d2033860 (diff)
downloadlinux-4c96b7dc0d393f12c17e0d81db15aa4a820a6ab3.tar.xz
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/property.h')
-rw-r--r--include/linux/property.h4
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_ */