of_get_phy_mode to parse the phy mode from the devicetree and of_get_mac_address to parse a MAC address from the devicetree. Directly taken from the Kernel. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
15 lines
286 B
C
15 lines
286 B
C
/*
|
|
* OF helpers for network devices.
|
|
*
|
|
* This file is released under the GPLv2
|
|
*/
|
|
|
|
#ifndef __LINUX_OF_NET_H
|
|
#define __LINUX_OF_NET_H
|
|
|
|
#include <of.h>
|
|
int of_get_phy_mode(struct device_node *np);
|
|
const void *of_get_mac_address(struct device_node *np);
|
|
|
|
#endif /* __LINUX_OF_NET_H */
|