Committer: Michael Beasley <mike@snafu.setup>
[mikesnafu-overlay.git] / drivers / scsi / aic7xxx / aic79xx_reg.h_shipped
blob2068e00d2c750a09c8b733aff1fa01af385a395e
1 /*
2  * DO NOT EDIT - This file is automatically generated
3  *               from the following source files:
4  *
5  * $Id: //depot/aic7xxx/aic7xxx/aic79xx.seq#120 $
6  * $Id: //depot/aic7xxx/aic7xxx/aic79xx.reg#77 $
7  */
8 typedef int (ahd_reg_print_t)(u_int, u_int *, u_int);
9 typedef struct ahd_reg_parse_entry {
10         char    *name;
11         uint8_t  value;
12         uint8_t  mask;
13 } ahd_reg_parse_entry_t;
15 #if AIC_DEBUG_REGISTERS
16 ahd_reg_print_t ahd_mode_ptr_print;
17 #else
18 #define ahd_mode_ptr_print(regvalue, cur_col, wrap) \
19     ahd_print_register(NULL, 0, "MODE_PTR", 0x00, regvalue, cur_col, wrap)
20 #endif
22 #if AIC_DEBUG_REGISTERS
23 ahd_reg_print_t ahd_intstat_print;
24 #else
25 #define ahd_intstat_print(regvalue, cur_col, wrap) \
26     ahd_print_register(NULL, 0, "INTSTAT", 0x01, regvalue, cur_col, wrap)
27 #endif
29 #if AIC_DEBUG_REGISTERS
30 ahd_reg_print_t ahd_seqintcode_print;
31 #else
32 #define ahd_seqintcode_print(regvalue, cur_col, wrap) \
33     ahd_print_register(NULL, 0, "SEQINTCODE", 0x02, regvalue, cur_col, wrap)
34 #endif
36 #if AIC_DEBUG_REGISTERS
37 ahd_reg_print_t ahd_clrint_print;
38 #else
39 #define ahd_clrint_print(regvalue, cur_col, wrap) \
40     ahd_print_register(NULL, 0, "CLRINT", 0x03, regvalue, cur_col, wrap)
41 #endif
43 #if AIC_DEBUG_REGISTERS
44 ahd_reg_print_t ahd_error_print;
45 #else
46 #define ahd_error_print(regvalue, cur_col, wrap) \
47     ahd_print_register(NULL, 0, "ERROR", 0x04, regvalue, cur_col, wrap)
48 #endif
50 #if AIC_DEBUG_REGISTERS
51 ahd_reg_print_t ahd_clrerr_print;
52 #else
53 #define ahd_clrerr_print(regvalue, cur_col, wrap) \
54     ahd_print_register(NULL, 0, "CLRERR", 0x04, regvalue, cur_col, wrap)
55 #endif
57 #if AIC_DEBUG_REGISTERS
58 ahd_reg_print_t ahd_hcntrl_print;
59 #else
60 #define ahd_hcntrl_print(regvalue, cur_col, wrap) \
61     ahd_print_register(NULL, 0, "HCNTRL", 0x05, regvalue, cur_col, wrap)
62 #endif
64 #if AIC_DEBUG_REGISTERS
65 ahd_reg_print_t ahd_hnscb_qoff_print;
66 #else
67 #define ahd_hnscb_qoff_print(regvalue, cur_col, wrap) \
68     ahd_print_register(NULL, 0, "HNSCB_QOFF", 0x06, regvalue, cur_col, wrap)
69 #endif
71 #if AIC_DEBUG_REGISTERS
72 ahd_reg_print_t ahd_hescb_qoff_print;
73 #else
74 #define ahd_hescb_qoff_print(regvalue, cur_col, wrap) \
75     ahd_print_register(NULL, 0, "HESCB_QOFF", 0x08, regvalue, cur_col, wrap)
76 #endif
78 #if AIC_DEBUG_REGISTERS
79 ahd_reg_print_t ahd_hs_mailbox_print;
80 #else
81 #define ahd_hs_mailbox_print(regvalue, cur_col, wrap) \
82     ahd_print_register(NULL, 0, "HS_MAILBOX", 0x0b, regvalue, cur_col, wrap)
83 #endif
85 #if AIC_DEBUG_REGISTERS
86 ahd_reg_print_t ahd_seqintstat_print;
87 #else
88 #define ahd_seqintstat_print(regvalue, cur_col, wrap) \
89     ahd_print_register(NULL, 0, "SEQINTSTAT", 0x0c, regvalue, cur_col, wrap)
90 #endif
92 #if AIC_DEBUG_REGISTERS
93 ahd_reg_print_t ahd_clrseqintstat_print;
94 #else
95 #define ahd_clrseqintstat_print(regvalue, cur_col, wrap) \
96     ahd_print_register(NULL, 0, "CLRSEQINTSTAT", 0x0c, regvalue, cur_col, wrap)
97 #endif
99 #if AIC_DEBUG_REGISTERS
100 ahd_reg_print_t ahd_swtimer_print;
101 #else
102 #define ahd_swtimer_print(regvalue, cur_col, wrap) \
103     ahd_print_register(NULL, 0, "SWTIMER", 0x0e, regvalue, cur_col, wrap)
104 #endif
106 #if AIC_DEBUG_REGISTERS
107 ahd_reg_print_t ahd_snscb_qoff_print;
108 #else
109 #define ahd_snscb_qoff_print(regvalue, cur_col, wrap) \
110     ahd_print_register(NULL, 0, "SNSCB_QOFF", 0x10, regvalue, cur_col, wrap)
111 #endif
113 #if AIC_DEBUG_REGISTERS
114 ahd_reg_print_t ahd_sescb_qoff_print;
115 #else
116 #define ahd_sescb_qoff_print(regvalue, cur_col, wrap) \
117     ahd_print_register(NULL, 0, "SESCB_QOFF", 0x12, regvalue, cur_col, wrap)
118 #endif
120 #if AIC_DEBUG_REGISTERS
121 ahd_reg_print_t ahd_sdscb_qoff_print;
122 #else
123 #define ahd_sdscb_qoff_print(regvalue, cur_col, wrap) \
124     ahd_print_register(NULL, 0, "SDSCB_QOFF", 0x14, regvalue, cur_col, wrap)
125 #endif
127 #if AIC_DEBUG_REGISTERS
128 ahd_reg_print_t ahd_qoff_ctlsta_print;
129 #else
130 #define ahd_qoff_ctlsta_print(regvalue, cur_col, wrap) \
131     ahd_print_register(NULL, 0, "QOFF_CTLSTA", 0x16, regvalue, cur_col, wrap)
132 #endif
134 #if AIC_DEBUG_REGISTERS
135 ahd_reg_print_t ahd_intctl_print;
136 #else
137 #define ahd_intctl_print(regvalue, cur_col, wrap) \
138     ahd_print_register(NULL, 0, "INTCTL", 0x18, regvalue, cur_col, wrap)
139 #endif
141 #if AIC_DEBUG_REGISTERS
142 ahd_reg_print_t ahd_dfcntrl_print;
143 #else
144 #define ahd_dfcntrl_print(regvalue, cur_col, wrap) \
145     ahd_print_register(NULL, 0, "DFCNTRL", 0x19, regvalue, cur_col, wrap)
146 #endif
148 #if AIC_DEBUG_REGISTERS
149 ahd_reg_print_t ahd_dscommand0_print;
150 #else
151 #define ahd_dscommand0_print(regvalue, cur_col, wrap) \
152     ahd_print_register(NULL, 0, "DSCOMMAND0", 0x19, regvalue, cur_col, wrap)
153 #endif
155 #if AIC_DEBUG_REGISTERS
156 ahd_reg_print_t ahd_dfstatus_print;
157 #else
158 #define ahd_dfstatus_print(regvalue, cur_col, wrap) \
159     ahd_print_register(NULL, 0, "DFSTATUS", 0x1a, regvalue, cur_col, wrap)
160 #endif
162 #if AIC_DEBUG_REGISTERS
163 ahd_reg_print_t ahd_sg_cache_shadow_print;
164 #else
165 #define ahd_sg_cache_shadow_print(regvalue, cur_col, wrap) \
166     ahd_print_register(NULL, 0, "SG_CACHE_SHADOW", 0x1b, regvalue, cur_col, wrap)
167 #endif
169 #if AIC_DEBUG_REGISTERS
170 ahd_reg_print_t ahd_arbctl_print;
171 #else
172 #define ahd_arbctl_print(regvalue, cur_col, wrap) \
173     ahd_print_register(NULL, 0, "ARBCTL", 0x1b, regvalue, cur_col, wrap)
174 #endif
176 #if AIC_DEBUG_REGISTERS
177 ahd_reg_print_t ahd_sg_cache_pre_print;
178 #else
179 #define ahd_sg_cache_pre_print(regvalue, cur_col, wrap) \
180     ahd_print_register(NULL, 0, "SG_CACHE_PRE", 0x1b, regvalue, cur_col, wrap)
181 #endif
183 #if AIC_DEBUG_REGISTERS
184 ahd_reg_print_t ahd_lqin_print;
185 #else
186 #define ahd_lqin_print(regvalue, cur_col, wrap) \
187     ahd_print_register(NULL, 0, "LQIN", 0x20, regvalue, cur_col, wrap)
188 #endif
190 #if AIC_DEBUG_REGISTERS
191 ahd_reg_print_t ahd_typeptr_print;
192 #else
193 #define ahd_typeptr_print(regvalue, cur_col, wrap) \
194     ahd_print_register(NULL, 0, "TYPEPTR", 0x20, regvalue, cur_col, wrap)
195 #endif
197 #if AIC_DEBUG_REGISTERS
198 ahd_reg_print_t ahd_tagptr_print;
199 #else
200 #define ahd_tagptr_print(regvalue, cur_col, wrap) \
201     ahd_print_register(NULL, 0, "TAGPTR", 0x21, regvalue, cur_col, wrap)
202 #endif
204 #if AIC_DEBUG_REGISTERS
205 ahd_reg_print_t ahd_lunptr_print;
206 #else
207 #define ahd_lunptr_print(regvalue, cur_col, wrap) \
208     ahd_print_register(NULL, 0, "LUNPTR", 0x22, regvalue, cur_col, wrap)
209 #endif
211 #if AIC_DEBUG_REGISTERS
212 ahd_reg_print_t ahd_datalenptr_print;
213 #else
214 #define ahd_datalenptr_print(regvalue, cur_col, wrap) \
215     ahd_print_register(NULL, 0, "DATALENPTR", 0x23, regvalue, cur_col, wrap)
216 #endif
218 #if AIC_DEBUG_REGISTERS
219 ahd_reg_print_t ahd_statlenptr_print;
220 #else
221 #define ahd_statlenptr_print(regvalue, cur_col, wrap) \
222     ahd_print_register(NULL, 0, "STATLENPTR", 0x24, regvalue, cur_col, wrap)
223 #endif
225 #if AIC_DEBUG_REGISTERS
226 ahd_reg_print_t ahd_cmdlenptr_print;
227 #else
228 #define ahd_cmdlenptr_print(regvalue, cur_col, wrap) \
229     ahd_print_register(NULL, 0, "CMDLENPTR", 0x25, regvalue, cur_col, wrap)
230 #endif
232 #if AIC_DEBUG_REGISTERS
233 ahd_reg_print_t ahd_attrptr_print;
234 #else
235 #define ahd_attrptr_print(regvalue, cur_col, wrap) \
236     ahd_print_register(NULL, 0, "ATTRPTR", 0x26, regvalue, cur_col, wrap)
237 #endif
239 #if AIC_DEBUG_REGISTERS
240 ahd_reg_print_t ahd_flagptr_print;
241 #else
242 #define ahd_flagptr_print(regvalue, cur_col, wrap) \
243     ahd_print_register(NULL, 0, "FLAGPTR", 0x27, regvalue, cur_col, wrap)
244 #endif
246 #if AIC_DEBUG_REGISTERS
247 ahd_reg_print_t ahd_cmdptr_print;
248 #else
249 #define ahd_cmdptr_print(regvalue, cur_col, wrap) \
250     ahd_print_register(NULL, 0, "CMDPTR", 0x28, regvalue, cur_col, wrap)
251 #endif
253 #if AIC_DEBUG_REGISTERS
254 ahd_reg_print_t ahd_qnextptr_print;
255 #else
256 #define ahd_qnextptr_print(regvalue, cur_col, wrap) \
257     ahd_print_register(NULL, 0, "QNEXTPTR", 0x29, regvalue, cur_col, wrap)
258 #endif
260 #if AIC_DEBUG_REGISTERS
261 ahd_reg_print_t ahd_idptr_print;
262 #else
263 #define ahd_idptr_print(regvalue, cur_col, wrap) \
264     ahd_print_register(NULL, 0, "IDPTR", 0x2a, regvalue, cur_col, wrap)
265 #endif
267 #if AIC_DEBUG_REGISTERS
268 ahd_reg_print_t ahd_abrtbyteptr_print;
269 #else
270 #define ahd_abrtbyteptr_print(regvalue, cur_col, wrap) \
271     ahd_print_register(NULL, 0, "ABRTBYTEPTR", 0x2b, regvalue, cur_col, wrap)
272 #endif
274 #if AIC_DEBUG_REGISTERS
275 ahd_reg_print_t ahd_abrtbitptr_print;
276 #else
277 #define ahd_abrtbitptr_print(regvalue, cur_col, wrap) \
278     ahd_print_register(NULL, 0, "ABRTBITPTR", 0x2c, regvalue, cur_col, wrap)
279 #endif
281 #if AIC_DEBUG_REGISTERS
282 ahd_reg_print_t ahd_maxcmdbytes_print;
283 #else
284 #define ahd_maxcmdbytes_print(regvalue, cur_col, wrap) \
285     ahd_print_register(NULL, 0, "MAXCMDBYTES", 0x2d, regvalue, cur_col, wrap)
286 #endif
288 #if AIC_DEBUG_REGISTERS
289 ahd_reg_print_t ahd_maxcmd2rcv_print;
290 #else
291 #define ahd_maxcmd2rcv_print(regvalue, cur_col, wrap) \
292     ahd_print_register(NULL, 0, "MAXCMD2RCV", 0x2e, regvalue, cur_col, wrap)
293 #endif
295 #if AIC_DEBUG_REGISTERS
296 ahd_reg_print_t ahd_shortthresh_print;
297 #else
298 #define ahd_shortthresh_print(regvalue, cur_col, wrap) \
299     ahd_print_register(NULL, 0, "SHORTTHRESH", 0x2f, regvalue, cur_col, wrap)
300 #endif
302 #if AIC_DEBUG_REGISTERS
303 ahd_reg_print_t ahd_lunlen_print;
304 #else
305 #define ahd_lunlen_print(regvalue, cur_col, wrap) \
306     ahd_print_register(NULL, 0, "LUNLEN", 0x30, regvalue, cur_col, wrap)
307 #endif
309 #if AIC_DEBUG_REGISTERS
310 ahd_reg_print_t ahd_cdblimit_print;
311 #else
312 #define ahd_cdblimit_print(regvalue, cur_col, wrap) \
313     ahd_print_register(NULL, 0, "CDBLIMIT", 0x31, regvalue, cur_col, wrap)
314 #endif
316 #if AIC_DEBUG_REGISTERS
317 ahd_reg_print_t ahd_maxcmd_print;
318 #else
319 #define ahd_maxcmd_print(regvalue, cur_col, wrap) \
320     ahd_print_register(NULL, 0, "MAXCMD", 0x32, regvalue, cur_col, wrap)
321 #endif
323 #if AIC_DEBUG_REGISTERS
324 ahd_reg_print_t ahd_maxcmdcnt_print;
325 #else
326 #define ahd_maxcmdcnt_print(regvalue, cur_col, wrap) \
327     ahd_print_register(NULL, 0, "MAXCMDCNT", 0x33, regvalue, cur_col, wrap)
328 #endif
330 #if AIC_DEBUG_REGISTERS
331 ahd_reg_print_t ahd_lqrsvd01_print;
332 #else
333 #define ahd_lqrsvd01_print(regvalue, cur_col, wrap) \
334     ahd_print_register(NULL, 0, "LQRSVD01", 0x34, regvalue, cur_col, wrap)
335 #endif
337 #if AIC_DEBUG_REGISTERS
338 ahd_reg_print_t ahd_lqrsvd16_print;
339 #else
340 #define ahd_lqrsvd16_print(regvalue, cur_col, wrap) \
341     ahd_print_register(NULL, 0, "LQRSVD16", 0x35, regvalue, cur_col, wrap)
342 #endif
344 #if AIC_DEBUG_REGISTERS
345 ahd_reg_print_t ahd_lqrsvd17_print;
346 #else
347 #define ahd_lqrsvd17_print(regvalue, cur_col, wrap) \
348     ahd_print_register(NULL, 0, "LQRSVD17", 0x36, regvalue, cur_col, wrap)
349 #endif
351 #if AIC_DEBUG_REGISTERS
352 ahd_reg_print_t ahd_cmdrsvd0_print;
353 #else
354 #define ahd_cmdrsvd0_print(regvalue, cur_col, wrap) \
355     ahd_print_register(NULL, 0, "CMDRSVD0", 0x37, regvalue, cur_col, wrap)
356 #endif
358 #if AIC_DEBUG_REGISTERS
359 ahd_reg_print_t ahd_lqctl0_print;
360 #else
361 #define ahd_lqctl0_print(regvalue, cur_col, wrap) \
362     ahd_print_register(NULL, 0, "LQCTL0", 0x38, regvalue, cur_col, wrap)
363 #endif
365 #if AIC_DEBUG_REGISTERS
366 ahd_reg_print_t ahd_lqctl1_print;
367 #else
368 #define ahd_lqctl1_print(regvalue, cur_col, wrap) \
369     ahd_print_register(NULL, 0, "LQCTL1", 0x38, regvalue, cur_col, wrap)
370 #endif
372 #if AIC_DEBUG_REGISTERS
373 ahd_reg_print_t ahd_scsbist0_print;
374 #else
375 #define ahd_scsbist0_print(regvalue, cur_col, wrap) \
376     ahd_print_register(NULL, 0, "SCSBIST0", 0x39, regvalue, cur_col, wrap)
377 #endif
379 #if AIC_DEBUG_REGISTERS
380 ahd_reg_print_t ahd_lqctl2_print;
381 #else
382 #define ahd_lqctl2_print(regvalue, cur_col, wrap) \
383     ahd_print_register(NULL, 0, "LQCTL2", 0x39, regvalue, cur_col, wrap)
384 #endif
386 #if AIC_DEBUG_REGISTERS
387 ahd_reg_print_t ahd_scsbist1_print;
388 #else
389 #define ahd_scsbist1_print(regvalue, cur_col, wrap) \
390     ahd_print_register(NULL, 0, "SCSBIST1", 0x3a, regvalue, cur_col, wrap)
391 #endif
393 #if AIC_DEBUG_REGISTERS
394 ahd_reg_print_t ahd_scsiseq0_print;
395 #else
396 #define ahd_scsiseq0_print(regvalue, cur_col, wrap) \
397     ahd_print_register(NULL, 0, "SCSISEQ0", 0x3a, regvalue, cur_col, wrap)
398 #endif
400 #if AIC_DEBUG_REGISTERS
401 ahd_reg_print_t ahd_scsiseq1_print;
402 #else
403 #define ahd_scsiseq1_print(regvalue, cur_col, wrap) \
404     ahd_print_register(NULL, 0, "SCSISEQ1", 0x3b, regvalue, cur_col, wrap)
405 #endif
407 #if AIC_DEBUG_REGISTERS
408 ahd_reg_print_t ahd_sxfrctl0_print;
409 #else
410 #define ahd_sxfrctl0_print(regvalue, cur_col, wrap) \
411     ahd_print_register(NULL, 0, "SXFRCTL0", 0x3c, regvalue, cur_col, wrap)
412 #endif
414 #if AIC_DEBUG_REGISTERS
415 ahd_reg_print_t ahd_dlcount_print;
416 #else
417 #define ahd_dlcount_print(regvalue, cur_col, wrap) \
418     ahd_print_register(NULL, 0, "DLCOUNT", 0x3c, regvalue, cur_col, wrap)
419 #endif
421 #if AIC_DEBUG_REGISTERS
422 ahd_reg_print_t ahd_businitid_print;
423 #else
424 #define ahd_businitid_print(regvalue, cur_col, wrap) \
425     ahd_print_register(NULL, 0, "BUSINITID", 0x3c, regvalue, cur_col, wrap)
426 #endif
428 #if AIC_DEBUG_REGISTERS
429 ahd_reg_print_t ahd_sxfrctl1_print;
430 #else
431 #define ahd_sxfrctl1_print(regvalue, cur_col, wrap) \
432     ahd_print_register(NULL, 0, "SXFRCTL1", 0x3d, regvalue, cur_col, wrap)
433 #endif
435 #if AIC_DEBUG_REGISTERS
436 ahd_reg_print_t ahd_bustargid_print;
437 #else
438 #define ahd_bustargid_print(regvalue, cur_col, wrap) \
439     ahd_print_register(NULL, 0, "BUSTARGID", 0x3e, regvalue, cur_col, wrap)
440 #endif
442 #if AIC_DEBUG_REGISTERS
443 ahd_reg_print_t ahd_sxfrctl2_print;
444 #else
445 #define ahd_sxfrctl2_print(regvalue, cur_col, wrap) \
446     ahd_print_register(NULL, 0, "SXFRCTL2", 0x3e, regvalue, cur_col, wrap)
447 #endif
449 #if AIC_DEBUG_REGISTERS
450 ahd_reg_print_t ahd_dffstat_print;
451 #else
452 #define ahd_dffstat_print(regvalue, cur_col, wrap) \
453     ahd_print_register(NULL, 0, "DFFSTAT", 0x3f, regvalue, cur_col, wrap)
454 #endif
456 #if AIC_DEBUG_REGISTERS
457 ahd_reg_print_t ahd_scsisigo_print;
458 #else
459 #define ahd_scsisigo_print(regvalue, cur_col, wrap) \
460     ahd_print_register(NULL, 0, "SCSISIGO", 0x40, regvalue, cur_col, wrap)
461 #endif
463 #if AIC_DEBUG_REGISTERS
464 ahd_reg_print_t ahd_multargid_print;
465 #else
466 #define ahd_multargid_print(regvalue, cur_col, wrap) \
467     ahd_print_register(NULL, 0, "MULTARGID", 0x40, regvalue, cur_col, wrap)
468 #endif
470 #if AIC_DEBUG_REGISTERS
471 ahd_reg_print_t ahd_scsisigi_print;
472 #else
473 #define ahd_scsisigi_print(regvalue, cur_col, wrap) \
474     ahd_print_register(NULL, 0, "SCSISIGI", 0x41, regvalue, cur_col, wrap)
475 #endif
477 #if AIC_DEBUG_REGISTERS
478 ahd_reg_print_t ahd_scsiphase_print;
479 #else
480 #define ahd_scsiphase_print(regvalue, cur_col, wrap) \
481     ahd_print_register(NULL, 0, "SCSIPHASE", 0x42, regvalue, cur_col, wrap)
482 #endif
484 #if AIC_DEBUG_REGISTERS
485 ahd_reg_print_t ahd_scsidat0_img_print;
486 #else
487 #define ahd_scsidat0_img_print(regvalue, cur_col, wrap) \
488     ahd_print_register(NULL, 0, "SCSIDAT0_IMG", 0x43, regvalue, cur_col, wrap)
489 #endif
491 #if AIC_DEBUG_REGISTERS
492 ahd_reg_print_t ahd_scsidat_print;
493 #else
494 #define ahd_scsidat_print(regvalue, cur_col, wrap) \
495     ahd_print_register(NULL, 0, "SCSIDAT", 0x44, regvalue, cur_col, wrap)
496 #endif
498 #if AIC_DEBUG_REGISTERS
499 ahd_reg_print_t ahd_scsibus_print;
500 #else
501 #define ahd_scsibus_print(regvalue, cur_col, wrap) \
502     ahd_print_register(NULL, 0, "SCSIBUS", 0x46, regvalue, cur_col, wrap)
503 #endif
505 #if AIC_DEBUG_REGISTERS
506 ahd_reg_print_t ahd_targidin_print;
507 #else
508 #define ahd_targidin_print(regvalue, cur_col, wrap) \
509     ahd_print_register(NULL, 0, "TARGIDIN", 0x48, regvalue, cur_col, wrap)
510 #endif
512 #if AIC_DEBUG_REGISTERS
513 ahd_reg_print_t ahd_selid_print;
514 #else
515 #define ahd_selid_print(regvalue, cur_col, wrap) \
516     ahd_print_register(NULL, 0, "SELID", 0x49, regvalue, cur_col, wrap)
517 #endif
519 #if AIC_DEBUG_REGISTERS
520 ahd_reg_print_t ahd_optionmode_print;
521 #else
522 #define ahd_optionmode_print(regvalue, cur_col, wrap) \
523     ahd_print_register(NULL, 0, "OPTIONMODE", 0x4a, regvalue, cur_col, wrap)
524 #endif
526 #if AIC_DEBUG_REGISTERS
527 ahd_reg_print_t ahd_sblkctl_print;
528 #else
529 #define ahd_sblkctl_print(regvalue, cur_col, wrap) \
530     ahd_print_register(NULL, 0, "SBLKCTL", 0x4a, regvalue, cur_col, wrap)
531 #endif
533 #if AIC_DEBUG_REGISTERS
534 ahd_reg_print_t ahd_clrsint0_print;
535 #else
536 #define ahd_clrsint0_print(regvalue, cur_col, wrap) \
537     ahd_print_register(NULL, 0, "CLRSINT0", 0x4b, regvalue, cur_col, wrap)
538 #endif
540 #if AIC_DEBUG_REGISTERS
541 ahd_reg_print_t ahd_sstat0_print;
542 #else
543 #define ahd_sstat0_print(regvalue, cur_col, wrap) \
544     ahd_print_register(NULL, 0, "SSTAT0", 0x4b, regvalue, cur_col, wrap)
545 #endif
547 #if AIC_DEBUG_REGISTERS
548 ahd_reg_print_t ahd_simode0_print;
549 #else
550 #define ahd_simode0_print(regvalue, cur_col, wrap) \
551     ahd_print_register(NULL, 0, "SIMODE0", 0x4b, regvalue, cur_col, wrap)
552 #endif
554 #if AIC_DEBUG_REGISTERS
555 ahd_reg_print_t ahd_clrsint1_print;
556 #else
557 #define ahd_clrsint1_print(regvalue, cur_col, wrap) \
558     ahd_print_register(NULL, 0, "CLRSINT1", 0x4c, regvalue, cur_col, wrap)
559 #endif
561 #if AIC_DEBUG_REGISTERS
562 ahd_reg_print_t ahd_sstat1_print;
563 #else
564 #define ahd_sstat1_print(regvalue, cur_col, wrap) \
565     ahd_print_register(NULL, 0, "SSTAT1", 0x4c, regvalue, cur_col, wrap)
566 #endif
568 #if AIC_DEBUG_REGISTERS
569 ahd_reg_print_t ahd_sstat2_print;
570 #else
571 #define ahd_sstat2_print(regvalue, cur_col, wrap) \
572     ahd_print_register(NULL, 0, "SSTAT2", 0x4d, regvalue, cur_col, wrap)
573 #endif
575 #if AIC_DEBUG_REGISTERS
576 ahd_reg_print_t ahd_simode2_print;
577 #else
578 #define ahd_simode2_print(regvalue, cur_col, wrap) \
579     ahd_print_register(NULL, 0, "SIMODE2", 0x4d, regvalue, cur_col, wrap)
580 #endif
582 #if AIC_DEBUG_REGISTERS
583 ahd_reg_print_t ahd_clrsint2_print;
584 #else
585 #define ahd_clrsint2_print(regvalue, cur_col, wrap) \
586     ahd_print_register(NULL, 0, "CLRSINT2", 0x4d, regvalue, cur_col, wrap)
587 #endif
589 #if AIC_DEBUG_REGISTERS
590 ahd_reg_print_t ahd_perrdiag_print;
591 #else
592 #define ahd_perrdiag_print(regvalue, cur_col, wrap) \
593     ahd_print_register(NULL, 0, "PERRDIAG", 0x4e, regvalue, cur_col, wrap)
594 #endif
596 #if AIC_DEBUG_REGISTERS
597 ahd_reg_print_t ahd_lqistate_print;
598 #else
599 #define ahd_lqistate_print(regvalue, cur_col, wrap) \
600     ahd_print_register(NULL, 0, "LQISTATE", 0x4e, regvalue, cur_col, wrap)
601 #endif
603 #if AIC_DEBUG_REGISTERS
604 ahd_reg_print_t ahd_soffcnt_print;
605 #else
606 #define ahd_soffcnt_print(regvalue, cur_col, wrap) \
607     ahd_print_register(NULL, 0, "SOFFCNT", 0x4f, regvalue, cur_col, wrap)
608 #endif
610 #if AIC_DEBUG_REGISTERS
611 ahd_reg_print_t ahd_lqostate_print;
612 #else
613 #define ahd_lqostate_print(regvalue, cur_col, wrap) \
614     ahd_print_register(NULL, 0, "LQOSTATE", 0x4f, regvalue, cur_col, wrap)
615 #endif
617 #if AIC_DEBUG_REGISTERS
618 ahd_reg_print_t ahd_lqistat0_print;
619 #else
620 #define ahd_lqistat0_print(regvalue, cur_col, wrap) \
621     ahd_print_register(NULL, 0, "LQISTAT0", 0x50, regvalue, cur_col, wrap)
622 #endif
624 #if AIC_DEBUG_REGISTERS
625 ahd_reg_print_t ahd_clrlqiint0_print;
626 #else
627 #define ahd_clrlqiint0_print(regvalue, cur_col, wrap) \
628     ahd_print_register(NULL, 0, "CLRLQIINT0", 0x50, regvalue, cur_col, wrap)
629 #endif
631 #if AIC_DEBUG_REGISTERS
632 ahd_reg_print_t ahd_lqimode0_print;
633 #else
634 #define ahd_lqimode0_print(regvalue, cur_col, wrap) \
635     ahd_print_register(NULL, 0, "LQIMODE0", 0x50, regvalue, cur_col, wrap)
636 #endif
638 #if AIC_DEBUG_REGISTERS
639 ahd_reg_print_t ahd_lqimode1_print;
640 #else
641 #define ahd_lqimode1_print(regvalue, cur_col, wrap) \
642     ahd_print_register(NULL, 0, "LQIMODE1", 0x51, regvalue, cur_col, wrap)
643 #endif
645 #if AIC_DEBUG_REGISTERS
646 ahd_reg_print_t ahd_lqistat1_print;
647 #else
648 #define ahd_lqistat1_print(regvalue, cur_col, wrap) \
649     ahd_print_register(NULL, 0, "LQISTAT1", 0x51, regvalue, cur_col, wrap)
650 #endif
652 #if AIC_DEBUG_REGISTERS
653 ahd_reg_print_t ahd_clrlqiint1_print;
654 #else
655 #define ahd_clrlqiint1_print(regvalue, cur_col, wrap) \
656     ahd_print_register(NULL, 0, "CLRLQIINT1", 0x51, regvalue, cur_col, wrap)
657 #endif
659 #if AIC_DEBUG_REGISTERS
660 ahd_reg_print_t ahd_lqistat2_print;
661 #else
662 #define ahd_lqistat2_print(regvalue, cur_col, wrap) \
663     ahd_print_register(NULL, 0, "LQISTAT2", 0x52, regvalue, cur_col, wrap)
664 #endif
666 #if AIC_DEBUG_REGISTERS
667 ahd_reg_print_t ahd_sstat3_print;
668 #else
669 #define ahd_sstat3_print(regvalue, cur_col, wrap) \
670     ahd_print_register(NULL, 0, "SSTAT3", 0x53, regvalue, cur_col, wrap)
671 #endif
673 #if AIC_DEBUG_REGISTERS
674 ahd_reg_print_t ahd_simode3_print;
675 #else
676 #define ahd_simode3_print(regvalue, cur_col, wrap) \
677     ahd_print_register(NULL, 0, "SIMODE3", 0x53, regvalue, cur_col, wrap)
678 #endif
680 #if AIC_DEBUG_REGISTERS
681 ahd_reg_print_t ahd_clrsint3_print;
682 #else
683 #define ahd_clrsint3_print(regvalue, cur_col, wrap) \
684     ahd_print_register(NULL, 0, "CLRSINT3", 0x53, regvalue, cur_col, wrap)
685 #endif
687 #if AIC_DEBUG_REGISTERS
688 ahd_reg_print_t ahd_lqostat0_print;
689 #else
690 #define ahd_lqostat0_print(regvalue, cur_col, wrap) \
691     ahd_print_register(NULL, 0, "LQOSTAT0", 0x54, regvalue, cur_col, wrap)
692 #endif
694 #if AIC_DEBUG_REGISTERS
695 ahd_reg_print_t ahd_clrlqoint0_print;
696 #else
697 #define ahd_clrlqoint0_print(regvalue, cur_col, wrap) \
698     ahd_print_register(NULL, 0, "CLRLQOINT0", 0x54, regvalue, cur_col, wrap)
699 #endif
701 #if AIC_DEBUG_REGISTERS
702 ahd_reg_print_t ahd_lqomode0_print;
703 #else
704 #define ahd_lqomode0_print(regvalue, cur_col, wrap) \
705     ahd_print_register(NULL, 0, "LQOMODE0", 0x54, regvalue, cur_col, wrap)
706 #endif
708 #if AIC_DEBUG_REGISTERS
709 ahd_reg_print_t ahd_lqomode1_print;
710 #else
711 #define ahd_lqomode1_print(regvalue, cur_col, wrap) \
712     ahd_print_register(NULL, 0, "LQOMODE1", 0x55, regvalue, cur_col, wrap)
713 #endif
715 #if AIC_DEBUG_REGISTERS
716 ahd_reg_print_t ahd_lqostat1_print;
717 #else
718 #define ahd_lqostat1_print(regvalue, cur_col, wrap) \
719     ahd_print_register(NULL, 0, "LQOSTAT1", 0x55, regvalue, cur_col, wrap)
720 #endif
722 #if AIC_DEBUG_REGISTERS
723 ahd_reg_print_t ahd_clrlqoint1_print;
724 #else
725 #define ahd_clrlqoint1_print(regvalue, cur_col, wrap) \
726     ahd_print_register(NULL, 0, "CLRLQOINT1", 0x55, regvalue, cur_col, wrap)
727 #endif
729 #if AIC_DEBUG_REGISTERS
730 ahd_reg_print_t ahd_lqostat2_print;
731 #else
732 #define ahd_lqostat2_print(regvalue, cur_col, wrap) \
733     ahd_print_register(NULL, 0, "LQOSTAT2", 0x56, regvalue, cur_col, wrap)
734 #endif
736 #if AIC_DEBUG_REGISTERS
737 ahd_reg_print_t ahd_os_space_cnt_print;
738 #else
739 #define ahd_os_space_cnt_print(regvalue, cur_col, wrap) \
740     ahd_print_register(NULL, 0, "OS_SPACE_CNT", 0x56, regvalue, cur_col, wrap)
741 #endif
743 #if AIC_DEBUG_REGISTERS
744 ahd_reg_print_t ahd_simode1_print;
745 #else
746 #define ahd_simode1_print(regvalue, cur_col, wrap) \
747     ahd_print_register(NULL, 0, "SIMODE1", 0x57, regvalue, cur_col, wrap)
748 #endif
750 #if AIC_DEBUG_REGISTERS
751 ahd_reg_print_t ahd_gsfifo_print;
752 #else
753 #define ahd_gsfifo_print(regvalue, cur_col, wrap) \
754     ahd_print_register(NULL, 0, "GSFIFO", 0x58, regvalue, cur_col, wrap)
755 #endif
757 #if AIC_DEBUG_REGISTERS
758 ahd_reg_print_t ahd_dffsxfrctl_print;
759 #else
760 #define ahd_dffsxfrctl_print(regvalue, cur_col, wrap) \
761     ahd_print_register(NULL, 0, "DFFSXFRCTL", 0x5a, regvalue, cur_col, wrap)
762 #endif
764 #if AIC_DEBUG_REGISTERS
765 ahd_reg_print_t ahd_lqoscsctl_print;
766 #else
767 #define ahd_lqoscsctl_print(regvalue, cur_col, wrap) \
768     ahd_print_register(NULL, 0, "LQOSCSCTL", 0x5a, regvalue, cur_col, wrap)
769 #endif
771 #if AIC_DEBUG_REGISTERS
772 ahd_reg_print_t ahd_nextscb_print;
773 #else
774 #define ahd_nextscb_print(regvalue, cur_col, wrap) \
775     ahd_print_register(NULL, 0, "NEXTSCB", 0x5a, regvalue, cur_col, wrap)
776 #endif
778 #if AIC_DEBUG_REGISTERS
779 ahd_reg_print_t ahd_clrseqintsrc_print;
780 #else
781 #define ahd_clrseqintsrc_print(regvalue, cur_col, wrap) \
782     ahd_print_register(NULL, 0, "CLRSEQINTSRC", 0x5b, regvalue, cur_col, wrap)
783 #endif
785 #if AIC_DEBUG_REGISTERS
786 ahd_reg_print_t ahd_seqintsrc_print;
787 #else
788 #define ahd_seqintsrc_print(regvalue, cur_col, wrap) \
789     ahd_print_register(NULL, 0, "SEQINTSRC", 0x5b, regvalue, cur_col, wrap)
790 #endif
792 #if AIC_DEBUG_REGISTERS
793 ahd_reg_print_t ahd_currscb_print;
794 #else
795 #define ahd_currscb_print(regvalue, cur_col, wrap) \
796     ahd_print_register(NULL, 0, "CURRSCB", 0x5c, regvalue, cur_col, wrap)
797 #endif
799 #if AIC_DEBUG_REGISTERS
800 ahd_reg_print_t ahd_seqimode_print;
801 #else
802 #define ahd_seqimode_print(regvalue, cur_col, wrap) \
803     ahd_print_register(NULL, 0, "SEQIMODE", 0x5c, regvalue, cur_col, wrap)
804 #endif
806 #if AIC_DEBUG_REGISTERS
807 ahd_reg_print_t ahd_mdffstat_print;
808 #else
809 #define ahd_mdffstat_print(regvalue, cur_col, wrap) \
810     ahd_print_register(NULL, 0, "MDFFSTAT", 0x5d, regvalue, cur_col, wrap)
811 #endif
813 #if AIC_DEBUG_REGISTERS
814 ahd_reg_print_t ahd_crccontrol_print;
815 #else
816 #define ahd_crccontrol_print(regvalue, cur_col, wrap) \
817     ahd_print_register(NULL, 0, "CRCCONTROL", 0x5d, regvalue, cur_col, wrap)
818 #endif
820 #if AIC_DEBUG_REGISTERS
821 ahd_reg_print_t ahd_dfftag_print;
822 #else
823 #define ahd_dfftag_print(regvalue, cur_col, wrap) \
824     ahd_print_register(NULL, 0, "DFFTAG", 0x5e, regvalue, cur_col, wrap)
825 #endif
827 #if AIC_DEBUG_REGISTERS
828 ahd_reg_print_t ahd_lastscb_print;
829 #else
830 #define ahd_lastscb_print(regvalue, cur_col, wrap) \
831     ahd_print_register(NULL, 0, "LASTSCB", 0x5e, regvalue, cur_col, wrap)
832 #endif
834 #if AIC_DEBUG_REGISTERS
835 ahd_reg_print_t ahd_scsitest_print;
836 #else
837 #define ahd_scsitest_print(regvalue, cur_col, wrap) \
838     ahd_print_register(NULL, 0, "SCSITEST", 0x5e, regvalue, cur_col, wrap)
839 #endif
841 #if AIC_DEBUG_REGISTERS
842 ahd_reg_print_t ahd_iopdnctl_print;
843 #else
844 #define ahd_iopdnctl_print(regvalue, cur_col, wrap) \
845     ahd_print_register(NULL, 0, "IOPDNCTL", 0x5f, regvalue, cur_col, wrap)
846 #endif
848 #if AIC_DEBUG_REGISTERS
849 ahd_reg_print_t ahd_shaddr_print;
850 #else
851 #define ahd_shaddr_print(regvalue, cur_col, wrap) \
852     ahd_print_register(NULL, 0, "SHADDR", 0x60, regvalue, cur_col, wrap)
853 #endif
855 #if AIC_DEBUG_REGISTERS
856 ahd_reg_print_t ahd_negoaddr_print;
857 #else
858 #define ahd_negoaddr_print(regvalue, cur_col, wrap) \
859     ahd_print_register(NULL, 0, "NEGOADDR", 0x60, regvalue, cur_col, wrap)
860 #endif
862 #if AIC_DEBUG_REGISTERS
863 ahd_reg_print_t ahd_dgrpcrci_print;
864 #else
865 #define ahd_dgrpcrci_print(regvalue, cur_col, wrap) \
866     ahd_print_register(NULL, 0, "DGRPCRCI", 0x60, regvalue, cur_col, wrap)
867 #endif
869 #if AIC_DEBUG_REGISTERS
870 ahd_reg_print_t ahd_negperiod_print;
871 #else
872 #define ahd_negperiod_print(regvalue, cur_col, wrap) \
873     ahd_print_register(NULL, 0, "NEGPERIOD", 0x61, regvalue, cur_col, wrap)
874 #endif
876 #if AIC_DEBUG_REGISTERS
877 ahd_reg_print_t ahd_packcrci_print;
878 #else
879 #define ahd_packcrci_print(regvalue, cur_col, wrap) \
880     ahd_print_register(NULL, 0, "PACKCRCI", 0x62, regvalue, cur_col, wrap)
881 #endif
883 #if AIC_DEBUG_REGISTERS
884 ahd_reg_print_t ahd_negoffset_print;
885 #else
886 #define ahd_negoffset_print(regvalue, cur_col, wrap) \
887     ahd_print_register(NULL, 0, "NEGOFFSET", 0x62, regvalue, cur_col, wrap)
888 #endif
890 #if AIC_DEBUG_REGISTERS
891 ahd_reg_print_t ahd_negppropts_print;
892 #else
893 #define ahd_negppropts_print(regvalue, cur_col, wrap) \
894     ahd_print_register(NULL, 0, "NEGPPROPTS", 0x63, regvalue, cur_col, wrap)
895 #endif
897 #if AIC_DEBUG_REGISTERS
898 ahd_reg_print_t ahd_negconopts_print;
899 #else
900 #define ahd_negconopts_print(regvalue, cur_col, wrap) \
901     ahd_print_register(NULL, 0, "NEGCONOPTS", 0x64, regvalue, cur_col, wrap)
902 #endif
904 #if AIC_DEBUG_REGISTERS
905 ahd_reg_print_t ahd_annexcol_print;
906 #else
907 #define ahd_annexcol_print(regvalue, cur_col, wrap) \
908     ahd_print_register(NULL, 0, "ANNEXCOL", 0x65, regvalue, cur_col, wrap)
909 #endif
911 #if AIC_DEBUG_REGISTERS
912 ahd_reg_print_t ahd_annexdat_print;
913 #else
914 #define ahd_annexdat_print(regvalue, cur_col, wrap) \
915     ahd_print_register(NULL, 0, "ANNEXDAT", 0x66, regvalue, cur_col, wrap)
916 #endif
918 #if AIC_DEBUG_REGISTERS
919 ahd_reg_print_t ahd_scschkn_print;
920 #else
921 #define ahd_scschkn_print(regvalue, cur_col, wrap) \
922     ahd_print_register(NULL, 0, "SCSCHKN", 0x66, regvalue, cur_col, wrap)
923 #endif
925 #if AIC_DEBUG_REGISTERS
926 ahd_reg_print_t ahd_iownid_print;
927 #else
928 #define ahd_iownid_print(regvalue, cur_col, wrap) \
929     ahd_print_register(NULL, 0, "IOWNID", 0x67, regvalue, cur_col, wrap)
930 #endif
932 #if AIC_DEBUG_REGISTERS
933 ahd_reg_print_t ahd_pll960ctl0_print;
934 #else
935 #define ahd_pll960ctl0_print(regvalue, cur_col, wrap) \
936     ahd_print_register(NULL, 0, "PLL960CTL0", 0x68, regvalue, cur_col, wrap)
937 #endif
939 #if AIC_DEBUG_REGISTERS
940 ahd_reg_print_t ahd_shcnt_print;
941 #else
942 #define ahd_shcnt_print(regvalue, cur_col, wrap) \
943     ahd_print_register(NULL, 0, "SHCNT", 0x68, regvalue, cur_col, wrap)
944 #endif
946 #if AIC_DEBUG_REGISTERS
947 ahd_reg_print_t ahd_townid_print;
948 #else
949 #define ahd_townid_print(regvalue, cur_col, wrap) \
950     ahd_print_register(NULL, 0, "TOWNID", 0x69, regvalue, cur_col, wrap)
951 #endif
953 #if AIC_DEBUG_REGISTERS
954 ahd_reg_print_t ahd_pll960ctl1_print;
955 #else
956 #define ahd_pll960ctl1_print(regvalue, cur_col, wrap) \
957     ahd_print_register(NULL, 0, "PLL960CTL1", 0x69, regvalue, cur_col, wrap)
958 #endif
960 #if AIC_DEBUG_REGISTERS
961 ahd_reg_print_t ahd_pll960cnt0_print;
962 #else
963 #define ahd_pll960cnt0_print(regvalue, cur_col, wrap) \
964     ahd_print_register(NULL, 0, "PLL960CNT0", 0x6a, regvalue, cur_col, wrap)
965 #endif
967 #if AIC_DEBUG_REGISTERS
968 ahd_reg_print_t ahd_xsig_print;
969 #else
970 #define ahd_xsig_print(regvalue, cur_col, wrap) \
971     ahd_print_register(NULL, 0, "XSIG", 0x6a, regvalue, cur_col, wrap)
972 #endif
974 #if AIC_DEBUG_REGISTERS
975 ahd_reg_print_t ahd_seloid_print;
976 #else
977 #define ahd_seloid_print(regvalue, cur_col, wrap) \
978     ahd_print_register(NULL, 0, "SELOID", 0x6b, regvalue, cur_col, wrap)
979 #endif
981 #if AIC_DEBUG_REGISTERS
982 ahd_reg_print_t ahd_pll400ctl0_print;
983 #else
984 #define ahd_pll400ctl0_print(regvalue, cur_col, wrap) \
985     ahd_print_register(NULL, 0, "PLL400CTL0", 0x6c, regvalue, cur_col, wrap)
986 #endif
988 #if AIC_DEBUG_REGISTERS
989 ahd_reg_print_t ahd_fairness_print;
990 #else
991 #define ahd_fairness_print(regvalue, cur_col, wrap) \
992     ahd_print_register(NULL, 0, "FAIRNESS", 0x6c, regvalue, cur_col, wrap)
993 #endif
995 #if AIC_DEBUG_REGISTERS
996 ahd_reg_print_t ahd_pll400ctl1_print;
997 #else
998 #define ahd_pll400ctl1_print(regvalue, cur_col, wrap) \
999     ahd_print_register(NULL, 0, "PLL400CTL1", 0x6d, regvalue, cur_col, wrap)
1000 #endif
1002 #if AIC_DEBUG_REGISTERS
1003 ahd_reg_print_t ahd_unfairness_print;
1004 #else
1005 #define ahd_unfairness_print(regvalue, cur_col, wrap) \
1006     ahd_print_register(NULL, 0, "UNFAIRNESS", 0x6e, regvalue, cur_col, wrap)
1007 #endif
1009 #if AIC_DEBUG_REGISTERS
1010 ahd_reg_print_t ahd_pll400cnt0_print;
1011 #else
1012 #define ahd_pll400cnt0_print(regvalue, cur_col, wrap) \
1013     ahd_print_register(NULL, 0, "PLL400CNT0", 0x6e, regvalue, cur_col, wrap)
1014 #endif
1016 #if AIC_DEBUG_REGISTERS
1017 ahd_reg_print_t ahd_haddr_print;
1018 #else
1019 #define ahd_haddr_print(regvalue, cur_col, wrap) \
1020     ahd_print_register(NULL, 0, "HADDR", 0x70, regvalue, cur_col, wrap)
1021 #endif
1023 #if AIC_DEBUG_REGISTERS
1024 ahd_reg_print_t ahd_plldelay_print;
1025 #else
1026 #define ahd_plldelay_print(regvalue, cur_col, wrap) \
1027     ahd_print_register(NULL, 0, "PLLDELAY", 0x70, regvalue, cur_col, wrap)
1028 #endif
1030 #if AIC_DEBUG_REGISTERS
1031 ahd_reg_print_t ahd_hodmaadr_print;
1032 #else
1033 #define ahd_hodmaadr_print(regvalue, cur_col, wrap) \
1034     ahd_print_register(NULL, 0, "HODMAADR", 0x70, regvalue, cur_col, wrap)
1035 #endif
1037 #if AIC_DEBUG_REGISTERS
1038 ahd_reg_print_t ahd_hodmacnt_print;
1039 #else
1040 #define ahd_hodmacnt_print(regvalue, cur_col, wrap) \
1041     ahd_print_register(NULL, 0, "HODMACNT", 0x78, regvalue, cur_col, wrap)
1042 #endif
1044 #if AIC_DEBUG_REGISTERS
1045 ahd_reg_print_t ahd_hcnt_print;
1046 #else
1047 #define ahd_hcnt_print(regvalue, cur_col, wrap) \
1048     ahd_print_register(NULL, 0, "HCNT", 0x78, regvalue, cur_col, wrap)
1049 #endif
1051 #if AIC_DEBUG_REGISTERS
1052 ahd_reg_print_t ahd_hodmaen_print;
1053 #else
1054 #define ahd_hodmaen_print(regvalue, cur_col, wrap) \
1055     ahd_print_register(NULL, 0, "HODMAEN", 0x7a, regvalue, cur_col, wrap)
1056 #endif
1058 #if AIC_DEBUG_REGISTERS
1059 ahd_reg_print_t ahd_scbhaddr_print;
1060 #else
1061 #define ahd_scbhaddr_print(regvalue, cur_col, wrap) \
1062     ahd_print_register(NULL, 0, "SCBHADDR", 0x7c, regvalue, cur_col, wrap)
1063 #endif
1065 #if AIC_DEBUG_REGISTERS
1066 ahd_reg_print_t ahd_sghaddr_print;
1067 #else
1068 #define ahd_sghaddr_print(regvalue, cur_col, wrap) \
1069     ahd_print_register(NULL, 0, "SGHADDR", 0x7c, regvalue, cur_col, wrap)
1070 #endif
1072 #if AIC_DEBUG_REGISTERS
1073 ahd_reg_print_t ahd_scbhcnt_print;
1074 #else
1075 #define ahd_scbhcnt_print(regvalue, cur_col, wrap) \
1076     ahd_print_register(NULL, 0, "SCBHCNT", 0x84, regvalue, cur_col, wrap)
1077 #endif
1079 #if AIC_DEBUG_REGISTERS
1080 ahd_reg_print_t ahd_sghcnt_print;
1081 #else
1082 #define ahd_sghcnt_print(regvalue, cur_col, wrap) \
1083     ahd_print_register(NULL, 0, "SGHCNT", 0x84, regvalue, cur_col, wrap)
1084 #endif
1086 #if AIC_DEBUG_REGISTERS
1087 ahd_reg_print_t ahd_dff_thrsh_print;
1088 #else
1089 #define ahd_dff_thrsh_print(regvalue, cur_col, wrap) \
1090     ahd_print_register(NULL, 0, "DFF_THRSH", 0x88, regvalue, cur_col, wrap)
1091 #endif
1093 #if AIC_DEBUG_REGISTERS
1094 ahd_reg_print_t ahd_romaddr_print;
1095 #else
1096 #define ahd_romaddr_print(regvalue, cur_col, wrap) \
1097     ahd_print_register(NULL, 0, "ROMADDR", 0x8a, regvalue, cur_col, wrap)
1098 #endif
1100 #if AIC_DEBUG_REGISTERS
1101 ahd_reg_print_t ahd_romcntrl_print;
1102 #else
1103 #define ahd_romcntrl_print(regvalue, cur_col, wrap) \
1104     ahd_print_register(NULL, 0, "ROMCNTRL", 0x8d, regvalue, cur_col, wrap)
1105 #endif
1107 #if AIC_DEBUG_REGISTERS
1108 ahd_reg_print_t ahd_romdata_print;
1109 #else
1110 #define ahd_romdata_print(regvalue, cur_col, wrap) \
1111     ahd_print_register(NULL, 0, "ROMDATA", 0x8e, regvalue, cur_col, wrap)
1112 #endif
1114 #if AIC_DEBUG_REGISTERS
1115 ahd_reg_print_t ahd_cmcrxmsg0_print;
1116 #else
1117 #define ahd_cmcrxmsg0_print(regvalue, cur_col, wrap) \
1118     ahd_print_register(NULL, 0, "CMCRXMSG0", 0x90, regvalue, cur_col, wrap)
1119 #endif
1121 #if AIC_DEBUG_REGISTERS
1122 ahd_reg_print_t ahd_roenable_print;
1123 #else
1124 #define ahd_roenable_print(regvalue, cur_col, wrap) \
1125     ahd_print_register(NULL, 0, "ROENABLE", 0x90, regvalue, cur_col, wrap)
1126 #endif
1128 #if AIC_DEBUG_REGISTERS
1129 ahd_reg_print_t ahd_ovlyrxmsg0_print;
1130 #else
1131 #define ahd_ovlyrxmsg0_print(regvalue, cur_col, wrap) \
1132     ahd_print_register(NULL, 0, "OVLYRXMSG0", 0x90, regvalue, cur_col, wrap)
1133 #endif
1135 #if AIC_DEBUG_REGISTERS
1136 ahd_reg_print_t ahd_dchrxmsg0_print;
1137 #else
1138 #define ahd_dchrxmsg0_print(regvalue, cur_col, wrap) \
1139     ahd_print_register(NULL, 0, "DCHRXMSG0", 0x90, regvalue, cur_col, wrap)
1140 #endif
1142 #if AIC_DEBUG_REGISTERS
1143 ahd_reg_print_t ahd_ovlyrxmsg1_print;
1144 #else
1145 #define ahd_ovlyrxmsg1_print(regvalue, cur_col, wrap) \
1146     ahd_print_register(NULL, 0, "OVLYRXMSG1", 0x91, regvalue, cur_col, wrap)
1147 #endif
1149 #if AIC_DEBUG_REGISTERS
1150 ahd_reg_print_t ahd_nsenable_print;
1151 #else
1152 #define ahd_nsenable_print(regvalue, cur_col, wrap) \
1153     ahd_print_register(NULL, 0, "NSENABLE", 0x91, regvalue, cur_col, wrap)
1154 #endif
1156 #if AIC_DEBUG_REGISTERS
1157 ahd_reg_print_t ahd_cmcrxmsg1_print;
1158 #else
1159 #define ahd_cmcrxmsg1_print(regvalue, cur_col, wrap) \
1160     ahd_print_register(NULL, 0, "CMCRXMSG1", 0x91, regvalue, cur_col, wrap)
1161 #endif
1163 #if AIC_DEBUG_REGISTERS
1164 ahd_reg_print_t ahd_dchrxmsg1_print;
1165 #else
1166 #define ahd_dchrxmsg1_print(regvalue, cur_col, wrap) \
1167     ahd_print_register(NULL, 0, "DCHRXMSG1", 0x91, regvalue, cur_col, wrap)
1168 #endif
1170 #if AIC_DEBUG_REGISTERS
1171 ahd_reg_print_t ahd_dchrxmsg2_print;
1172 #else
1173 #define ahd_dchrxmsg2_print(regvalue, cur_col, wrap) \
1174     ahd_print_register(NULL, 0, "DCHRXMSG2", 0x92, regvalue, cur_col, wrap)
1175 #endif
1177 #if AIC_DEBUG_REGISTERS
1178 ahd_reg_print_t ahd_cmcrxmsg2_print;
1179 #else
1180 #define ahd_cmcrxmsg2_print(regvalue, cur_col, wrap) \
1181     ahd_print_register(NULL, 0, "CMCRXMSG2", 0x92, regvalue, cur_col, wrap)
1182 #endif
1184 #if AIC_DEBUG_REGISTERS
1185 ahd_reg_print_t ahd_ost_print;
1186 #else
1187 #define ahd_ost_print(regvalue, cur_col, wrap) \
1188     ahd_print_register(NULL, 0, "OST", 0x92, regvalue, cur_col, wrap)
1189 #endif
1191 #if AIC_DEBUG_REGISTERS
1192 ahd_reg_print_t ahd_ovlyrxmsg2_print;
1193 #else
1194 #define ahd_ovlyrxmsg2_print(regvalue, cur_col, wrap) \
1195     ahd_print_register(NULL, 0, "OVLYRXMSG2", 0x92, regvalue, cur_col, wrap)
1196 #endif
1198 #if AIC_DEBUG_REGISTERS
1199 ahd_reg_print_t ahd_dchrxmsg3_print;
1200 #else
1201 #define ahd_dchrxmsg3_print(regvalue, cur_col, wrap) \
1202     ahd_print_register(NULL, 0, "DCHRXMSG3", 0x93, regvalue, cur_col, wrap)
1203 #endif
1205 #if AIC_DEBUG_REGISTERS
1206 ahd_reg_print_t ahd_ovlyrxmsg3_print;
1207 #else
1208 #define ahd_ovlyrxmsg3_print(regvalue, cur_col, wrap) \
1209     ahd_print_register(NULL, 0, "OVLYRXMSG3", 0x93, regvalue, cur_col, wrap)
1210 #endif
1212 #if AIC_DEBUG_REGISTERS
1213 ahd_reg_print_t ahd_cmcrxmsg3_print;
1214 #else
1215 #define ahd_cmcrxmsg3_print(regvalue, cur_col, wrap) \
1216     ahd_print_register(NULL, 0, "CMCRXMSG3", 0x93, regvalue, cur_col, wrap)
1217 #endif
1219 #if AIC_DEBUG_REGISTERS
1220 ahd_reg_print_t ahd_pcixctl_print;
1221 #else
1222 #define ahd_pcixctl_print(regvalue, cur_col, wrap) \
1223     ahd_print_register(NULL, 0, "PCIXCTL", 0x93, regvalue, cur_col, wrap)
1224 #endif
1226 #if AIC_DEBUG_REGISTERS
1227 ahd_reg_print_t ahd_ovlyseqbcnt_print;
1228 #else
1229 #define ahd_ovlyseqbcnt_print(regvalue, cur_col, wrap) \
1230     ahd_print_register(NULL, 0, "OVLYSEQBCNT", 0x94, regvalue, cur_col, wrap)
1231 #endif
1233 #if AIC_DEBUG_REGISTERS
1234 ahd_reg_print_t ahd_dchseqbcnt_print;
1235 #else
1236 #define ahd_dchseqbcnt_print(regvalue, cur_col, wrap) \
1237     ahd_print_register(NULL, 0, "DCHSEQBCNT", 0x94, regvalue, cur_col, wrap)
1238 #endif
1240 #if AIC_DEBUG_REGISTERS
1241 ahd_reg_print_t ahd_cmcseqbcnt_print;
1242 #else
1243 #define ahd_cmcseqbcnt_print(regvalue, cur_col, wrap) \
1244     ahd_print_register(NULL, 0, "CMCSEQBCNT", 0x94, regvalue, cur_col, wrap)
1245 #endif
1247 #if AIC_DEBUG_REGISTERS
1248 ahd_reg_print_t ahd_cmcspltstat0_print;
1249 #else
1250 #define ahd_cmcspltstat0_print(regvalue, cur_col, wrap) \
1251     ahd_print_register(NULL, 0, "CMCSPLTSTAT0", 0x96, regvalue, cur_col, wrap)
1252 #endif
1254 #if AIC_DEBUG_REGISTERS
1255 ahd_reg_print_t ahd_dchspltstat0_print;
1256 #else
1257 #define ahd_dchspltstat0_print(regvalue, cur_col, wrap) \
1258     ahd_print_register(NULL, 0, "DCHSPLTSTAT0", 0x96, regvalue, cur_col, wrap)
1259 #endif
1261 #if AIC_DEBUG_REGISTERS
1262 ahd_reg_print_t ahd_ovlyspltstat0_print;
1263 #else
1264 #define ahd_ovlyspltstat0_print(regvalue, cur_col, wrap) \
1265     ahd_print_register(NULL, 0, "OVLYSPLTSTAT0", 0x96, regvalue, cur_col, wrap)
1266 #endif
1268 #if AIC_DEBUG_REGISTERS
1269 ahd_reg_print_t ahd_cmcspltstat1_print;
1270 #else
1271 #define ahd_cmcspltstat1_print(regvalue, cur_col, wrap) \
1272     ahd_print_register(NULL, 0, "CMCSPLTSTAT1", 0x97, regvalue, cur_col, wrap)
1273 #endif
1275 #if AIC_DEBUG_REGISTERS
1276 ahd_reg_print_t ahd_ovlyspltstat1_print;
1277 #else
1278 #define ahd_ovlyspltstat1_print(regvalue, cur_col, wrap) \
1279     ahd_print_register(NULL, 0, "OVLYSPLTSTAT1", 0x97, regvalue, cur_col, wrap)
1280 #endif
1282 #if AIC_DEBUG_REGISTERS
1283 ahd_reg_print_t ahd_dchspltstat1_print;
1284 #else
1285 #define ahd_dchspltstat1_print(regvalue, cur_col, wrap) \
1286     ahd_print_register(NULL, 0, "DCHSPLTSTAT1", 0x97, regvalue, cur_col, wrap)
1287 #endif
1289 #if AIC_DEBUG_REGISTERS
1290 ahd_reg_print_t ahd_sgrxmsg0_print;
1291 #else
1292 #define ahd_sgrxmsg0_print(regvalue, cur_col, wrap) \
1293     ahd_print_register(NULL, 0, "SGRXMSG0", 0x98, regvalue, cur_col, wrap)
1294 #endif
1296 #if AIC_DEBUG_REGISTERS
1297 ahd_reg_print_t ahd_slvspltoutadr0_print;
1298 #else
1299 #define ahd_slvspltoutadr0_print(regvalue, cur_col, wrap) \
1300     ahd_print_register(NULL, 0, "SLVSPLTOUTADR0", 0x98, regvalue, cur_col, wrap)
1301 #endif
1303 #if AIC_DEBUG_REGISTERS
1304 ahd_reg_print_t ahd_sgrxmsg1_print;
1305 #else
1306 #define ahd_sgrxmsg1_print(regvalue, cur_col, wrap) \
1307     ahd_print_register(NULL, 0, "SGRXMSG1", 0x99, regvalue, cur_col, wrap)
1308 #endif
1310 #if AIC_DEBUG_REGISTERS
1311 ahd_reg_print_t ahd_slvspltoutadr1_print;
1312 #else
1313 #define ahd_slvspltoutadr1_print(regvalue, cur_col, wrap) \
1314     ahd_print_register(NULL, 0, "SLVSPLTOUTADR1", 0x99, regvalue, cur_col, wrap)
1315 #endif
1317 #if AIC_DEBUG_REGISTERS
1318 ahd_reg_print_t ahd_sgrxmsg2_print;
1319 #else
1320 #define ahd_sgrxmsg2_print(regvalue, cur_col, wrap) \
1321     ahd_print_register(NULL, 0, "SGRXMSG2", 0x9a, regvalue, cur_col, wrap)
1322 #endif
1324 #if AIC_DEBUG_REGISTERS
1325 ahd_reg_print_t ahd_slvspltoutadr2_print;
1326 #else
1327 #define ahd_slvspltoutadr2_print(regvalue, cur_col, wrap) \
1328     ahd_print_register(NULL, 0, "SLVSPLTOUTADR2", 0x9a, regvalue, cur_col, wrap)
1329 #endif
1331 #if AIC_DEBUG_REGISTERS
1332 ahd_reg_print_t ahd_sgrxmsg3_print;
1333 #else
1334 #define ahd_sgrxmsg3_print(regvalue, cur_col, wrap) \
1335     ahd_print_register(NULL, 0, "SGRXMSG3", 0x9b, regvalue, cur_col, wrap)
1336 #endif
1338 #if AIC_DEBUG_REGISTERS
1339 ahd_reg_print_t ahd_slvspltoutadr3_print;
1340 #else
1341 #define ahd_slvspltoutadr3_print(regvalue, cur_col, wrap) \
1342     ahd_print_register(NULL, 0, "SLVSPLTOUTADR3", 0x9b, regvalue, cur_col, wrap)
1343 #endif
1345 #if AIC_DEBUG_REGISTERS
1346 ahd_reg_print_t ahd_sgseqbcnt_print;
1347 #else
1348 #define ahd_sgseqbcnt_print(regvalue, cur_col, wrap) \
1349     ahd_print_register(NULL, 0, "SGSEQBCNT", 0x9c, regvalue, cur_col, wrap)
1350 #endif
1352 #if AIC_DEBUG_REGISTERS
1353 ahd_reg_print_t ahd_slvspltoutattr0_print;
1354 #else
1355 #define ahd_slvspltoutattr0_print(regvalue, cur_col, wrap) \
1356     ahd_print_register(NULL, 0, "SLVSPLTOUTATTR0", 0x9c, regvalue, cur_col, wrap)
1357 #endif
1359 #if AIC_DEBUG_REGISTERS
1360 ahd_reg_print_t ahd_slvspltoutattr1_print;
1361 #else
1362 #define ahd_slvspltoutattr1_print(regvalue, cur_col, wrap) \
1363     ahd_print_register(NULL, 0, "SLVSPLTOUTATTR1", 0x9d, regvalue, cur_col, wrap)
1364 #endif
1366 #if AIC_DEBUG_REGISTERS
1367 ahd_reg_print_t ahd_slvspltoutattr2_print;
1368 #else
1369 #define ahd_slvspltoutattr2_print(regvalue, cur_col, wrap) \
1370     ahd_print_register(NULL, 0, "SLVSPLTOUTATTR2", 0x9e, regvalue, cur_col, wrap)
1371 #endif
1373 #if AIC_DEBUG_REGISTERS
1374 ahd_reg_print_t ahd_sgspltstat0_print;
1375 #else
1376 #define ahd_sgspltstat0_print(regvalue, cur_col, wrap) \
1377     ahd_print_register(NULL, 0, "SGSPLTSTAT0", 0x9e, regvalue, cur_col, wrap)
1378 #endif
1380 #if AIC_DEBUG_REGISTERS
1381 ahd_reg_print_t ahd_sgspltstat1_print;
1382 #else
1383 #define ahd_sgspltstat1_print(regvalue, cur_col, wrap) \
1384     ahd_print_register(NULL, 0, "SGSPLTSTAT1", 0x9f, regvalue, cur_col, wrap)
1385 #endif
1387 #if AIC_DEBUG_REGISTERS
1388 ahd_reg_print_t ahd_sfunct_print;
1389 #else
1390 #define ahd_sfunct_print(regvalue, cur_col, wrap) \
1391     ahd_print_register(NULL, 0, "SFUNCT", 0x9f, regvalue, cur_col, wrap)
1392 #endif
1394 #if AIC_DEBUG_REGISTERS
1395 ahd_reg_print_t ahd_df0pcistat_print;
1396 #else
1397 #define ahd_df0pcistat_print(regvalue, cur_col, wrap) \
1398     ahd_print_register(NULL, 0, "DF0PCISTAT", 0xa0, regvalue, cur_col, wrap)
1399 #endif
1401 #if AIC_DEBUG_REGISTERS
1402 ahd_reg_print_t ahd_reg0_print;
1403 #else
1404 #define ahd_reg0_print(regvalue, cur_col, wrap) \
1405     ahd_print_register(NULL, 0, "REG0", 0xa0, regvalue, cur_col, wrap)
1406 #endif
1408 #if AIC_DEBUG_REGISTERS
1409 ahd_reg_print_t ahd_df1pcistat_print;
1410 #else
1411 #define ahd_df1pcistat_print(regvalue, cur_col, wrap) \
1412     ahd_print_register(NULL, 0, "DF1PCISTAT", 0xa1, regvalue, cur_col, wrap)
1413 #endif
1415 #if AIC_DEBUG_REGISTERS
1416 ahd_reg_print_t ahd_sgpcistat_print;
1417 #else
1418 #define ahd_sgpcistat_print(regvalue, cur_col, wrap) \
1419     ahd_print_register(NULL, 0, "SGPCISTAT", 0xa2, regvalue, cur_col, wrap)
1420 #endif
1422 #if AIC_DEBUG_REGISTERS
1423 ahd_reg_print_t ahd_reg1_print;
1424 #else
1425 #define ahd_reg1_print(regvalue, cur_col, wrap) \
1426     ahd_print_register(NULL, 0, "REG1", 0xa2, regvalue, cur_col, wrap)
1427 #endif
1429 #if AIC_DEBUG_REGISTERS
1430 ahd_reg_print_t ahd_cmcpcistat_print;
1431 #else
1432 #define ahd_cmcpcistat_print(regvalue, cur_col, wrap) \
1433     ahd_print_register(NULL, 0, "CMCPCISTAT", 0xa3, regvalue, cur_col, wrap)
1434 #endif
1436 #if AIC_DEBUG_REGISTERS
1437 ahd_reg_print_t ahd_ovlypcistat_print;
1438 #else
1439 #define ahd_ovlypcistat_print(regvalue, cur_col, wrap) \
1440     ahd_print_register(NULL, 0, "OVLYPCISTAT", 0xa4, regvalue, cur_col, wrap)
1441 #endif
1443 #if AIC_DEBUG_REGISTERS
1444 ahd_reg_print_t ahd_reg_isr_print;
1445 #else
1446 #define ahd_reg_isr_print(regvalue, cur_col, wrap) \
1447     ahd_print_register(NULL, 0, "REG_ISR", 0xa4, regvalue, cur_col, wrap)
1448 #endif
1450 #if AIC_DEBUG_REGISTERS
1451 ahd_reg_print_t ahd_sg_state_print;
1452 #else
1453 #define ahd_sg_state_print(regvalue, cur_col, wrap) \
1454     ahd_print_register(NULL, 0, "SG_STATE", 0xa6, regvalue, cur_col, wrap)
1455 #endif
1457 #if AIC_DEBUG_REGISTERS
1458 ahd_reg_print_t ahd_msipcistat_print;
1459 #else
1460 #define ahd_msipcistat_print(regvalue, cur_col, wrap) \
1461     ahd_print_register(NULL, 0, "MSIPCISTAT", 0xa6, regvalue, cur_col, wrap)
1462 #endif
1464 #if AIC_DEBUG_REGISTERS
1465 ahd_reg_print_t ahd_targpcistat_print;
1466 #else
1467 #define ahd_targpcistat_print(regvalue, cur_col, wrap) \
1468     ahd_print_register(NULL, 0, "TARGPCISTAT", 0xa7, regvalue, cur_col, wrap)
1469 #endif
1471 #if AIC_DEBUG_REGISTERS
1472 ahd_reg_print_t ahd_data_count_odd_print;
1473 #else
1474 #define ahd_data_count_odd_print(regvalue, cur_col, wrap) \
1475     ahd_print_register(NULL, 0, "DATA_COUNT_ODD", 0xa7, regvalue, cur_col, wrap)
1476 #endif
1478 #if AIC_DEBUG_REGISTERS
1479 ahd_reg_print_t ahd_scbptr_print;
1480 #else
1481 #define ahd_scbptr_print(regvalue, cur_col, wrap) \
1482     ahd_print_register(NULL, 0, "SCBPTR", 0xa8, regvalue, cur_col, wrap)
1483 #endif
1485 #if AIC_DEBUG_REGISTERS
1486 ahd_reg_print_t ahd_ccscbacnt_print;
1487 #else
1488 #define ahd_ccscbacnt_print(regvalue, cur_col, wrap) \
1489     ahd_print_register(NULL, 0, "CCSCBACNT", 0xab, regvalue, cur_col, wrap)
1490 #endif
1492 #if AIC_DEBUG_REGISTERS
1493 ahd_reg_print_t ahd_scbautoptr_print;
1494 #else
1495 #define ahd_scbautoptr_print(regvalue, cur_col, wrap) \
1496     ahd_print_register(NULL, 0, "SCBAUTOPTR", 0xab, regvalue, cur_col, wrap)
1497 #endif
1499 #if AIC_DEBUG_REGISTERS
1500 ahd_reg_print_t ahd_ccsgaddr_print;
1501 #else
1502 #define ahd_ccsgaddr_print(regvalue, cur_col, wrap) \
1503     ahd_print_register(NULL, 0, "CCSGADDR", 0xac, regvalue, cur_col, wrap)
1504 #endif
1506 #if AIC_DEBUG_REGISTERS
1507 ahd_reg_print_t ahd_ccscbadr_bk_print;
1508 #else
1509 #define ahd_ccscbadr_bk_print(regvalue, cur_col, wrap) \
1510     ahd_print_register(NULL, 0, "CCSCBADR_BK", 0xac, regvalue, cur_col, wrap)
1511 #endif
1513 #if AIC_DEBUG_REGISTERS
1514 ahd_reg_print_t ahd_ccscbaddr_print;
1515 #else
1516 #define ahd_ccscbaddr_print(regvalue, cur_col, wrap) \
1517     ahd_print_register(NULL, 0, "CCSCBADDR", 0xac, regvalue, cur_col, wrap)
1518 #endif
1520 #if AIC_DEBUG_REGISTERS
1521 ahd_reg_print_t ahd_cmc_rambist_print;
1522 #else
1523 #define ahd_cmc_rambist_print(regvalue, cur_col, wrap) \
1524     ahd_print_register(NULL, 0, "CMC_RAMBIST", 0xad, regvalue, cur_col, wrap)
1525 #endif
1527 #if AIC_DEBUG_REGISTERS
1528 ahd_reg_print_t ahd_ccscbctl_print;
1529 #else
1530 #define ahd_ccscbctl_print(regvalue, cur_col, wrap) \
1531     ahd_print_register(NULL, 0, "CCSCBCTL", 0xad, regvalue, cur_col, wrap)
1532 #endif
1534 #if AIC_DEBUG_REGISTERS
1535 ahd_reg_print_t ahd_ccsgctl_print;
1536 #else
1537 #define ahd_ccsgctl_print(regvalue, cur_col, wrap) \
1538     ahd_print_register(NULL, 0, "CCSGCTL", 0xad, regvalue, cur_col, wrap)
1539 #endif
1541 #if AIC_DEBUG_REGISTERS
1542 ahd_reg_print_t ahd_ccsgram_print;
1543 #else
1544 #define ahd_ccsgram_print(regvalue, cur_col, wrap) \
1545     ahd_print_register(NULL, 0, "CCSGRAM", 0xb0, regvalue, cur_col, wrap)
1546 #endif
1548 #if AIC_DEBUG_REGISTERS
1549 ahd_reg_print_t ahd_flexadr_print;
1550 #else
1551 #define ahd_flexadr_print(regvalue, cur_col, wrap) \
1552     ahd_print_register(NULL, 0, "FLEXADR", 0xb0, regvalue, cur_col, wrap)
1553 #endif
1555 #if AIC_DEBUG_REGISTERS
1556 ahd_reg_print_t ahd_ccscbram_print;
1557 #else
1558 #define ahd_ccscbram_print(regvalue, cur_col, wrap) \
1559     ahd_print_register(NULL, 0, "CCSCBRAM", 0xb0, regvalue, cur_col, wrap)
1560 #endif
1562 #if AIC_DEBUG_REGISTERS
1563 ahd_reg_print_t ahd_flexcnt_print;
1564 #else
1565 #define ahd_flexcnt_print(regvalue, cur_col, wrap) \
1566     ahd_print_register(NULL, 0, "FLEXCNT", 0xb3, regvalue, cur_col, wrap)
1567 #endif
1569 #if AIC_DEBUG_REGISTERS
1570 ahd_reg_print_t ahd_flexdmastat_print;
1571 #else
1572 #define ahd_flexdmastat_print(regvalue, cur_col, wrap) \
1573     ahd_print_register(NULL, 0, "FLEXDMASTAT", 0xb5, regvalue, cur_col, wrap)
1574 #endif
1576 #if AIC_DEBUG_REGISTERS
1577 ahd_reg_print_t ahd_flexdata_print;
1578 #else
1579 #define ahd_flexdata_print(regvalue, cur_col, wrap) \
1580     ahd_print_register(NULL, 0, "FLEXDATA", 0xb6, regvalue, cur_col, wrap)
1581 #endif
1583 #if AIC_DEBUG_REGISTERS
1584 ahd_reg_print_t ahd_brddat_print;
1585 #else
1586 #define ahd_brddat_print(regvalue, cur_col, wrap) \
1587     ahd_print_register(NULL, 0, "BRDDAT", 0xb8, regvalue, cur_col, wrap)
1588 #endif
1590 #if AIC_DEBUG_REGISTERS
1591 ahd_reg_print_t ahd_brdctl_print;
1592 #else
1593 #define ahd_brdctl_print(regvalue, cur_col, wrap) \
1594     ahd_print_register(NULL, 0, "BRDCTL", 0xb9, regvalue, cur_col, wrap)
1595 #endif
1597 #if AIC_DEBUG_REGISTERS
1598 ahd_reg_print_t ahd_seeadr_print;
1599 #else
1600 #define ahd_seeadr_print(regvalue, cur_col, wrap) \
1601     ahd_print_register(NULL, 0, "SEEADR", 0xba, regvalue, cur_col, wrap)
1602 #endif
1604 #if AIC_DEBUG_REGISTERS
1605 ahd_reg_print_t ahd_seedat_print;
1606 #else
1607 #define ahd_seedat_print(regvalue, cur_col, wrap) \
1608     ahd_print_register(NULL, 0, "SEEDAT", 0xbc, regvalue, cur_col, wrap)
1609 #endif
1611 #if AIC_DEBUG_REGISTERS
1612 ahd_reg_print_t ahd_seectl_print;
1613 #else
1614 #define ahd_seectl_print(regvalue, cur_col, wrap) \
1615     ahd_print_register(NULL, 0, "SEECTL", 0xbe, regvalue, cur_col, wrap)
1616 #endif
1618 #if AIC_DEBUG_REGISTERS
1619 ahd_reg_print_t ahd_seestat_print;
1620 #else
1621 #define ahd_seestat_print(regvalue, cur_col, wrap) \
1622     ahd_print_register(NULL, 0, "SEESTAT", 0xbe, regvalue, cur_col, wrap)
1623 #endif
1625 #if AIC_DEBUG_REGISTERS
1626 ahd_reg_print_t ahd_scbcnt_print;
1627 #else
1628 #define ahd_scbcnt_print(regvalue, cur_col, wrap) \
1629     ahd_print_register(NULL, 0, "SCBCNT", 0xbf, regvalue, cur_col, wrap)
1630 #endif
1632 #if AIC_DEBUG_REGISTERS
1633 ahd_reg_print_t ahd_dfwaddr_print;
1634 #else
1635 #define ahd_dfwaddr_print(regvalue, cur_col, wrap) \
1636     ahd_print_register(NULL, 0, "DFWADDR", 0xc0, regvalue, cur_col, wrap)
1637 #endif
1639 #if AIC_DEBUG_REGISTERS
1640 ahd_reg_print_t ahd_dspfltrctl_print;
1641 #else
1642 #define ahd_dspfltrctl_print(regvalue, cur_col, wrap) \
1643     ahd_print_register(NULL, 0, "DSPFLTRCTL", 0xc0, regvalue, cur_col, wrap)
1644 #endif
1646 #if AIC_DEBUG_REGISTERS
1647 ahd_reg_print_t ahd_dspdatactl_print;
1648 #else
1649 #define ahd_dspdatactl_print(regvalue, cur_col, wrap) \
1650     ahd_print_register(NULL, 0, "DSPDATACTL", 0xc1, regvalue, cur_col, wrap)
1651 #endif
1653 #if AIC_DEBUG_REGISTERS
1654 ahd_reg_print_t ahd_dfraddr_print;
1655 #else
1656 #define ahd_dfraddr_print(regvalue, cur_col, wrap) \
1657     ahd_print_register(NULL, 0, "DFRADDR", 0xc2, regvalue, cur_col, wrap)
1658 #endif
1660 #if AIC_DEBUG_REGISTERS
1661 ahd_reg_print_t ahd_dspreqctl_print;
1662 #else
1663 #define ahd_dspreqctl_print(regvalue, cur_col, wrap) \
1664     ahd_print_register(NULL, 0, "DSPREQCTL", 0xc2, regvalue, cur_col, wrap)
1665 #endif
1667 #if AIC_DEBUG_REGISTERS
1668 ahd_reg_print_t ahd_dspackctl_print;
1669 #else
1670 #define ahd_dspackctl_print(regvalue, cur_col, wrap) \
1671     ahd_print_register(NULL, 0, "DSPACKCTL", 0xc3, regvalue, cur_col, wrap)
1672 #endif
1674 #if AIC_DEBUG_REGISTERS
1675 ahd_reg_print_t ahd_dfdat_print;
1676 #else
1677 #define ahd_dfdat_print(regvalue, cur_col, wrap) \
1678     ahd_print_register(NULL, 0, "DFDAT", 0xc4, regvalue, cur_col, wrap)
1679 #endif
1681 #if AIC_DEBUG_REGISTERS
1682 ahd_reg_print_t ahd_dspselect_print;
1683 #else
1684 #define ahd_dspselect_print(regvalue, cur_col, wrap) \
1685     ahd_print_register(NULL, 0, "DSPSELECT", 0xc4, regvalue, cur_col, wrap)
1686 #endif
1688 #if AIC_DEBUG_REGISTERS
1689 ahd_reg_print_t ahd_wrtbiasctl_print;
1690 #else
1691 #define ahd_wrtbiasctl_print(regvalue, cur_col, wrap) \
1692     ahd_print_register(NULL, 0, "WRTBIASCTL", 0xc5, regvalue, cur_col, wrap)
1693 #endif
1695 #if AIC_DEBUG_REGISTERS
1696 ahd_reg_print_t ahd_rcvrbiosctl_print;
1697 #else
1698 #define ahd_rcvrbiosctl_print(regvalue, cur_col, wrap) \
1699     ahd_print_register(NULL, 0, "RCVRBIOSCTL", 0xc6, regvalue, cur_col, wrap)
1700 #endif
1702 #if AIC_DEBUG_REGISTERS
1703 ahd_reg_print_t ahd_wrtbiascalc_print;
1704 #else
1705 #define ahd_wrtbiascalc_print(regvalue, cur_col, wrap) \
1706     ahd_print_register(NULL, 0, "WRTBIASCALC", 0xc7, regvalue, cur_col, wrap)
1707 #endif
1709 #if AIC_DEBUG_REGISTERS
1710 ahd_reg_print_t ahd_rcvrbiascalc_print;
1711 #else
1712 #define ahd_rcvrbiascalc_print(regvalue, cur_col, wrap) \
1713     ahd_print_register(NULL, 0, "RCVRBIASCALC", 0xc8, regvalue, cur_col, wrap)
1714 #endif
1716 #if AIC_DEBUG_REGISTERS
1717 ahd_reg_print_t ahd_dfptrs_print;
1718 #else
1719 #define ahd_dfptrs_print(regvalue, cur_col, wrap) \
1720     ahd_print_register(NULL, 0, "DFPTRS", 0xc8, regvalue, cur_col, wrap)
1721 #endif
1723 #if AIC_DEBUG_REGISTERS
1724 ahd_reg_print_t ahd_skewcalc_print;
1725 #else
1726 #define ahd_skewcalc_print(regvalue, cur_col, wrap) \
1727     ahd_print_register(NULL, 0, "SKEWCALC", 0xc9, regvalue, cur_col, wrap)
1728 #endif
1730 #if AIC_DEBUG_REGISTERS
1731 ahd_reg_print_t ahd_dfbkptr_print;
1732 #else
1733 #define ahd_dfbkptr_print(regvalue, cur_col, wrap) \
1734     ahd_print_register(NULL, 0, "DFBKPTR", 0xc9, regvalue, cur_col, wrap)
1735 #endif
1737 #if AIC_DEBUG_REGISTERS
1738 ahd_reg_print_t ahd_dfdbctl_print;
1739 #else
1740 #define ahd_dfdbctl_print(regvalue, cur_col, wrap) \
1741     ahd_print_register(NULL, 0, "DFDBCTL", 0xcb, regvalue, cur_col, wrap)
1742 #endif
1744 #if AIC_DEBUG_REGISTERS
1745 ahd_reg_print_t ahd_dfscnt_print;
1746 #else
1747 #define ahd_dfscnt_print(regvalue, cur_col, wrap) \
1748     ahd_print_register(NULL, 0, "DFSCNT", 0xcc, regvalue, cur_col, wrap)
1749 #endif
1751 #if AIC_DEBUG_REGISTERS
1752 ahd_reg_print_t ahd_dfbcnt_print;
1753 #else
1754 #define ahd_dfbcnt_print(regvalue, cur_col, wrap) \
1755     ahd_print_register(NULL, 0, "DFBCNT", 0xce, regvalue, cur_col, wrap)
1756 #endif
1758 #if AIC_DEBUG_REGISTERS
1759 ahd_reg_print_t ahd_ovlyaddr_print;
1760 #else
1761 #define ahd_ovlyaddr_print(regvalue, cur_col, wrap) \
1762     ahd_print_register(NULL, 0, "OVLYADDR", 0xd4, regvalue, cur_col, wrap)
1763 #endif
1765 #if AIC_DEBUG_REGISTERS
1766 ahd_reg_print_t ahd_seqctl0_print;
1767 #else
1768 #define ahd_seqctl0_print(regvalue, cur_col, wrap) \
1769     ahd_print_register(NULL, 0, "SEQCTL0", 0xd6, regvalue, cur_col, wrap)
1770 #endif
1772 #if AIC_DEBUG_REGISTERS
1773 ahd_reg_print_t ahd_seqctl1_print;
1774 #else
1775 #define ahd_seqctl1_print(regvalue, cur_col, wrap) \
1776     ahd_print_register(NULL, 0, "SEQCTL1", 0xd7, regvalue, cur_col, wrap)
1777 #endif
1779 #if AIC_DEBUG_REGISTERS
1780 ahd_reg_print_t ahd_flags_print;
1781 #else
1782 #define ahd_flags_print(regvalue, cur_col, wrap) \
1783     ahd_print_register(NULL, 0, "FLAGS", 0xd8, regvalue, cur_col, wrap)
1784 #endif
1786 #if AIC_DEBUG_REGISTERS
1787 ahd_reg_print_t ahd_seqintctl_print;
1788 #else
1789 #define ahd_seqintctl_print(regvalue, cur_col, wrap) \
1790     ahd_print_register(NULL, 0, "SEQINTCTL", 0xd9, regvalue, cur_col, wrap)
1791 #endif
1793 #if AIC_DEBUG_REGISTERS
1794 ahd_reg_print_t ahd_seqram_print;
1795 #else
1796 #define ahd_seqram_print(regvalue, cur_col, wrap) \
1797     ahd_print_register(NULL, 0, "SEQRAM", 0xda, regvalue, cur_col, wrap)
1798 #endif
1800 #if AIC_DEBUG_REGISTERS
1801 ahd_reg_print_t ahd_prgmcnt_print;
1802 #else
1803 #define ahd_prgmcnt_print(regvalue, cur_col, wrap) \
1804     ahd_print_register(NULL, 0, "PRGMCNT", 0xde, regvalue, cur_col, wrap)
1805 #endif
1807 #if AIC_DEBUG_REGISTERS
1808 ahd_reg_print_t ahd_accum_print;
1809 #else
1810 #define ahd_accum_print(regvalue, cur_col, wrap) \
1811     ahd_print_register(NULL, 0, "ACCUM", 0xe0, regvalue, cur_col, wrap)
1812 #endif
1814 #if AIC_DEBUG_REGISTERS
1815 ahd_reg_print_t ahd_sindex_print;
1816 #else
1817 #define ahd_sindex_print(regvalue, cur_col, wrap) \
1818     ahd_print_register(NULL, 0, "SINDEX", 0xe2, regvalue, cur_col, wrap)
1819 #endif
1821 #if AIC_DEBUG_REGISTERS
1822 ahd_reg_print_t ahd_dindex_print;
1823 #else
1824 #define ahd_dindex_print(regvalue, cur_col, wrap) \
1825     ahd_print_register(NULL, 0, "DINDEX", 0xe4, regvalue, cur_col, wrap)
1826 #endif
1828 #if AIC_DEBUG_REGISTERS
1829 ahd_reg_print_t ahd_brkaddr0_print;
1830 #else
1831 #define ahd_brkaddr0_print(regvalue, cur_col, wrap) \
1832     ahd_print_register(NULL, 0, "BRKADDR0", 0xe6, regvalue, cur_col, wrap)
1833 #endif
1835 #if AIC_DEBUG_REGISTERS
1836 ahd_reg_print_t ahd_brkaddr1_print;
1837 #else
1838 #define ahd_brkaddr1_print(regvalue, cur_col, wrap) \
1839     ahd_print_register(NULL, 0, "BRKADDR1", 0xe6, regvalue, cur_col, wrap)
1840 #endif
1842 #if AIC_DEBUG_REGISTERS
1843 ahd_reg_print_t ahd_allones_print;
1844 #else
1845 #define ahd_allones_print(regvalue, cur_col, wrap) \
1846     ahd_print_register(NULL, 0, "ALLONES", 0xe8, regvalue, cur_col, wrap)
1847 #endif
1849 #if AIC_DEBUG_REGISTERS
1850 ahd_reg_print_t ahd_allzeros_print;
1851 #else
1852 #define ahd_allzeros_print(regvalue, cur_col, wrap) \
1853     ahd_print_register(NULL, 0, "ALLZEROS", 0xea, regvalue, cur_col, wrap)
1854 #endif
1856 #if AIC_DEBUG_REGISTERS
1857 ahd_reg_print_t ahd_none_print;
1858 #else
1859 #define ahd_none_print(regvalue, cur_col, wrap) \
1860     ahd_print_register(NULL, 0, "NONE", 0xea, regvalue, cur_col, wrap)
1861 #endif
1863 #if AIC_DEBUG_REGISTERS
1864 ahd_reg_print_t ahd_sindir_print;
1865 #else
1866 #define ahd_sindir_print(regvalue, cur_col, wrap) \
1867     ahd_print_register(NULL, 0, "SINDIR", 0xec, regvalue, cur_col, wrap)
1868 #endif
1870 #if AIC_DEBUG_REGISTERS
1871 ahd_reg_print_t ahd_dindir_print;
1872 #else
1873 #define ahd_dindir_print(regvalue, cur_col, wrap) \
1874     ahd_print_register(NULL, 0, "DINDIR", 0xed, regvalue, cur_col, wrap)
1875 #endif
1877 #if AIC_DEBUG_REGISTERS
1878 ahd_reg_print_t ahd_function1_print;
1879 #else
1880 #define ahd_function1_print(regvalue, cur_col, wrap) \
1881     ahd_print_register(NULL, 0, "FUNCTION1", 0xf0, regvalue, cur_col, wrap)
1882 #endif
1884 #if AIC_DEBUG_REGISTERS
1885 ahd_reg_print_t ahd_stack_print;
1886 #else
1887 #define ahd_stack_print(regvalue, cur_col, wrap) \
1888     ahd_print_register(NULL, 0, "STACK", 0xf2, regvalue, cur_col, wrap)
1889 #endif
1891 #if AIC_DEBUG_REGISTERS
1892 ahd_reg_print_t ahd_intvec1_addr_print;
1893 #else
1894 #define ahd_intvec1_addr_print(regvalue, cur_col, wrap) \
1895     ahd_print_register(NULL, 0, "INTVEC1_ADDR", 0xf4, regvalue, cur_col, wrap)
1896 #endif
1898 #if AIC_DEBUG_REGISTERS
1899 ahd_reg_print_t ahd_curaddr_print;
1900 #else
1901 #define ahd_curaddr_print(regvalue, cur_col, wrap) \
1902     ahd_print_register(NULL, 0, "CURADDR", 0xf4, regvalue, cur_col, wrap)
1903 #endif
1905 #if AIC_DEBUG_REGISTERS
1906 ahd_reg_print_t ahd_lastaddr_print;
1907 #else
1908 #define ahd_lastaddr_print(regvalue, cur_col, wrap) \
1909     ahd_print_register(NULL, 0, "LASTADDR", 0xf6, regvalue, cur_col, wrap)
1910 #endif
1912 #if AIC_DEBUG_REGISTERS
1913 ahd_reg_print_t ahd_intvec2_addr_print;
1914 #else
1915 #define ahd_intvec2_addr_print(regvalue, cur_col, wrap) \
1916     ahd_print_register(NULL, 0, "INTVEC2_ADDR", 0xf6, regvalue, cur_col, wrap)
1917 #endif
1919 #if AIC_DEBUG_REGISTERS
1920 ahd_reg_print_t ahd_longjmp_addr_print;
1921 #else
1922 #define ahd_longjmp_addr_print(regvalue, cur_col, wrap) \
1923     ahd_print_register(NULL, 0, "LONGJMP_ADDR", 0xf8, regvalue, cur_col, wrap)
1924 #endif
1926 #if AIC_DEBUG_REGISTERS
1927 ahd_reg_print_t ahd_accum_save_print;
1928 #else
1929 #define ahd_accum_save_print(regvalue, cur_col, wrap) \
1930     ahd_print_register(NULL, 0, "ACCUM_SAVE", 0xfa, regvalue, cur_col, wrap)
1931 #endif
1933 #if AIC_DEBUG_REGISTERS
1934 ahd_reg_print_t ahd_waiting_scb_tails_print;
1935 #else
1936 #define ahd_waiting_scb_tails_print(regvalue, cur_col, wrap) \
1937     ahd_print_register(NULL, 0, "WAITING_SCB_TAILS", 0x100, regvalue, cur_col, wrap)
1938 #endif
1940 #if AIC_DEBUG_REGISTERS
1941 ahd_reg_print_t ahd_ahd_pci_config_base_print;
1942 #else
1943 #define ahd_ahd_pci_config_base_print(regvalue, cur_col, wrap) \
1944     ahd_print_register(NULL, 0, "AHD_PCI_CONFIG_BASE", 0x100, regvalue, cur_col, wrap)
1945 #endif
1947 #if AIC_DEBUG_REGISTERS
1948 ahd_reg_print_t ahd_sram_base_print;
1949 #else
1950 #define ahd_sram_base_print(regvalue, cur_col, wrap) \
1951     ahd_print_register(NULL, 0, "SRAM_BASE", 0x100, regvalue, cur_col, wrap)
1952 #endif
1954 #if AIC_DEBUG_REGISTERS
1955 ahd_reg_print_t ahd_waiting_tid_head_print;
1956 #else
1957 #define ahd_waiting_tid_head_print(regvalue, cur_col, wrap) \
1958     ahd_print_register(NULL, 0, "WAITING_TID_HEAD", 0x120, regvalue, cur_col, wrap)
1959 #endif
1961 #if AIC_DEBUG_REGISTERS
1962 ahd_reg_print_t ahd_waiting_tid_tail_print;
1963 #else
1964 #define ahd_waiting_tid_tail_print(regvalue, cur_col, wrap) \
1965     ahd_print_register(NULL, 0, "WAITING_TID_TAIL", 0x122, regvalue, cur_col, wrap)
1966 #endif
1968 #if AIC_DEBUG_REGISTERS
1969 ahd_reg_print_t ahd_next_queued_scb_addr_print;
1970 #else
1971 #define ahd_next_queued_scb_addr_print(regvalue, cur_col, wrap) \
1972     ahd_print_register(NULL, 0, "NEXT_QUEUED_SCB_ADDR", 0x124, regvalue, cur_col, wrap)
1973 #endif
1975 #if AIC_DEBUG_REGISTERS
1976 ahd_reg_print_t ahd_complete_scb_head_print;
1977 #else
1978 #define ahd_complete_scb_head_print(regvalue, cur_col, wrap) \
1979     ahd_print_register(NULL, 0, "COMPLETE_SCB_HEAD", 0x128, regvalue, cur_col, wrap)
1980 #endif
1982 #if AIC_DEBUG_REGISTERS
1983 ahd_reg_print_t ahd_complete_scb_dmainprog_head_print;
1984 #else
1985 #define ahd_complete_scb_dmainprog_head_print(regvalue, cur_col, wrap) \
1986     ahd_print_register(NULL, 0, "COMPLETE_SCB_DMAINPROG_HEAD", 0x12a, regvalue, cur_col, wrap)
1987 #endif
1989 #if AIC_DEBUG_REGISTERS
1990 ahd_reg_print_t ahd_complete_dma_scb_head_print;
1991 #else
1992 #define ahd_complete_dma_scb_head_print(regvalue, cur_col, wrap) \
1993     ahd_print_register(NULL, 0, "COMPLETE_DMA_SCB_HEAD", 0x12c, regvalue, cur_col, wrap)
1994 #endif
1996 #if AIC_DEBUG_REGISTERS
1997 ahd_reg_print_t ahd_complete_dma_scb_tail_print;
1998 #else
1999 #define ahd_complete_dma_scb_tail_print(regvalue, cur_col, wrap) \
2000     ahd_print_register(NULL, 0, "COMPLETE_DMA_SCB_TAIL", 0x12e, regvalue, cur_col, wrap)
2001 #endif
2003 #if AIC_DEBUG_REGISTERS
2004 ahd_reg_print_t ahd_complete_on_qfreeze_head_print;
2005 #else
2006 #define ahd_complete_on_qfreeze_head_print(regvalue, cur_col, wrap) \
2007     ahd_print_register(NULL, 0, "COMPLETE_ON_QFREEZE_HEAD", 0x130, regvalue, cur_col, wrap)
2008 #endif
2010 #if AIC_DEBUG_REGISTERS
2011 ahd_reg_print_t ahd_qfreeze_count_print;
2012 #else
2013 #define ahd_qfreeze_count_print(regvalue, cur_col, wrap) \
2014     ahd_print_register(NULL, 0, "QFREEZE_COUNT", 0x132, regvalue, cur_col, wrap)
2015 #endif
2017 #if AIC_DEBUG_REGISTERS
2018 ahd_reg_print_t ahd_kernel_qfreeze_count_print;
2019 #else
2020 #define ahd_kernel_qfreeze_count_print(regvalue, cur_col, wrap) \
2021     ahd_print_register(NULL, 0, "KERNEL_QFREEZE_COUNT", 0x134, regvalue, cur_col, wrap)
2022 #endif
2024 #if AIC_DEBUG_REGISTERS
2025 ahd_reg_print_t ahd_saved_mode_print;
2026 #else
2027 #define ahd_saved_mode_print(regvalue, cur_col, wrap) \
2028     ahd_print_register(NULL, 0, "SAVED_MODE", 0x136, regvalue, cur_col, wrap)
2029 #endif
2031 #if AIC_DEBUG_REGISTERS
2032 ahd_reg_print_t ahd_msg_out_print;
2033 #else
2034 #define ahd_msg_out_print(regvalue, cur_col, wrap) \
2035     ahd_print_register(NULL, 0, "MSG_OUT", 0x137, regvalue, cur_col, wrap)
2036 #endif
2038 #if AIC_DEBUG_REGISTERS
2039 ahd_reg_print_t ahd_dmaparams_print;
2040 #else
2041 #define ahd_dmaparams_print(regvalue, cur_col, wrap) \
2042     ahd_print_register(NULL, 0, "DMAPARAMS", 0x138, regvalue, cur_col, wrap)
2043 #endif
2045 #if AIC_DEBUG_REGISTERS
2046 ahd_reg_print_t ahd_seq_flags_print;
2047 #else
2048 #define ahd_seq_flags_print(regvalue, cur_col, wrap) \
2049     ahd_print_register(NULL, 0, "SEQ_FLAGS", 0x139, regvalue, cur_col, wrap)
2050 #endif
2052 #if AIC_DEBUG_REGISTERS
2053 ahd_reg_print_t ahd_saved_scsiid_print;
2054 #else
2055 #define ahd_saved_scsiid_print(regvalue, cur_col, wrap) \
2056     ahd_print_register(NULL, 0, "SAVED_SCSIID", 0x13a, regvalue, cur_col, wrap)
2057 #endif
2059 #if AIC_DEBUG_REGISTERS
2060 ahd_reg_print_t ahd_saved_lun_print;
2061 #else
2062 #define ahd_saved_lun_print(regvalue, cur_col, wrap) \
2063     ahd_print_register(NULL, 0, "SAVED_LUN", 0x13b, regvalue, cur_col, wrap)
2064 #endif
2066 #if AIC_DEBUG_REGISTERS
2067 ahd_reg_print_t ahd_lastphase_print;
2068 #else
2069 #define ahd_lastphase_print(regvalue, cur_col, wrap) \
2070     ahd_print_register(NULL, 0, "LASTPHASE", 0x13c, regvalue, cur_col, wrap)
2071 #endif
2073 #if AIC_DEBUG_REGISTERS
2074 ahd_reg_print_t ahd_qoutfifo_entry_valid_tag_print;
2075 #else
2076 #define ahd_qoutfifo_entry_valid_tag_print(regvalue, cur_col, wrap) \
2077     ahd_print_register(NULL, 0, "QOUTFIFO_ENTRY_VALID_TAG", 0x13d, regvalue, cur_col, wrap)
2078 #endif
2080 #if AIC_DEBUG_REGISTERS
2081 ahd_reg_print_t ahd_kernel_tqinpos_print;
2082 #else
2083 #define ahd_kernel_tqinpos_print(regvalue, cur_col, wrap) \
2084     ahd_print_register(NULL, 0, "KERNEL_TQINPOS", 0x13e, regvalue, cur_col, wrap)
2085 #endif
2087 #if AIC_DEBUG_REGISTERS
2088 ahd_reg_print_t ahd_tqinpos_print;
2089 #else
2090 #define ahd_tqinpos_print(regvalue, cur_col, wrap) \
2091     ahd_print_register(NULL, 0, "TQINPOS", 0x13f, regvalue, cur_col, wrap)
2092 #endif
2094 #if AIC_DEBUG_REGISTERS
2095 ahd_reg_print_t ahd_shared_data_addr_print;
2096 #else
2097 #define ahd_shared_data_addr_print(regvalue, cur_col, wrap) \
2098     ahd_print_register(NULL, 0, "SHARED_DATA_ADDR", 0x140, regvalue, cur_col, wrap)
2099 #endif
2101 #if AIC_DEBUG_REGISTERS
2102 ahd_reg_print_t ahd_qoutfifo_next_addr_print;
2103 #else
2104 #define ahd_qoutfifo_next_addr_print(regvalue, cur_col, wrap) \
2105     ahd_print_register(NULL, 0, "QOUTFIFO_NEXT_ADDR", 0x144, regvalue, cur_col, wrap)
2106 #endif
2108 #if AIC_DEBUG_REGISTERS
2109 ahd_reg_print_t ahd_arg_1_print;
2110 #else
2111 #define ahd_arg_1_print(regvalue, cur_col, wrap) \
2112     ahd_print_register(NULL, 0, "ARG_1", 0x148, regvalue, cur_col, wrap)
2113 #endif
2115 #if AIC_DEBUG_REGISTERS
2116 ahd_reg_print_t ahd_arg_2_print;
2117 #else
2118 #define ahd_arg_2_print(regvalue, cur_col, wrap) \
2119     ahd_print_register(NULL, 0, "ARG_2", 0x149, regvalue, cur_col, wrap)
2120 #endif
2122 #if AIC_DEBUG_REGISTERS
2123 ahd_reg_print_t ahd_last_msg_print;
2124 #else
2125 #define ahd_last_msg_print(regvalue, cur_col, wrap) \
2126     ahd_print_register(NULL, 0, "LAST_MSG", 0x14a, regvalue, cur_col, wrap)
2127 #endif
2129 #if AIC_DEBUG_REGISTERS
2130 ahd_reg_print_t ahd_scsiseq_template_print;
2131 #else
2132 #define ahd_scsiseq_template_print(regvalue, cur_col, wrap) \
2133     ahd_print_register(NULL, 0, "SCSISEQ_TEMPLATE", 0x14b, regvalue, cur_col, wrap)
2134 #endif
2136 #if AIC_DEBUG_REGISTERS
2137 ahd_reg_print_t ahd_initiator_tag_print;
2138 #else
2139 #define ahd_initiator_tag_print(regvalue, cur_col, wrap) \
2140     ahd_print_register(NULL, 0, "INITIATOR_TAG", 0x14c, regvalue, cur_col, wrap)
2141 #endif
2143 #if AIC_DEBUG_REGISTERS
2144 ahd_reg_print_t ahd_seq_flags2_print;
2145 #else
2146 #define ahd_seq_flags2_print(regvalue, cur_col, wrap) \
2147     ahd_print_register(NULL, 0, "SEQ_FLAGS2", 0x14d, regvalue, cur_col, wrap)
2148 #endif
2150 #if AIC_DEBUG_REGISTERS
2151 ahd_reg_print_t ahd_allocfifo_scbptr_print;
2152 #else
2153 #define ahd_allocfifo_scbptr_print(regvalue, cur_col, wrap) \
2154     ahd_print_register(NULL, 0, "ALLOCFIFO_SCBPTR", 0x14e, regvalue, cur_col, wrap)
2155 #endif
2157 #if AIC_DEBUG_REGISTERS
2158 ahd_reg_print_t ahd_int_coalescing_timer_print;
2159 #else
2160 #define ahd_int_coalescing_timer_print(regvalue, cur_col, wrap) \
2161     ahd_print_register(NULL, 0, "INT_COALESCING_TIMER", 0x150, regvalue, cur_col, wrap)
2162 #endif
2164 #if AIC_DEBUG_REGISTERS
2165 ahd_reg_print_t ahd_int_coalescing_maxcmds_print;
2166 #else
2167 #define ahd_int_coalescing_maxcmds_print(regvalue, cur_col, wrap) \
2168     ahd_print_register(NULL, 0, "INT_COALESCING_MAXCMDS", 0x152, regvalue, cur_col, wrap)
2169 #endif
2171 #if AIC_DEBUG_REGISTERS
2172 ahd_reg_print_t ahd_int_coalescing_mincmds_print;
2173 #else
2174 #define ahd_int_coalescing_mincmds_print(regvalue, cur_col, wrap) \
2175     ahd_print_register(NULL, 0, "INT_COALESCING_MINCMDS", 0x153, regvalue, cur_col, wrap)
2176 #endif
2178 #if AIC_DEBUG_REGISTERS
2179 ahd_reg_print_t ahd_cmds_pending_print;
2180 #else
2181 #define ahd_cmds_pending_print(regvalue, cur_col, wrap) \
2182     ahd_print_register(NULL, 0, "CMDS_PENDING", 0x154, regvalue, cur_col, wrap)
2183 #endif
2185 #if AIC_DEBUG_REGISTERS
2186 ahd_reg_print_t ahd_int_coalescing_cmdcount_print;
2187 #else
2188 #define ahd_int_coalescing_cmdcount_print(regvalue, cur_col, wrap) \
2189     ahd_print_register(NULL, 0, "INT_COALESCING_CMDCOUNT", 0x156, regvalue, cur_col, wrap)
2190 #endif
2192 #if AIC_DEBUG_REGISTERS
2193 ahd_reg_print_t ahd_local_hs_mailbox_print;
2194 #else
2195 #define ahd_local_hs_mailbox_print(regvalue, cur_col, wrap) \
2196     ahd_print_register(NULL, 0, "LOCAL_HS_MAILBOX", 0x157, regvalue, cur_col, wrap)
2197 #endif
2199 #if AIC_DEBUG_REGISTERS
2200 ahd_reg_print_t ahd_cmdsize_table_print;
2201 #else
2202 #define ahd_cmdsize_table_print(regvalue, cur_col, wrap) \
2203     ahd_print_register(NULL, 0, "CMDSIZE_TABLE", 0x158, regvalue, cur_col, wrap)
2204 #endif
2206 #if AIC_DEBUG_REGISTERS
2207 ahd_reg_print_t ahd_mk_message_scb_print;
2208 #else
2209 #define ahd_mk_message_scb_print(regvalue, cur_col, wrap) \
2210     ahd_print_register(NULL, 0, "MK_MESSAGE_SCB", 0x160, regvalue, cur_col, wrap)
2211 #endif
2213 #if AIC_DEBUG_REGISTERS
2214 ahd_reg_print_t ahd_mk_message_scsiid_print;
2215 #else
2216 #define ahd_mk_message_scsiid_print(regvalue, cur_col, wrap) \
2217     ahd_print_register(NULL, 0, "MK_MESSAGE_SCSIID", 0x162, regvalue, cur_col, wrap)
2218 #endif
2220 #if AIC_DEBUG_REGISTERS
2221 ahd_reg_print_t ahd_scb_base_print;
2222 #else
2223 #define ahd_scb_base_print(regvalue, cur_col, wrap) \
2224     ahd_print_register(NULL, 0, "SCB_BASE", 0x180, regvalue, cur_col, wrap)
2225 #endif
2227 #if AIC_DEBUG_REGISTERS
2228 ahd_reg_print_t ahd_scb_residual_datacnt_print;
2229 #else
2230 #define ahd_scb_residual_datacnt_print(regvalue, cur_col, wrap) \
2231     ahd_print_register(NULL, 0, "SCB_RESIDUAL_DATACNT", 0x180, regvalue, cur_col, wrap)
2232 #endif
2234 #if AIC_DEBUG_REGISTERS
2235 ahd_reg_print_t ahd_scb_residual_sgptr_print;
2236 #else
2237 #define ahd_scb_residual_sgptr_print(regvalue, cur_col, wrap) \
2238     ahd_print_register(NULL, 0, "SCB_RESIDUAL_SGPTR", 0x184, regvalue, cur_col, wrap)
2239 #endif
2241 #if AIC_DEBUG_REGISTERS
2242 ahd_reg_print_t ahd_scb_scsi_status_print;
2243 #else
2244 #define ahd_scb_scsi_status_print(regvalue, cur_col, wrap) \
2245     ahd_print_register(NULL, 0, "SCB_SCSI_STATUS", 0x188, regvalue, cur_col, wrap)
2246 #endif
2248 #if AIC_DEBUG_REGISTERS
2249 ahd_reg_print_t ahd_scb_target_phases_print;
2250 #else
2251 #define ahd_scb_target_phases_print(regvalue, cur_col, wrap) \
2252     ahd_print_register(NULL, 0, "SCB_TARGET_PHASES", 0x189, regvalue, cur_col, wrap)
2253 #endif
2255 #if AIC_DEBUG_REGISTERS
2256 ahd_reg_print_t ahd_scb_target_data_dir_print;
2257 #else
2258 #define ahd_scb_target_data_dir_print(regvalue, cur_col, wrap) \
2259     ahd_print_register(NULL, 0, "SCB_TARGET_DATA_DIR", 0x18a, regvalue, cur_col, wrap)
2260 #endif
2262 #if AIC_DEBUG_REGISTERS
2263 ahd_reg_print_t ahd_scb_target_itag_print;
2264 #else
2265 #define ahd_scb_target_itag_print(regvalue, cur_col, wrap) \
2266     ahd_print_register(NULL, 0, "SCB_TARGET_ITAG", 0x18b, regvalue, cur_col, wrap)
2267 #endif
2269 #if AIC_DEBUG_REGISTERS
2270 ahd_reg_print_t ahd_scb_sense_busaddr_print;
2271 #else
2272 #define ahd_scb_sense_busaddr_print(regvalue, cur_col, wrap) \
2273     ahd_print_register(NULL, 0, "SCB_SENSE_BUSADDR", 0x18c, regvalue, cur_col, wrap)
2274 #endif
2276 #if AIC_DEBUG_REGISTERS
2277 ahd_reg_print_t ahd_scb_tag_print;
2278 #else
2279 #define ahd_scb_tag_print(regvalue, cur_col, wrap) \
2280     ahd_print_register(NULL, 0, "SCB_TAG", 0x190, regvalue, cur_col, wrap)
2281 #endif
2283 #if AIC_DEBUG_REGISTERS
2284 ahd_reg_print_t ahd_scb_control_print;
2285 #else
2286 #define ahd_scb_control_print(regvalue, cur_col, wrap) \
2287     ahd_print_register(NULL, 0, "SCB_CONTROL", 0x192, regvalue, cur_col, wrap)
2288 #endif
2290 #if AIC_DEBUG_REGISTERS
2291 ahd_reg_print_t ahd_scb_scsiid_print;
2292 #else
2293 #define ahd_scb_scsiid_print(regvalue, cur_col, wrap) \
2294     ahd_print_register(NULL, 0, "SCB_SCSIID", 0x193, regvalue, cur_col, wrap)
2295 #endif
2297 #if AIC_DEBUG_REGISTERS
2298 ahd_reg_print_t ahd_scb_lun_print;
2299 #else
2300 #define ahd_scb_lun_print(regvalue, cur_col, wrap) \
2301     ahd_print_register(NULL, 0, "SCB_LUN", 0x194, regvalue, cur_col, wrap)
2302 #endif
2304 #if AIC_DEBUG_REGISTERS
2305 ahd_reg_print_t ahd_scb_task_attribute_print;
2306 #else
2307 #define ahd_scb_task_attribute_print(regvalue, cur_col, wrap) \
2308     ahd_print_register(NULL, 0, "SCB_TASK_ATTRIBUTE", 0x195, regvalue, cur_col, wrap)
2309 #endif
2311 #if AIC_DEBUG_REGISTERS
2312 ahd_reg_print_t ahd_scb_cdb_len_print;
2313 #else
2314 #define ahd_scb_cdb_len_print(regvalue, cur_col, wrap) \
2315     ahd_print_register(NULL, 0, "SCB_CDB_LEN", 0x196, regvalue, cur_col, wrap)
2316 #endif
2318 #if AIC_DEBUG_REGISTERS
2319 ahd_reg_print_t ahd_scb_task_management_print;
2320 #else
2321 #define ahd_scb_task_management_print(regvalue, cur_col, wrap) \
2322     ahd_print_register(NULL, 0, "SCB_TASK_MANAGEMENT", 0x197, regvalue, cur_col, wrap)
2323 #endif
2325 #if AIC_DEBUG_REGISTERS
2326 ahd_reg_print_t ahd_scb_dataptr_print;
2327 #else
2328 #define ahd_scb_dataptr_print(regvalue, cur_col, wrap) \
2329     ahd_print_register(NULL, 0, "SCB_DATAPTR", 0x198, regvalue, cur_col, wrap)
2330 #endif
2332 #if AIC_DEBUG_REGISTERS
2333 ahd_reg_print_t ahd_scb_datacnt_print;
2334 #else
2335 #define ahd_scb_datacnt_print(regvalue, cur_col, wrap) \
2336     ahd_print_register(NULL, 0, "SCB_DATACNT", 0x1a0, regvalue, cur_col, wrap)
2337 #endif
2339 #if AIC_DEBUG_REGISTERS
2340 ahd_reg_print_t ahd_scb_sgptr_print;
2341 #else
2342 #define ahd_scb_sgptr_print(regvalue, cur_col, wrap) \
2343     ahd_print_register(NULL, 0, "SCB_SGPTR", 0x1a4, regvalue, cur_col, wrap)
2344 #endif
2346 #if AIC_DEBUG_REGISTERS
2347 ahd_reg_print_t ahd_scb_busaddr_print;
2348 #else
2349 #define ahd_scb_busaddr_print(regvalue, cur_col, wrap) \
2350     ahd_print_register(NULL, 0, "SCB_BUSADDR", 0x1a8, regvalue, cur_col, wrap)
2351 #endif
2353 #if AIC_DEBUG_REGISTERS
2354 ahd_reg_print_t ahd_scb_next_print;
2355 #else
2356 #define ahd_scb_next_print(regvalue, cur_col, wrap) \
2357     ahd_print_register(NULL, 0, "SCB_NEXT", 0x1ac, regvalue, cur_col, wrap)
2358 #endif
2360 #if AIC_DEBUG_REGISTERS
2361 ahd_reg_print_t ahd_scb_next2_print;
2362 #else
2363 #define ahd_scb_next2_print(regvalue, cur_col, wrap) \
2364     ahd_print_register(NULL, 0, "SCB_NEXT2", 0x1ae, regvalue, cur_col, wrap)
2365 #endif
2367 #if AIC_DEBUG_REGISTERS
2368 ahd_reg_print_t ahd_scb_spare_print;
2369 #else
2370 #define ahd_scb_spare_print(regvalue, cur_col, wrap) \
2371     ahd_print_register(NULL, 0, "SCB_SPARE", 0x1b0, regvalue, cur_col, wrap)
2372 #endif
2374 #if AIC_DEBUG_REGISTERS
2375 ahd_reg_print_t ahd_scb_disconnected_lists_print;
2376 #else
2377 #define ahd_scb_disconnected_lists_print(regvalue, cur_col, wrap) \
2378     ahd_print_register(NULL, 0, "SCB_DISCONNECTED_LISTS", 0x1b8, regvalue, cur_col, wrap)
2379 #endif
2382 #define MODE_PTR                        0x00
2383 #define         DST_MODE                0x70
2384 #define         SRC_MODE                0x07
2386 #define INTSTAT                         0x01
2387 #define         INT_PEND                0xff
2388 #define         HWERRINT                0x80
2389 #define         BRKADRINT               0x40
2390 #define         SWTMINT                 0x20
2391 #define         PCIINT                  0x10
2392 #define         SCSIINT                 0x08
2393 #define         SEQINT                  0x04
2394 #define         CMDCMPLT                0x02
2395 #define         SPLTINT                 0x01
2397 #define SEQINTCODE                      0x02
2398 #define         BAD_SCB_STATUS          0x1a
2399 #define         SAW_HWERR               0x19
2400 #define         TRACEPOINT3             0x18
2401 #define         TRACEPOINT2             0x17
2402 #define         TRACEPOINT1             0x16
2403 #define         TRACEPOINT0             0x15
2404 #define         TASKMGMT_CMD_CMPLT_OKAY 0x14
2405 #define         TASKMGMT_FUNC_COMPLETE  0x13
2406 #define         ENTERING_NONPACK        0x12
2407 #define         CFG4OVERRUN             0x11
2408 #define         STATUS_OVERRUN          0x10
2409 #define         CFG4ISTAT_INTR          0x0f
2410 #define         INVALID_SEQINT          0x0e
2411 #define         ILLEGAL_PHASE           0x0d
2412 #define         DUMP_CARD_STATE         0x0c
2413 #define         MISSED_BUSFREE          0x0b
2414 #define         MKMSG_FAILED            0x0a
2415 #define         DATA_OVERRUN            0x09
2416 #define         BAD_STATUS              0x08
2417 #define         HOST_MSG_LOOP           0x07
2418 #define         PDATA_REINIT            0x06
2419 #define         IGN_WIDE_RES            0x05
2420 #define         NO_MATCH                0x04
2421 #define         PROTO_VIOLATION         0x03
2422 #define         SEND_REJECT             0x02
2423 #define         BAD_PHASE               0x01
2424 #define         NO_SEQINT               0x00
2426 #define CLRINT                          0x03
2427 #define         CLRHWERRINT             0x80
2428 #define         CLRBRKADRINT            0x40
2429 #define         CLRSWTMINT              0x20
2430 #define         CLRPCIINT               0x10
2431 #define         CLRSCSIINT              0x08
2432 #define         CLRSEQINT               0x04
2433 #define         CLRCMDINT               0x02
2434 #define         CLRSPLTINT              0x01
2436 #define ERROR                           0x04
2437 #define         CIOPARERR               0x80
2438 #define         CIOACCESFAIL            0x40
2439 #define         MPARERR                 0x20
2440 #define         DPARERR                 0x10
2441 #define         SQPARERR                0x08
2442 #define         ILLOPCODE               0x04
2443 #define         DSCTMOUT                0x02
2445 #define CLRERR                          0x04
2446 #define         CLRCIOPARERR            0x80
2447 #define         CLRCIOACCESFAIL         0x40
2448 #define         CLRMPARERR              0x20
2449 #define         CLRDPARERR              0x10
2450 #define         CLRSQPARERR             0x08
2451 #define         CLRILLOPCODE            0x04
2452 #define         CLRDSCTMOUT             0x02
2454 #define HCNTRL                          0x05
2455 #define         SEQ_RESET               0x80
2456 #define         POWRDN                  0x40
2457 #define         SWINT                   0x10
2458 #define         SWTIMER_START_B         0x08
2459 #define         PAUSE                   0x04
2460 #define         INTEN                   0x02
2461 #define         CHIPRST                 0x01
2462 #define         CHIPRSTACK              0x01
2464 #define HNSCB_QOFF                      0x06
2466 #define HESCB_QOFF                      0x08
2468 #define HS_MAILBOX                      0x0b
2469 #define         HOST_TQINPOS            0x80
2470 #define         ENINT_COALESCE          0x40
2472 #define SEQINTSTAT                      0x0c
2473 #define         SEQ_SWTMRTO             0x10
2474 #define         SEQ_SEQINT              0x08
2475 #define         SEQ_SCSIINT             0x04
2476 #define         SEQ_PCIINT              0x02
2477 #define         SEQ_SPLTINT             0x01
2479 #define CLRSEQINTSTAT                   0x0c
2480 #define         CLRSEQ_SWTMRTO          0x10
2481 #define         CLRSEQ_SEQINT           0x08
2482 #define         CLRSEQ_SCSIINT          0x04
2483 #define         CLRSEQ_PCIINT           0x02
2484 #define         CLRSEQ_SPLTINT          0x01
2486 #define SWTIMER                         0x0e
2488 #define SNSCB_QOFF                      0x10
2490 #define SESCB_QOFF                      0x12
2492 #define SDSCB_QOFF                      0x14
2494 #define QOFF_CTLSTA                     0x16
2495 #define         EMPTY_SCB_AVAIL         0x80
2496 #define         NEW_SCB_AVAIL           0x40
2497 #define         SDSCB_ROLLOVR           0x20
2498 #define         HS_MAILBOX_ACT          0x10
2499 #define         SCB_QSIZE               0x0f
2500 #define         SCB_QSIZE_16384         0x0c
2501 #define         SCB_QSIZE_8192          0x0b
2502 #define         SCB_QSIZE_4096          0x0a
2503 #define         SCB_QSIZE_2048          0x09
2504 #define         SCB_QSIZE_1024          0x08
2505 #define         SCB_QSIZE_512           0x07
2506 #define         SCB_QSIZE_256           0x06
2507 #define         SCB_QSIZE_128           0x05
2508 #define         SCB_QSIZE_64            0x04
2509 #define         SCB_QSIZE_32            0x03
2510 #define         SCB_QSIZE_16            0x02
2511 #define         SCB_QSIZE_8             0x01
2512 #define         SCB_QSIZE_4             0x00
2514 #define INTCTL                          0x18
2515 #define         SWTMINTMASK             0x80
2516 #define         SWTMINTEN               0x40
2517 #define         SWTIMER_START           0x20
2518 #define         AUTOCLRCMDINT           0x10
2519 #define         PCIINTEN                0x08
2520 #define         SCSIINTEN               0x04
2521 #define         SEQINTEN                0x02
2522 #define         SPLTINTEN               0x01
2524 #define DFCNTRL                         0x19
2525 #define         SCSIENWRDIS             0x40
2526 #define         SCSIENACK               0x20
2527 #define         DIRECTIONACK            0x04
2528 #define         FIFOFLUSHACK            0x02
2529 #define         DIRECTIONEN             0x01
2531 #define DSCOMMAND0                      0x19
2532 #define         CACHETHEN               0x80
2533 #define         DPARCKEN                0x40
2534 #define         MPARCKEN                0x20
2535 #define         EXTREQLCK               0x10
2536 #define         DISABLE_TWATE           0x02
2537 #define         CIOPARCKEN              0x01
2539 #define DFSTATUS                        0x1a
2540 #define         PRELOAD_AVAIL           0x80
2541 #define         PKT_PRELOAD_AVAIL       0x40
2542 #define         MREQPEND                0x10
2543 #define         HDONE                   0x08
2544 #define         DFTHRESH                0x04
2545 #define         FIFOFULL                0x02
2546 #define         FIFOEMP                 0x01
2548 #define SG_CACHE_SHADOW                 0x1b
2549 #define         ODD_SEG                 0x04
2550 #define         LAST_SEG                0x02
2551 #define         LAST_SEG_DONE           0x01
2553 #define ARBCTL                          0x1b
2554 #define         RESET_HARB              0x80
2555 #define         RETRY_SWEN              0x08
2556 #define         USE_TIME                0x07
2558 #define SG_CACHE_PRE                    0x1b
2560 #define LQIN                            0x20
2562 #define TYPEPTR                         0x20
2564 #define TAGPTR                          0x21
2566 #define LUNPTR                          0x22
2568 #define DATALENPTR                      0x23
2570 #define STATLENPTR                      0x24
2572 #define CMDLENPTR                       0x25
2574 #define ATTRPTR                         0x26
2576 #define FLAGPTR                         0x27
2578 #define CMDPTR                          0x28
2580 #define QNEXTPTR                        0x29
2582 #define IDPTR                           0x2a
2584 #define ABRTBYTEPTR                     0x2b
2586 #define ABRTBITPTR                      0x2c
2588 #define MAXCMDBYTES                     0x2d
2590 #define MAXCMD2RCV                      0x2e
2592 #define SHORTTHRESH                     0x2f
2594 #define LUNLEN                          0x30
2595 #define         TLUNLEN                 0xf0
2596 #define         ILUNLEN                 0x0f
2598 #define CDBLIMIT                        0x31
2600 #define MAXCMD                          0x32
2602 #define MAXCMDCNT                       0x33
2604 #define LQRSVD01                        0x34
2606 #define LQRSVD16                        0x35
2608 #define LQRSVD17                        0x36
2610 #define CMDRSVD0                        0x37
2612 #define LQCTL0                          0x38
2613 #define         LQITARGCLT              0xc0
2614 #define         LQIINITGCLT             0x30
2615 #define         LQ0TARGCLT              0x0c
2616 #define         LQ0INITGCLT             0x03
2618 #define LQCTL1                          0x38
2619 #define         PCI2PCI                 0x04
2620 #define         SINGLECMD               0x02
2621 #define         ABORTPENDING            0x01
2623 #define SCSBIST0                        0x39
2624 #define         GSBISTERR               0x40
2625 #define         GSBISTDONE              0x20
2626 #define         GSBISTRUN               0x10
2627 #define         OSBISTERR               0x04
2628 #define         OSBISTDONE              0x02
2629 #define         OSBISTRUN               0x01
2631 #define LQCTL2                          0x39
2632 #define         LQIRETRY                0x80
2633 #define         LQICONTINUE             0x40
2634 #define         LQITOIDLE               0x20
2635 #define         LQIPAUSE                0x10
2636 #define         LQORETRY                0x08
2637 #define         LQOCONTINUE             0x04
2638 #define         LQOTOIDLE               0x02
2639 #define         LQOPAUSE                0x01
2641 #define SCSBIST1                        0x3a
2642 #define         NTBISTERR               0x04
2643 #define         NTBISTDONE              0x02
2644 #define         NTBISTRUN               0x01
2646 #define SCSISEQ0                        0x3a
2647 #define         TEMODEO                 0x80
2648 #define         ENSELO                  0x40
2649 #define         ENARBO                  0x20
2650 #define         FORCEBUSFREE            0x10
2651 #define         SCSIRSTO                0x01
2653 #define SCSISEQ1                        0x3b
2655 #define SXFRCTL0                        0x3c
2656 #define         DFON                    0x80
2657 #define         DFPEXP                  0x40
2658 #define         BIOSCANCELEN            0x10
2659 #define         SPIOEN                  0x08
2661 #define DLCOUNT                         0x3c
2663 #define BUSINITID                       0x3c
2665 #define SXFRCTL1                        0x3d
2666 #define         BITBUCKET               0x80
2667 #define         ENSACHK                 0x40
2668 #define         ENSPCHK                 0x20
2669 #define         STIMESEL                0x18
2670 #define         ENSTIMER                0x04
2671 #define         ACTNEGEN                0x02
2672 #define         STPWEN                  0x01
2674 #define BUSTARGID                       0x3e
2676 #define SXFRCTL2                        0x3e
2677 #define         AUTORSTDIS              0x10
2678 #define         CMDDMAEN                0x08
2679 #define         ASU                     0x07
2681 #define DFFSTAT                         0x3f
2682 #define         CURRFIFO                0x03
2683 #define         FIFO1FREE               0x20
2684 #define         FIFO0FREE               0x10
2685 #define         CURRFIFO_NONE           0x03
2686 #define         CURRFIFO_1              0x01
2687 #define         CURRFIFO_0              0x00
2689 #define SCSISIGO                        0x40
2690 #define         CDO                     0x80
2691 #define         IOO                     0x40
2692 #define         MSGO                    0x20
2693 #define         ATNO                    0x10
2694 #define         SELO                    0x08
2695 #define         BSYO                    0x04
2696 #define         REQO                    0x02
2697 #define         ACKO                    0x01
2699 #define MULTARGID                       0x40
2701 #define SCSISIGI                        0x41
2702 #define         ATNI                    0x10
2703 #define         SELI                    0x08
2704 #define         BSYI                    0x04
2705 #define         REQI                    0x02
2706 #define         ACKI                    0x01
2708 #define SCSIPHASE                       0x42
2709 #define         STATUS_PHASE            0x20
2710 #define         COMMAND_PHASE           0x10
2711 #define         MSG_IN_PHASE            0x08
2712 #define         MSG_OUT_PHASE           0x04
2713 #define         DATA_PHASE_MASK         0x03
2714 #define         DATA_IN_PHASE           0x02
2715 #define         DATA_OUT_PHASE          0x01
2717 #define SCSIDAT0_IMG                    0x43
2719 #define SCSIDAT                         0x44
2721 #define SCSIBUS                         0x46
2723 #define TARGIDIN                        0x48
2724 #define         CLKOUT                  0x80
2725 #define         TARGID                  0x0f
2727 #define SELID                           0x49
2728 #define         SELID_MASK              0xf0
2729 #define         ONEBIT                  0x08
2731 #define OPTIONMODE                      0x4a
2732 #define         OPTIONMODE_DEFAULTS     0x02
2733 #define         BIOSCANCTL              0x80
2734 #define         AUTOACKEN               0x40
2735 #define         BIASCANCTL              0x20
2736 #define         BUSFREEREV              0x10
2737 #define         ENDGFORMCHK             0x04
2738 #define         AUTO_MSGOUT_DE          0x02
2740 #define SBLKCTL                         0x4a
2741 #define         DIAGLEDEN               0x80
2742 #define         DIAGLEDON               0x40
2743 #define         ENAB40                  0x08
2744 #define         ENAB20                  0x04
2745 #define         SELWIDE                 0x02
2747 #define CLRSINT0                        0x4b
2748 #define         CLRSELDO                0x40
2749 #define         CLRSELDI                0x20
2750 #define         CLRSELINGO              0x10
2751 #define         CLRIOERR                0x08
2752 #define         CLROVERRUN              0x04
2753 #define         CLRSPIORDY              0x02
2754 #define         CLRARBDO                0x01
2756 #define SSTAT0                          0x4b
2757 #define         TARGET                  0x80
2758 #define         SELDO                   0x40
2759 #define         SELDI                   0x20
2760 #define         SELINGO                 0x10
2761 #define         IOERR                   0x08
2762 #define         OVERRUN                 0x04
2763 #define         SPIORDY                 0x02
2764 #define         ARBDO                   0x01
2766 #define SIMODE0                         0x4b
2767 #define         ENSELDO                 0x40
2768 #define         ENSELDI                 0x20
2769 #define         ENSELINGO               0x10
2770 #define         ENIOERR                 0x08
2771 #define         ENOVERRUN               0x04
2772 #define         ENSPIORDY               0x02
2773 #define         ENARBDO                 0x01
2775 #define CLRSINT1                        0x4c
2776 #define         CLRSELTIMEO             0x80
2777 #define         CLRATNO                 0x40
2778 #define         CLRSCSIRSTI             0x20
2779 #define         CLRBUSFREE              0x08
2780 #define         CLRSCSIPERR             0x04
2781 #define         CLRSTRB2FAST            0x02
2782 #define         CLRREQINIT              0x01
2784 #define SSTAT1                          0x4c
2785 #define         SELTO                   0x80
2786 #define         ATNTARG                 0x40
2787 #define         SCSIRSTI                0x20
2788 #define         PHASEMIS                0x10
2789 #define         BUSFREE                 0x08
2790 #define         SCSIPERR                0x04
2791 #define         STRB2FAST               0x02
2792 #define         REQINIT                 0x01
2794 #define SSTAT2                          0x4d
2795 #define         BUSFREETIME             0xc0
2796 #define         NONPACKREQ              0x20
2797 #define         EXP_ACTIVE              0x10
2798 #define         BSYX                    0x08
2799 #define         WIDE_RES                0x04
2800 #define         SDONE                   0x02
2801 #define         DMADONE                 0x01
2802 #define         BUSFREE_DFF1            0xc0
2803 #define         BUSFREE_DFF0            0x80
2804 #define         BUSFREE_LQO             0x40
2806 #define SIMODE2                         0x4d
2807 #define         ENWIDE_RES              0x04
2808 #define         ENSDONE                 0x02
2809 #define         ENDMADONE               0x01
2811 #define CLRSINT2                        0x4d
2812 #define         CLRNONPACKREQ           0x20
2813 #define         CLRWIDE_RES             0x04
2814 #define         CLRSDONE                0x02
2815 #define         CLRDMADONE              0x01
2817 #define PERRDIAG                        0x4e
2818 #define         HIZERO                  0x80
2819 #define         HIPERR                  0x40
2820 #define         PREVPHASE               0x20
2821 #define         PARITYERR               0x10
2822 #define         AIPERR                  0x08
2823 #define         CRCERR                  0x04
2824 #define         DGFORMERR               0x02
2825 #define         DTERR                   0x01
2827 #define LQISTATE                        0x4e
2829 #define SOFFCNT                         0x4f
2831 #define LQOSTATE                        0x4f
2833 #define LQISTAT0                        0x50
2834 #define         LQIATNQAS               0x20
2835 #define         LQICRCT1                0x10
2836 #define         LQICRCT2                0x08
2837 #define         LQIBADLQT               0x04
2838 #define         LQIATNLQ                0x02
2839 #define         LQIATNCMD               0x01
2841 #define CLRLQIINT0                      0x50
2842 #define         CLRLQIATNQAS            0x20
2843 #define         CLRLQICRCT1             0x10
2844 #define         CLRLQICRCT2             0x08
2845 #define         CLRLQIBADLQT            0x04
2846 #define         CLRLQIATNLQ             0x02
2847 #define         CLRLQIATNCMD            0x01
2849 #define LQIMODE0                        0x50
2850 #define         ENLQIATNQASK            0x20
2851 #define         ENLQICRCT1              0x10
2852 #define         ENLQICRCT2              0x08
2853 #define         ENLQIBADLQT             0x04
2854 #define         ENLQIATNLQ              0x02
2855 #define         ENLQIATNCMD             0x01
2857 #define LQIMODE1                        0x51
2858 #define         ENLQIPHASE_LQ           0x80
2859 #define         ENLQIPHASE_NLQ          0x40
2860 #define         ENLIQABORT              0x20
2861 #define         ENLQICRCI_LQ            0x10
2862 #define         ENLQICRCI_NLQ           0x08
2863 #define         ENLQIBADLQI             0x04
2864 #define         ENLQIOVERI_LQ           0x02
2865 #define         ENLQIOVERI_NLQ          0x01
2867 #define LQISTAT1                        0x51
2868 #define         LQIPHASE_LQ             0x80
2869 #define         LQIPHASE_NLQ            0x40
2870 #define         LQIABORT                0x20
2871 #define         LQICRCI_LQ              0x10
2872 #define         LQICRCI_NLQ             0x08
2873 #define         LQIBADLQI               0x04
2874 #define         LQIOVERI_LQ             0x02
2875 #define         LQIOVERI_NLQ            0x01
2877 #define CLRLQIINT1                      0x51
2878 #define         CLRLQIPHASE_LQ          0x80
2879 #define         CLRLQIPHASE_NLQ         0x40
2880 #define         CLRLIQABORT             0x20
2881 #define         CLRLQICRCI_LQ           0x10
2882 #define         CLRLQICRCI_NLQ          0x08
2883 #define         CLRLQIBADLQI            0x04
2884 #define         CLRLQIOVERI_LQ          0x02
2885 #define         CLRLQIOVERI_NLQ         0x01
2887 #define LQISTAT2                        0x52
2888 #define         PACKETIZED              0x80
2889 #define         LQIPHASE_OUTPKT         0x40
2890 #define         LQIWORKONLQ             0x20
2891 #define         LQIWAITFIFO             0x10
2892 #define         LQISTOPPKT              0x08
2893 #define         LQISTOPLQ               0x04
2894 #define         LQISTOPCMD              0x02
2895 #define         LQIGSAVAIL              0x01
2897 #define SSTAT3                          0x53
2898 #define         NTRAMPERR               0x02
2899 #define         OSRAMPERR               0x01
2901 #define SIMODE3                         0x53
2902 #define         ENNTRAMPERR             0x02
2903 #define         ENOSRAMPERR             0x01
2905 #define CLRSINT3                        0x53
2906 #define         CLRNTRAMPERR            0x02
2907 #define         CLROSRAMPERR            0x01
2909 #define LQOSTAT0                        0x54
2910 #define         LQOTARGSCBPERR          0x10
2911 #define         LQOSTOPT2               0x08
2912 #define         LQOATNLQ                0x04
2913 #define         LQOATNPKT               0x02
2914 #define         LQOTCRC                 0x01
2916 #define CLRLQOINT0                      0x54
2917 #define         CLRLQOTARGSCBPERR       0x10
2918 #define         CLRLQOSTOPT2            0x08
2919 #define         CLRLQOATNLQ             0x04
2920 #define         CLRLQOATNPKT            0x02
2921 #define         CLRLQOTCRC              0x01
2923 #define LQOMODE0                        0x54
2924 #define         ENLQOTARGSCBPERR        0x10
2925 #define         ENLQOSTOPT2             0x08
2926 #define         ENLQOATNLQ              0x04
2927 #define         ENLQOATNPKT             0x02
2928 #define         ENLQOTCRC               0x01
2930 #define LQOMODE1                        0x55
2931 #define         ENLQOINITSCBPERR        0x10
2932 #define         ENLQOSTOPI2             0x08
2933 #define         ENLQOBADQAS             0x04
2934 #define         ENLQOBUSFREE            0x02
2935 #define         ENLQOPHACHGINPKT        0x01
2937 #define LQOSTAT1                        0x55
2938 #define         LQOINITSCBPERR          0x10
2939 #define         LQOSTOPI2               0x08
2940 #define         LQOBADQAS               0x04
2941 #define         LQOBUSFREE              0x02
2942 #define         LQOPHACHGINPKT          0x01
2944 #define CLRLQOINT1                      0x55
2945 #define         CLRLQOINITSCBPERR       0x10
2946 #define         CLRLQOSTOPI2            0x08
2947 #define         CLRLQOBADQAS            0x04
2948 #define         CLRLQOBUSFREE           0x02
2949 #define         CLRLQOPHACHGINPKT       0x01
2951 #define LQOSTAT2                        0x56
2952 #define         LQOPKT                  0xe0
2953 #define         LQOWAITFIFO             0x10
2954 #define         LQOPHACHGOUTPKT         0x02
2955 #define         LQOSTOP0                0x01
2957 #define OS_SPACE_CNT                    0x56
2959 #define SIMODE1                         0x57
2960 #define         ENSELTIMO               0x80
2961 #define         ENATNTARG               0x40
2962 #define         ENSCSIRST               0x20
2963 #define         ENPHASEMIS              0x10
2964 #define         ENBUSFREE               0x08
2965 #define         ENSCSIPERR              0x04
2966 #define         ENSTRB2FAST             0x02
2967 #define         ENREQINIT               0x01
2969 #define GSFIFO                          0x58
2971 #define DFFSXFRCTL                      0x5a
2972 #define         DFFBITBUCKET            0x08
2973 #define         CLRSHCNT                0x04
2974 #define         CLRCHN                  0x02
2975 #define         RSTCHN                  0x01
2977 #define LQOSCSCTL                       0x5a
2978 #define         LQOH2A_VERSION          0x80
2979 #define         LQONOCHKOVER            0x01
2981 #define NEXTSCB                         0x5a
2983 #define CLRSEQINTSRC                    0x5b
2984 #define         CLRCTXTDONE             0x40
2985 #define         CLRSAVEPTRS             0x20
2986 #define         CLRCFG4DATA             0x10
2987 #define         CLRCFG4ISTAT            0x08
2988 #define         CLRCFG4TSTAT            0x04
2989 #define         CLRCFG4ICMD             0x02
2990 #define         CLRCFG4TCMD             0x01
2992 #define SEQINTSRC                       0x5b
2993 #define         CTXTDONE                0x40
2994 #define         SAVEPTRS                0x20
2995 #define         CFG4DATA                0x10
2996 #define         CFG4ISTAT               0x08
2997 #define         CFG4TSTAT               0x04
2998 #define         CFG4ICMD                0x02
2999 #define         CFG4TCMD                0x01
3001 #define CURRSCB                         0x5c
3003 #define SEQIMODE                        0x5c
3004 #define         ENCTXTDONE              0x40
3005 #define         ENSAVEPTRS              0x20
3006 #define         ENCFG4DATA              0x10
3007 #define         ENCFG4ISTAT             0x08
3008 #define         ENCFG4TSTAT             0x04
3009 #define         ENCFG4ICMD              0x02
3010 #define         ENCFG4TCMD              0x01
3012 #define MDFFSTAT                        0x5d
3013 #define         SHCNTNEGATIVE           0x40
3014 #define         SHCNTMINUS1             0x20
3015 #define         LASTSDONE               0x10
3016 #define         SHVALID                 0x08
3017 #define         DLZERO                  0x04
3018 #define         DATAINFIFO              0x02
3019 #define         FIFOFREE                0x01
3021 #define CRCCONTROL                      0x5d
3022 #define         CRCVALCHKEN             0x40
3024 #define DFFTAG                          0x5e
3026 #define LASTSCB                         0x5e
3028 #define SCSITEST                        0x5e
3029 #define         CNTRTEST                0x08
3030 #define         SEL_TXPLL_DEBUG         0x04
3032 #define IOPDNCTL                        0x5f
3033 #define         DISABLE_OE              0x80
3034 #define         PDN_IDIST               0x04
3035 #define         PDN_DIFFSENSE           0x01
3037 #define SHADDR                          0x60
3039 #define NEGOADDR                        0x60
3041 #define DGRPCRCI                        0x60
3043 #define NEGPERIOD                       0x61
3045 #define PACKCRCI                        0x62
3047 #define NEGOFFSET                       0x62
3049 #define NEGPPROPTS                      0x63
3050 #define         PPROPT_PACE             0x08
3051 #define         PPROPT_QAS              0x04
3052 #define         PPROPT_DT               0x02
3053 #define         PPROPT_IUT              0x01
3055 #define NEGCONOPTS                      0x64
3056 #define         ENSNAPSHOT              0x40
3057 #define         RTI_WRTDIS              0x20
3058 #define         RTI_OVRDTRN             0x10
3059 #define         ENSLOWCRC               0x08
3060 #define         ENAUTOATNI              0x04
3061 #define         ENAUTOATNO              0x02
3062 #define         WIDEXFER                0x01
3064 #define ANNEXCOL                        0x65
3066 #define ANNEXDAT                        0x66
3068 #define SCSCHKN                         0x66
3069 #define         STSELSKIDDIS            0x40
3070 #define         CURRFIFODEF             0x20
3071 #define         WIDERESEN               0x10
3072 #define         SDONEMSKDIS             0x08
3073 #define         DFFACTCLR               0x04
3074 #define         SHVALIDSTDIS            0x02
3075 #define         LSTSGCLRDIS             0x01
3077 #define IOWNID                          0x67
3079 #define PLL960CTL0                      0x68
3081 #define SHCNT                           0x68
3083 #define TOWNID                          0x69
3085 #define PLL960CTL1                      0x69
3087 #define PLL960CNT0                      0x6a
3089 #define XSIG                            0x6a
3091 #define SELOID                          0x6b
3093 #define PLL400CTL0                      0x6c
3094 #define         PLL_VCOSEL              0x80
3095 #define         PLL_PWDN                0x40
3096 #define         PLL_NS                  0x30
3097 #define         PLL_ENLUD               0x08
3098 #define         PLL_ENLPF               0x04
3099 #define         PLL_DLPF                0x02
3100 #define         PLL_ENFBM               0x01
3102 #define FAIRNESS                        0x6c
3104 #define PLL400CTL1                      0x6d
3105 #define         PLL_CNTEN               0x80
3106 #define         PLL_CNTCLR              0x40
3107 #define         PLL_RST                 0x01
3109 #define UNFAIRNESS                      0x6e
3111 #define PLL400CNT0                      0x6e
3113 #define HADDR                           0x70
3115 #define PLLDELAY                        0x70
3116 #define         SPLIT_DROP_REQ          0x80
3118 #define HODMAADR                        0x70
3120 #define HODMACNT                        0x78
3122 #define HCNT                            0x78
3124 #define HODMAEN                         0x7a
3126 #define SCBHADDR                        0x7c
3128 #define SGHADDR                         0x7c
3130 #define SCBHCNT                         0x84
3132 #define SGHCNT                          0x84
3134 #define DFF_THRSH                       0x88
3135 #define         WR_DFTHRSH              0x70
3136 #define         RD_DFTHRSH              0x07
3137 #define         WR_DFTHRSH_MAX          0x70
3138 #define         WR_DFTHRSH_90           0x60
3139 #define         WR_DFTHRSH_85           0x50
3140 #define         WR_DFTHRSH_75           0x40
3141 #define         WR_DFTHRSH_63           0x30
3142 #define         WR_DFTHRSH_50           0x20
3143 #define         WR_DFTHRSH_25           0x10
3144 #define         RD_DFTHRSH_MAX          0x07
3145 #define         RD_DFTHRSH_90           0x06
3146 #define         RD_DFTHRSH_85           0x05
3147 #define         RD_DFTHRSH_75           0x04
3148 #define         RD_DFTHRSH_63           0x03
3149 #define         RD_DFTHRSH_50           0x02
3150 #define         RD_DFTHRSH_25           0x01
3151 #define         RD_DFTHRSH_MIN          0x00
3152 #define         WR_DFTHRSH_MIN          0x00
3154 #define ROMADDR                         0x8a
3156 #define ROMCNTRL                        0x8d
3157 #define         ROMOP                   0xe0
3158 #define         ROMSPD                  0x18
3159 #define         REPEAT                  0x02
3160 #define         RDY                     0x01
3162 #define ROMDATA                         0x8e
3164 #define CMCRXMSG0                       0x90
3166 #define ROENABLE                        0x90
3167 #define         MSIROEN                 0x20
3168 #define         OVLYROEN                0x10
3169 #define         CMCROEN                 0x08
3170 #define         SGROEN                  0x04
3171 #define         DCH1ROEN                0x02
3172 #define         DCH0ROEN                0x01
3174 #define OVLYRXMSG0                      0x90
3176 #define DCHRXMSG0                       0x90
3178 #define OVLYRXMSG1                      0x91
3180 #define NSENABLE                        0x91
3181 #define         MSINSEN                 0x20
3182 #define         OVLYNSEN                0x10
3183 #define         CMCNSEN                 0x08
3184 #define         SGNSEN                  0x04
3185 #define         DCH1NSEN                0x02
3186 #define         DCH0NSEN                0x01
3188 #define CMCRXMSG1                       0x91
3190 #define DCHRXMSG1                       0x91
3192 #define DCHRXMSG2                       0x92
3194 #define CMCRXMSG2                       0x92
3196 #define OST                             0x92
3198 #define OVLYRXMSG2                      0x92
3200 #define DCHRXMSG3                       0x93
3202 #define OVLYRXMSG3                      0x93
3204 #define CMCRXMSG3                       0x93
3206 #define PCIXCTL                         0x93
3207 #define         SERRPULSE               0x80
3208 #define         UNEXPSCIEN              0x20
3209 #define         SPLTSMADIS              0x10
3210 #define         SPLTSTADIS              0x08
3211 #define         SRSPDPEEN               0x04
3212 #define         TSCSERREN               0x02
3213 #define         CMPABCDIS               0x01
3215 #define OVLYSEQBCNT                     0x94
3217 #define DCHSEQBCNT                      0x94
3219 #define CMCSEQBCNT                      0x94
3221 #define CMCSPLTSTAT0                    0x96
3223 #define DCHSPLTSTAT0                    0x96
3225 #define OVLYSPLTSTAT0                   0x96
3227 #define CMCSPLTSTAT1                    0x97
3229 #define OVLYSPLTSTAT1                   0x97
3231 #define DCHSPLTSTAT1                    0x97
3233 #define SGRXMSG0                        0x98
3234 #define         CDNUM                   0xf8
3235 #define         CFNUM                   0x07
3237 #define SLVSPLTOUTADR0                  0x98
3238 #define         LOWER_ADDR              0x7f
3240 #define SGRXMSG1                        0x99
3241 #define         CBNUM                   0xff
3243 #define SLVSPLTOUTADR1                  0x99
3244 #define         REQ_DNUM                0xf8
3245 #define         REQ_FNUM                0x07
3247 #define SGRXMSG2                        0x9a
3248 #define         MINDEX                  0xff
3250 #define SLVSPLTOUTADR2                  0x9a
3251 #define         REQ_BNUM                0xff
3253 #define SGRXMSG3                        0x9b
3254 #define         MCLASS                  0x0f
3256 #define SLVSPLTOUTADR3                  0x9b
3257 #define         TAG_NUM                 0x1f
3258 #define         RLXORD                  0x10
3260 #define SGSEQBCNT                       0x9c
3262 #define SLVSPLTOUTATTR0                 0x9c
3263 #define         LOWER_BCNT              0xff
3265 #define SLVSPLTOUTATTR1                 0x9d
3266 #define         CMPLT_DNUM              0xf8
3267 #define         CMPLT_FNUM              0x07
3269 #define SLVSPLTOUTATTR2                 0x9e
3270 #define         CMPLT_BNUM              0xff
3272 #define SGSPLTSTAT0                     0x9e
3273 #define         STAETERM                0x80
3274 #define         SCBCERR                 0x40
3275 #define         SCADERR                 0x20
3276 #define         SCDATBUCKET             0x10
3277 #define         CNTNOTCMPLT             0x08
3278 #define         RXOVRUN                 0x04
3279 #define         RXSCEMSG                0x02
3280 #define         RXSPLTRSP               0x01
3282 #define SGSPLTSTAT1                     0x9f
3283 #define         RXDATABUCKET            0x01
3285 #define SFUNCT                          0x9f
3286 #define         TEST_GROUP              0xf0
3287 #define         TEST_NUM                0x0f
3289 #define DF0PCISTAT                      0xa0
3291 #define REG0                            0xa0
3293 #define DF1PCISTAT                      0xa1
3295 #define SGPCISTAT                       0xa2
3297 #define REG1                            0xa2
3299 #define CMCPCISTAT                      0xa3
3301 #define OVLYPCISTAT                     0xa4
3302 #define         SCAAPERR                0x08
3303 #define         RDPERR                  0x04
3305 #define REG_ISR                         0xa4
3307 #define SG_STATE                        0xa6
3308 #define         FETCH_INPROG            0x04
3309 #define         LOADING_NEEDED          0x02
3310 #define         SEGS_AVAIL              0x01
3312 #define MSIPCISTAT                      0xa6
3313 #define         RMA                     0x20
3314 #define         RTA                     0x10
3315 #define         CLRPENDMSI              0x08
3316 #define         DPR                     0x01
3318 #define TARGPCISTAT                     0xa7
3319 #define         DPE                     0x80
3320 #define         SSE                     0x40
3321 #define         STA                     0x08
3322 #define         TWATERR                 0x02
3324 #define DATA_COUNT_ODD                  0xa7
3326 #define SCBPTR                          0xa8
3328 #define CCSCBACNT                       0xab
3330 #define SCBAUTOPTR                      0xab
3331 #define         AUSCBPTR_EN             0x80
3332 #define         SCBPTR_ADDR             0x38
3333 #define         SCBPTR_OFF              0x07
3335 #define CCSGADDR                        0xac
3337 #define CCSCBADR_BK                     0xac
3339 #define CCSCBADDR                       0xac
3341 #define CMC_RAMBIST                     0xad
3342 #define         SG_ELEMENT_SIZE         0x80
3343 #define         SCBRAMBIST_FAIL         0x40
3344 #define         SG_BIST_FAIL            0x20
3345 #define         SG_BIST_EN              0x10
3346 #define         CMC_BUFFER_BIST_FAIL    0x02
3347 #define         CMC_BUFFER_BIST_EN      0x01
3349 #define CCSCBCTL                        0xad
3350 #define         CCSCBDONE               0x80
3351 #define         ARRDONE                 0x40
3352 #define         CCARREN                 0x10
3353 #define         CCSCBEN                 0x08
3354 #define         CCSCBDIR                0x04
3355 #define         CCSCBRESET              0x01
3357 #define CCSGCTL                         0xad
3358 #define         CCSGEN                  0x0c
3359 #define         CCSGDONE                0x80
3360 #define         SG_CACHE_AVAIL          0x10
3361 #define         CCSGENACK               0x08
3362 #define         SG_FETCH_REQ            0x02
3363 #define         CCSGRESET               0x01
3365 #define CCSGRAM                         0xb0
3367 #define FLEXADR                         0xb0
3369 #define CCSCBRAM                        0xb0
3371 #define FLEXCNT                         0xb3
3373 #define FLEXDMASTAT                     0xb5
3374 #define         FLEXDMAERR              0x02
3375 #define         FLEXDMADONE             0x01
3377 #define FLEXDATA                        0xb6
3379 #define BRDDAT                          0xb8
3381 #define BRDCTL                          0xb9
3382 #define         FLXARBACK               0x80
3383 #define         FLXARBREQ               0x40
3384 #define         BRDADDR                 0x38
3385 #define         BRDEN                   0x04
3386 #define         BRDRW                   0x02
3387 #define         BRDSTB                  0x01
3389 #define SEEADR                          0xba
3391 #define SEEDAT                          0xbc
3393 #define SEECTL                          0xbe
3394 #define         SEEOP_WALL              0x40
3395 #define         SEEOP_EWEN              0x40
3396 #define         SEEOP_EWDS              0x40
3397 #define         SEEOPCODE               0x70
3398 #define         SEERST                  0x02
3399 #define         SEESTART                0x01
3400 #define         SEEOP_ERASE             0x70
3401 #define         SEEOP_READ              0x60
3402 #define         SEEOP_WRITE             0x50
3403 #define         SEEOP_ERAL              0x40
3405 #define SEESTAT                         0xbe
3406 #define         INIT_DONE               0x80
3407 #define         LDALTID_L               0x08
3408 #define         SEEARBACK               0x04
3409 #define         SEEBUSY                 0x02
3411 #define SCBCNT                          0xbf
3413 #define DFWADDR                         0xc0
3415 #define DSPFLTRCTL                      0xc0
3416 #define         FLTRDISABLE             0x20
3417 #define         EDGESENSE               0x10
3418 #define         DSPFCNTSEL              0x0f
3420 #define DSPDATACTL                      0xc1
3421 #define         BYPASSENAB              0x80
3422 #define         DESQDIS                 0x10
3423 #define         RCVROFFSTDIS            0x04
3424 #define         XMITOFFSTDIS            0x02
3426 #define DFRADDR                         0xc2
3428 #define DSPREQCTL                       0xc2
3429 #define         MANREQCTL               0xc0
3430 #define         MANREQDLY               0x3f
3432 #define DSPACKCTL                       0xc3
3433 #define         MANACKCTL               0xc0
3434 #define         MANACKDLY               0x3f
3436 #define DFDAT                           0xc4
3438 #define DSPSELECT                       0xc4
3439 #define         AUTOINCEN               0x80
3440 #define         DSPSEL                  0x1f
3442 #define WRTBIASCTL                      0xc5
3443 #define         AUTOXBCDIS              0x80
3444 #define         XMITMANVAL              0x3f
3446 #define RCVRBIOSCTL                     0xc6
3447 #define         AUTORBCDIS              0x80
3448 #define         RCVRMANVAL              0x3f
3450 #define WRTBIASCALC                     0xc7
3452 #define RCVRBIASCALC                    0xc8
3454 #define DFPTRS                          0xc8
3456 #define SKEWCALC                        0xc9
3458 #define DFBKPTR                         0xc9
3460 #define DFDBCTL                         0xcb
3461 #define         DFF_CIO_WR_RDY          0x20
3462 #define         DFF_CIO_RD_RDY          0x10
3463 #define         DFF_DIR_ERR             0x08
3464 #define         DFF_RAMBIST_FAIL        0x04
3465 #define         DFF_RAMBIST_DONE        0x02
3466 #define         DFF_RAMBIST_EN          0x01
3468 #define DFSCNT                          0xcc
3470 #define DFBCNT                          0xce
3472 #define OVLYADDR                        0xd4
3474 #define SEQCTL0                         0xd6
3475 #define         PERRORDIS               0x80
3476 #define         PAUSEDIS                0x40
3477 #define         FAILDIS                 0x20
3478 #define         FASTMODE                0x10
3479 #define         BRKADRINTEN             0x08
3480 #define         STEP                    0x04
3481 #define         SEQRESET                0x02
3482 #define         LOADRAM                 0x01
3484 #define SEQCTL1                         0xd7
3485 #define         OVRLAY_DATA_CHK         0x08
3486 #define         RAMBIST_DONE            0x04
3487 #define         RAMBIST_FAIL            0x02
3488 #define         RAMBIST_EN              0x01
3490 #define FLAGS                           0xd8
3491 #define         ZERO                    0x02
3492 #define         CARRY                   0x01
3494 #define SEQINTCTL                       0xd9
3495 #define         INTVEC1DSL              0x80
3496 #define         INT1_CONTEXT            0x20
3497 #define         SCS_SEQ_INT1M1          0x10
3498 #define         SCS_SEQ_INT1M0          0x08
3499 #define         INTMASK2                0x04
3500 #define         INTMASK1                0x02
3501 #define         IRET                    0x01
3503 #define SEQRAM                          0xda
3505 #define PRGMCNT                         0xde
3507 #define ACCUM                           0xe0
3509 #define SINDEX                          0xe2
3511 #define DINDEX                          0xe4
3513 #define BRKADDR0                        0xe6
3515 #define BRKADDR1                        0xe6
3516 #define         BRKDIS                  0x80
3518 #define ALLONES                         0xe8
3520 #define ALLZEROS                        0xea
3522 #define NONE                            0xea
3524 #define SINDIR                          0xec
3526 #define DINDIR                          0xed
3528 #define FUNCTION1                       0xf0
3530 #define STACK                           0xf2
3532 #define INTVEC1_ADDR                    0xf4
3534 #define CURADDR                         0xf4
3536 #define LASTADDR                        0xf6
3538 #define INTVEC2_ADDR                    0xf6
3540 #define LONGJMP_ADDR                    0xf8
3542 #define ACCUM_SAVE                      0xfa
3544 #define WAITING_SCB_TAILS               0x100
3546 #define AHD_PCI_CONFIG_BASE             0x100
3548 #define SRAM_BASE                       0x100
3550 #define WAITING_TID_HEAD                0x120
3552 #define WAITING_TID_TAIL                0x122
3554 #define NEXT_QUEUED_SCB_ADDR            0x124
3556 #define COMPLETE_SCB_HEAD               0x128
3558 #define COMPLETE_SCB_DMAINPROG_HEAD             0x12a
3560 #define COMPLETE_DMA_SCB_HEAD           0x12c
3562 #define COMPLETE_DMA_SCB_TAIL           0x12e
3564 #define COMPLETE_ON_QFREEZE_HEAD                0x130
3566 #define QFREEZE_COUNT                   0x132
3568 #define KERNEL_QFREEZE_COUNT            0x134
3570 #define SAVED_MODE                      0x136
3572 #define MSG_OUT                         0x137
3574 #define DMAPARAMS                       0x138
3575 #define         PRELOADEN               0x80
3576 #define         WIDEODD                 0x40
3577 #define         SCSIEN                  0x20
3578 #define         SDMAEN                  0x10
3579 #define         SDMAENACK               0x10
3580 #define         HDMAEN                  0x08
3581 #define         HDMAENACK               0x08
3582 #define         DIRECTION               0x04
3583 #define         FIFOFLUSH               0x02
3584 #define         FIFORESET               0x01
3586 #define SEQ_FLAGS                       0x139
3587 #define         NOT_IDENTIFIED          0x80
3588 #define         NO_CDB_SENT             0x40
3589 #define         TARGET_CMD_IS_TAGGED    0x40
3590 #define         DPHASE                  0x20
3591 #define         TARG_CMD_PENDING        0x10
3592 #define         CMDPHASE_PENDING        0x08
3593 #define         DPHASE_PENDING          0x04
3594 #define         SPHASE_PENDING          0x02
3595 #define         NO_DISCONNECT           0x01
3597 #define SAVED_SCSIID                    0x13a
3599 #define SAVED_LUN                       0x13b
3601 #define LASTPHASE                       0x13c
3602 #define         PHASE_MASK              0xe0
3603 #define         CDI                     0x80
3604 #define         IOI                     0x40
3605 #define         MSGI                    0x20
3606 #define         P_BUSFREE               0x01
3607 #define         P_MESGIN                0xe0
3608 #define         P_STATUS                0xc0
3609 #define         P_MESGOUT               0xa0
3610 #define         P_COMMAND               0x80
3611 #define         P_DATAIN_DT             0x60
3612 #define         P_DATAIN                0x40
3613 #define         P_DATAOUT_DT            0x20
3614 #define         P_DATAOUT               0x00
3616 #define QOUTFIFO_ENTRY_VALID_TAG                0x13d
3618 #define KERNEL_TQINPOS                  0x13e
3620 #define TQINPOS                         0x13f
3622 #define SHARED_DATA_ADDR                0x140
3624 #define QOUTFIFO_NEXT_ADDR              0x144
3626 #define ARG_1                           0x148
3627 #define RETURN_1                        0x148
3628 #define         SEND_MSG                0x80
3629 #define         SEND_SENSE              0x40
3630 #define         SEND_REJ                0x20
3631 #define         MSGOUT_PHASEMIS         0x10
3632 #define         EXIT_MSG_LOOP           0x08
3633 #define         CONT_MSG_LOOP_WRITE     0x04
3634 #define         CONT_MSG_LOOP_READ      0x03
3635 #define         CONT_MSG_LOOP_TARG      0x02
3637 #define ARG_2                           0x149
3638 #define RETURN_2                        0x149
3640 #define LAST_MSG                        0x14a
3642 #define SCSISEQ_TEMPLATE                0x14b
3643 #define         MANUALCTL               0x40
3644 #define         ENSELI                  0x20
3645 #define         ENRSELI                 0x10
3646 #define         MANUALP                 0x0c
3647 #define         ENAUTOATNP              0x02
3648 #define         ALTSTIM                 0x01
3650 #define INITIATOR_TAG                   0x14c
3652 #define SEQ_FLAGS2                      0x14d
3653 #define         SELECTOUT_QFROZEN       0x04
3654 #define         TARGET_MSG_PENDING      0x02
3655 #define         PENDING_MK_MESSAGE      0x01
3657 #define ALLOCFIFO_SCBPTR                0x14e
3659 #define INT_COALESCING_TIMER            0x150
3661 #define INT_COALESCING_MAXCMDS          0x152
3663 #define INT_COALESCING_MINCMDS          0x153
3665 #define CMDS_PENDING                    0x154
3667 #define INT_COALESCING_CMDCOUNT         0x156
3669 #define LOCAL_HS_MAILBOX                0x157
3671 #define CMDSIZE_TABLE                   0x158
3673 #define MK_MESSAGE_SCB                  0x160
3675 #define MK_MESSAGE_SCSIID               0x162
3677 #define SCB_BASE                        0x180
3679 #define SCB_RESIDUAL_DATACNT            0x180
3680 #define SCB_CDB_STORE                   0x180
3681 #define SCB_HOST_CDB_PTR                0x180
3683 #define SCB_RESIDUAL_SGPTR              0x184
3684 #define         SG_ADDR_MASK            0xf8
3685 #define         SG_OVERRUN_RESID        0x02
3687 #define SCB_SCSI_STATUS                 0x188
3688 #define SCB_HOST_CDB_LEN                0x188
3690 #define SCB_TARGET_PHASES               0x189
3692 #define SCB_TARGET_DATA_DIR             0x18a
3694 #define SCB_TARGET_ITAG                 0x18b
3696 #define SCB_SENSE_BUSADDR               0x18c
3697 #define SCB_NEXT_COMPLETE               0x18c
3699 #define SCB_TAG                         0x190
3700 #define SCB_FIFO_USE_COUNT              0x190
3702 #define SCB_CONTROL                     0x192
3703 #define         TARGET_SCB              0x80
3704 #define         DISCENB                 0x40
3705 #define         TAG_ENB                 0x20
3706 #define         MK_MESSAGE              0x10
3707 #define         STATUS_RCVD             0x08
3708 #define         DISCONNECTED            0x04
3709 #define         SCB_TAG_TYPE            0x03
3711 #define SCB_SCSIID                      0x193
3712 #define         TID                     0xf0
3713 #define         OID                     0x0f
3715 #define SCB_LUN                         0x194
3716 #define         LID                     0xff
3718 #define SCB_TASK_ATTRIBUTE              0x195
3719 #define         SCB_XFERLEN_ODD         0x01
3721 #define SCB_CDB_LEN                     0x196
3722 #define         SCB_CDB_LEN_PTR         0x80
3724 #define SCB_TASK_MANAGEMENT             0x197
3726 #define SCB_DATAPTR                     0x198
3728 #define SCB_DATACNT                     0x1a0
3729 #define         SG_LAST_SEG             0x80
3730 #define         SG_HIGH_ADDR_BITS       0x7f
3732 #define SCB_SGPTR                       0x1a4
3733 #define         SG_STATUS_VALID         0x04
3734 #define         SG_FULL_RESID           0x02
3735 #define         SG_LIST_NULL            0x01
3737 #define SCB_BUSADDR                     0x1a8
3739 #define SCB_NEXT                        0x1ac
3740 #define SCB_NEXT_SCB_BUSADDR            0x1ac
3742 #define SCB_NEXT2                       0x1ae
3744 #define SCB_SPARE                       0x1b0
3745 #define SCB_PKT_LUN                     0x1b0
3747 #define SCB_DISCONNECTED_LISTS          0x1b8
3750 #define AHD_TIMER_MAX_US        0x18ffe7
3751 #define AHD_TIMER_MAX_TICKS     0xffff
3752 #define AHD_SENSE_BUFSIZE       0x100
3753 #define BUS_8_BIT       0x00
3754 #define TARGET_CMD_CMPLT        0xfe
3755 #define SEEOP_WRAL_ADDR 0x40
3756 #define AHD_AMPLITUDE_DEF       0x07
3757 #define AHD_PRECOMP_CUTBACK_37  0x07
3758 #define AHD_PRECOMP_SHIFT       0x00
3759 #define AHD_ANNEXCOL_PRECOMP_SLEW       0x04
3760 #define AHD_TIMER_US_PER_TICK   0x19
3761 #define SCB_TRANSFER_SIZE_FULL_LUN      0x38
3762 #define STATUS_QUEUE_FULL       0x28
3763 #define STATUS_BUSY     0x08
3764 #define MAX_OFFSET_NON_PACED    0x7f
3765 #define MAX_OFFSET_PACED        0xfe
3766 #define BUS_32_BIT      0x02
3767 #define CCSGADDR_MAX    0x80
3768 #define TID_SHIFT       0x04
3769 #define MK_MESSAGE_BIT_OFFSET   0x04
3770 #define WRTBIASCTL_HP_DEFAULT   0x00
3771 #define SEEOP_EWDS_ADDR 0x00
3772 #define AHD_AMPLITUDE_SHIFT     0x00
3773 #define AHD_AMPLITUDE_MASK      0x07
3774 #define AHD_ANNEXCOL_AMPLITUDE  0x06
3775 #define AHD_SLEWRATE_DEF_REVA   0x08
3776 #define AHD_SLEWRATE_SHIFT      0x03
3777 #define AHD_SLEWRATE_MASK       0x78
3778 #define AHD_PRECOMP_CUTBACK_29  0x06
3779 #define AHD_NUM_PER_DEV_ANNEXCOLS       0x04
3780 #define B_CURRFIFO_0    0x02
3781 #define LUNLEN_SINGLE_LEVEL_LUN 0x0f
3782 #define NVRAM_SCB_OFFSET        0x2c
3783 #define STATUS_PKT_SENSE        0xff
3784 #define CMD_GROUP_CODE_SHIFT    0x05
3785 #define MAX_OFFSET_PACED_BUG    0x7f
3786 #define STIMESEL_BUG_ADJ        0x08
3787 #define STIMESEL_MIN    0x18
3788 #define STIMESEL_SHIFT  0x03
3789 #define CCSGRAM_MAXSEGS 0x10
3790 #define INVALID_ADDR    0x80
3791 #define SEEOP_ERAL_ADDR 0x80
3792 #define AHD_SLEWRATE_DEF_REVB   0x08
3793 #define AHD_PRECOMP_CUTBACK_17  0x04
3794 #define AHD_PRECOMP_MASK        0x07
3795 #define SRC_MODE_SHIFT  0x00
3796 #define PKT_OVERRUN_BUFSIZE     0x200
3797 #define SCB_TRANSFER_SIZE_1BYTE_LUN     0x30
3798 #define TARGET_DATA_IN  0x01
3799 #define HOST_MSG        0xff
3800 #define MAX_OFFSET      0xfe
3801 #define BUS_16_BIT      0x01
3802 #define CCSCBADDR_MAX   0x80
3803 #define NUMDSPS         0x14
3804 #define SEEOP_EWEN_ADDR 0xc0
3805 #define AHD_ANNEXCOL_PER_DEV0   0x04
3806 #define DST_MODE_SHIFT  0x04
3809 /* Downloaded Constant Definitions */
3810 #define CACHELINE_MASK  0x07
3811 #define SCB_TRANSFER_SIZE       0x06
3812 #define PKT_OVERRUN_BUFOFFSET   0x05
3813 #define SG_SIZEOF       0x04
3814 #define SG_PREFETCH_ADDR_MASK   0x03
3815 #define SG_PREFETCH_ALIGN_MASK  0x02
3816 #define SG_PREFETCH_CNT_LIMIT   0x01
3817 #define SG_PREFETCH_CNT 0x00
3818 #define DOWNLOAD_CONST_COUNT    0x08
3821 /* Exported Labels */
3822 #define LABEL_seq_isr   0x28f
3823 #define LABEL_timer_isr 0x28b