diff options
Diffstat (limited to 'drivers/net/netxen/netxen_nic_phan_reg.h')
-rw-r--r-- | drivers/net/netxen/netxen_nic_phan_reg.h | 125 |
1 files changed, 9 insertions, 116 deletions
diff --git a/drivers/net/netxen/netxen_nic_phan_reg.h b/drivers/net/netxen/netxen_nic_phan_reg.h index 0c7c94328b7..f7eb627f81c 100644 --- a/drivers/net/netxen/netxen_nic_phan_reg.h +++ b/drivers/net/netxen/netxen_nic_phan_reg.h | |||
@@ -100,6 +100,14 @@ | |||
100 | 100 | ||
101 | #define CRB_CMD_PRODUCER_OFFSET_1 NETXEN_NIC_REG(0x1ac) | 101 | #define CRB_CMD_PRODUCER_OFFSET_1 NETXEN_NIC_REG(0x1ac) |
102 | #define CRB_CMD_CONSUMER_OFFSET_1 NETXEN_NIC_REG(0x1b0) | 102 | #define CRB_CMD_CONSUMER_OFFSET_1 NETXEN_NIC_REG(0x1b0) |
103 | #define CRB_CMD_PRODUCER_OFFSET_1 NETXEN_NIC_REG(0x1ac) | ||
104 | #define CRB_CMD_CONSUMER_OFFSET_1 NETXEN_NIC_REG(0x1b0) | ||
105 | #define CRB_CMD_PRODUCER_OFFSET_2 NETXEN_NIC_REG(0x1b8) | ||
106 | #define CRB_CMD_CONSUMER_OFFSET_2 NETXEN_NIC_REG(0x1bc) | ||
107 | |||
108 | // 1c0 to 1cc used for signature reg | ||
109 | #define CRB_CMD_PRODUCER_OFFSET_3 NETXEN_NIC_REG(0x1d0) | ||
110 | #define CRB_CMD_CONSUMER_OFFSET_3 NETXEN_NIC_REG(0x1d4) | ||
103 | #define CRB_TEMP_STATE NETXEN_NIC_REG(0x1b4) | 111 | #define CRB_TEMP_STATE NETXEN_NIC_REG(0x1b4) |
104 | 112 | ||
105 | /* used for ethtool tests */ | 113 | /* used for ethtool tests */ |
@@ -139,128 +147,13 @@ struct netxen_recv_crb { | |||
139 | }; | 147 | }; |
140 | 148 | ||
141 | #if defined(DEFINE_GLOBAL_RECV_CRB) | 149 | #if defined(DEFINE_GLOBAL_RECV_CRB) |
142 | struct netxen_recv_crb recv_crb_registers[] = { | ||
143 | /* | ||
144 | * Instance 0. | ||
145 | */ | ||
146 | { | ||
147 | /* rcv_desc_crb: */ | ||
148 | { | ||
149 | { | ||
150 | /* crb_rcv_producer_offset: */ | ||
151 | NETXEN_NIC_REG(0x100), | ||
152 | /* crb_rcv_consumer_offset: */ | ||
153 | NETXEN_NIC_REG(0x104), | ||
154 | /* crb_gloablrcv_ring: */ | ||
155 | NETXEN_NIC_REG(0x108), | ||
156 | /* crb_rcv_ring_size */ | ||
157 | NETXEN_NIC_REG(0x10c), | ||
158 | |||
159 | }, | ||
160 | /* Jumbo frames */ | ||
161 | { | ||
162 | /* crb_rcv_producer_offset: */ | ||
163 | NETXEN_NIC_REG(0x110), | ||
164 | /* crb_rcv_consumer_offset: */ | ||
165 | NETXEN_NIC_REG(0x114), | ||
166 | /* crb_gloablrcv_ring: */ | ||
167 | NETXEN_NIC_REG(0x118), | ||
168 | /* crb_rcv_ring_size */ | ||
169 | NETXEN_NIC_REG(0x11c), | ||
170 | }, | ||
171 | /* LRO */ | ||
172 | { | ||
173 | /* crb_rcv_producer_offset: */ | ||
174 | NETXEN_NIC_REG(0x120), | ||
175 | /* crb_rcv_consumer_offset: */ | ||
176 | NETXEN_NIC_REG(0x124), | ||
177 | /* crb_gloablrcv_ring: */ | ||
178 | NETXEN_NIC_REG(0x128), | ||
179 | /* crb_rcv_ring_size */ | ||
180 | NETXEN_NIC_REG(0x12c), | ||
181 | } | ||
182 | }, | ||
183 | /* crb_rcvstatus_ring: */ | ||
184 | NETXEN_NIC_REG(0x130), | ||
185 | /* crb_rcv_status_producer: */ | ||
186 | NETXEN_NIC_REG(0x134), | ||
187 | /* crb_rcv_status_consumer: */ | ||
188 | NETXEN_NIC_REG(0x138), | ||
189 | /* crb_rcvpeg_state: */ | ||
190 | NETXEN_NIC_REG(0x13c), | ||
191 | /* crb_status_ring_size */ | ||
192 | NETXEN_NIC_REG(0x140), | ||
193 | |||
194 | }, | ||
195 | /* | ||
196 | * Instance 1, | ||
197 | */ | ||
198 | { | ||
199 | /* rcv_desc_crb: */ | ||
200 | { | ||
201 | { | ||
202 | /* crb_rcv_producer_offset: */ | ||
203 | NETXEN_NIC_REG(0x144), | ||
204 | /* crb_rcv_consumer_offset: */ | ||
205 | NETXEN_NIC_REG(0x148), | ||
206 | /* crb_globalrcv_ring: */ | ||
207 | NETXEN_NIC_REG(0x14c), | ||
208 | /* crb_rcv_ring_size */ | ||
209 | NETXEN_NIC_REG(0x150), | ||
210 | |||
211 | }, | ||
212 | /* Jumbo frames */ | ||
213 | { | ||
214 | /* crb_rcv_producer_offset: */ | ||
215 | NETXEN_NIC_REG(0x154), | ||
216 | /* crb_rcv_consumer_offset: */ | ||
217 | NETXEN_NIC_REG(0x158), | ||
218 | /* crb_globalrcv_ring: */ | ||
219 | NETXEN_NIC_REG(0x15c), | ||
220 | /* crb_rcv_ring_size */ | ||
221 | NETXEN_NIC_REG(0x160), | ||
222 | }, | ||
223 | /* LRO */ | ||
224 | { | ||
225 | /* crb_rcv_producer_offset: */ | ||
226 | NETXEN_NIC_REG(0x164), | ||
227 | /* crb_rcv_consumer_offset: */ | ||
228 | NETXEN_NIC_REG(0x168), | ||
229 | /* crb_globalrcv_ring: */ | ||
230 | NETXEN_NIC_REG(0x16c), | ||
231 | /* crb_rcv_ring_size */ | ||
232 | NETXEN_NIC_REG(0x170), | ||
233 | } | ||
234 | |||
235 | }, | ||
236 | /* crb_rcvstatus_ring: */ | ||
237 | NETXEN_NIC_REG(0x174), | ||
238 | /* crb_rcv_status_producer: */ | ||
239 | NETXEN_NIC_REG(0x178), | ||
240 | /* crb_rcv_status_consumer: */ | ||
241 | NETXEN_NIC_REG(0x17c), | ||
242 | /* crb_rcvpeg_state: */ | ||
243 | NETXEN_NIC_REG(0x180), | ||
244 | /* crb_status_ring_size */ | ||
245 | NETXEN_NIC_REG(0x184), | ||
246 | |||
247 | }, | ||
248 | }; | ||
249 | |||
250 | u64 ctx_addr_sig_regs[][3] = { | ||
251 | {NETXEN_NIC_REG(0x188), NETXEN_NIC_REG(0x18c), NETXEN_NIC_REG(0x1c0)}, | ||
252 | {NETXEN_NIC_REG(0x190), NETXEN_NIC_REG(0x194), NETXEN_NIC_REG(0x1c4)}, | ||
253 | {NETXEN_NIC_REG(0x198), NETXEN_NIC_REG(0x19c), NETXEN_NIC_REG(0x1c8)}, | ||
254 | {NETXEN_NIC_REG(0x1a0), NETXEN_NIC_REG(0x1a4), NETXEN_NIC_REG(0x1cc)} | ||
255 | }; | ||
256 | |||
257 | #else | 150 | #else |
258 | extern struct netxen_recv_crb recv_crb_registers[]; | 151 | extern struct netxen_recv_crb recv_crb_registers[]; |
259 | extern u64 ctx_addr_sig_regs[][3]; | 152 | extern u64 ctx_addr_sig_regs[][3]; |
153 | #endif /* DEFINE_GLOBAL_RECEIVE_CRB */ | ||
260 | #define CRB_CTX_ADDR_REG_LO (ctx_addr_sig_regs[0][0]) | 154 | #define CRB_CTX_ADDR_REG_LO (ctx_addr_sig_regs[0][0]) |
261 | #define CRB_CTX_ADDR_REG_HI (ctx_addr_sig_regs[0][2]) | 155 | #define CRB_CTX_ADDR_REG_HI (ctx_addr_sig_regs[0][2]) |
262 | #define CRB_CTX_SIGNATURE_REG (ctx_addr_sig_regs[0][1]) | 156 | #define CRB_CTX_SIGNATURE_REG (ctx_addr_sig_regs[0][1]) |
263 | #endif /* DEFINE_GLOBAL_RECEIVE_CRB */ | ||
264 | 157 | ||
265 | /* | 158 | /* |
266 | * Temperature control. | 159 | * Temperature control. |