mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 18:17:12 +07:00
55716d2643
Based on 1 normalized pattern(s): this file is released under the gplv2 extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 68 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Armijn Hemel <armijn@tjaldur.nl> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190531190114.292346262@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
34 lines
720 B
C
34 lines
720 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* OF helpers for network devices.
|
|
*/
|
|
|
|
#ifndef __LINUX_OF_NET_H
|
|
#define __LINUX_OF_NET_H
|
|
|
|
#ifdef CONFIG_OF_NET
|
|
#include <linux/of.h>
|
|
|
|
struct net_device;
|
|
extern int of_get_phy_mode(struct device_node *np);
|
|
extern const void *of_get_mac_address(struct device_node *np);
|
|
extern struct net_device *of_find_net_device_by_node(struct device_node *np);
|
|
#else
|
|
static inline int of_get_phy_mode(struct device_node *np)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
|
|
static inline const void *of_get_mac_address(struct device_node *np)
|
|
{
|
|
return ERR_PTR(-ENODEV);
|
|
}
|
|
|
|
static inline struct net_device *of_find_net_device_by_node(struct device_node *np)
|
|
{
|
|
return NULL;
|
|
}
|
|
#endif
|
|
|
|
#endif /* __LINUX_OF_NET_H */
|