void phy_write(uint addr, uint data)
Write to the PHY chip.
Definition spinn_phy.c:85
uint phy_read(uint addr)
Read from the PHY chip.
Definition spinn_phy.c:99
void phy_reset(void)
Reset the PHY chip.
Definition spinn_phy.c:30
spinn_phy_registers
PHY registers.
Definition spinn_phy.h:33
@ PHY_MODE_CSR
10/100 Mode Control/Status register
Definition spinn_phy.h:42
@ PHY_SP_CSR
Special Control/Status register.
Definition spinn_phy.h:48
@ PHY_AUTO_ADV
Auto Negotiation Advertisement register.
Definition spinn_phy.h:38
@ PHY_ID2
PHY identifier 2 register.
Definition spinn_phy.h:37
@ PHY_SP_MODE
10/100 Special Modes register
Definition spinn_phy.h:43
@ PHY_SP_CSIR
Special Control/Status Indication register.
Definition spinn_phy.h:45
@ PHY_INT_MASK
Interrupt mask register.
Definition spinn_phy.h:47
@ PHY_AUTO_EXP
Auto Negotiation Expansion register.
Definition spinn_phy.h:40
@ PHY_CONTROL
Control register.
Definition spinn_phy.h:34
@ PHY_INT_SRC
Interrupt source register.
Definition spinn_phy.h:46
@ PHY_STATUS
Status register.
Definition spinn_phy.h:35
@ PHY_ERR_COUNT
Error count register.
Definition spinn_phy.h:44
@ PHY_ID1
PHY identifier 1 register.
Definition spinn_phy.h:36
@ PHY_AUTO_LPA
Auto Negotiation Link Partner register.
Definition spinn_phy.h:39
unsigned int uint
Unsigned integer - 32 bits.
Definition spinnaker.h:39