mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
generic: ar8216: add MIB counter support for the AR8216 switch as well
Thanks to Jonas Gorski for the reference URL. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34245 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -160,6 +160,46 @@
|
||||
#define AR8216_REG_PORT_RATE(_i) (AR8216_PORT_OFFSET(_i) + 0x000c)
|
||||
#define AR8216_REG_PORT_PRIO(_i) (AR8216_PORT_OFFSET(_i) + 0x0010)
|
||||
|
||||
#define AR8216_REG_PORT_STATS_BASE(_i) (0x19000 + (_i) * 0xa0)
|
||||
|
||||
#define AR8216_STATS_RXBROAD 0x00
|
||||
#define AR8216_STATS_RXPAUSE 0x04
|
||||
#define AR8216_STATS_RXMULTI 0x08
|
||||
#define AR8216_STATS_RXFCSERR 0x0c
|
||||
#define AR8216_STATS_RXALIGNERR 0x10
|
||||
#define AR8216_STATS_RXRUNT 0x14
|
||||
#define AR8216_STATS_RXFRAGMENT 0x18
|
||||
#define AR8216_STATS_RX64BYTE 0x1c
|
||||
#define AR8216_STATS_RX128BYTE 0x20
|
||||
#define AR8216_STATS_RX256BYTE 0x24
|
||||
#define AR8216_STATS_RX512BYTE 0x28
|
||||
#define AR8216_STATS_RX1024BYTE 0x2c
|
||||
#define AR8216_STATS_RXMAXBYTE 0x30
|
||||
#define AR8216_STATS_RXTOOLONG 0x34
|
||||
#define AR8216_STATS_RXGOODBYTE 0x38
|
||||
#define AR8216_STATS_RXBADBYTE 0x40
|
||||
#define AR8216_STATS_RXOVERFLOW 0x48
|
||||
#define AR8216_STATS_FILTERED 0x4c
|
||||
#define AR8216_STATS_TXBROAD 0x50
|
||||
#define AR8216_STATS_TXPAUSE 0x54
|
||||
#define AR8216_STATS_TXMULTI 0x58
|
||||
#define AR8216_STATS_TXUNDERRUN 0x5c
|
||||
#define AR8216_STATS_TX64BYTE 0x60
|
||||
#define AR8216_STATS_TX128BYTE 0x64
|
||||
#define AR8216_STATS_TX256BYTE 0x68
|
||||
#define AR8216_STATS_TX512BYTE 0x6c
|
||||
#define AR8216_STATS_TX1024BYTE 0x70
|
||||
#define AR8216_STATS_TXMAXBYTE 0x74
|
||||
#define AR8216_STATS_TXOVERSIZE 0x78
|
||||
#define AR8216_STATS_TXBYTE 0x7c
|
||||
#define AR8216_STATS_TXCOLLISION 0x84
|
||||
#define AR8216_STATS_TXABORTCOL 0x88
|
||||
#define AR8216_STATS_TXMULTICOL 0x8c
|
||||
#define AR8216_STATS_TXSINGLECOL 0x90
|
||||
#define AR8216_STATS_TXEXCDEFER 0x94
|
||||
#define AR8216_STATS_TXDEFER 0x98
|
||||
#define AR8216_STATS_TXLATECOL 0x9c
|
||||
|
||||
#define AR8236_REG_PORT_VLAN(_i) (AR8216_PORT_OFFSET((_i)) + 0x0008)
|
||||
#define AR8236_PORT_VLAN_DEFAULT_ID BITS(16, 12)
|
||||
#define AR8236_PORT_VLAN_DEFAULT_ID_S 16
|
||||
|
||||
Reference in New Issue
Block a user