⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.60
Server IP:
13.127.59.50
Server:
Linux ip-172-31-46-210 5.15.0-1033-aws #37~20.04.1-Ubuntu SMP Fri Mar 17 11:39:30 UTC 2023 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.3-4ubuntu2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
modules
/
5.15.0-1033-aws
/
build
/
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 <linux/phy.h> #if defined(CONFIG_OF) && defined(CONFIG_NET) #include <linux/of.h> 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 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 struct net_device *of_find_net_device_by_node(struct device_node *np) { return NULL; } #endif #endif /* __LINUX_OF_NET_H */