Release 4.10 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);
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
| 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_get_and_connect(struct net_device *dev, struct device_node *np,
void (*hndlr)(struct net_device *))
{
return NULL;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
dongpo li | dongpo li | 33 | 100.00% | 1 | 100.00% |
| Total | 33 | 100.00% | 1 | 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% |
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 void of_phy_deregister_fixed_link(struct device_node *np)
{
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
johan hovold | johan hovold | 11 | 100.00% | 1 | 100.00% |
| Total | 11 | 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 | 90 | 21.69% | 1 | 8.33% |
grant likely | grant likely | 77 | 18.55% | 1 | 8.33% |
dongpo li | dongpo li | 61 | 14.70% | 1 | 8.33% |
andy fleming | andy fleming | 50 | 12.05% | 1 | 8.33% |
florian fainelli | florian fainelli | 38 | 9.16% | 1 | 8.33% |
thomas petazzoni | thomas petazzoni | 33 | 7.95% | 1 | 8.33% |
johan hovold | johan hovold | 21 | 5.06% | 1 | 8.33% |
arnd bergmann | arnd bergmann | 20 | 4.82% | 1 | 8.33% |
david daney | david daney | 10 | 2.41% | 1 | 8.33% |
mark brown | mark brown | 8 | 1.93% | 1 | 8.33% |
daniel mack | daniel mack | 5 | 1.20% | 1 | 8.33% |
anton vorontsov | anton vorontsov | 2 | 0.48% | 1 | 8.33% |
| Total | 415 | 100.00% | 12 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.