Release 4.7 include/linux/of_mdio.h
/*
* 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
| Person | Tokens | Prop | Commits | CommitProp |
srinivas kandagatla | srinivas kandagatla | 17 | 70.83% | 1 | 33.33% |
daniel mack | daniel mack | 5 | 20.83% | 1 | 33.33% |
mark brown | mark brown | 2 | 8.33% | 1 | 33.33% |
| Total | 24 | 100.00% | 3 | 100.00% |
static inline struct phy_device *of_phy_find_device(struct device_node *phy_np)
{
return NULL;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
srinivas kandagatla | srinivas kandagatla | 15 | 88.24% | 1 | 50.00% |
mark brown | mark brown | 2 | 11.76% | 1 | 50.00% |
| Total | 17 | 100.00% | 2 | 100.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
| Person | Tokens | Prop | Commits | CommitProp |
srinivas kandagatla | srinivas kandagatla | 36 | 92.31% | 1 | 33.33% |
mark brown | mark brown | 2 | 5.13% | 1 | 33.33% |
andy fleming | andy fleming | 1 | 2.56% | 1 | 33.33% |
| Total | 39 | 100.00% | 3 | 100.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
| Person | Tokens | Prop | Commits | CommitProp |
andy fleming | andy fleming | 27 | 96.43% | 1 | 50.00% |
srinivas kandagatla | srinivas kandagatla | 1 | 3.57% | 1 | 50.00% |
| Total | 28 | 100.00% | 2 | 100.00% |
static inline struct mii_bus *of_mdio_find_bus(struct device_node *mdio_np)
{
return NULL;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
srinivas kandagatla | srinivas kandagatla | 15 | 88.24% | 1 | 50.00% |
mark brown | mark brown | 2 | 11.76% | 1 | 50.00% |
| Total | 17 | 100.00% | 2 | 100.00% |
static inline int of_mdio_parse_addr(struct device *dev,
const struct device_node *np)
{
return -ENOSYS;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
florian fainelli | florian fainelli | 22 | 100.00% | 1 | 100.00% |
| Total | 22 | 100.00% | 1 | 100.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
| Person | Tokens | Prop | Commits | CommitProp |
thomas petazzoni | thomas petazzoni | 16 | 100.00% | 1 | 100.00% |
| Total | 16 | 100.00% | 1 | 100.00% |
static inline bool of_phy_is_fixed_link(struct device_node *np)
{
return false;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
thomas petazzoni | thomas petazzoni | 15 | 100.00% | 1 | 100.00% |
| Total | 15 | 100.00% | 1 | 100.00% |
#endif
#endif /* __LINUX_OF_MDIO_H */
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
srinivas kandagatla | srinivas kandagatla | 93 | 26.65% | 1 | 11.11% |
grant likely | grant likely | 77 | 22.06% | 1 | 11.11% |
thomas petazzoni | thomas petazzoni | 66 | 18.91% | 1 | 11.11% |
andy fleming | andy fleming | 50 | 14.33% | 1 | 11.11% |
florian fainelli | florian fainelli | 38 | 10.89% | 1 | 11.11% |
david daney | david daney | 10 | 2.87% | 1 | 11.11% |
mark brown | mark brown | 8 | 2.29% | 1 | 11.11% |
daniel mack | daniel mack | 5 | 1.43% | 1 | 11.11% |
anton vorontsov | anton vorontsov | 2 | 0.57% | 1 | 11.11% |
| Total | 349 | 100.00% | 9 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.