/* DM9000 REG */
#define NIC_NCR                     0x00
#define NIC_NSR                     0x01
#define NIC_TCR                     0x02
#define NIC_TSR1                    0x03
#define NIC_TSR2                    0x04
#define NIC_RCR                     0x05
#define NIC_RSR                     0x06
#define NIC_POCR                    0x07
#define NIC_BPTR                    0x08
#define NIC_FCTR                    0x09
#define NIC_FCR                     0x0A
#define NIC_EPCR                    0x0B
#define NIC_EPAR                    0x0C
#define NIC_EPDRL                   0x0D
#define NIC_EPDRH                   0x0E
#define NIC_WAR                     0x0F
#define NIC_PAR                     0x10
#define NIC_MAR                     0x16
#define NIC_GPCR                    0x1E
#define NIC_GPR                     0x1F
#define NIC_RXPLLR					0x20	// v5 new
#define NIC_RXPLHR					0x21	// v5 new
#define NIC_RASR					0x26
#define NIC_RACR					0x27
#define NIC_VID_L                   0x28
#define NIC_VID_H                   0x29
#define NIC_PID_L                   0x2A
#define NIC_PID_H                   0x2B
#define NIC_CHIPR                   0x2C

#define NIC_TX_CSC					0x31
#define NIC_RX_CSC					0x32
#define NIC_UP_BUS					0x38	// v5 new
#define NIC_IRQCR					0x39
#define NIC_MEM_SIZE				0x3f

#define SW_SCR						0x52
#define SW_VLANCR					0x53
#define SW_59H						0x59	// v5 new
#define SW_PINDEX					0x60
#define SW_PCTRL					0x61
#define SW_PSTATUS					0x62
#define SW_PRATE					0x66
#define SW_PBW						0x67
#define SW_PPRI						0x6D
#define SW_VLAN_TAGL				0x6E
#define SW_VLAN_TAGH				0x6F
#define SW_VLAN_MAPPING_BEGIN		0xB0			
#define SW_VLAN_MAPPING_END			0xBF			

#define NIC_MRCMDX                  0xF0
#define NIC_MRCMD                   0xF2
#define NIC_MRRL                    0xF4
#define NIC_MRRH                    0xF5
#define NIC_MWCMDX                  0xF6
#define NIC_MWCMD                   0xF8
#define NIC_MWRL                    0xFA
#define NIC_MWRH                    0xFB
#define NIC_TXPLL                   0xFC
#define NIC_TXPLH                   0xFD
#define NIC_ISR                     0xFE
#define NIC_IMR                     0xFF

#define SW_PORT_NUM					4

#define DM9000_HEADER_SIZE			4