⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
src
/
linux-headers-6.11.0-9
/
include
/
linux
/
View File Name :
of_net.h
/* SPDX-License-Identifier: GPL-2.0-only */ /* * OF helpers for network devices. */ #ifndef __LINUX_OF_NET_H #define __LINUX_OF_NET_H #include
#if defined(CONFIG_OF) && defined(CONFIG_NET) #include
struct net_device; extern int of_get_phy_mode(struct device_node *np, phy_interface_t *interface); extern int of_get_mac_address(struct device_node *np, u8 *mac); extern int of_get_mac_address_nvmem(struct device_node *np, u8 *mac); int of_get_ethdev_address(struct device_node *np, struct net_device *dev); 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, phy_interface_t *interface) { return -ENODEV; } static inline int of_get_mac_address(struct device_node *np, u8 *mac) { return -ENODEV; } static inline int of_get_mac_address_nvmem(struct device_node *np, u8 *mac) { return -ENODEV; } static inline int of_get_ethdev_address(struct device_node *np, struct net_device *dev) { return -ENODEV; } static inline struct net_device *of_find_net_device_by_node(struct device_node *np) { return NULL; } #endif #endif /* __LINUX_OF_NET_H */