cregit-Linux how code gets into the kernel

Release 4.10 include/linux/of_mdio.h

Directory: include/linux
/*
 * OF helpers for the MDIO (Ethernet PHY) API
 *
 * Copyright (c) 2009 Secret Lab Technologies, Ltd.
 *
 * This file is released under the GPLv2
 */

#ifndef __LINUX_OF_MDIO_H

#define __LINUX_OF_MDIO_H

#include <linux/phy.h>
#include <linux/of.h>

#ifdef CONFIG_OF
extern int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np);
extern struct phy_device *of_phy_find_device(struct device_node *phy_np);
extern struct phy_device *of_phy_connect(struct net_device *dev,
					 struct device_node *phy_np,
					 void (*hndlr)(struct net_device *),
					 u32 flags, phy_interface_t iface);
extern struct phy_device *
of_phy_get_and_connect(struct net_device *dev, struct device_node *np,
		       void (*hndlr)(struct net_device *));
struct phy_device *of_phy_attach(struct net_device *dev,
				 struct device_node *phy_np, u32 flags,
				 phy_interface_t iface);

extern struct mii_bus *of_mdio_find_bus(struct device_node *mdio_np);
extern int of_mdio_parse_addr(struct device *dev, const struct device_node *np);
extern int of_phy_register_fixed_link(struct device_node *np);
extern void of_phy_deregister_fixed_link(struct device_node *np);
extern bool of_phy_is_fixed_link(struct device_node *np);

#else /* CONFIG_OF */

static inline int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np) { /* * Fall back to the non-DT function to register a bus. * This way, we don't have to keep compat bits around in drivers. */ return mdiobus_register(mdio); }

Contributors

PersonTokensPropCommitsCommitProp
srinivas kandagatlasrinivas kandagatla1770.83%133.33%
daniel mackdaniel mack520.83%133.33%
mark brownmark brown28.33%133.33%
Total24100.00%3100.00%


static inline struct phy_device *of_phy_find_device(struct device_node *phy_np) { return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
srinivas kandagatlasrinivas kandagatla1588.24%150.00%
mark brownmark brown211.76%150.00%
Total17100.00%2100.00%


static inline struct phy_device *of_phy_connect(struct net_device *dev, struct device_node *phy_np, void (*hndlr)(struct net_device *), u32 flags, phy_interface_t iface) { return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
srinivas kandagatlasrinivas kandagatla3692.31%133.33%
mark brownmark brown25.13%133.33%
andy flemingandy fleming12.56%133.33%
Total39100.00%3100.00%


static inline struct phy_device * of_phy_get_and_connect(struct net_device *dev, struct device_node *np, void (*hndlr)(struct net_device *)) { return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
dongpo lidongpo li33100.00%1100.00%
Total33100.00%1100.00%


static inline struct phy_device *of_phy_attach(struct net_device *dev, struct device_node *phy_np, u32 flags, phy_interface_t iface) { return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
andy flemingandy fleming2796.43%150.00%
srinivas kandagatlasrinivas kandagatla13.57%150.00%
Total28100.00%2100.00%


static inline struct mii_bus *of_mdio_find_bus(struct device_node *mdio_np) { return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
srinivas kandagatlasrinivas kandagatla1588.24%150.00%
mark brownmark brown211.76%150.00%
Total17100.00%2100.00%


static inline int of_mdio_parse_addr(struct device *dev, const struct device_node *np) { return -ENOSYS; }

Contributors

PersonTokensPropCommitsCommitProp
florian fainelliflorian fainelli22100.00%1100.00%
Total22100.00%1100.00%


static inline int of_phy_register_fixed_link(struct device_node *np) { return -ENOSYS; }

Contributors

PersonTokensPropCommitsCommitProp
thomas petazzonithomas petazzoni16100.00%1100.00%
Total16100.00%1100.00%


static inline void of_phy_deregister_fixed_link(struct device_node *np) { }

Contributors

PersonTokensPropCommitsCommitProp
johan hovoldjohan hovold11100.00%1100.00%
Total11100.00%1100.00%


static inline bool of_phy_is_fixed_link(struct device_node *np) { return false; }

Contributors

PersonTokensPropCommitsCommitProp
thomas petazzonithomas petazzoni15100.00%1100.00%
Total15100.00%1100.00%

#endif #endif /* __LINUX_OF_MDIO_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
srinivas kandagatlasrinivas kandagatla9021.69%18.33%
grant likelygrant likely7718.55%18.33%
dongpo lidongpo li6114.70%18.33%
andy flemingandy fleming5012.05%18.33%
florian fainelliflorian fainelli389.16%18.33%
thomas petazzonithomas petazzoni337.95%18.33%
johan hovoldjohan hovold215.06%18.33%
arnd bergmannarnd bergmann204.82%18.33%
david daneydavid daney102.41%18.33%
mark brownmark brown81.93%18.33%
daniel mackdaniel mack51.20%18.33%
anton vorontsovanton vorontsov20.48%18.33%
Total415100.00%12100.00%
Directory: include/linux
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.