.. | .. |
---|
121 | 121 | #define EXPANSION_MFAULTS 0x0010 /* Multiple faults detected */ |
---|
122 | 122 | #define EXPANSION_RESV 0xffe0 /* Unused... */ |
---|
123 | 123 | |
---|
| 124 | +#define ESTATUS_1000_XFULL 0x8000 /* Can do 1000BaseX Full */ |
---|
| 125 | +#define ESTATUS_1000_XHALF 0x4000 /* Can do 1000BaseX Half */ |
---|
124 | 126 | #define ESTATUS_1000_TFULL 0x2000 /* Can do 1000BT Full */ |
---|
125 | 127 | #define ESTATUS_1000_THALF 0x1000 /* Can do 1000BT Half */ |
---|
126 | 128 | |
---|
.. | .. |
---|
129 | 131 | #define NWAYTEST_LOOPBACK 0x0100 /* Enable loopback for N-way */ |
---|
130 | 132 | #define NWAYTEST_RESV2 0xfe00 /* Unused... */ |
---|
131 | 133 | |
---|
| 134 | +/* MAC and PHY tx_config_Reg[15:0] for SGMII in-band auto-negotiation.*/ |
---|
| 135 | +#define ADVERTISE_SGMII 0x0001 /* MAC can do SGMII */ |
---|
| 136 | +#define LPA_SGMII 0x0001 /* PHY can do SGMII */ |
---|
| 137 | +#define LPA_SGMII_SPD_MASK 0x0c00 /* SGMII speed mask */ |
---|
| 138 | +#define LPA_SGMII_FULL_DUPLEX 0x1000 /* SGMII full duplex */ |
---|
| 139 | +#define LPA_SGMII_DPX_SPD_MASK 0x1C00 /* SGMII duplex and speed bits */ |
---|
| 140 | +#define LPA_SGMII_10 0x0000 /* 10Mbps */ |
---|
| 141 | +#define LPA_SGMII_10HALF 0x0000 /* Can do 10mbps half-duplex */ |
---|
| 142 | +#define LPA_SGMII_10FULL 0x1000 /* Can do 10mbps full-duplex */ |
---|
| 143 | +#define LPA_SGMII_100 0x0400 /* 100Mbps */ |
---|
| 144 | +#define LPA_SGMII_100HALF 0x0400 /* Can do 100mbps half-duplex */ |
---|
| 145 | +#define LPA_SGMII_100FULL 0x1400 /* Can do 100mbps full-duplex */ |
---|
| 146 | +#define LPA_SGMII_1000 0x0800 /* 1000Mbps */ |
---|
| 147 | +#define LPA_SGMII_1000HALF 0x0800 /* Can do 1000mbps half-duplex */ |
---|
| 148 | +#define LPA_SGMII_1000FULL 0x1800 /* Can do 1000mbps full-duplex */ |
---|
| 149 | +#define LPA_SGMII_LINK 0x8000 /* PHY link with copper-side partner */ |
---|
| 150 | + |
---|
132 | 151 | /* 1000BASE-T Control register */ |
---|
133 | 152 | #define ADVERTISE_1000FULL 0x0200 /* Advertise 1000BASE-T full duplex */ |
---|
134 | 153 | #define ADVERTISE_1000HALF 0x0100 /* Advertise 1000BASE-T half duplex */ |
---|
| 154 | +#define CTL1000_PREFER_MASTER 0x0400 /* prefer to operate as master */ |
---|
135 | 155 | #define CTL1000_AS_MASTER 0x0800 |
---|
136 | 156 | #define CTL1000_ENABLE_MASTER 0x1000 |
---|
137 | 157 | |
---|
138 | 158 | /* 1000BASE-T Status register */ |
---|
139 | 159 | #define LPA_1000MSFAIL 0x8000 /* Master/Slave resolution failure */ |
---|
| 160 | +#define LPA_1000MSRES 0x4000 /* Master/Slave resolution status */ |
---|
140 | 161 | #define LPA_1000LOCALRXOK 0x2000 /* Link partner local receiver status */ |
---|
141 | 162 | #define LPA_1000REMRXOK 0x1000 /* Link partner remote receiver status */ |
---|
142 | 163 | #define LPA_1000FULL 0x0800 /* Link partner 1000BASE-T full duplex */ |
---|