|
iPXE
|
Media Independent Interface. More...
Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| int | mii_restart (struct mii_device *mii) |
| Restart autonegotiation. More... | |
| int | mii_reset (struct mii_device *mii) |
| Reset MII device. More... | |
| int | mii_check_link (struct mii_device *mii, struct net_device *netdev) |
| Update link status via MII. More... | |
| int | mii_find (struct mii_device *mii) |
| Find PHY address. More... | |
Media Independent Interface.
Definition in file mii.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| int mii_restart | ( | struct mii_device * | mii | ) |
Restart autonegotiation.
| mii | MII device |
| rc | Return status code |
Definition at line 43 of file mii.c.
References BMCR_ANENABLE, BMCR_ANRESTART, DBGC, mii, MII_BMCR, mii_read(), mii_write(), rc, and strerror().
Referenced by mii_reset(), and realtek_phy_reset().
| int mii_reset | ( | struct mii_device * | mii | ) |
Reset MII device.
| mii | MII device |
| rc | Return status code |
Definition at line 74 of file mii.c.
References BMCR_ANENABLE, BMCR_RESET, DBGC, ETIMEDOUT, mdelay(), mii, MII_BMCR, mii_read(), MII_RESET_MAX_WAIT_MS, mii_restart(), mii_write(), rc, and strerror().
Referenced by cgem_init_phy(), icplus_init_phy(), rdc_init_phy(), realtek_phy_reset(), rhine_probe(), and velocity_probe().
| int mii_check_link | ( | struct mii_device * | mii, |
| struct net_device * | netdev | ||
| ) |
Update link status via MII.
| mii | MII device |
| netdev | Network device |
| rc | Return status code |
Definition at line 126 of file mii.c.
References BMSR_LSTATUS, DBGC, link, mii, MII_BMSR, mii_read(), netdev, netdev_link_down(), netdev_link_up(), and rc.
Referenced by cgem_check_link(), rdc_check_link(), and smscusb_mii_check_link().
| int mii_find | ( | struct mii_device * | mii | ) |
Find PHY address.
| mii | MII device |
| rc | Return status code |
Definition at line 157 of file mii.c.
References address, DBGC, ENOENT, id, mii, MII_MAX_PHY_ADDRESS, MII_PHYSID1, and mii_read().
Referenced by cgem_init_phy(), icplus_init_phy(), and rdc_init_phy().
1.8.15