mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
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>
This commit is contained in:
parent
5bbbcc0073
commit
4c96b7dc0d
2 changed files with 77 additions and 0 deletions
|
@ -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_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue