|
iPXE
|
MII bit-bashing interface. More...
Go to the source code of this file.
Data Structures | |
| struct | mii_bit_basher |
| A bit-bashing MII interface. More... | |
Macros | |
| #define | MII_BIT_START 0xffffffff |
| Start. | |
| #define | MII_BIT_START_MASK 0x80000000 |
| Start mask. | |
| #define | MII_BIT_CMD_MASK 0x00000008 |
| Command mask. | |
| #define | MII_BIT_CMD_READ 0x00000006 |
| Command read. | |
| #define | MII_BIT_CMD_WRITE 0x00000005 |
| Command write. | |
| #define | MII_BIT_CMD_RW 0x00000001 |
| Command read or write. | |
| #define | MII_BIT_PHY_MASK 0x00000010 |
| PHY mask. | |
| #define | MII_BIT_REG_MASK 0x00000010 |
| Register mask. | |
| #define | MII_BIT_SWITCH 0x00000002 |
| Switch. | |
| #define | MII_BIT_SWITCH_MASK 0x00000002 |
| Switch mask. | |
| #define | MII_BIT_DATA_MASK 0x00008000 |
| Data mask. | |
| #define | MII_BIT_UDELAY 1 |
| Delay between MDC transitions. | |
Enumerations | |
| enum | { MII_BIT_MDC = 0 , MII_BIT_MDIO , MII_BIT_DRIVE } |
| Bit indices used for MII bit-bashing interface. More... | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| void | init_mii_bit_basher (struct mii_bit_basher *miibit) |
| Initialise bit-bashing interface. | |
MII bit-bashing interface.
Definition in file mii_bit.h.
| #define MII_BIT_START 0xffffffff |
| #define MII_BIT_START_MASK 0x80000000 |
| #define MII_BIT_CMD_MASK 0x00000008 |
| #define MII_BIT_CMD_READ 0x00000006 |
| #define MII_BIT_CMD_WRITE 0x00000005 |
| #define MII_BIT_CMD_RW 0x00000001 |
| #define MII_BIT_PHY_MASK 0x00000010 |
| #define MII_BIT_REG_MASK 0x00000010 |
| #define MII_BIT_SWITCH 0x00000002 |
| #define MII_BIT_SWITCH_MASK 0x00000002 |
| #define MII_BIT_DATA_MASK 0x00008000 |
| anonymous enum |
Bit indices used for MII bit-bashing interface.
| Enumerator | |
|---|---|
| MII_BIT_MDC | MII clock. |
| MII_BIT_MDIO | MII data. |
| MII_BIT_DRIVE | MII data direction. |
Definition at line 41 of file mii_bit.h.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
extern |
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().