cregit-Linux how code gets into the kernel

Release 4.17 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 int of_get_nvmem_mac_address(struct device_node *np, void *addr);
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 int of_get_nvmem_mac_address(struct device_node *np, void *addr) { return -ENODEV; }

Contributors

PersonTokensPropCommitsCommitProp
Mike Looijmans20100.00%1100.00%
Total20100.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 Roeck3524.82%120.00%
Mike Looijmans3424.11%120.00%
Florian Fainelli3222.70%120.00%
David Daney2920.57%120.00%
Shawn Guo117.80%120.00%
Total141100.00%5100.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.