cregit-Linux how code gets into the kernel

Release 4.12 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>

#if IS_ENABLED(CONFIG_OF_MDIO)
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_MDIO */

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 Kandagatla1770.83%133.33%
Daniel Mack520.83%133.33%
Mark 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 Kandagatla1588.24%150.00%
Mark 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 Kandagatla3794.87%150.00%
Mark Brown25.13%150.00%
Total39100.00%2100.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 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 Fleming28100.00%1100.00%
Total28100.00%1100.00%


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

Contributors

PersonTokensPropCommitsCommitProp
Srinivas Kandagatla1588.24%150.00%
Mark 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 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 Petazzoni16100.00%1100.00%
Total16100.00%1100.00%


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

Contributors

PersonTokensPropCommitsCommitProp
Johan 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 Petazzoni15100.00%1100.00%
Total15100.00%1100.00%

#endif #endif /* __LINUX_OF_MDIO_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Srinivas Kandagatla8620.57%17.69%
Grant C. Likely7718.42%17.69%
Dongpo Li6114.59%17.69%
Andy Fleming5011.96%17.69%
Florian Fainelli4510.77%215.38%
Thomas Petazzoni337.89%17.69%
Johan Hovold215.02%17.69%
Arnd Bergmann204.78%17.69%
David Daney102.39%17.69%
Mark Brown81.91%17.69%
Daniel Mack51.20%17.69%
Anton Vorontsov20.48%17.69%
Total418100.00%13100.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.