Release 4.11 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 | 17 | 70.83% | 1 | 33.33% |
Daniel Mack | 5 | 20.83% | 1 | 33.33% |
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 | 15 | 88.24% | 1 | 50.00% |
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 | 36 | 92.31% | 1 | 33.33% |
Mark Brown | 2 | 5.13% | 1 | 33.33% |
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 | 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 | 27 | 96.43% | 1 | 50.00% |
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 | 15 | 88.24% | 1 | 50.00% |
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 | 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 | 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 | 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 | 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 | 90 | 21.69% | 1 | 8.33% |
Grant C. Likely | 77 | 18.55% | 1 | 8.33% |
Dongpo Li | 61 | 14.70% | 1 | 8.33% |
Andy Fleming | 50 | 12.05% | 1 | 8.33% |
Florian Fainelli | 38 | 9.16% | 1 | 8.33% |
Thomas Petazzoni | 33 | 7.95% | 1 | 8.33% |
Johan Hovold | 21 | 5.06% | 1 | 8.33% |
Arnd Bergmann | 20 | 4.82% | 1 | 8.33% |
David Daney | 10 | 2.41% | 1 | 8.33% |
Mark Brown | 8 | 1.93% | 1 | 8.33% |
Daniel Mack | 5 | 1.20% | 1 | 8.33% |
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.