|
iPXE
|
Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| static uint32_t | mii_bit_xfer (struct bit_basher *basher, uint32_t mask, uint32_t write) |
| Transfer bits over MII bit-bashing interface. | |
| static unsigned int | mii_bit_rw (struct bit_basher *basher, unsigned int phy, unsigned int reg, unsigned int data, unsigned int cmd) |
| Read or write via MII bit-bashing interface. | |
| static int | mii_bit_read (struct mii_interface *mdio, unsigned int phy, unsigned int reg) |
| Read from MII register. | |
| static int | mii_bit_write (struct mii_interface *mdio, unsigned int phy, unsigned int reg, unsigned int data) |
| Write to MII register. | |
| void | init_mii_bit_basher (struct mii_bit_basher *miibit) |
| Initialise bit-bashing interface. | |
Variables | |
| static struct mii_operations | mii_bit_op |
| MII bit basher operations. | |
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Transfer bits over MII bit-bashing interface.
| basher | Bit basher |
| mask | Mask |
| write | Data to write |
| read | Data read |
Definition at line 39 of file mii_bit.c.
References bit, MII_BIT_MDC, MII_BIT_MDIO, read, read_bit(), udelay(), write, and write_bit().
Referenced by mii_bit_rw().
|
static |
Read or write via MII bit-bashing interface.
| data | Data read |
Definition at line 79 of file mii_bit.c.
References cmd, data, MII_BIT_CMD_MASK, MII_BIT_CMD_RW, MII_BIT_DATA_MASK, MII_BIT_DRIVE, MII_BIT_PHY_MASK, MII_BIT_REG_MASK, MII_BIT_START, MII_BIT_START_MASK, MII_BIT_SWITCH, MII_BIT_SWITCH_MASK, mii_bit_xfer(), reg, and write_bit().
Referenced by mii_bit_read(), and mii_bit_write().
|
static |
Read from MII register.
| mdio | MII interface |
| phy | PHY address |
| reg | Register address |
| data | Data read, or negative error |
Definition at line 121 of file mii_bit.c.
References mii_bit_basher::basher, container_of, mii_bit_basher::mdio, MII_BIT_CMD_READ, mii_bit_rw(), and reg.
|
static |
Write to MII register.
| rc | Return status code |
Definition at line 139 of file mii_bit.c.
References mii_bit_basher::basher, container_of, data, mii_bit_basher::mdio, MII_BIT_CMD_WRITE, mii_bit_rw(), and reg.
| void init_mii_bit_basher | ( | struct mii_bit_basher * | miibit | ) |
Initialise bit-bashing interface.
| miibit | MII bit basher |
Definition at line 160 of file mii_bit.c.
References mii_bit_basher::mdio, mdio_init(), and mii_bit_op.
Referenced by icplus_probe().
|
static |
MII bit basher operations.
Definition at line 150 of file mii_bit.c.
Referenced by init_mii_bit_basher().