summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJeremy Linton <jeremy.linton@arm.com>2015-08-12 22:06:26 (GMT)
committerDavid S. Miller <davem@davemloft.net>2015-08-13 23:58:29 (GMT)
commit4c96b7dc0d393f12c17e0d81db15aa4a820a6ab3 (patch)
treea0003f7e85ee92cebf5cf224266d26b3a738ab39 /include
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')
-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 76ebde9..a59c6ee 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_ */