Changeset 34244
 Timestamp:
 20121118T17:20:56+01:00 (5 years ago)
 Location:
 trunk/target/linux/generic/files/drivers/net/phy
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

trunk/target/linux/generic/files/drivers/net/phy/ar8216.c
r34243 r34244 117 117 118 118 static const struct ar8xxx_mib_desc ar8236_mibs[] = { 119 MIB_DESC(1, AR82 16_STATS_RXBROAD, "RxBroad"),120 MIB_DESC(1, AR82 16_STATS_RXPAUSE, "RxPause"),121 MIB_DESC(1, AR82 16_STATS_RXMULTI, "RxMulti"),122 MIB_DESC(1, AR82 16_STATS_RXFCSERR, "RxFcsErr"),123 MIB_DESC(1, AR82 16_STATS_RXALIGNERR, "RxAlignErr"),124 MIB_DESC(1, AR82 16_STATS_RXRUNT, "RxRunt"),125 MIB_DESC(1, AR82 16_STATS_RXFRAGMENT, "RxFragment"),126 MIB_DESC(1, AR82 16_STATS_RX64BYTE, "Rx64Byte"),127 MIB_DESC(1, AR82 16_STATS_RX128BYTE, "Rx128Byte"),128 MIB_DESC(1, AR82 16_STATS_RX256BYTE, "Rx256Byte"),129 MIB_DESC(1, AR82 16_STATS_RX512BYTE, "Rx512Byte"),130 MIB_DESC(1, AR82 16_STATS_RX1024BYTE, "Rx1024Byte"),131 MIB_DESC(1, AR82 16_STATS_RX1518BYTE, "Rx1518Byte"),132 MIB_DESC(1, AR82 16_STATS_RXMAXBYTE, "RxMaxByte"),133 MIB_DESC(1, AR82 16_STATS_RXTOOLONG, "RxTooLong"),134 MIB_DESC(2, AR82 16_STATS_RXGOODBYTE, "RxGoodByte"),135 MIB_DESC(2, AR82 16_STATS_RXBADBYTE, "RxBadByte"),136 MIB_DESC(1, AR82 16_STATS_RXOVERFLOW, "RxOverFlow"),137 MIB_DESC(1, AR82 16_STATS_FILTERED, "Filtered"),138 MIB_DESC(1, AR82 16_STATS_TXBROAD, "TxBroad"),139 MIB_DESC(1, AR82 16_STATS_TXPAUSE, "TxPause"),140 MIB_DESC(1, AR82 16_STATS_TXMULTI, "TxMulti"),141 MIB_DESC(1, AR82 16_STATS_TXUNDERRUN, "TxUnderRun"),142 MIB_DESC(1, AR82 16_STATS_TX64BYTE, "Tx64Byte"),143 MIB_DESC(1, AR82 16_STATS_TX128BYTE, "Tx128Byte"),144 MIB_DESC(1, AR82 16_STATS_TX256BYTE, "Tx256Byte"),145 MIB_DESC(1, AR82 16_STATS_TX512BYTE, "Tx512Byte"),146 MIB_DESC(1, AR82 16_STATS_TX1024BYTE, "Tx1024Byte"),147 MIB_DESC(1, AR82 16_STATS_TX1518BYTE, "Tx1518Byte"),148 MIB_DESC(1, AR82 16_STATS_TXMAXBYTE, "TxMaxByte"),149 MIB_DESC(1, AR82 16_STATS_TXOVERSIZE, "TxOverSize"),150 MIB_DESC(2, AR82 16_STATS_TXBYTE, "TxByte"),151 MIB_DESC(1, AR82 16_STATS_TXCOLLISION, "TxCollision"),152 MIB_DESC(1, AR82 16_STATS_TXABORTCOL, "TxAbortCol"),153 MIB_DESC(1, AR82 16_STATS_TXMULTICOL, "TxMultiCol"),154 MIB_DESC(1, AR82 16_STATS_TXSINGLECOL, "TxSingleCol"),155 MIB_DESC(1, AR82 16_STATS_TXEXCDEFER, "TxExcDefer"),156 MIB_DESC(1, AR82 16_STATS_TXDEFER, "TxDefer"),157 MIB_DESC(1, AR82 16_STATS_TXLATECOL, "TxLateCol"),119 MIB_DESC(1, AR8236_STATS_RXBROAD, "RxBroad"), 120 MIB_DESC(1, AR8236_STATS_RXPAUSE, "RxPause"), 121 MIB_DESC(1, AR8236_STATS_RXMULTI, "RxMulti"), 122 MIB_DESC(1, AR8236_STATS_RXFCSERR, "RxFcsErr"), 123 MIB_DESC(1, AR8236_STATS_RXALIGNERR, "RxAlignErr"), 124 MIB_DESC(1, AR8236_STATS_RXRUNT, "RxRunt"), 125 MIB_DESC(1, AR8236_STATS_RXFRAGMENT, "RxFragment"), 126 MIB_DESC(1, AR8236_STATS_RX64BYTE, "Rx64Byte"), 127 MIB_DESC(1, AR8236_STATS_RX128BYTE, "Rx128Byte"), 128 MIB_DESC(1, AR8236_STATS_RX256BYTE, "Rx256Byte"), 129 MIB_DESC(1, AR8236_STATS_RX512BYTE, "Rx512Byte"), 130 MIB_DESC(1, AR8236_STATS_RX1024BYTE, "Rx1024Byte"), 131 MIB_DESC(1, AR8236_STATS_RX1518BYTE, "Rx1518Byte"), 132 MIB_DESC(1, AR8236_STATS_RXMAXBYTE, "RxMaxByte"), 133 MIB_DESC(1, AR8236_STATS_RXTOOLONG, "RxTooLong"), 134 MIB_DESC(2, AR8236_STATS_RXGOODBYTE, "RxGoodByte"), 135 MIB_DESC(2, AR8236_STATS_RXBADBYTE, "RxBadByte"), 136 MIB_DESC(1, AR8236_STATS_RXOVERFLOW, "RxOverFlow"), 137 MIB_DESC(1, AR8236_STATS_FILTERED, "Filtered"), 138 MIB_DESC(1, AR8236_STATS_TXBROAD, "TxBroad"), 139 MIB_DESC(1, AR8236_STATS_TXPAUSE, "TxPause"), 140 MIB_DESC(1, AR8236_STATS_TXMULTI, "TxMulti"), 141 MIB_DESC(1, AR8236_STATS_TXUNDERRUN, "TxUnderRun"), 142 MIB_DESC(1, AR8236_STATS_TX64BYTE, "Tx64Byte"), 143 MIB_DESC(1, AR8236_STATS_TX128BYTE, "Tx128Byte"), 144 MIB_DESC(1, AR8236_STATS_TX256BYTE, "Tx256Byte"), 145 MIB_DESC(1, AR8236_STATS_TX512BYTE, "Tx512Byte"), 146 MIB_DESC(1, AR8236_STATS_TX1024BYTE, "Tx1024Byte"), 147 MIB_DESC(1, AR8236_STATS_TX1518BYTE, "Tx1518Byte"), 148 MIB_DESC(1, AR8236_STATS_TXMAXBYTE, "TxMaxByte"), 149 MIB_DESC(1, AR8236_STATS_TXOVERSIZE, "TxOverSize"), 150 MIB_DESC(2, AR8236_STATS_TXBYTE, "TxByte"), 151 MIB_DESC(1, AR8236_STATS_TXCOLLISION, "TxCollision"), 152 MIB_DESC(1, AR8236_STATS_TXABORTCOL, "TxAbortCol"), 153 MIB_DESC(1, AR8236_STATS_TXMULTICOL, "TxMultiCol"), 154 MIB_DESC(1, AR8236_STATS_TXSINGLECOL, "TxSingleCol"), 155 MIB_DESC(1, AR8236_STATS_TXEXCDEFER, "TxExcDefer"), 156 MIB_DESC(1, AR8236_STATS_TXDEFER, "TxDefer"), 157 MIB_DESC(1, AR8236_STATS_TXLATECOL, "TxLateCol"), 158 158 }; 159 159 … … 389 389 base = AR8327_REG_PORT_STATS_BASE(port); 390 390 else 391 base = AR82 16_REG_PORT_STATS_BASE(port);391 base = AR8236_REG_PORT_STATS_BASE(port); 392 392 393 393 mib_stats = &priv>mib_stats[port * priv>chip>num_mibs]; 
trunk/target/linux/generic/files/drivers/net/phy/ar8216.h
r34243 r34244 161 161 #define AR8216_REG_PORT_PRIO(_i) (AR8216_PORT_OFFSET(_i) + 0x0010) 162 162 163 #define AR8216_REG_PORT_STATS_BASE(_i) (0x20000 + (_i) * 0x100)164 165 #define AR8216_STATS_RXBROAD 0x00166 #define AR8216_STATS_RXPAUSE 0x04167 #define AR8216_STATS_RXMULTI 0x08168 #define AR8216_STATS_RXFCSERR 0x0c169 #define AR8216_STATS_RXALIGNERR 0x10170 #define AR8216_STATS_RXRUNT 0x14171 #define AR8216_STATS_RXFRAGMENT 0x18172 #define AR8216_STATS_RX64BYTE 0x1c173 #define AR8216_STATS_RX128BYTE 0x20174 #define AR8216_STATS_RX256BYTE 0x24175 #define AR8216_STATS_RX512BYTE 0x28176 #define AR8216_STATS_RX1024BYTE 0x2c177 #define AR8216_STATS_RX1518BYTE 0x30178 #define AR8216_STATS_RXMAXBYTE 0x34179 #define AR8216_STATS_RXTOOLONG 0x38180 #define AR8216_STATS_RXGOODBYTE 0x3c181 #define AR8216_STATS_RXBADBYTE 0x44182 #define AR8216_STATS_RXOVERFLOW 0x4c183 #define AR8216_STATS_FILTERED 0x50184 #define AR8216_STATS_TXBROAD 0x54185 #define AR8216_STATS_TXPAUSE 0x58186 #define AR8216_STATS_TXMULTI 0x5c187 #define AR8216_STATS_TXUNDERRUN 0x60188 #define AR8216_STATS_TX64BYTE 0x64189 #define AR8216_STATS_TX128BYTE 0x68190 #define AR8216_STATS_TX256BYTE 0x6c191 #define AR8216_STATS_TX512BYTE 0x70192 #define AR8216_STATS_TX1024BYTE 0x74193 #define AR8216_STATS_TX1518BYTE 0x78194 #define AR8216_STATS_TXMAXBYTE 0x7c195 #define AR8216_STATS_TXOVERSIZE 0x80196 #define AR8216_STATS_TXBYTE 0x84197 #define AR8216_STATS_TXCOLLISION 0x8c198 #define AR8216_STATS_TXABORTCOL 0x90199 #define AR8216_STATS_TXMULTICOL 0x94200 #define AR8216_STATS_TXSINGLECOL 0x98201 #define AR8216_STATS_TXEXCDEFER 0x9c202 #define AR8216_STATS_TXDEFER 0xa0203 #define AR8216_STATS_TXLATECOL 0xa4204 205 163 #define AR8236_REG_PORT_VLAN(_i) (AR8216_PORT_OFFSET((_i)) + 0x0008) 206 164 #define AR8236_PORT_VLAN_DEFAULT_ID BITS(16, 12) … … 215 173 #define AR8236_PORT_VLAN2_VLAN_MODE BITS(30, 2) 216 174 #define AR8236_PORT_VLAN2_VLAN_MODE_S 30 175 176 #define AR8236_REG_PORT_STATS_BASE(_i) (0x20000 + (_i) * 0x100) 177 178 #define AR8236_STATS_RXBROAD 0x00 179 #define AR8236_STATS_RXPAUSE 0x04 180 #define AR8236_STATS_RXMULTI 0x08 181 #define AR8236_STATS_RXFCSERR 0x0c 182 #define AR8236_STATS_RXALIGNERR 0x10 183 #define AR8236_STATS_RXRUNT 0x14 184 #define AR8236_STATS_RXFRAGMENT 0x18 185 #define AR8236_STATS_RX64BYTE 0x1c 186 #define AR8236_STATS_RX128BYTE 0x20 187 #define AR8236_STATS_RX256BYTE 0x24 188 #define AR8236_STATS_RX512BYTE 0x28 189 #define AR8236_STATS_RX1024BYTE 0x2c 190 #define AR8236_STATS_RX1518BYTE 0x30 191 #define AR8236_STATS_RXMAXBYTE 0x34 192 #define AR8236_STATS_RXTOOLONG 0x38 193 #define AR8236_STATS_RXGOODBYTE 0x3c 194 #define AR8236_STATS_RXBADBYTE 0x44 195 #define AR8236_STATS_RXOVERFLOW 0x4c 196 #define AR8236_STATS_FILTERED 0x50 197 #define AR8236_STATS_TXBROAD 0x54 198 #define AR8236_STATS_TXPAUSE 0x58 199 #define AR8236_STATS_TXMULTI 0x5c 200 #define AR8236_STATS_TXUNDERRUN 0x60 201 #define AR8236_STATS_TX64BYTE 0x64 202 #define AR8236_STATS_TX128BYTE 0x68 203 #define AR8236_STATS_TX256BYTE 0x6c 204 #define AR8236_STATS_TX512BYTE 0x70 205 #define AR8236_STATS_TX1024BYTE 0x74 206 #define AR8236_STATS_TX1518BYTE 0x78 207 #define AR8236_STATS_TXMAXBYTE 0x7c 208 #define AR8236_STATS_TXOVERSIZE 0x80 209 #define AR8236_STATS_TXBYTE 0x84 210 #define AR8236_STATS_TXCOLLISION 0x8c 211 #define AR8236_STATS_TXABORTCOL 0x90 212 #define AR8236_STATS_TXMULTICOL 0x94 213 #define AR8236_STATS_TXSINGLECOL 0x98 214 #define AR8236_STATS_TXEXCDEFER 0x9c 215 #define AR8236_STATS_TXDEFER 0xa0 216 #define AR8236_STATS_TXLATECOL 0xa4 217 217 218 218 #define AR8327_NUM_PORTS 7
Note: See TracChangeset
for help on using the changeset viewer.