net: add DP83848C constants

This commit is contained in:
Richard Tucker 2022-06-03 11:08:27 +10:00 committed by Petro Karashchenko
parent 8f36649aad
commit eaa5f9ab4e

View file

@ -810,12 +810,19 @@
/* DP83848C-specific register bit settings **********************************/
/* DP83848C Register 0x10: PHY Status */
#define MII_DP83848C_PHYSTS_SPEED (1 << 1) /* Bit 1: Speed Status Register */
#define MII_DP83848C_PHYSTS_DUPLEX (1 << 2) /* Bit 2: Duplex Status Register */
/* DP83848C Register 0x11: Interrupt control/status */
#define MII_DP83848C_INT_TEST (1 << 2) /* Test Interrupt */
#define MII_DP83848C_INT_EN (1 << 1) /* Interrupt enable */
#define MII_DP83848C_INT_OEN (1 << 0) /* Interrupt output enable */
/* DP83848C Register 0x12: Interrupt control/status */
#define MII_DP83848C_ED_INT (1 << 14) /* Energy Detect interrupt: */
#define MII_DP83848C_LINK_INT (1 << 13) /* Change of Link Status interrupt: */
#define MII_DP83848C_SPD_INT (1 << 12) /* Change of speed status interrupt: */