1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 #define XIFC 0x000
18 # define TxOutputEnable 0x0001
19 # define XIFLoopback 0x0002
20 # define MIILoopback 0x0004
21 # define MIILoopbackBits 0x0006
22 # define MIIBuffDisable 0x0008
23 # define SQETestEnable 0x0010
24 # define SQETimeWindow 0x03e0
25 # define XIFLanceMode 0x0010
26 # define XIFLanceIPG0 0x03e0
27 #define TXFIFOCSR 0x100
28 # define TxFIFOEnable 0x0001
29 #define TXTH 0x110
30 # define TxThreshold 0x0004
31 #define RXFIFOCSR 0x120
32 # define RxFIFOEnable 0x0001
33 #define MEMADD 0x130
34 #define MEMDATAHI 0x140
35 #define MEMDATALO 0x150
36 #define XCVRIF 0x160
37 # define COLActiveLow 0x0002
38 # define SerialMode 0x0004
39 # define ClkBit 0x0008
40 # define LinkStatus 0x0100
41 #define CHIPID 0x170
42 #define MIFCSR 0x180
43 #define SROMCSR 0x190
44 # define ChipSelect 0x0001
45 # define Clk 0x0002
46 #define TXPNTR 0x1a0
47 #define RXPNTR 0x1b0
48 #define STATUS 0x200
49 #define INTDISABLE 0x210
50
51 # define FrameReceived 0x00000001
52 # define RxFrameCntExp 0x00000002
53 # define RxAlignCntExp 0x00000004
54 # define RxCRCCntExp 0x00000008
55 # define RxLenCntExp 0x00000010
56 # define RxOverFlow 0x00000020
57 # define RxCodeViolation 0x00000040
58 # define SQETestError 0x00000080
59 # define FrameSent 0x00000100
60 # define TxUnderrun 0x00000200
61 # define TxMaxSizeError 0x00000400
62 # define TxNormalCollExp 0x00000800
63 # define TxExcessCollExp 0x00001000
64 # define TxLateCollExp 0x00002000
65 # define TxNetworkCollExp 0x00004000
66 # define TxDeferTimerExp 0x00008000
67 # define RxFIFOToHost 0x00010000
68 # define RxNoDescriptors 0x00020000
69 # define RxDMAError 0x00040000
70 # define RxDMALateErr 0x00080000
71 # define RxParityErr 0x00100000
72 # define RxTagError 0x00200000
73 # define TxEOPError 0x00400000
74 # define MIFIntrEvent 0x00800000
75 # define TxHostToFIFO 0x01000000
76 # define TxFIFOAllSent 0x02000000
77 # define TxDMAError 0x04000000
78 # define TxDMALateError 0x08000000
79 # define TxParityError 0x10000000
80 # define TxTagError 0x20000000
81 # define PIOError 0x40000000
82 # define PIOParityError 0x80000000
83 # define DisableAll 0xffffffff
84 # define EnableAll 0x00000000
85
86 # define EnableNormal ~(FrameReceived | FrameSent)
87 # define EnableErrors (FrameReceived | FrameSent)
88 # define RxErrorMask (RxFrameCntExp | RxAlignCntExp | RxCRCCntExp | \
89 RxLenCntExp | RxOverFlow | RxCodeViolation)
90 # define TxErrorMask (TxUnderrun | TxMaxSizeError | TxExcessCollExp | \
91 TxLateCollExp | TxNetworkCollExp | TxDeferTimerExp)
92
93
94 #define TXRST 0x420
95 # define TxResetBit 0x0001
96 #define TXCFG 0x430
97 # define TxMACEnable 0x0001
98 # define TxSlowMode 0x0020
99 # define TxIgnoreColl 0x0040
100 # define TxNoFCS 0x0080
101 # define TxNoBackoff 0x0100
102 # define TxFullDuplex 0x0200
103 # define TxNeverGiveUp 0x0400
104 #define IPG1 0x440
105 #define IPG2 0x450
106 #define ALIMIT 0x460
107 #define SLOT 0x470
108 #define PALEN 0x480
109 #define PAPAT 0x490
110 #define TXSFD 0x4a0
111 #define JAM 0x4b0
112 #define TXMAX 0x4c0
113 #define TXMIN 0x4d0
114 #define PAREG 0x4e0
115 #define DCNT 0x4f0
116 #define NCCNT 0x500
117 #define NTCNT 0x510
118 #define EXCNT 0x520
119 #define LTCNT 0x530
120 #define RSEED 0x540
121 #define TXSM 0x550
122
123
124 #define RXRST 0x620
125 # define RxResetValue 0x0000
126 #define RXCFG 0x630
127 # define RxMACEnable 0x0001
128 # define RxCFGReserved 0x0004
129 # define RxPadStripEnab 0x0020
130 # define RxPromiscEnable 0x0040
131 # define RxNoErrCheck 0x0080
132 # define RxCRCNoStrip 0x0100
133 # define RxRejectOwnPackets 0x0200
134 # define RxGrpPromisck 0x0400
135 # define RxHashFilterEnable 0x0800
136 # define RxAddrFilterEnable 0x1000
137 #define RXMAX 0x640
138 #define RXMIN 0x650
139 #define MADD2 0x660
140 #define MADD1 0x670
141 #define MADD0 0x680
142 #define FRCNT 0x690
143 #define LECNT 0x6a0
144 #define AECNT 0x6b0
145 #define FECNT 0x6c0
146 #define RXSM 0x6d0
147 #define RXCV 0x6e0
148
149 #define BHASH3 0x700
150 #define BHASH2 0x710
151 #define BHASH1 0x720
152 #define BHASH0 0x730
153
154 #define AFR2 0x740
155 #define AFR1 0x750
156 #define AFR0 0x760
157 #define AFCR 0x770
158 # define EnableAllCompares 0x0fff
159
160