cregit-Linux how code gets into the kernel

Release 4.7 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);
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);

#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_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%

#endif /* CONFIG_OF */ #if defined(CONFIG_OF) && defined(CONFIG_FIXED_PHY) extern int of_phy_register_fixed_link(struct device_node *np); extern bool of_phy_is_fixed_link(struct device_node *np); #else
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 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 kandagatla9326.65%111.11%
grant likelygrant likely7722.06%111.11%
thomas petazzonithomas petazzoni6618.91%111.11%
andy flemingandy fleming5014.33%111.11%
florian fainelliflorian fainelli3810.89%111.11%
david daneydavid daney102.87%111.11%
mark brownmark brown82.29%111.11%
daniel mackdaniel mack51.43%111.11%
anton vorontsovanton vorontsov20.57%111.11%
Total349100.00%9100.00%
Directory: include/linux
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}