Go to the documentation of this file. 1 #ifndef __SUNGEM_PHY_H__
2 #define __SUNGEM_PHY_H__
69 #define BMCR_SPD2 0x0040
70 #define LPA_PAUSE 0x0400
75 #define MII_BCM5201_INTERRUPT 0x1A
76 #define MII_BCM5201_INTERRUPT_INTENABLE 0x4000
78 #define MII_BCM5201_AUXMODE2 0x1B
79 #define MII_BCM5201_AUXMODE2_LOWPOWER 0x0008
81 #define MII_BCM5201_MULTIPHY 0x1E
84 #define MII_BCM5201_MULTIPHY_SERIALMODE 0x0002
85 #define MII_BCM5201_MULTIPHY_SUPERISOLATE 0x0008
88 #define MII_BCM5221_TEST 0x1f
89 #define MII_BCM5221_TEST_ENABLE_SHADOWS 0x0080
90 #define MII_BCM5221_SHDOW_AUX_STAT2 0x1b
91 #define MII_BCM5221_SHDOW_AUX_STAT2_APD 0x0020
92 #define MII_BCM5221_SHDOW_AUX_MODE4 0x1a
93 #define MII_BCM5221_SHDOW_AUX_MODE4_IDDQMODE 0x0001
94 #define MII_BCM5221_SHDOW_AUX_MODE4_CLKLOPWR 0x0004
97 #define MII_BCM5241_SHDOW_AUX_MODE4_STANDBYPWR 0x0008
100 #define MII_BCM5400_GB_CONTROL 0x09
101 #define MII_BCM5400_GB_CONTROL_FULLDUPLEXCAP 0x0200
104 #define MII_BCM5400_AUXCONTROL 0x18
105 #define MII_BCM5400_AUXCONTROL_PWR10BASET 0x0004
108 #define MII_BCM5400_AUXSTATUS 0x19
109 #define MII_BCM5400_AUXSTATUS_LINKMODE_MASK 0x0700
110 #define MII_BCM5400_AUXSTATUS_LINKMODE_SHIFT 8
113 #define MII_1000BASETCONTROL 0x09
114 #define MII_1000BASETCONTROL_FULLDUPLEXCAP 0x0200
115 #define MII_1000BASETCONTROL_HALFDUPLEXCAP 0x0100
118 #define MII_M1011_PHY_SPEC_CONTROL 0x10
119 #define MII_M1011_PHY_SPEC_CONTROL_MANUAL_MDIX 0x20
120 #define MII_M1011_PHY_SPEC_CONTROL_AUTO_MDIX 0x40
123 #define MII_M1011_PHY_SPEC_STATUS 0x11
124 #define MII_M1011_PHY_SPEC_STATUS_1000 0x8000
125 #define MII_M1011_PHY_SPEC_STATUS_100 0x4000
126 #define MII_M1011_PHY_SPEC_STATUS_SPD_MASK 0xc000
127 #define MII_M1011_PHY_SPEC_STATUS_FULLDUPLEX 0x2000
128 #define MII_M1011_PHY_SPEC_STATUS_RESOLVED 0x0800
129 #define MII_M1011_PHY_SPEC_STATUS_TX_PAUSE 0x0008
130 #define MII_M1011_PHY_SPEC_STATUS_RX_PAUSE 0x0004