cregit-Linux how code gets into the kernel

Release 4.12 include/linux/of_net.h

Directory: include/linux
/*
 * OF helpers for network devices.
 *
 * This file is released under the GPLv2
 */

#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; }

Contributors

PersonTokensPropCommitsCommitProp
Guenter Roeck16100.00%1100.00%
Total16100.00%1100.00%


static inline const void *of_get_mac_address(struct device_node *np) { return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
Guenter Roeck17100.00%1100.00%
Total17100.00%1100.00%


static inline struct net_device *of_find_net_device_by_node(struct device_node *np) { return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
Florian Fainelli17100.00%1100.00%
Total17100.00%1100.00%

#endif #endif /* __LINUX_OF_NET_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Guenter Roeck3532.71%125.00%
Florian Fainelli3229.91%125.00%
David Daney2927.10%125.00%
Shawn Guo1110.28%125.00%
Total107100.00%4100.00%
Directory: include/linux
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.