diff options
author | Nick Foster <nick@nerdnetworks.org> | 2010-07-27 20:11:05 -0700 |
---|---|---|
committer | Nick Foster <nick@nerdnetworks.org> | 2010-07-27 20:11:05 -0700 |
commit | 9b63845669056ace2ca50a2c406ce6cf3657ec74 (patch) | |
tree | ec10b8a0ccd3e7e83b7d65595dc355854fc0a0d7 /firmware/microblaze/usrp2p/eth_phy.h | |
parent | 06b0fc51c92a933d2641395c0b3974bb95df18d0 (diff) | |
download | uhd-9b63845669056ace2ca50a2c406ce6cf3657ec74.tar.gz uhd-9b63845669056ace2ca50a2c406ce6cf3657ec74.tar.bz2 uhd-9b63845669056ace2ca50a2c406ce6cf3657ec74.zip |
Ethernet mods for activity LED.
Diffstat (limited to 'firmware/microblaze/usrp2p/eth_phy.h')
-rw-r--r-- | firmware/microblaze/usrp2p/eth_phy.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/firmware/microblaze/usrp2p/eth_phy.h b/firmware/microblaze/usrp2p/eth_phy.h index 9328debee..d233e96e8 100644 --- a/firmware/microblaze/usrp2p/eth_phy.h +++ b/firmware/microblaze/usrp2p/eth_phy.h @@ -42,6 +42,7 @@ #define PHY_INT_MASK 24 #define PHY_INT_STATUS 25 #define PHY_PHY_STATUS 26 +#define PHY_LED2 28 /* Bit definitions for some of the registers above */ @@ -207,4 +208,28 @@ #define PHY_INT_MDIO_SYNC_LOST (1 << 9) #define PHY_INT_TDR_IP_PHONE (1 << 10) +/* PHY LED status register 2 (used for controlling link LED for activity light) */ +#define PHY_LED_TXRX_LSB 12 +#define PHY_LED_LINK_LSB 8 +#define PHY_LED_100_LSB 4 +#define PHY_LED_1000_LSB 0 + +#define LED_1000 0 +#define LED_100_TX 1 +#define LED_10 2 +#define LED_1000_ON_100_BLINK 3 +#define LED_LINK 4 +#define LED_TX 5 +#define LED_RX 6 +#define LED_ACTIVITY 7 +#define LED_FULLDUPLEX 8 +#define LED_COLLISION 9 +#define LED_LINK_ON_ACTIVITY_BLINK 10 +#define LED_LINK_ON_RX_BLINK 11 +#define LED_FULL_DUPLEX_ON_COLLISION_BLINK 12 +#define LED_BLINK 13 +#define LED_ON 14 +#define LED_OFF 15 + + #endif /* INCLUDED_ETH_PHY_H */ |