Go to the documentation of this file.
22 #include <linux/ethtool.h>
23 #include <linux/mii.h>
30 #define PHY_BASIC_FEATURES (SUPPORTED_10baseT_Half | \
31 SUPPORTED_10baseT_Full | \
32 SUPPORTED_100baseT_Half | \
33 SUPPORTED_100baseT_Full | \
38 #define PHY_GBIT_FEATURES (PHY_BASIC_FEATURES | \
39 SUPPORTED_1000baseT_Half | \
40 SUPPORTED_1000baseT_Full)
48 #define PHY_IGNORE_INTERRUPT -2
50 #define PHY_HAS_INTERRUPT 0x00000001
51 #define PHY_HAS_MAGICANEG 0x00000002
70 #define PHY_INIT_TIMEOUT 100000
71 #define PHY_STATE_TIME 1
72 #define PHY_FORCE_TIMEOUT 10
73 #define PHY_AN_TIMEOUT 10
75 #define PHY_MAX_ADDR 32
78 #define PHY_ID_FMT "%s:%02x"
84 #define MII_BUS_ID_SIZE (20 - 3)
88 #define MII_ADDR_C45 (1<<30)
132 #define to_mii_bus(d) container_of(d, struct mii_bus, dev)
135 static inline struct mii_bus *mdiobus_alloc(
void)
148 #define PHY_INTERRUPT_DISABLED 0x0
149 #define PHY_INTERRUPT_ENABLED 0x80000000
358 #define to_phy_device(d) container_of(d, struct phy_device, dev)
460 #define to_phy_driver(d) container_of(d, struct phy_driver, driver)
462 #define PHY_ANY_ID "MATCH ANY PHY"
463 #define PHY_ANY_UID 0xffffffff
525 static inline int phy_read_status(
struct phy_device *phydev) {
526 return phydev->
drv->read_status(phydev);