2 * DO NOT EDIT - This file is automatically generated
3 * from the following source files:
5 * $Id: //depot/aic7xxx/aic7xxx/aic79xx.seq#120 $
6 * $Id: //depot/aic7xxx/aic7xxx/aic79xx.reg#77 $
8 typedef int (ahd_reg_print_t)(u_int, u_int *, u_int);
9 typedef struct ahd_reg_parse_entry {
13 } ahd_reg_parse_entry_t;
15 #if AIC_DEBUG_REGISTERS
16 ahd_reg_print_t ahd_mode_ptr_print;
18 #define ahd_mode_ptr_print(regvalue, cur_col, wrap) \
19 ahd_print_register(NULL, 0, "MODE_PTR", 0x00, regvalue, cur_col, wrap)
22 #if AIC_DEBUG_REGISTERS
23 ahd_reg_print_t ahd_intstat_print;
25 #define ahd_intstat_print(regvalue, cur_col, wrap) \
26 ahd_print_register(NULL, 0, "INTSTAT", 0x01, regvalue, cur_col, wrap)
29 #if AIC_DEBUG_REGISTERS
30 ahd_reg_print_t ahd_seqintcode_print;
32 #define ahd_seqintcode_print(regvalue, cur_col, wrap) \
33 ahd_print_register(NULL, 0, "SEQINTCODE", 0x02, regvalue, cur_col, wrap)
36 #if AIC_DEBUG_REGISTERS
37 ahd_reg_print_t ahd_clrint_print;
39 #define ahd_clrint_print(regvalue, cur_col, wrap) \
40 ahd_print_register(NULL, 0, "CLRINT", 0x03, regvalue, cur_col, wrap)
43 #if AIC_DEBUG_REGISTERS
44 ahd_reg_print_t ahd_error_print;
46 #define ahd_error_print(regvalue, cur_col, wrap) \
47 ahd_print_register(NULL, 0, "ERROR", 0x04, regvalue, cur_col, wrap)
50 #if AIC_DEBUG_REGISTERS
51 ahd_reg_print_t ahd_hcntrl_print;
53 #define ahd_hcntrl_print(regvalue, cur_col, wrap) \
54 ahd_print_register(NULL, 0, "HCNTRL", 0x05, regvalue, cur_col, wrap)
57 #if AIC_DEBUG_REGISTERS
58 ahd_reg_print_t ahd_hnscb_qoff_print;
60 #define ahd_hnscb_qoff_print(regvalue, cur_col, wrap) \
61 ahd_print_register(NULL, 0, "HNSCB_QOFF", 0x06, regvalue, cur_col, wrap)
64 #if AIC_DEBUG_REGISTERS
65 ahd_reg_print_t ahd_hescb_qoff_print;
67 #define ahd_hescb_qoff_print(regvalue, cur_col, wrap) \
68 ahd_print_register(NULL, 0, "HESCB_QOFF", 0x08, regvalue, cur_col, wrap)
71 #if AIC_DEBUG_REGISTERS
72 ahd_reg_print_t ahd_hs_mailbox_print;
74 #define ahd_hs_mailbox_print(regvalue, cur_col, wrap) \
75 ahd_print_register(NULL, 0, "HS_MAILBOX", 0x0b, regvalue, cur_col, wrap)
78 #if AIC_DEBUG_REGISTERS
79 ahd_reg_print_t ahd_seqintstat_print;
81 #define ahd_seqintstat_print(regvalue, cur_col, wrap) \
82 ahd_print_register(NULL, 0, "SEQINTSTAT", 0x0c, regvalue, cur_col, wrap)
85 #if AIC_DEBUG_REGISTERS
86 ahd_reg_print_t ahd_clrseqintstat_print;
88 #define ahd_clrseqintstat_print(regvalue, cur_col, wrap) \
89 ahd_print_register(NULL, 0, "CLRSEQINTSTAT", 0x0c, regvalue, cur_col, wrap)
92 #if AIC_DEBUG_REGISTERS
93 ahd_reg_print_t ahd_swtimer_print;
95 #define ahd_swtimer_print(regvalue, cur_col, wrap) \
96 ahd_print_register(NULL, 0, "SWTIMER", 0x0e, regvalue, cur_col, wrap)
99 #if AIC_DEBUG_REGISTERS
100 ahd_reg_print_t ahd_snscb_qoff_print;
102 #define ahd_snscb_qoff_print(regvalue, cur_col, wrap) \
103 ahd_print_register(NULL, 0, "SNSCB_QOFF", 0x10, regvalue, cur_col, wrap)
106 #if AIC_DEBUG_REGISTERS
107 ahd_reg_print_t ahd_sescb_qoff_print;
109 #define ahd_sescb_qoff_print(regvalue, cur_col, wrap) \
110 ahd_print_register(NULL, 0, "SESCB_QOFF", 0x12, regvalue, cur_col, wrap)
113 #if AIC_DEBUG_REGISTERS
114 ahd_reg_print_t ahd_sdscb_qoff_print;
116 #define ahd_sdscb_qoff_print(regvalue, cur_col, wrap) \
117 ahd_print_register(NULL, 0, "SDSCB_QOFF", 0x14, regvalue, cur_col, wrap)
120 #if AIC_DEBUG_REGISTERS
121 ahd_reg_print_t ahd_qoff_ctlsta_print;
123 #define ahd_qoff_ctlsta_print(regvalue, cur_col, wrap) \
124 ahd_print_register(NULL, 0, "QOFF_CTLSTA", 0x16, regvalue, cur_col, wrap)
127 #if AIC_DEBUG_REGISTERS
128 ahd_reg_print_t ahd_intctl_print;
130 #define ahd_intctl_print(regvalue, cur_col, wrap) \
131 ahd_print_register(NULL, 0, "INTCTL", 0x18, regvalue, cur_col, wrap)
134 #if AIC_DEBUG_REGISTERS
135 ahd_reg_print_t ahd_dfcntrl_print;
137 #define ahd_dfcntrl_print(regvalue, cur_col, wrap) \
138 ahd_print_register(NULL, 0, "DFCNTRL", 0x19, regvalue, cur_col, wrap)
141 #if AIC_DEBUG_REGISTERS
142 ahd_reg_print_t ahd_dscommand0_print;
144 #define ahd_dscommand0_print(regvalue, cur_col, wrap) \
145 ahd_print_register(NULL, 0, "DSCOMMAND0", 0x19, regvalue, cur_col, wrap)
148 #if AIC_DEBUG_REGISTERS
149 ahd_reg_print_t ahd_dfstatus_print;
151 #define ahd_dfstatus_print(regvalue, cur_col, wrap) \
152 ahd_print_register(NULL, 0, "DFSTATUS", 0x1a, regvalue, cur_col, wrap)
155 #if AIC_DEBUG_REGISTERS
156 ahd_reg_print_t ahd_sg_cache_shadow_print;
158 #define ahd_sg_cache_shadow_print(regvalue, cur_col, wrap) \
159 ahd_print_register(NULL, 0, "SG_CACHE_SHADOW", 0x1b, regvalue, cur_col, wrap)
162 #if AIC_DEBUG_REGISTERS
163 ahd_reg_print_t ahd_sg_cache_pre_print;
165 #define ahd_sg_cache_pre_print(regvalue, cur_col, wrap) \
166 ahd_print_register(NULL, 0, "SG_CACHE_PRE", 0x1b, regvalue, cur_col, wrap)
169 #if AIC_DEBUG_REGISTERS
170 ahd_reg_print_t ahd_lqin_print;
172 #define ahd_lqin_print(regvalue, cur_col, wrap) \
173 ahd_print_register(NULL, 0, "LQIN", 0x20, regvalue, cur_col, wrap)
176 #if AIC_DEBUG_REGISTERS
177 ahd_reg_print_t ahd_lunptr_print;
179 #define ahd_lunptr_print(regvalue, cur_col, wrap) \
180 ahd_print_register(NULL, 0, "LUNPTR", 0x22, regvalue, cur_col, wrap)
183 #if AIC_DEBUG_REGISTERS
184 ahd_reg_print_t ahd_cmdlenptr_print;
186 #define ahd_cmdlenptr_print(regvalue, cur_col, wrap) \
187 ahd_print_register(NULL, 0, "CMDLENPTR", 0x25, regvalue, cur_col, wrap)
190 #if AIC_DEBUG_REGISTERS
191 ahd_reg_print_t ahd_attrptr_print;
193 #define ahd_attrptr_print(regvalue, cur_col, wrap) \
194 ahd_print_register(NULL, 0, "ATTRPTR", 0x26, regvalue, cur_col, wrap)
197 #if AIC_DEBUG_REGISTERS
198 ahd_reg_print_t ahd_flagptr_print;
200 #define ahd_flagptr_print(regvalue, cur_col, wrap) \
201 ahd_print_register(NULL, 0, "FLAGPTR", 0x27, regvalue, cur_col, wrap)
204 #if AIC_DEBUG_REGISTERS
205 ahd_reg_print_t ahd_cmdptr_print;
207 #define ahd_cmdptr_print(regvalue, cur_col, wrap) \
208 ahd_print_register(NULL, 0, "CMDPTR", 0x28, regvalue, cur_col, wrap)
211 #if AIC_DEBUG_REGISTERS
212 ahd_reg_print_t ahd_qnextptr_print;
214 #define ahd_qnextptr_print(regvalue, cur_col, wrap) \
215 ahd_print_register(NULL, 0, "QNEXTPTR", 0x29, regvalue, cur_col, wrap)
218 #if AIC_DEBUG_REGISTERS
219 ahd_reg_print_t ahd_abrtbyteptr_print;
221 #define ahd_abrtbyteptr_print(regvalue, cur_col, wrap) \
222 ahd_print_register(NULL, 0, "ABRTBYTEPTR", 0x2b, regvalue, cur_col, wrap)
225 #if AIC_DEBUG_REGISTERS
226 ahd_reg_print_t ahd_abrtbitptr_print;
228 #define ahd_abrtbitptr_print(regvalue, cur_col, wrap) \
229 ahd_print_register(NULL, 0, "ABRTBITPTR", 0x2c, regvalue, cur_col, wrap)
232 #if AIC_DEBUG_REGISTERS
233 ahd_reg_print_t ahd_lunlen_print;
235 #define ahd_lunlen_print(regvalue, cur_col, wrap) \
236 ahd_print_register(NULL, 0, "LUNLEN", 0x30, regvalue, cur_col, wrap)
239 #if AIC_DEBUG_REGISTERS
240 ahd_reg_print_t ahd_cdblimit_print;
242 #define ahd_cdblimit_print(regvalue, cur_col, wrap) \
243 ahd_print_register(NULL, 0, "CDBLIMIT", 0x31, regvalue, cur_col, wrap)
246 #if AIC_DEBUG_REGISTERS
247 ahd_reg_print_t ahd_maxcmd_print;
249 #define ahd_maxcmd_print(regvalue, cur_col, wrap) \
250 ahd_print_register(NULL, 0, "MAXCMD", 0x32, regvalue, cur_col, wrap)
253 #if AIC_DEBUG_REGISTERS
254 ahd_reg_print_t ahd_maxcmdcnt_print;
256 #define ahd_maxcmdcnt_print(regvalue, cur_col, wrap) \
257 ahd_print_register(NULL, 0, "MAXCMDCNT", 0x33, regvalue, cur_col, wrap)
260 #if AIC_DEBUG_REGISTERS
261 ahd_reg_print_t ahd_lqctl1_print;
263 #define ahd_lqctl1_print(regvalue, cur_col, wrap) \
264 ahd_print_register(NULL, 0, "LQCTL1", 0x38, regvalue, cur_col, wrap)
267 #if AIC_DEBUG_REGISTERS
268 ahd_reg_print_t ahd_lqctl2_print;
270 #define ahd_lqctl2_print(regvalue, cur_col, wrap) \
271 ahd_print_register(NULL, 0, "LQCTL2", 0x39, regvalue, cur_col, wrap)
274 #if AIC_DEBUG_REGISTERS
275 ahd_reg_print_t ahd_scsiseq0_print;
277 #define ahd_scsiseq0_print(regvalue, cur_col, wrap) \
278 ahd_print_register(NULL, 0, "SCSISEQ0", 0x3a, regvalue, cur_col, wrap)
281 #if AIC_DEBUG_REGISTERS
282 ahd_reg_print_t ahd_scsiseq1_print;
284 #define ahd_scsiseq1_print(regvalue, cur_col, wrap) \
285 ahd_print_register(NULL, 0, "SCSISEQ1", 0x3b, regvalue, cur_col, wrap)
288 #if AIC_DEBUG_REGISTERS
289 ahd_reg_print_t ahd_sxfrctl0_print;
291 #define ahd_sxfrctl0_print(regvalue, cur_col, wrap) \
292 ahd_print_register(NULL, 0, "SXFRCTL0", 0x3c, regvalue, cur_col, wrap)
295 #if AIC_DEBUG_REGISTERS
296 ahd_reg_print_t ahd_sxfrctl1_print;
298 #define ahd_sxfrctl1_print(regvalue, cur_col, wrap) \
299 ahd_print_register(NULL, 0, "SXFRCTL1", 0x3d, regvalue, cur_col, wrap)
302 #if AIC_DEBUG_REGISTERS
303 ahd_reg_print_t ahd_dffstat_print;
305 #define ahd_dffstat_print(regvalue, cur_col, wrap) \
306 ahd_print_register(NULL, 0, "DFFSTAT", 0x3f, regvalue, cur_col, wrap)
309 #if AIC_DEBUG_REGISTERS
310 ahd_reg_print_t ahd_multargid_print;
312 #define ahd_multargid_print(regvalue, cur_col, wrap) \
313 ahd_print_register(NULL, 0, "MULTARGID", 0x40, regvalue, cur_col, wrap)
316 #if AIC_DEBUG_REGISTERS
317 ahd_reg_print_t ahd_scsisigo_print;
319 #define ahd_scsisigo_print(regvalue, cur_col, wrap) \
320 ahd_print_register(NULL, 0, "SCSISIGO", 0x40, regvalue, cur_col, wrap)
323 #if AIC_DEBUG_REGISTERS
324 ahd_reg_print_t ahd_scsisigi_print;
326 #define ahd_scsisigi_print(regvalue, cur_col, wrap) \
327 ahd_print_register(NULL, 0, "SCSISIGI", 0x41, regvalue, cur_col, wrap)
330 #if AIC_DEBUG_REGISTERS
331 ahd_reg_print_t ahd_scsiphase_print;
333 #define ahd_scsiphase_print(regvalue, cur_col, wrap) \
334 ahd_print_register(NULL, 0, "SCSIPHASE", 0x42, regvalue, cur_col, wrap)
337 #if AIC_DEBUG_REGISTERS
338 ahd_reg_print_t ahd_scsidat_print;
340 #define ahd_scsidat_print(regvalue, cur_col, wrap) \
341 ahd_print_register(NULL, 0, "SCSIDAT", 0x44, regvalue, cur_col, wrap)
344 #if AIC_DEBUG_REGISTERS
345 ahd_reg_print_t ahd_scsibus_print;
347 #define ahd_scsibus_print(regvalue, cur_col, wrap) \
348 ahd_print_register(NULL, 0, "SCSIBUS", 0x46, regvalue, cur_col, wrap)
351 #if AIC_DEBUG_REGISTERS
352 ahd_reg_print_t ahd_targidin_print;
354 #define ahd_targidin_print(regvalue, cur_col, wrap) \
355 ahd_print_register(NULL, 0, "TARGIDIN", 0x48, regvalue, cur_col, wrap)
358 #if AIC_DEBUG_REGISTERS
359 ahd_reg_print_t ahd_selid_print;
361 #define ahd_selid_print(regvalue, cur_col, wrap) \
362 ahd_print_register(NULL, 0, "SELID", 0x49, regvalue, cur_col, wrap)
365 #if AIC_DEBUG_REGISTERS
366 ahd_reg_print_t ahd_optionmode_print;
368 #define ahd_optionmode_print(regvalue, cur_col, wrap) \
369 ahd_print_register(NULL, 0, "OPTIONMODE", 0x4a, regvalue, cur_col, wrap)
372 #if AIC_DEBUG_REGISTERS
373 ahd_reg_print_t ahd_sblkctl_print;
375 #define ahd_sblkctl_print(regvalue, cur_col, wrap) \
376 ahd_print_register(NULL, 0, "SBLKCTL", 0x4a, regvalue, cur_col, wrap)
379 #if AIC_DEBUG_REGISTERS
380 ahd_reg_print_t ahd_sstat0_print;
382 #define ahd_sstat0_print(regvalue, cur_col, wrap) \
383 ahd_print_register(NULL, 0, "SSTAT0", 0x4b, regvalue, cur_col, wrap)
386 #if AIC_DEBUG_REGISTERS
387 ahd_reg_print_t ahd_simode0_print;
389 #define ahd_simode0_print(regvalue, cur_col, wrap) \
390 ahd_print_register(NULL, 0, "SIMODE0", 0x4b, regvalue, cur_col, wrap)
393 #if AIC_DEBUG_REGISTERS
394 ahd_reg_print_t ahd_clrsint0_print;
396 #define ahd_clrsint0_print(regvalue, cur_col, wrap) \
397 ahd_print_register(NULL, 0, "CLRSINT0", 0x4b, regvalue, cur_col, wrap)
400 #if AIC_DEBUG_REGISTERS
401 ahd_reg_print_t ahd_sstat1_print;
403 #define ahd_sstat1_print(regvalue, cur_col, wrap) \
404 ahd_print_register(NULL, 0, "SSTAT1", 0x4c, regvalue, cur_col, wrap)
407 #if AIC_DEBUG_REGISTERS
408 ahd_reg_print_t ahd_clrsint1_print;
410 #define ahd_clrsint1_print(regvalue, cur_col, wrap) \
411 ahd_print_register(NULL, 0, "CLRSINT1", 0x4c, regvalue, cur_col, wrap)
414 #if AIC_DEBUG_REGISTERS
415 ahd_reg_print_t ahd_sstat2_print;
417 #define ahd_sstat2_print(regvalue, cur_col, wrap) \
418 ahd_print_register(NULL, 0, "SSTAT2", 0x4d, regvalue, cur_col, wrap)
421 #if AIC_DEBUG_REGISTERS
422 ahd_reg_print_t ahd_clrsint2_print;
424 #define ahd_clrsint2_print(regvalue, cur_col, wrap) \
425 ahd_print_register(NULL, 0, "CLRSINT2", 0x4d, regvalue, cur_col, wrap)
428 #if AIC_DEBUG_REGISTERS
429 ahd_reg_print_t ahd_perrdiag_print;
431 #define ahd_perrdiag_print(regvalue, cur_col, wrap) \
432 ahd_print_register(NULL, 0, "PERRDIAG", 0x4e, regvalue, cur_col, wrap)
435 #if AIC_DEBUG_REGISTERS
436 ahd_reg_print_t ahd_lqistate_print;
438 #define ahd_lqistate_print(regvalue, cur_col, wrap) \
439 ahd_print_register(NULL, 0, "LQISTATE", 0x4e, regvalue, cur_col, wrap)
442 #if AIC_DEBUG_REGISTERS
443 ahd_reg_print_t ahd_soffcnt_print;
445 #define ahd_soffcnt_print(regvalue, cur_col, wrap) \
446 ahd_print_register(NULL, 0, "SOFFCNT", 0x4f, regvalue, cur_col, wrap)
449 #if AIC_DEBUG_REGISTERS
450 ahd_reg_print_t ahd_lqostate_print;
452 #define ahd_lqostate_print(regvalue, cur_col, wrap) \
453 ahd_print_register(NULL, 0, "LQOSTATE", 0x4f, regvalue, cur_col, wrap)
456 #if AIC_DEBUG_REGISTERS
457 ahd_reg_print_t ahd_lqistat0_print;
459 #define ahd_lqistat0_print(regvalue, cur_col, wrap) \
460 ahd_print_register(NULL, 0, "LQISTAT0", 0x50, regvalue, cur_col, wrap)
463 #if AIC_DEBUG_REGISTERS
464 ahd_reg_print_t ahd_lqimode0_print;
466 #define ahd_lqimode0_print(regvalue, cur_col, wrap) \
467 ahd_print_register(NULL, 0, "LQIMODE0", 0x50, regvalue, cur_col, wrap)
470 #if AIC_DEBUG_REGISTERS
471 ahd_reg_print_t ahd_clrlqiint0_print;
473 #define ahd_clrlqiint0_print(regvalue, cur_col, wrap) \
474 ahd_print_register(NULL, 0, "CLRLQIINT0", 0x50, regvalue, cur_col, wrap)
477 #if AIC_DEBUG_REGISTERS
478 ahd_reg_print_t ahd_lqimode1_print;
480 #define ahd_lqimode1_print(regvalue, cur_col, wrap) \
481 ahd_print_register(NULL, 0, "LQIMODE1", 0x51, regvalue, cur_col, wrap)
484 #if AIC_DEBUG_REGISTERS
485 ahd_reg_print_t ahd_lqistat1_print;
487 #define ahd_lqistat1_print(regvalue, cur_col, wrap) \
488 ahd_print_register(NULL, 0, "LQISTAT1", 0x51, regvalue, cur_col, wrap)
491 #if AIC_DEBUG_REGISTERS
492 ahd_reg_print_t ahd_clrlqiint1_print;
494 #define ahd_clrlqiint1_print(regvalue, cur_col, wrap) \
495 ahd_print_register(NULL, 0, "CLRLQIINT1", 0x51, regvalue, cur_col, wrap)
498 #if AIC_DEBUG_REGISTERS
499 ahd_reg_print_t ahd_lqistat2_print;
501 #define ahd_lqistat2_print(regvalue, cur_col, wrap) \
502 ahd_print_register(NULL, 0, "LQISTAT2", 0x52, regvalue, cur_col, wrap)
505 #if AIC_DEBUG_REGISTERS
506 ahd_reg_print_t ahd_sstat3_print;
508 #define ahd_sstat3_print(regvalue, cur_col, wrap) \
509 ahd_print_register(NULL, 0, "SSTAT3", 0x53, regvalue, cur_col, wrap)
512 #if AIC_DEBUG_REGISTERS
513 ahd_reg_print_t ahd_simode3_print;
515 #define ahd_simode3_print(regvalue, cur_col, wrap) \
516 ahd_print_register(NULL, 0, "SIMODE3", 0x53, regvalue, cur_col, wrap)
519 #if AIC_DEBUG_REGISTERS
520 ahd_reg_print_t ahd_clrsint3_print;
522 #define ahd_clrsint3_print(regvalue, cur_col, wrap) \
523 ahd_print_register(NULL, 0, "CLRSINT3", 0x53, regvalue, cur_col, wrap)
526 #if AIC_DEBUG_REGISTERS
527 ahd_reg_print_t ahd_lqostat0_print;
529 #define ahd_lqostat0_print(regvalue, cur_col, wrap) \
530 ahd_print_register(NULL, 0, "LQOSTAT0", 0x54, regvalue, cur_col, wrap)
533 #if AIC_DEBUG_REGISTERS
534 ahd_reg_print_t ahd_clrlqoint0_print;
536 #define ahd_clrlqoint0_print(regvalue, cur_col, wrap) \
537 ahd_print_register(NULL, 0, "CLRLQOINT0", 0x54, regvalue, cur_col, wrap)
540 #if AIC_DEBUG_REGISTERS
541 ahd_reg_print_t ahd_lqomode0_print;
543 #define ahd_lqomode0_print(regvalue, cur_col, wrap) \
544 ahd_print_register(NULL, 0, "LQOMODE0", 0x54, regvalue, cur_col, wrap)
547 #if AIC_DEBUG_REGISTERS
548 ahd_reg_print_t ahd_lqomode1_print;
550 #define ahd_lqomode1_print(regvalue, cur_col, wrap) \
551 ahd_print_register(NULL, 0, "LQOMODE1", 0x55, regvalue, cur_col, wrap)
554 #if AIC_DEBUG_REGISTERS
555 ahd_reg_print_t ahd_lqostat1_print;
557 #define ahd_lqostat1_print(regvalue, cur_col, wrap) \
558 ahd_print_register(NULL, 0, "LQOSTAT1", 0x55, regvalue, cur_col, wrap)
561 #if AIC_DEBUG_REGISTERS
562 ahd_reg_print_t ahd_clrlqoint1_print;
564 #define ahd_clrlqoint1_print(regvalue, cur_col, wrap) \
565 ahd_print_register(NULL, 0, "CLRLQOINT1", 0x55, regvalue, cur_col, wrap)
568 #if AIC_DEBUG_REGISTERS
569 ahd_reg_print_t ahd_lqostat2_print;
571 #define ahd_lqostat2_print(regvalue, cur_col, wrap) \
572 ahd_print_register(NULL, 0, "LQOSTAT2", 0x56, regvalue, cur_col, wrap)
575 #if AIC_DEBUG_REGISTERS
576 ahd_reg_print_t ahd_os_space_cnt_print;
578 #define ahd_os_space_cnt_print(regvalue, cur_col, wrap) \
579 ahd_print_register(NULL, 0, "OS_SPACE_CNT", 0x56, regvalue, cur_col, wrap)
582 #if AIC_DEBUG_REGISTERS
583 ahd_reg_print_t ahd_simode1_print;
585 #define ahd_simode1_print(regvalue, cur_col, wrap) \
586 ahd_print_register(NULL, 0, "SIMODE1", 0x57, regvalue, cur_col, wrap)
589 #if AIC_DEBUG_REGISTERS
590 ahd_reg_print_t ahd_gsfifo_print;
592 #define ahd_gsfifo_print(regvalue, cur_col, wrap) \
593 ahd_print_register(NULL, 0, "GSFIFO", 0x58, regvalue, cur_col, wrap)
596 #if AIC_DEBUG_REGISTERS
597 ahd_reg_print_t ahd_dffsxfrctl_print;
599 #define ahd_dffsxfrctl_print(regvalue, cur_col, wrap) \
600 ahd_print_register(NULL, 0, "DFFSXFRCTL", 0x5a, regvalue, cur_col, wrap)
603 #if AIC_DEBUG_REGISTERS
604 ahd_reg_print_t ahd_lqoscsctl_print;
606 #define ahd_lqoscsctl_print(regvalue, cur_col, wrap) \
607 ahd_print_register(NULL, 0, "LQOSCSCTL", 0x5a, regvalue, cur_col, wrap)
610 #if AIC_DEBUG_REGISTERS
611 ahd_reg_print_t ahd_nextscb_print;
613 #define ahd_nextscb_print(regvalue, cur_col, wrap) \
614 ahd_print_register(NULL, 0, "NEXTSCB", 0x5a, regvalue, cur_col, wrap)
617 #if AIC_DEBUG_REGISTERS
618 ahd_reg_print_t ahd_clrseqintsrc_print;
620 #define ahd_clrseqintsrc_print(regvalue, cur_col, wrap) \
621 ahd_print_register(NULL, 0, "CLRSEQINTSRC", 0x5b, regvalue, cur_col, wrap)
624 #if AIC_DEBUG_REGISTERS
625 ahd_reg_print_t ahd_seqintsrc_print;
627 #define ahd_seqintsrc_print(regvalue, cur_col, wrap) \
628 ahd_print_register(NULL, 0, "SEQINTSRC", 0x5b, regvalue, cur_col, wrap)
631 #if AIC_DEBUG_REGISTERS
632 ahd_reg_print_t ahd_seqimode_print;
634 #define ahd_seqimode_print(regvalue, cur_col, wrap) \
635 ahd_print_register(NULL, 0, "SEQIMODE", 0x5c, regvalue, cur_col, wrap)
638 #if AIC_DEBUG_REGISTERS
639 ahd_reg_print_t ahd_currscb_print;
641 #define ahd_currscb_print(regvalue, cur_col, wrap) \
642 ahd_print_register(NULL, 0, "CURRSCB", 0x5c, regvalue, cur_col, wrap)
645 #if AIC_DEBUG_REGISTERS
646 ahd_reg_print_t ahd_mdffstat_print;
648 #define ahd_mdffstat_print(regvalue, cur_col, wrap) \
649 ahd_print_register(NULL, 0, "MDFFSTAT", 0x5d, regvalue, cur_col, wrap)
652 #if AIC_DEBUG_REGISTERS
653 ahd_reg_print_t ahd_lastscb_print;
655 #define ahd_lastscb_print(regvalue, cur_col, wrap) \
656 ahd_print_register(NULL, 0, "LASTSCB", 0x5e, regvalue, cur_col, wrap)
659 #if AIC_DEBUG_REGISTERS
660 ahd_reg_print_t ahd_shaddr_print;
662 #define ahd_shaddr_print(regvalue, cur_col, wrap) \
663 ahd_print_register(NULL, 0, "SHADDR", 0x60, regvalue, cur_col, wrap)
666 #if AIC_DEBUG_REGISTERS
667 ahd_reg_print_t ahd_negoaddr_print;
669 #define ahd_negoaddr_print(regvalue, cur_col, wrap) \
670 ahd_print_register(NULL, 0, "NEGOADDR", 0x60, regvalue, cur_col, wrap)
673 #if AIC_DEBUG_REGISTERS
674 ahd_reg_print_t ahd_negperiod_print;
676 #define ahd_negperiod_print(regvalue, cur_col, wrap) \
677 ahd_print_register(NULL, 0, "NEGPERIOD", 0x61, regvalue, cur_col, wrap)
680 #if AIC_DEBUG_REGISTERS
681 ahd_reg_print_t ahd_negoffset_print;
683 #define ahd_negoffset_print(regvalue, cur_col, wrap) \
684 ahd_print_register(NULL, 0, "NEGOFFSET", 0x62, regvalue, cur_col, wrap)
687 #if AIC_DEBUG_REGISTERS
688 ahd_reg_print_t ahd_negppropts_print;
690 #define ahd_negppropts_print(regvalue, cur_col, wrap) \
691 ahd_print_register(NULL, 0, "NEGPPROPTS", 0x63, regvalue, cur_col, wrap)
694 #if AIC_DEBUG_REGISTERS
695 ahd_reg_print_t ahd_negconopts_print;
697 #define ahd_negconopts_print(regvalue, cur_col, wrap) \
698 ahd_print_register(NULL, 0, "NEGCONOPTS", 0x64, regvalue, cur_col, wrap)
701 #if AIC_DEBUG_REGISTERS
702 ahd_reg_print_t ahd_annexcol_print;
704 #define ahd_annexcol_print(regvalue, cur_col, wrap) \
705 ahd_print_register(NULL, 0, "ANNEXCOL", 0x65, regvalue, cur_col, wrap)
708 #if AIC_DEBUG_REGISTERS
709 ahd_reg_print_t ahd_annexdat_print;
711 #define ahd_annexdat_print(regvalue, cur_col, wrap) \
712 ahd_print_register(NULL, 0, "ANNEXDAT", 0x66, regvalue, cur_col, wrap)
715 #if AIC_DEBUG_REGISTERS
716 ahd_reg_print_t ahd_scschkn_print;
718 #define ahd_scschkn_print(regvalue, cur_col, wrap) \
719 ahd_print_register(NULL, 0, "SCSCHKN", 0x66, regvalue, cur_col, wrap)
722 #if AIC_DEBUG_REGISTERS
723 ahd_reg_print_t ahd_iownid_print;
725 #define ahd_iownid_print(regvalue, cur_col, wrap) \
726 ahd_print_register(NULL, 0, "IOWNID", 0x67, regvalue, cur_col, wrap)
729 #if AIC_DEBUG_REGISTERS
730 ahd_reg_print_t ahd_shcnt_print;
732 #define ahd_shcnt_print(regvalue, cur_col, wrap) \
733 ahd_print_register(NULL, 0, "SHCNT", 0x68, regvalue, cur_col, wrap)
736 #if AIC_DEBUG_REGISTERS
737 ahd_reg_print_t ahd_townid_print;
739 #define ahd_townid_print(regvalue, cur_col, wrap) \
740 ahd_print_register(NULL, 0, "TOWNID", 0x69, regvalue, cur_col, wrap)
743 #if AIC_DEBUG_REGISTERS
744 ahd_reg_print_t ahd_seloid_print;
746 #define ahd_seloid_print(regvalue, cur_col, wrap) \
747 ahd_print_register(NULL, 0, "SELOID", 0x6b, regvalue, cur_col, wrap)
750 #if AIC_DEBUG_REGISTERS
751 ahd_reg_print_t ahd_haddr_print;
753 #define ahd_haddr_print(regvalue, cur_col, wrap) \
754 ahd_print_register(NULL, 0, "HADDR", 0x70, regvalue, cur_col, wrap)
757 #if AIC_DEBUG_REGISTERS
758 ahd_reg_print_t ahd_hcnt_print;
760 #define ahd_hcnt_print(regvalue, cur_col, wrap) \
761 ahd_print_register(NULL, 0, "HCNT", 0x78, regvalue, cur_col, wrap)
764 #if AIC_DEBUG_REGISTERS
765 ahd_reg_print_t ahd_sghaddr_print;
767 #define ahd_sghaddr_print(regvalue, cur_col, wrap) \
768 ahd_print_register(NULL, 0, "SGHADDR", 0x7c, regvalue, cur_col, wrap)
771 #if AIC_DEBUG_REGISTERS
772 ahd_reg_print_t ahd_scbhaddr_print;
774 #define ahd_scbhaddr_print(regvalue, cur_col, wrap) \
775 ahd_print_register(NULL, 0, "SCBHADDR", 0x7c, regvalue, cur_col, wrap)
778 #if AIC_DEBUG_REGISTERS
779 ahd_reg_print_t ahd_sghcnt_print;
781 #define ahd_sghcnt_print(regvalue, cur_col, wrap) \
782 ahd_print_register(NULL, 0, "SGHCNT", 0x84, regvalue, cur_col, wrap)
785 #if AIC_DEBUG_REGISTERS
786 ahd_reg_print_t ahd_scbhcnt_print;
788 #define ahd_scbhcnt_print(regvalue, cur_col, wrap) \
789 ahd_print_register(NULL, 0, "SCBHCNT", 0x84, regvalue, cur_col, wrap)
792 #if AIC_DEBUG_REGISTERS
793 ahd_reg_print_t ahd_dff_thrsh_print;
795 #define ahd_dff_thrsh_print(regvalue, cur_col, wrap) \
796 ahd_print_register(NULL, 0, "DFF_THRSH", 0x88, regvalue, cur_col, wrap)
799 #if AIC_DEBUG_REGISTERS
800 ahd_reg_print_t ahd_pcixctl_print;
802 #define ahd_pcixctl_print(regvalue, cur_col, wrap) \
803 ahd_print_register(NULL, 0, "PCIXCTL", 0x93, regvalue, cur_col, wrap)
806 #if AIC_DEBUG_REGISTERS
807 ahd_reg_print_t ahd_dchspltstat0_print;
809 #define ahd_dchspltstat0_print(regvalue, cur_col, wrap) \
810 ahd_print_register(NULL, 0, "DCHSPLTSTAT0", 0x96, regvalue, cur_col, wrap)
813 #if AIC_DEBUG_REGISTERS
814 ahd_reg_print_t ahd_dchspltstat1_print;
816 #define ahd_dchspltstat1_print(regvalue, cur_col, wrap) \
817 ahd_print_register(NULL, 0, "DCHSPLTSTAT1", 0x97, regvalue, cur_col, wrap)
820 #if AIC_DEBUG_REGISTERS
821 ahd_reg_print_t ahd_sgspltstat0_print;
823 #define ahd_sgspltstat0_print(regvalue, cur_col, wrap) \
824 ahd_print_register(NULL, 0, "SGSPLTSTAT0", 0x9e, regvalue, cur_col, wrap)
827 #if AIC_DEBUG_REGISTERS
828 ahd_reg_print_t ahd_sgspltstat1_print;
830 #define ahd_sgspltstat1_print(regvalue, cur_col, wrap) \
831 ahd_print_register(NULL, 0, "SGSPLTSTAT1", 0x9f, regvalue, cur_col, wrap)
834 #if AIC_DEBUG_REGISTERS
835 ahd_reg_print_t ahd_df0pcistat_print;
837 #define ahd_df0pcistat_print(regvalue, cur_col, wrap) \
838 ahd_print_register(NULL, 0, "DF0PCISTAT", 0xa0, regvalue, cur_col, wrap)
841 #if AIC_DEBUG_REGISTERS
842 ahd_reg_print_t ahd_reg0_print;
844 #define ahd_reg0_print(regvalue, cur_col, wrap) \
845 ahd_print_register(NULL, 0, "REG0", 0xa0, regvalue, cur_col, wrap)
848 #if AIC_DEBUG_REGISTERS
849 ahd_reg_print_t ahd_reg_isr_print;
851 #define ahd_reg_isr_print(regvalue, cur_col, wrap) \
852 ahd_print_register(NULL, 0, "REG_ISR", 0xa4, regvalue, cur_col, wrap)
855 #if AIC_DEBUG_REGISTERS
856 ahd_reg_print_t ahd_sg_state_print;
858 #define ahd_sg_state_print(regvalue, cur_col, wrap) \
859 ahd_print_register(NULL, 0, "SG_STATE", 0xa6, regvalue, cur_col, wrap)
862 #if AIC_DEBUG_REGISTERS
863 ahd_reg_print_t ahd_targpcistat_print;
865 #define ahd_targpcistat_print(regvalue, cur_col, wrap) \
866 ahd_print_register(NULL, 0, "TARGPCISTAT", 0xa7, regvalue, cur_col, wrap)
869 #if AIC_DEBUG_REGISTERS
870 ahd_reg_print_t ahd_scbptr_print;
872 #define ahd_scbptr_print(regvalue, cur_col, wrap) \
873 ahd_print_register(NULL, 0, "SCBPTR", 0xa8, regvalue, cur_col, wrap)
876 #if AIC_DEBUG_REGISTERS
877 ahd_reg_print_t ahd_scbautoptr_print;
879 #define ahd_scbautoptr_print(regvalue, cur_col, wrap) \
880 ahd_print_register(NULL, 0, "SCBAUTOPTR", 0xab, regvalue, cur_col, wrap)
883 #if AIC_DEBUG_REGISTERS
884 ahd_reg_print_t ahd_ccsgaddr_print;
886 #define ahd_ccsgaddr_print(regvalue, cur_col, wrap) \
887 ahd_print_register(NULL, 0, "CCSGADDR", 0xac, regvalue, cur_col, wrap)
890 #if AIC_DEBUG_REGISTERS
891 ahd_reg_print_t ahd_ccscbaddr_print;
893 #define ahd_ccscbaddr_print(regvalue, cur_col, wrap) \
894 ahd_print_register(NULL, 0, "CCSCBADDR", 0xac, regvalue, cur_col, wrap)
897 #if AIC_DEBUG_REGISTERS
898 ahd_reg_print_t ahd_ccscbctl_print;
900 #define ahd_ccscbctl_print(regvalue, cur_col, wrap) \
901 ahd_print_register(NULL, 0, "CCSCBCTL", 0xad, regvalue, cur_col, wrap)
904 #if AIC_DEBUG_REGISTERS
905 ahd_reg_print_t ahd_ccsgctl_print;
907 #define ahd_ccsgctl_print(regvalue, cur_col, wrap) \
908 ahd_print_register(NULL, 0, "CCSGCTL", 0xad, regvalue, cur_col, wrap)
911 #if AIC_DEBUG_REGISTERS
912 ahd_reg_print_t ahd_ccsgram_print;
914 #define ahd_ccsgram_print(regvalue, cur_col, wrap) \
915 ahd_print_register(NULL, 0, "CCSGRAM", 0xb0, regvalue, cur_col, wrap)
918 #if AIC_DEBUG_REGISTERS
919 ahd_reg_print_t ahd_ccscbram_print;
921 #define ahd_ccscbram_print(regvalue, cur_col, wrap) \
922 ahd_print_register(NULL, 0, "CCSCBRAM", 0xb0, regvalue, cur_col, wrap)
925 #if AIC_DEBUG_REGISTERS
926 ahd_reg_print_t ahd_brddat_print;
928 #define ahd_brddat_print(regvalue, cur_col, wrap) \
929 ahd_print_register(NULL, 0, "BRDDAT", 0xb8, regvalue, cur_col, wrap)
932 #if AIC_DEBUG_REGISTERS
933 ahd_reg_print_t ahd_brdctl_print;
935 #define ahd_brdctl_print(regvalue, cur_col, wrap) \
936 ahd_print_register(NULL, 0, "BRDCTL", 0xb9, regvalue, cur_col, wrap)
939 #if AIC_DEBUG_REGISTERS
940 ahd_reg_print_t ahd_seeadr_print;
942 #define ahd_seeadr_print(regvalue, cur_col, wrap) \
943 ahd_print_register(NULL, 0, "SEEADR", 0xba, regvalue, cur_col, wrap)
946 #if AIC_DEBUG_REGISTERS
947 ahd_reg_print_t ahd_seedat_print;
949 #define ahd_seedat_print(regvalue, cur_col, wrap) \
950 ahd_print_register(NULL, 0, "SEEDAT", 0xbc, regvalue, cur_col, wrap)
953 #if AIC_DEBUG_REGISTERS
954 ahd_reg_print_t ahd_seectl_print;
956 #define ahd_seectl_print(regvalue, cur_col, wrap) \
957 ahd_print_register(NULL, 0, "SEECTL", 0xbe, regvalue, cur_col, wrap)
960 #if AIC_DEBUG_REGISTERS
961 ahd_reg_print_t ahd_seestat_print;
963 #define ahd_seestat_print(regvalue, cur_col, wrap) \
964 ahd_print_register(NULL, 0, "SEESTAT", 0xbe, regvalue, cur_col, wrap)
967 #if AIC_DEBUG_REGISTERS
968 ahd_reg_print_t ahd_dspdatactl_print;
970 #define ahd_dspdatactl_print(regvalue, cur_col, wrap) \
971 ahd_print_register(NULL, 0, "DSPDATACTL", 0xc1, regvalue, cur_col, wrap)
974 #if AIC_DEBUG_REGISTERS
975 ahd_reg_print_t ahd_dfdat_print;
977 #define ahd_dfdat_print(regvalue, cur_col, wrap) \
978 ahd_print_register(NULL, 0, "DFDAT", 0xc4, regvalue, cur_col, wrap)
981 #if AIC_DEBUG_REGISTERS
982 ahd_reg_print_t ahd_dspselect_print;
984 #define ahd_dspselect_print(regvalue, cur_col, wrap) \
985 ahd_print_register(NULL, 0, "DSPSELECT", 0xc4, regvalue, cur_col, wrap)
988 #if AIC_DEBUG_REGISTERS
989 ahd_reg_print_t ahd_wrtbiasctl_print;
991 #define ahd_wrtbiasctl_print(regvalue, cur_col, wrap) \
992 ahd_print_register(NULL, 0, "WRTBIASCTL", 0xc5, regvalue, cur_col, wrap)
995 #if AIC_DEBUG_REGISTERS
996 ahd_reg_print_t ahd_seqctl0_print;
998 #define ahd_seqctl0_print(regvalue, cur_col, wrap) \
999 ahd_print_register(NULL, 0, "SEQCTL0", 0xd6, regvalue, cur_col, wrap)
1002 #if AIC_DEBUG_REGISTERS
1003 ahd_reg_print_t ahd_flags_print;
1005 #define ahd_flags_print(regvalue, cur_col, wrap) \
1006 ahd_print_register(NULL, 0, "FLAGS", 0xd8, regvalue, cur_col, wrap)
1009 #if AIC_DEBUG_REGISTERS
1010 ahd_reg_print_t ahd_seqintctl_print;
1012 #define ahd_seqintctl_print(regvalue, cur_col, wrap) \
1013 ahd_print_register(NULL, 0, "SEQINTCTL", 0xd9, regvalue, cur_col, wrap)
1016 #if AIC_DEBUG_REGISTERS
1017 ahd_reg_print_t ahd_seqram_print;
1019 #define ahd_seqram_print(regvalue, cur_col, wrap) \
1020 ahd_print_register(NULL, 0, "SEQRAM", 0xda, regvalue, cur_col, wrap)
1023 #if AIC_DEBUG_REGISTERS
1024 ahd_reg_print_t ahd_prgmcnt_print;
1026 #define ahd_prgmcnt_print(regvalue, cur_col, wrap) \
1027 ahd_print_register(NULL, 0, "PRGMCNT", 0xde, regvalue, cur_col, wrap)
1030 #if AIC_DEBUG_REGISTERS
1031 ahd_reg_print_t ahd_accum_print;
1033 #define ahd_accum_print(regvalue, cur_col, wrap) \
1034 ahd_print_register(NULL, 0, "ACCUM", 0xe0, regvalue, cur_col, wrap)
1037 #if AIC_DEBUG_REGISTERS
1038 ahd_reg_print_t ahd_sindex_print;
1040 #define ahd_sindex_print(regvalue, cur_col, wrap) \
1041 ahd_print_register(NULL, 0, "SINDEX", 0xe2, regvalue, cur_col, wrap)
1044 #if AIC_DEBUG_REGISTERS
1045 ahd_reg_print_t ahd_dindex_print;
1047 #define ahd_dindex_print(regvalue, cur_col, wrap) \
1048 ahd_print_register(NULL, 0, "DINDEX", 0xe4, regvalue, cur_col, wrap)
1051 #if AIC_DEBUG_REGISTERS
1052 ahd_reg_print_t ahd_allones_print;
1054 #define ahd_allones_print(regvalue, cur_col, wrap) \
1055 ahd_print_register(NULL, 0, "ALLONES", 0xe8, regvalue, cur_col, wrap)
1058 #if AIC_DEBUG_REGISTERS
1059 ahd_reg_print_t ahd_allzeros_print;
1061 #define ahd_allzeros_print(regvalue, cur_col, wrap) \
1062 ahd_print_register(NULL, 0, "ALLZEROS", 0xea, regvalue, cur_col, wrap)
1065 #if AIC_DEBUG_REGISTERS
1066 ahd_reg_print_t ahd_none_print;
1068 #define ahd_none_print(regvalue, cur_col, wrap) \
1069 ahd_print_register(NULL, 0, "NONE", 0xea, regvalue, cur_col, wrap)
1072 #if AIC_DEBUG_REGISTERS
1073 ahd_reg_print_t ahd_sindir_print;
1075 #define ahd_sindir_print(regvalue, cur_col, wrap) \
1076 ahd_print_register(NULL, 0, "SINDIR", 0xec, regvalue, cur_col, wrap)
1079 #if AIC_DEBUG_REGISTERS
1080 ahd_reg_print_t ahd_dindir_print;
1082 #define ahd_dindir_print(regvalue, cur_col, wrap) \
1083 ahd_print_register(NULL, 0, "DINDIR", 0xed, regvalue, cur_col, wrap)
1086 #if AIC_DEBUG_REGISTERS
1087 ahd_reg_print_t ahd_stack_print;
1089 #define ahd_stack_print(regvalue, cur_col, wrap) \
1090 ahd_print_register(NULL, 0, "STACK", 0xf2, regvalue, cur_col, wrap)
1093 #if AIC_DEBUG_REGISTERS
1094 ahd_reg_print_t ahd_intvec1_addr_print;
1096 #define ahd_intvec1_addr_print(regvalue, cur_col, wrap) \
1097 ahd_print_register(NULL, 0, "INTVEC1_ADDR", 0xf4, regvalue, cur_col, wrap)
1100 #if AIC_DEBUG_REGISTERS
1101 ahd_reg_print_t ahd_curaddr_print;
1103 #define ahd_curaddr_print(regvalue, cur_col, wrap) \
1104 ahd_print_register(NULL, 0, "CURADDR", 0xf4, regvalue, cur_col, wrap)
1107 #if AIC_DEBUG_REGISTERS
1108 ahd_reg_print_t ahd_intvec2_addr_print;
1110 #define ahd_intvec2_addr_print(regvalue, cur_col, wrap) \
1111 ahd_print_register(NULL, 0, "INTVEC2_ADDR", 0xf6, regvalue, cur_col, wrap)
1114 #if AIC_DEBUG_REGISTERS
1115 ahd_reg_print_t ahd_longjmp_addr_print;
1117 #define ahd_longjmp_addr_print(regvalue, cur_col, wrap) \
1118 ahd_print_register(NULL, 0, "LONGJMP_ADDR", 0xf8, regvalue, cur_col, wrap)
1121 #if AIC_DEBUG_REGISTERS
1122 ahd_reg_print_t ahd_accum_save_print;
1124 #define ahd_accum_save_print(regvalue, cur_col, wrap) \
1125 ahd_print_register(NULL, 0, "ACCUM_SAVE", 0xfa, regvalue, cur_col, wrap)
1128 #if AIC_DEBUG_REGISTERS
1129 ahd_reg_print_t ahd_sram_base_print;
1131 #define ahd_sram_base_print(regvalue, cur_col, wrap) \
1132 ahd_print_register(NULL, 0, "SRAM_BASE", 0x100, regvalue, cur_col, wrap)
1135 #if AIC_DEBUG_REGISTERS
1136 ahd_reg_print_t ahd_waiting_scb_tails_print;
1138 #define ahd_waiting_scb_tails_print(regvalue, cur_col, wrap) \
1139 ahd_print_register(NULL, 0, "WAITING_SCB_TAILS", 0x100, regvalue, cur_col, wrap)
1142 #if AIC_DEBUG_REGISTERS
1143 ahd_reg_print_t ahd_waiting_tid_head_print;
1145 #define ahd_waiting_tid_head_print(regvalue, cur_col, wrap) \
1146 ahd_print_register(NULL, 0, "WAITING_TID_HEAD", 0x120, regvalue, cur_col, wrap)
1149 #if AIC_DEBUG_REGISTERS
1150 ahd_reg_print_t ahd_waiting_tid_tail_print;
1152 #define ahd_waiting_tid_tail_print(regvalue, cur_col, wrap) \
1153 ahd_print_register(NULL, 0, "WAITING_TID_TAIL", 0x122, regvalue, cur_col, wrap)
1156 #if AIC_DEBUG_REGISTERS
1157 ahd_reg_print_t ahd_next_queued_scb_addr_print;
1159 #define ahd_next_queued_scb_addr_print(regvalue, cur_col, wrap) \
1160 ahd_print_register(NULL, 0, "NEXT_QUEUED_SCB_ADDR", 0x124, regvalue, cur_col, wrap)
1163 #if AIC_DEBUG_REGISTERS
1164 ahd_reg_print_t ahd_complete_scb_head_print;
1166 #define ahd_complete_scb_head_print(regvalue, cur_col, wrap) \
1167 ahd_print_register(NULL, 0, "COMPLETE_SCB_HEAD", 0x128, regvalue, cur_col, wrap)
1170 #if AIC_DEBUG_REGISTERS
1171 ahd_reg_print_t ahd_complete_scb_dmainprog_head_print;
1173 #define ahd_complete_scb_dmainprog_head_print(regvalue, cur_col, wrap) \
1174 ahd_print_register(NULL, 0, "COMPLETE_SCB_DMAINPROG_HEAD", 0x12a, regvalue, cur_col, wrap)
1177 #if AIC_DEBUG_REGISTERS
1178 ahd_reg_print_t ahd_complete_dma_scb_head_print;
1180 #define ahd_complete_dma_scb_head_print(regvalue, cur_col, wrap) \
1181 ahd_print_register(NULL, 0, "COMPLETE_DMA_SCB_HEAD", 0x12c, regvalue, cur_col, wrap)
1184 #if AIC_DEBUG_REGISTERS
1185 ahd_reg_print_t ahd_complete_dma_scb_tail_print;
1187 #define ahd_complete_dma_scb_tail_print(regvalue, cur_col, wrap) \
1188 ahd_print_register(NULL, 0, "COMPLETE_DMA_SCB_TAIL", 0x12e, regvalue, cur_col, wrap)
1191 #if AIC_DEBUG_REGISTERS
1192 ahd_reg_print_t ahd_complete_on_qfreeze_head_print;
1194 #define ahd_complete_on_qfreeze_head_print(regvalue, cur_col, wrap) \
1195 ahd_print_register(NULL, 0, "COMPLETE_ON_QFREEZE_HEAD", 0x130, regvalue, cur_col, wrap)
1198 #if AIC_DEBUG_REGISTERS
1199 ahd_reg_print_t ahd_qfreeze_count_print;
1201 #define ahd_qfreeze_count_print(regvalue, cur_col, wrap) \
1202 ahd_print_register(NULL, 0, "QFREEZE_COUNT", 0x132, regvalue, cur_col, wrap)
1205 #if AIC_DEBUG_REGISTERS
1206 ahd_reg_print_t ahd_kernel_qfreeze_count_print;
1208 #define ahd_kernel_qfreeze_count_print(regvalue, cur_col, wrap) \
1209 ahd_print_register(NULL, 0, "KERNEL_QFREEZE_COUNT", 0x134, regvalue, cur_col, wrap)
1212 #if AIC_DEBUG_REGISTERS
1213 ahd_reg_print_t ahd_saved_mode_print;
1215 #define ahd_saved_mode_print(regvalue, cur_col, wrap) \
1216 ahd_print_register(NULL, 0, "SAVED_MODE", 0x136, regvalue, cur_col, wrap)
1219 #if AIC_DEBUG_REGISTERS
1220 ahd_reg_print_t ahd_msg_out_print;
1222 #define ahd_msg_out_print(regvalue, cur_col, wrap) \
1223 ahd_print_register(NULL, 0, "MSG_OUT", 0x137, regvalue, cur_col, wrap)
1226 #if AIC_DEBUG_REGISTERS
1227 ahd_reg_print_t ahd_dmaparams_print;
1229 #define ahd_dmaparams_print(regvalue, cur_col, wrap) \
1230 ahd_print_register(NULL, 0, "DMAPARAMS", 0x138, regvalue, cur_col, wrap)
1233 #if AIC_DEBUG_REGISTERS
1234 ahd_reg_print_t ahd_seq_flags_print;
1236 #define ahd_seq_flags_print(regvalue, cur_col, wrap) \
1237 ahd_print_register(NULL, 0, "SEQ_FLAGS", 0x139, regvalue, cur_col, wrap)
1240 #if AIC_DEBUG_REGISTERS
1241 ahd_reg_print_t ahd_saved_scsiid_print;
1243 #define ahd_saved_scsiid_print(regvalue, cur_col, wrap) \
1244 ahd_print_register(NULL, 0, "SAVED_SCSIID", 0x13a, regvalue, cur_col, wrap)
1247 #if AIC_DEBUG_REGISTERS
1248 ahd_reg_print_t ahd_saved_lun_print;
1250 #define ahd_saved_lun_print(regvalue, cur_col, wrap) \
1251 ahd_print_register(NULL, 0, "SAVED_LUN", 0x13b, regvalue, cur_col, wrap)
1254 #if AIC_DEBUG_REGISTERS
1255 ahd_reg_print_t ahd_lastphase_print;
1257 #define ahd_lastphase_print(regvalue, cur_col, wrap) \
1258 ahd_print_register(NULL, 0, "LASTPHASE", 0x13c, regvalue, cur_col, wrap)
1261 #if AIC_DEBUG_REGISTERS
1262 ahd_reg_print_t ahd_qoutfifo_entry_valid_tag_print;
1264 #define ahd_qoutfifo_entry_valid_tag_print(regvalue, cur_col, wrap) \
1265 ahd_print_register(NULL, 0, "QOUTFIFO_ENTRY_VALID_TAG", 0x13d, regvalue, cur_col, wrap)
1268 #if AIC_DEBUG_REGISTERS
1269 ahd_reg_print_t ahd_kernel_tqinpos_print;
1271 #define ahd_kernel_tqinpos_print(regvalue, cur_col, wrap) \
1272 ahd_print_register(NULL, 0, "KERNEL_TQINPOS", 0x13e, regvalue, cur_col, wrap)
1275 #if AIC_DEBUG_REGISTERS
1276 ahd_reg_print_t ahd_tqinpos_print;
1278 #define ahd_tqinpos_print(regvalue, cur_col, wrap) \
1279 ahd_print_register(NULL, 0, "TQINPOS", 0x13f, regvalue, cur_col, wrap)
1282 #if AIC_DEBUG_REGISTERS
1283 ahd_reg_print_t ahd_shared_data_addr_print;
1285 #define ahd_shared_data_addr_print(regvalue, cur_col, wrap) \
1286 ahd_print_register(NULL, 0, "SHARED_DATA_ADDR", 0x140, regvalue, cur_col, wrap)
1289 #if AIC_DEBUG_REGISTERS
1290 ahd_reg_print_t ahd_qoutfifo_next_addr_print;
1292 #define ahd_qoutfifo_next_addr_print(regvalue, cur_col, wrap) \
1293 ahd_print_register(NULL, 0, "QOUTFIFO_NEXT_ADDR", 0x144, regvalue, cur_col, wrap)
1296 #if AIC_DEBUG_REGISTERS
1297 ahd_reg_print_t ahd_arg_1_print;
1299 #define ahd_arg_1_print(regvalue, cur_col, wrap) \
1300 ahd_print_register(NULL, 0, "ARG_1", 0x148, regvalue, cur_col, wrap)
1303 #if AIC_DEBUG_REGISTERS
1304 ahd_reg_print_t ahd_arg_2_print;
1306 #define ahd_arg_2_print(regvalue, cur_col, wrap) \
1307 ahd_print_register(NULL, 0, "ARG_2", 0x149, regvalue, cur_col, wrap)
1310 #if AIC_DEBUG_REGISTERS
1311 ahd_reg_print_t ahd_last_msg_print;
1313 #define ahd_last_msg_print(regvalue, cur_col, wrap) \
1314 ahd_print_register(NULL, 0, "LAST_MSG", 0x14a, regvalue, cur_col, wrap)
1317 #if AIC_DEBUG_REGISTERS
1318 ahd_reg_print_t ahd_scsiseq_template_print;
1320 #define ahd_scsiseq_template_print(regvalue, cur_col, wrap) \
1321 ahd_print_register(NULL, 0, "SCSISEQ_TEMPLATE", 0x14b, regvalue, cur_col, wrap)
1324 #if AIC_DEBUG_REGISTERS
1325 ahd_reg_print_t ahd_initiator_tag_print;
1327 #define ahd_initiator_tag_print(regvalue, cur_col, wrap) \
1328 ahd_print_register(NULL, 0, "INITIATOR_TAG", 0x14c, regvalue, cur_col, wrap)
1331 #if AIC_DEBUG_REGISTERS
1332 ahd_reg_print_t ahd_seq_flags2_print;
1334 #define ahd_seq_flags2_print(regvalue, cur_col, wrap) \
1335 ahd_print_register(NULL, 0, "SEQ_FLAGS2", 0x14d, regvalue, cur_col, wrap)
1338 #if AIC_DEBUG_REGISTERS
1339 ahd_reg_print_t ahd_allocfifo_scbptr_print;
1341 #define ahd_allocfifo_scbptr_print(regvalue, cur_col, wrap) \
1342 ahd_print_register(NULL, 0, "ALLOCFIFO_SCBPTR", 0x14e, regvalue, cur_col, wrap)
1345 #if AIC_DEBUG_REGISTERS
1346 ahd_reg_print_t ahd_int_coalescing_timer_print;
1348 #define ahd_int_coalescing_timer_print(regvalue, cur_col, wrap) \
1349 ahd_print_register(NULL, 0, "INT_COALESCING_TIMER", 0x150, regvalue, cur_col, wrap)
1352 #if AIC_DEBUG_REGISTERS
1353 ahd_reg_print_t ahd_int_coalescing_maxcmds_print;
1355 #define ahd_int_coalescing_maxcmds_print(regvalue, cur_col, wrap) \
1356 ahd_print_register(NULL, 0, "INT_COALESCING_MAXCMDS", 0x152, regvalue, cur_col, wrap)
1359 #if AIC_DEBUG_REGISTERS
1360 ahd_reg_print_t ahd_int_coalescing_mincmds_print;
1362 #define ahd_int_coalescing_mincmds_print(regvalue, cur_col, wrap) \
1363 ahd_print_register(NULL, 0, "INT_COALESCING_MINCMDS", 0x153, regvalue, cur_col, wrap)
1366 #if AIC_DEBUG_REGISTERS
1367 ahd_reg_print_t ahd_cmds_pending_print;
1369 #define ahd_cmds_pending_print(regvalue, cur_col, wrap) \
1370 ahd_print_register(NULL, 0, "CMDS_PENDING", 0x154, regvalue, cur_col, wrap)
1373 #if AIC_DEBUG_REGISTERS
1374 ahd_reg_print_t ahd_int_coalescing_cmdcount_print;
1376 #define ahd_int_coalescing_cmdcount_print(regvalue, cur_col, wrap) \
1377 ahd_print_register(NULL, 0, "INT_COALESCING_CMDCOUNT", 0x156, regvalue, cur_col, wrap)
1380 #if AIC_DEBUG_REGISTERS
1381 ahd_reg_print_t ahd_local_hs_mailbox_print;
1383 #define ahd_local_hs_mailbox_print(regvalue, cur_col, wrap) \
1384 ahd_print_register(NULL, 0, "LOCAL_HS_MAILBOX", 0x157, regvalue, cur_col, wrap)
1387 #if AIC_DEBUG_REGISTERS
1388 ahd_reg_print_t ahd_cmdsize_table_print;
1390 #define ahd_cmdsize_table_print(regvalue, cur_col, wrap) \
1391 ahd_print_register(NULL, 0, "CMDSIZE_TABLE", 0x158, regvalue, cur_col, wrap)
1394 #if AIC_DEBUG_REGISTERS
1395 ahd_reg_print_t ahd_mk_message_scb_print;
1397 #define ahd_mk_message_scb_print(regvalue, cur_col, wrap) \
1398 ahd_print_register(NULL, 0, "MK_MESSAGE_SCB", 0x160, regvalue, cur_col, wrap)
1401 #if AIC_DEBUG_REGISTERS
1402 ahd_reg_print_t ahd_mk_message_scsiid_print;
1404 #define ahd_mk_message_scsiid_print(regvalue, cur_col, wrap) \
1405 ahd_print_register(NULL, 0, "MK_MESSAGE_SCSIID", 0x162, regvalue, cur_col, wrap)
1408 #if AIC_DEBUG_REGISTERS
1409 ahd_reg_print_t ahd_scb_residual_datacnt_print;
1411 #define ahd_scb_residual_datacnt_print(regvalue, cur_col, wrap) \
1412 ahd_print_register(NULL, 0, "SCB_RESIDUAL_DATACNT", 0x180, regvalue, cur_col, wrap)
1415 #if AIC_DEBUG_REGISTERS
1416 ahd_reg_print_t ahd_scb_base_print;
1418 #define ahd_scb_base_print(regvalue, cur_col, wrap) \
1419 ahd_print_register(NULL, 0, "SCB_BASE", 0x180, regvalue, cur_col, wrap)
1422 #if AIC_DEBUG_REGISTERS
1423 ahd_reg_print_t ahd_scb_residual_sgptr_print;
1425 #define ahd_scb_residual_sgptr_print(regvalue, cur_col, wrap) \
1426 ahd_print_register(NULL, 0, "SCB_RESIDUAL_SGPTR", 0x184, regvalue, cur_col, wrap)
1429 #if AIC_DEBUG_REGISTERS
1430 ahd_reg_print_t ahd_scb_scsi_status_print;
1432 #define ahd_scb_scsi_status_print(regvalue, cur_col, wrap) \
1433 ahd_print_register(NULL, 0, "SCB_SCSI_STATUS", 0x188, regvalue, cur_col, wrap)
1436 #if AIC_DEBUG_REGISTERS
1437 ahd_reg_print_t ahd_scb_sense_busaddr_print;
1439 #define ahd_scb_sense_busaddr_print(regvalue, cur_col, wrap) \
1440 ahd_print_register(NULL, 0, "SCB_SENSE_BUSADDR", 0x18c, regvalue, cur_col, wrap)
1443 #if AIC_DEBUG_REGISTERS
1444 ahd_reg_print_t ahd_scb_tag_print;
1446 #define ahd_scb_tag_print(regvalue, cur_col, wrap) \
1447 ahd_print_register(NULL, 0, "SCB_TAG", 0x190, regvalue, cur_col, wrap)
1450 #if AIC_DEBUG_REGISTERS
1451 ahd_reg_print_t ahd_scb_control_print;
1453 #define ahd_scb_control_print(regvalue, cur_col, wrap) \
1454 ahd_print_register(NULL, 0, "SCB_CONTROL", 0x192, regvalue, cur_col, wrap)
1457 #if AIC_DEBUG_REGISTERS
1458 ahd_reg_print_t ahd_scb_scsiid_print;
1460 #define ahd_scb_scsiid_print(regvalue, cur_col, wrap) \
1461 ahd_print_register(NULL, 0, "SCB_SCSIID", 0x193, regvalue, cur_col, wrap)
1464 #if AIC_DEBUG_REGISTERS
1465 ahd_reg_print_t ahd_scb_lun_print;
1467 #define ahd_scb_lun_print(regvalue, cur_col, wrap) \
1468 ahd_print_register(NULL, 0, "SCB_LUN", 0x194, regvalue, cur_col, wrap)
1471 #if AIC_DEBUG_REGISTERS
1472 ahd_reg_print_t ahd_scb_task_attribute_print;
1474 #define ahd_scb_task_attribute_print(regvalue, cur_col, wrap) \
1475 ahd_print_register(NULL, 0, "SCB_TASK_ATTRIBUTE", 0x195, regvalue, cur_col, wrap)
1478 #if AIC_DEBUG_REGISTERS
1479 ahd_reg_print_t ahd_scb_cdb_len_print;
1481 #define ahd_scb_cdb_len_print(regvalue, cur_col, wrap) \
1482 ahd_print_register(NULL, 0, "SCB_CDB_LEN", 0x196, regvalue, cur_col, wrap)
1485 #if AIC_DEBUG_REGISTERS
1486 ahd_reg_print_t ahd_scb_task_management_print;
1488 #define ahd_scb_task_management_print(regvalue, cur_col, wrap) \
1489 ahd_print_register(NULL, 0, "SCB_TASK_MANAGEMENT", 0x197, regvalue, cur_col, wrap)
1492 #if AIC_DEBUG_REGISTERS
1493 ahd_reg_print_t ahd_scb_dataptr_print;
1495 #define ahd_scb_dataptr_print(regvalue, cur_col, wrap) \
1496 ahd_print_register(NULL, 0, "SCB_DATAPTR", 0x198, regvalue, cur_col, wrap)
1499 #if AIC_DEBUG_REGISTERS
1500 ahd_reg_print_t ahd_scb_datacnt_print;
1502 #define ahd_scb_datacnt_print(regvalue, cur_col, wrap) \
1503 ahd_print_register(NULL, 0, "SCB_DATACNT", 0x1a0, regvalue, cur_col, wrap)
1506 #if AIC_DEBUG_REGISTERS
1507 ahd_reg_print_t ahd_scb_sgptr_print;
1509 #define ahd_scb_sgptr_print(regvalue, cur_col, wrap) \
1510 ahd_print_register(NULL, 0, "SCB_SGPTR", 0x1a4, regvalue, cur_col, wrap)
1513 #if AIC_DEBUG_REGISTERS
1514 ahd_reg_print_t ahd_scb_busaddr_print;
1516 #define ahd_scb_busaddr_print(regvalue, cur_col, wrap) \
1517 ahd_print_register(NULL, 0, "SCB_BUSADDR", 0x1a8, regvalue, cur_col, wrap)
1520 #if AIC_DEBUG_REGISTERS
1521 ahd_reg_print_t ahd_scb_next_print;
1523 #define ahd_scb_next_print(regvalue, cur_col, wrap) \
1524 ahd_print_register(NULL, 0, "SCB_NEXT", 0x1ac, regvalue, cur_col, wrap)
1527 #if AIC_DEBUG_REGISTERS
1528 ahd_reg_print_t ahd_scb_next2_print;
1530 #define ahd_scb_next2_print(regvalue, cur_col, wrap) \
1531 ahd_print_register(NULL, 0, "SCB_NEXT2", 0x1ae, regvalue, cur_col, wrap)
1534 #if AIC_DEBUG_REGISTERS
1535 ahd_reg_print_t ahd_scb_disconnected_lists_print;
1537 #define ahd_scb_disconnected_lists_print(regvalue, cur_col, wrap) \
1538 ahd_print_register(NULL, 0, "SCB_DISCONNECTED_LISTS", 0x1b8, regvalue, cur_col, wrap)
1542 #define MODE_PTR 0x00
1543 #define DST_MODE 0x70
1544 #define SRC_MODE 0x07
1546 #define INTSTAT 0x01
1547 #define INT_PEND 0xff
1548 #define HWERRINT 0x80
1549 #define BRKADRINT 0x40
1550 #define SWTMINT 0x20
1552 #define SCSIINT 0x08
1554 #define CMDCMPLT 0x02
1555 #define SPLTINT 0x01
1557 #define SEQINTCODE 0x02
1558 #define BAD_SCB_STATUS 0x1a
1559 #define SAW_HWERR 0x19
1560 #define TRACEPOINT3 0x18
1561 #define TRACEPOINT2 0x17
1562 #define TRACEPOINT1 0x16
1563 #define TRACEPOINT0 0x15
1564 #define TASKMGMT_CMD_CMPLT_OKAY 0x14
1565 #define TASKMGMT_FUNC_COMPLETE 0x13
1566 #define ENTERING_NONPACK 0x12
1567 #define CFG4OVERRUN 0x11
1568 #define STATUS_OVERRUN 0x10
1569 #define CFG4ISTAT_INTR 0x0f
1570 #define INVALID_SEQINT 0x0e
1571 #define ILLEGAL_PHASE 0x0d
1572 #define DUMP_CARD_STATE 0x0c
1573 #define MISSED_BUSFREE 0x0b
1574 #define MKMSG_FAILED 0x0a
1575 #define DATA_OVERRUN 0x09
1576 #define BAD_STATUS 0x08
1577 #define HOST_MSG_LOOP 0x07
1578 #define PDATA_REINIT 0x06
1579 #define IGN_WIDE_RES 0x05
1580 #define NO_MATCH 0x04
1581 #define PROTO_VIOLATION 0x03
1582 #define SEND_REJECT 0x02
1583 #define BAD_PHASE 0x01
1584 #define NO_SEQINT 0x00
1587 #define CLRHWERRINT 0x80
1588 #define CLRBRKADRINT 0x40
1589 #define CLRSWTMINT 0x20
1590 #define CLRPCIINT 0x10
1591 #define CLRSCSIINT 0x08
1592 #define CLRSEQINT 0x04
1593 #define CLRCMDINT 0x02
1594 #define CLRSPLTINT 0x01
1597 #define CIOPARERR 0x80
1598 #define CIOACCESFAIL 0x40
1599 #define MPARERR 0x20
1600 #define DPARERR 0x10
1601 #define SQPARERR 0x08
1602 #define ILLOPCODE 0x04
1603 #define DSCTMOUT 0x02
1606 #define CLRCIOPARERR 0x80
1607 #define CLRCIOACCESFAIL 0x40
1608 #define CLRMPARERR 0x20
1609 #define CLRDPARERR 0x10
1610 #define CLRSQPARERR 0x08
1611 #define CLRILLOPCODE 0x04
1612 #define CLRDSCTMOUT 0x02
1615 #define SEQ_RESET 0x80
1618 #define SWTIMER_START_B 0x08
1621 #define CHIPRST 0x01
1622 #define CHIPRSTACK 0x01
1624 #define HNSCB_QOFF 0x06
1626 #define HESCB_QOFF 0x08
1628 #define HS_MAILBOX 0x0b
1629 #define HOST_TQINPOS 0x80
1630 #define ENINT_COALESCE 0x40
1632 #define SEQINTSTAT 0x0c
1633 #define SEQ_SWTMRTO 0x10
1634 #define SEQ_SEQINT 0x08
1635 #define SEQ_SCSIINT 0x04
1636 #define SEQ_PCIINT 0x02
1637 #define SEQ_SPLTINT 0x01
1639 #define CLRSEQINTSTAT 0x0c
1640 #define CLRSEQ_SWTMRTO 0x10
1641 #define CLRSEQ_SEQINT 0x08
1642 #define CLRSEQ_SCSIINT 0x04
1643 #define CLRSEQ_PCIINT 0x02
1644 #define CLRSEQ_SPLTINT 0x01
1646 #define SWTIMER 0x0e
1648 #define SNSCB_QOFF 0x10
1650 #define SESCB_QOFF 0x12
1652 #define SDSCB_QOFF 0x14
1654 #define QOFF_CTLSTA 0x16
1655 #define EMPTY_SCB_AVAIL 0x80
1656 #define NEW_SCB_AVAIL 0x40
1657 #define SDSCB_ROLLOVR 0x20
1658 #define HS_MAILBOX_ACT 0x10
1659 #define SCB_QSIZE 0x0f
1660 #define SCB_QSIZE_16384 0x0c
1661 #define SCB_QSIZE_8192 0x0b
1662 #define SCB_QSIZE_4096 0x0a
1663 #define SCB_QSIZE_2048 0x09
1664 #define SCB_QSIZE_1024 0x08
1665 #define SCB_QSIZE_512 0x07
1666 #define SCB_QSIZE_256 0x06
1667 #define SCB_QSIZE_128 0x05
1668 #define SCB_QSIZE_64 0x04
1669 #define SCB_QSIZE_32 0x03
1670 #define SCB_QSIZE_16 0x02
1671 #define SCB_QSIZE_8 0x01
1672 #define SCB_QSIZE_4 0x00
1675 #define SWTMINTMASK 0x80
1676 #define SWTMINTEN 0x40
1677 #define SWTIMER_START 0x20
1678 #define AUTOCLRCMDINT 0x10
1679 #define PCIINTEN 0x08
1680 #define SCSIINTEN 0x04
1681 #define SEQINTEN 0x02
1682 #define SPLTINTEN 0x01
1684 #define DFCNTRL 0x19
1685 #define SCSIENWRDIS 0x40
1686 #define SCSIENACK 0x20
1687 #define DIRECTIONACK 0x04
1688 #define FIFOFLUSHACK 0x02
1689 #define DIRECTIONEN 0x01
1691 #define DSCOMMAND0 0x19
1692 #define CACHETHEN 0x80
1693 #define DPARCKEN 0x40
1694 #define MPARCKEN 0x20
1695 #define EXTREQLCK 0x10
1696 #define DISABLE_TWATE 0x02
1697 #define CIOPARCKEN 0x01
1699 #define DFSTATUS 0x1a
1700 #define PRELOAD_AVAIL 0x80
1701 #define PKT_PRELOAD_AVAIL 0x40
1702 #define MREQPEND 0x10
1704 #define DFTHRESH 0x04
1705 #define FIFOFULL 0x02
1706 #define FIFOEMP 0x01
1708 #define SG_CACHE_SHADOW 0x1b
1709 #define ODD_SEG 0x04
1710 #define LAST_SEG 0x02
1711 #define LAST_SEG_DONE 0x01
1714 #define RESET_HARB 0x80
1715 #define RETRY_SWEN 0x08
1716 #define USE_TIME 0x07
1718 #define SG_CACHE_PRE 0x1b
1720 #define TYPEPTR 0x20
1728 #define DATALENPTR 0x23
1730 #define STATLENPTR 0x24
1732 #define CMDLENPTR 0x25
1734 #define ATTRPTR 0x26
1736 #define FLAGPTR 0x27
1740 #define QNEXTPTR 0x29
1744 #define ABRTBYTEPTR 0x2b
1746 #define ABRTBITPTR 0x2c
1748 #define MAXCMDBYTES 0x2d
1750 #define MAXCMD2RCV 0x2e
1752 #define SHORTTHRESH 0x2f
1755 #define TLUNLEN 0xf0
1756 #define ILUNLEN 0x0f
1758 #define CDBLIMIT 0x31
1762 #define MAXCMDCNT 0x33
1764 #define LQRSVD01 0x34
1766 #define LQRSVD16 0x35
1768 #define LQRSVD17 0x36
1770 #define CMDRSVD0 0x37
1773 #define LQITARGCLT 0xc0
1774 #define LQIINITGCLT 0x30
1775 #define LQ0TARGCLT 0x0c
1776 #define LQ0INITGCLT 0x03
1779 #define PCI2PCI 0x04
1780 #define SINGLECMD 0x02
1781 #define ABORTPENDING 0x01
1784 #define LQIRETRY 0x80
1785 #define LQICONTINUE 0x40
1786 #define LQITOIDLE 0x20
1787 #define LQIPAUSE 0x10
1788 #define LQORETRY 0x08
1789 #define LQOCONTINUE 0x04
1790 #define LQOTOIDLE 0x02
1791 #define LQOPAUSE 0x01
1793 #define SCSBIST0 0x39
1794 #define GSBISTERR 0x40
1795 #define GSBISTDONE 0x20
1796 #define GSBISTRUN 0x10
1797 #define OSBISTERR 0x04
1798 #define OSBISTDONE 0x02
1799 #define OSBISTRUN 0x01
1801 #define SCSISEQ0 0x3a
1802 #define TEMODEO 0x80
1805 #define FORCEBUSFREE 0x10
1806 #define SCSIRSTO 0x01
1808 #define SCSBIST1 0x3a
1809 #define NTBISTERR 0x04
1810 #define NTBISTDONE 0x02
1811 #define NTBISTRUN 0x01
1813 #define SCSISEQ1 0x3b
1815 #define BUSINITID 0x3c
1817 #define SXFRCTL0 0x3c
1820 #define BIOSCANCELEN 0x10
1823 #define DLCOUNT 0x3c
1825 #define SXFRCTL1 0x3d
1826 #define BITBUCKET 0x80
1827 #define ENSACHK 0x40
1828 #define ENSPCHK 0x20
1829 #define STIMESEL 0x18
1830 #define ENSTIMER 0x04
1831 #define ACTNEGEN 0x02
1834 #define BUSTARGID 0x3e
1836 #define SXFRCTL2 0x3e
1837 #define AUTORSTDIS 0x10
1838 #define CMDDMAEN 0x08
1841 #define DFFSTAT 0x3f
1842 #define CURRFIFO 0x03
1843 #define FIFO1FREE 0x20
1844 #define FIFO0FREE 0x10
1845 #define CURRFIFO_NONE 0x03
1846 #define CURRFIFO_1 0x01
1847 #define CURRFIFO_0 0x00
1849 #define MULTARGID 0x40
1851 #define SCSISIGO 0x40
1861 #define SCSISIGI 0x41
1868 #define SCSIPHASE 0x42
1869 #define STATUS_PHASE 0x20
1870 #define COMMAND_PHASE 0x10
1871 #define MSG_IN_PHASE 0x08
1872 #define MSG_OUT_PHASE 0x04
1873 #define DATA_PHASE_MASK 0x03
1874 #define DATA_IN_PHASE 0x02
1875 #define DATA_OUT_PHASE 0x01
1877 #define SCSIDAT0_IMG 0x43
1879 #define SCSIDAT 0x44
1881 #define SCSIBUS 0x46
1883 #define TARGIDIN 0x48
1888 #define SELID_MASK 0xf0
1891 #define OPTIONMODE 0x4a
1892 #define OPTIONMODE_DEFAULTS 0x02
1893 #define BIOSCANCTL 0x80
1894 #define AUTOACKEN 0x40
1895 #define BIASCANCTL 0x20
1896 #define BUSFREEREV 0x10
1897 #define ENDGFORMCHK 0x04
1898 #define AUTO_MSGOUT_DE 0x02
1900 #define SBLKCTL 0x4a
1901 #define DIAGLEDEN 0x80
1902 #define DIAGLEDON 0x40
1905 #define SELWIDE 0x02
1911 #define SELINGO 0x10
1913 #define OVERRUN 0x04
1914 #define SPIORDY 0x02
1917 #define SIMODE0 0x4b
1918 #define ENSELDO 0x40
1919 #define ENSELDI 0x20
1920 #define ENSELINGO 0x10
1921 #define ENIOERR 0x08
1922 #define ENOVERRUN 0x04
1923 #define ENSPIORDY 0x02
1924 #define ENARBDO 0x01
1926 #define CLRSINT0 0x4b
1927 #define CLRSELDO 0x40
1928 #define CLRSELDI 0x20
1929 #define CLRSELINGO 0x10
1930 #define CLRIOERR 0x08
1931 #define CLROVERRUN 0x04
1932 #define CLRSPIORDY 0x02
1933 #define CLRARBDO 0x01
1937 #define ATNTARG 0x40
1938 #define SCSIRSTI 0x20
1939 #define PHASEMIS 0x10
1940 #define BUSFREE 0x08
1941 #define SCSIPERR 0x04
1942 #define STRB2FAST 0x02
1943 #define REQINIT 0x01
1945 #define CLRSINT1 0x4c
1946 #define CLRSELTIMEO 0x80
1947 #define CLRATNO 0x40
1948 #define CLRSCSIRSTI 0x20
1949 #define CLRBUSFREE 0x08
1950 #define CLRSCSIPERR 0x04
1951 #define CLRSTRB2FAST 0x02
1952 #define CLRREQINIT 0x01
1955 #define BUSFREETIME 0xc0
1956 #define NONPACKREQ 0x20
1957 #define EXP_ACTIVE 0x10
1959 #define WIDE_RES 0x04
1961 #define DMADONE 0x01
1962 #define BUSFREE_DFF1 0xc0
1963 #define BUSFREE_DFF0 0x80
1964 #define BUSFREE_LQO 0x40
1966 #define SIMODE2 0x4d
1967 #define ENWIDE_RES 0x04
1968 #define ENSDONE 0x02
1969 #define ENDMADONE 0x01
1971 #define CLRSINT2 0x4d
1972 #define CLRNONPACKREQ 0x20
1973 #define CLRWIDE_RES 0x04
1974 #define CLRSDONE 0x02
1975 #define CLRDMADONE 0x01
1977 #define PERRDIAG 0x4e
1980 #define PREVPHASE 0x20
1981 #define PARITYERR 0x10
1984 #define DGFORMERR 0x02
1987 #define LQISTATE 0x4e
1989 #define SOFFCNT 0x4f
1991 #define LQOSTATE 0x4f
1993 #define LQISTAT0 0x50
1994 #define LQIATNQAS 0x20
1995 #define LQICRCT1 0x10
1996 #define LQICRCT2 0x08
1997 #define LQIBADLQT 0x04
1998 #define LQIATNLQ 0x02
1999 #define LQIATNCMD 0x01
2001 #define LQIMODE0 0x50
2002 #define ENLQIATNQASK 0x20
2003 #define ENLQICRCT1 0x10
2004 #define ENLQICRCT2 0x08
2005 #define ENLQIBADLQT 0x04
2006 #define ENLQIATNLQ 0x02
2007 #define ENLQIATNCMD 0x01
2009 #define CLRLQIINT0 0x50
2010 #define CLRLQIATNQAS 0x20
2011 #define CLRLQICRCT1 0x10
2012 #define CLRLQICRCT2 0x08
2013 #define CLRLQIBADLQT 0x04
2014 #define CLRLQIATNLQ 0x02
2015 #define CLRLQIATNCMD 0x01
2017 #define LQIMODE1 0x51
2018 #define ENLQIPHASE_LQ 0x80
2019 #define ENLQIPHASE_NLQ 0x40
2020 #define ENLIQABORT 0x20
2021 #define ENLQICRCI_LQ 0x10
2022 #define ENLQICRCI_NLQ 0x08
2023 #define ENLQIBADLQI 0x04
2024 #define ENLQIOVERI_LQ 0x02
2025 #define ENLQIOVERI_NLQ 0x01
2027 #define LQISTAT1 0x51
2028 #define LQIPHASE_LQ 0x80
2029 #define LQIPHASE_NLQ 0x40
2030 #define LQIABORT 0x20
2031 #define LQICRCI_LQ 0x10
2032 #define LQICRCI_NLQ 0x08
2033 #define LQIBADLQI 0x04
2034 #define LQIOVERI_LQ 0x02
2035 #define LQIOVERI_NLQ 0x01
2037 #define CLRLQIINT1 0x51
2038 #define CLRLQIPHASE_LQ 0x80
2039 #define CLRLQIPHASE_NLQ 0x40
2040 #define CLRLIQABORT 0x20
2041 #define CLRLQICRCI_LQ 0x10
2042 #define CLRLQICRCI_NLQ 0x08
2043 #define CLRLQIBADLQI 0x04
2044 #define CLRLQIOVERI_LQ 0x02
2045 #define CLRLQIOVERI_NLQ 0x01
2047 #define LQISTAT2 0x52
2048 #define PACKETIZED 0x80
2049 #define LQIPHASE_OUTPKT 0x40
2050 #define LQIWORKONLQ 0x20
2051 #define LQIWAITFIFO 0x10
2052 #define LQISTOPPKT 0x08
2053 #define LQISTOPLQ 0x04
2054 #define LQISTOPCMD 0x02
2055 #define LQIGSAVAIL 0x01
2058 #define NTRAMPERR 0x02
2059 #define OSRAMPERR 0x01
2061 #define SIMODE3 0x53
2062 #define ENNTRAMPERR 0x02
2063 #define ENOSRAMPERR 0x01
2065 #define CLRSINT3 0x53
2066 #define CLRNTRAMPERR 0x02
2067 #define CLROSRAMPERR 0x01
2069 #define LQOSTAT0 0x54
2070 #define LQOTARGSCBPERR 0x10
2071 #define LQOSTOPT2 0x08
2072 #define LQOATNLQ 0x04
2073 #define LQOATNPKT 0x02
2074 #define LQOTCRC 0x01
2076 #define CLRLQOINT0 0x54
2077 #define CLRLQOTARGSCBPERR 0x10
2078 #define CLRLQOSTOPT2 0x08
2079 #define CLRLQOATNLQ 0x04
2080 #define CLRLQOATNPKT 0x02
2081 #define CLRLQOTCRC 0x01
2083 #define LQOMODE0 0x54
2084 #define ENLQOTARGSCBPERR 0x10
2085 #define ENLQOSTOPT2 0x08
2086 #define ENLQOATNLQ 0x04
2087 #define ENLQOATNPKT 0x02
2088 #define ENLQOTCRC 0x01
2090 #define LQOMODE1 0x55
2091 #define ENLQOINITSCBPERR 0x10
2092 #define ENLQOSTOPI2 0x08
2093 #define ENLQOBADQAS 0x04
2094 #define ENLQOBUSFREE 0x02
2095 #define ENLQOPHACHGINPKT 0x01
2097 #define LQOSTAT1 0x55
2098 #define LQOINITSCBPERR 0x10
2099 #define LQOSTOPI2 0x08
2100 #define LQOBADQAS 0x04
2101 #define LQOBUSFREE 0x02
2102 #define LQOPHACHGINPKT 0x01
2104 #define CLRLQOINT1 0x55
2105 #define CLRLQOINITSCBPERR 0x10
2106 #define CLRLQOSTOPI2 0x08
2107 #define CLRLQOBADQAS 0x04
2108 #define CLRLQOBUSFREE 0x02
2109 #define CLRLQOPHACHGINPKT 0x01
2111 #define LQOSTAT2 0x56
2113 #define LQOWAITFIFO 0x10
2114 #define LQOPHACHGOUTPKT 0x02
2115 #define LQOSTOP0 0x01
2117 #define OS_SPACE_CNT 0x56
2119 #define SIMODE1 0x57
2120 #define ENSELTIMO 0x80
2121 #define ENATNTARG 0x40
2122 #define ENSCSIRST 0x20
2123 #define ENPHASEMIS 0x10
2124 #define ENBUSFREE 0x08
2125 #define ENSCSIPERR 0x04
2126 #define ENSTRB2FAST 0x02
2127 #define ENREQINIT 0x01
2131 #define DFFSXFRCTL 0x5a
2132 #define DFFBITBUCKET 0x08
2133 #define CLRSHCNT 0x04
2137 #define LQOSCSCTL 0x5a
2138 #define LQOH2A_VERSION 0x80
2139 #define LQOBUSETDLY 0x40
2140 #define LQONOHOLDLACK 0x02
2141 #define LQONOCHKOVER 0x01
2143 #define NEXTSCB 0x5a
2145 #define CLRSEQINTSRC 0x5b
2146 #define CLRCTXTDONE 0x40
2147 #define CLRSAVEPTRS 0x20
2148 #define CLRCFG4DATA 0x10
2149 #define CLRCFG4ISTAT 0x08
2150 #define CLRCFG4TSTAT 0x04
2151 #define CLRCFG4ICMD 0x02
2152 #define CLRCFG4TCMD 0x01
2154 #define SEQINTSRC 0x5b
2155 #define CTXTDONE 0x40
2156 #define SAVEPTRS 0x20
2157 #define CFG4DATA 0x10
2158 #define CFG4ISTAT 0x08
2159 #define CFG4TSTAT 0x04
2160 #define CFG4ICMD 0x02
2161 #define CFG4TCMD 0x01
2163 #define SEQIMODE 0x5c
2164 #define ENCTXTDONE 0x40
2165 #define ENSAVEPTRS 0x20
2166 #define ENCFG4DATA 0x10
2167 #define ENCFG4ISTAT 0x08
2168 #define ENCFG4TSTAT 0x04
2169 #define ENCFG4ICMD 0x02
2170 #define ENCFG4TCMD 0x01
2172 #define CURRSCB 0x5c
2174 #define MDFFSTAT 0x5d
2175 #define SHCNTNEGATIVE 0x40
2176 #define SHCNTMINUS1 0x20
2177 #define LASTSDONE 0x10
2178 #define SHVALID 0x08
2180 #define DATAINFIFO 0x02
2181 #define FIFOFREE 0x01
2183 #define CRCCONTROL 0x5d
2184 #define CRCVALCHKEN 0x40
2188 #define SCSITEST 0x5e
2189 #define CNTRTEST 0x08
2190 #define SEL_TXPLL_DEBUG 0x04
2192 #define LASTSCB 0x5e
2194 #define IOPDNCTL 0x5f
2195 #define DISABLE_OE 0x80
2196 #define PDN_IDIST 0x04
2197 #define PDN_DIFFSENSE 0x01
2199 #define DGRPCRCI 0x60
2203 #define NEGOADDR 0x60
2205 #define NEGPERIOD 0x61
2207 #define NEGOFFSET 0x62
2209 #define PACKCRCI 0x62
2211 #define NEGPPROPTS 0x63
2212 #define PPROPT_PACE 0x08
2213 #define PPROPT_QAS 0x04
2214 #define PPROPT_DT 0x02
2215 #define PPROPT_IUT 0x01
2217 #define NEGCONOPTS 0x64
2218 #define ENSNAPSHOT 0x40
2219 #define RTI_WRTDIS 0x20
2220 #define RTI_OVRDTRN 0x10
2221 #define ENSLOWCRC 0x08
2222 #define ENAUTOATNI 0x04
2223 #define ENAUTOATNO 0x02
2224 #define WIDEXFER 0x01
2226 #define ANNEXCOL 0x65
2228 #define ANNEXDAT 0x66
2230 #define SCSCHKN 0x66
2231 #define BIDICHKDIS 0x80
2232 #define STSELSKIDDIS 0x40
2233 #define CURRFIFODEF 0x20
2234 #define WIDERESEN 0x10
2235 #define SDONEMSKDIS 0x08
2236 #define DFFACTCLR 0x04
2237 #define SHVALIDSTDIS 0x02
2238 #define LSTSGCLRDIS 0x01
2242 #define PLL960CTL0 0x68
2248 #define PLL960CTL1 0x69
2250 #define PLL960CNT0 0x6a
2256 #define FAIRNESS 0x6c
2258 #define PLL400CTL0 0x6c
2259 #define PLL_VCOSEL 0x80
2260 #define PLL_PWDN 0x40
2262 #define PLL_ENLUD 0x08
2263 #define PLL_ENLPF 0x04
2264 #define PLL_DLPF 0x02
2265 #define PLL_ENFBM 0x01
2267 #define PLL400CTL1 0x6d
2268 #define PLL_CNTEN 0x80
2269 #define PLL_CNTCLR 0x40
2270 #define PLL_RST 0x01
2272 #define UNFAIRNESS 0x6e
2274 #define PLL400CNT0 0x6e
2278 #define HODMAADR 0x70
2280 #define PLLDELAY 0x70
2281 #define SPLIT_DROP_REQ 0x80
2285 #define HODMACNT 0x78
2287 #define HODMAEN 0x7a
2289 #define SGHADDR 0x7c
2291 #define SCBHADDR 0x7c
2295 #define SCBHCNT 0x84
2297 #define DFF_THRSH 0x88
2298 #define WR_DFTHRSH 0x70
2299 #define RD_DFTHRSH 0x07
2300 #define WR_DFTHRSH_MAX 0x70
2301 #define WR_DFTHRSH_90 0x60
2302 #define WR_DFTHRSH_85 0x50
2303 #define WR_DFTHRSH_75 0x40
2304 #define WR_DFTHRSH_63 0x30
2305 #define WR_DFTHRSH_50 0x20
2306 #define WR_DFTHRSH_25 0x10
2307 #define RD_DFTHRSH_MAX 0x07
2308 #define RD_DFTHRSH_90 0x06
2309 #define RD_DFTHRSH_85 0x05
2310 #define RD_DFTHRSH_75 0x04
2311 #define RD_DFTHRSH_63 0x03
2312 #define RD_DFTHRSH_50 0x02
2313 #define RD_DFTHRSH_25 0x01
2314 #define RD_DFTHRSH_MIN 0x00
2315 #define WR_DFTHRSH_MIN 0x00
2317 #define ROMADDR 0x8a
2319 #define ROMCNTRL 0x8d
2325 #define ROMDATA 0x8e
2327 #define CMCRXMSG0 0x90
2329 #define OVLYRXMSG0 0x90
2331 #define DCHRXMSG0 0x90
2333 #define ROENABLE 0x90
2334 #define MSIROEN 0x20
2335 #define OVLYROEN 0x10
2336 #define CMCROEN 0x08
2338 #define DCH1ROEN 0x02
2339 #define DCH0ROEN 0x01
2341 #define OVLYRXMSG1 0x91
2343 #define CMCRXMSG1 0x91
2345 #define DCHRXMSG1 0x91
2347 #define NSENABLE 0x91
2348 #define MSINSEN 0x20
2349 #define OVLYNSEN 0x10
2350 #define CMCNSEN 0x08
2352 #define DCH1NSEN 0x02
2353 #define DCH0NSEN 0x01
2355 #define DCHRXMSG2 0x92
2357 #define CMCRXMSG2 0x92
2361 #define OVLYRXMSG2 0x92
2363 #define DCHRXMSG3 0x93
2365 #define OVLYRXMSG3 0x93
2367 #define CMCRXMSG3 0x93
2369 #define PCIXCTL 0x93
2370 #define SERRPULSE 0x80
2371 #define UNEXPSCIEN 0x20
2372 #define SPLTSMADIS 0x10
2373 #define SPLTSTADIS 0x08
2374 #define SRSPDPEEN 0x04
2375 #define TSCSERREN 0x02
2376 #define CMPABCDIS 0x01
2378 #define CMCSEQBCNT 0x94
2380 #define OVLYSEQBCNT 0x94
2382 #define DCHSEQBCNT 0x94
2384 #define DCHSPLTSTAT0 0x96
2386 #define OVLYSPLTSTAT0 0x96
2388 #define CMCSPLTSTAT0 0x96
2390 #define OVLYSPLTSTAT1 0x97
2392 #define DCHSPLTSTAT1 0x97
2394 #define CMCSPLTSTAT1 0x97
2396 #define SGRXMSG0 0x98
2400 #define SLVSPLTOUTADR0 0x98
2401 #define LOWER_ADDR 0x7f
2403 #define SGRXMSG1 0x99
2406 #define SLVSPLTOUTADR1 0x99
2407 #define REQ_DNUM 0xf8
2408 #define REQ_FNUM 0x07
2410 #define SGRXMSG2 0x9a
2413 #define SLVSPLTOUTADR2 0x9a
2414 #define REQ_BNUM 0xff
2416 #define SGRXMSG3 0x9b
2419 #define SLVSPLTOUTADR3 0x9b
2420 #define TAG_NUM 0x1f
2423 #define SLVSPLTOUTATTR0 0x9c
2424 #define LOWER_BCNT 0xff
2426 #define SGSEQBCNT 0x9c
2428 #define SLVSPLTOUTATTR1 0x9d
2429 #define CMPLT_DNUM 0xf8
2430 #define CMPLT_FNUM 0x07
2432 #define SGSPLTSTAT0 0x9e
2433 #define STAETERM 0x80
2434 #define SCBCERR 0x40
2435 #define SCADERR 0x20
2436 #define SCDATBUCKET 0x10
2437 #define CNTNOTCMPLT 0x08
2438 #define RXOVRUN 0x04
2439 #define RXSCEMSG 0x02
2440 #define RXSPLTRSP 0x01
2442 #define SLVSPLTOUTATTR2 0x9e
2443 #define CMPLT_BNUM 0xff
2445 #define SGSPLTSTAT1 0x9f
2446 #define RXDATABUCKET 0x01
2449 #define TEST_GROUP 0xf0
2450 #define TEST_NUM 0x0f
2452 #define DF0PCISTAT 0xa0
2456 #define DF1PCISTAT 0xa1
2458 #define SGPCISTAT 0xa2
2462 #define CMCPCISTAT 0xa3
2464 #define OVLYPCISTAT 0xa4
2465 #define SCAAPERR 0x08
2468 #define REG_ISR 0xa4
2470 #define SG_STATE 0xa6
2471 #define FETCH_INPROG 0x04
2472 #define LOADING_NEEDED 0x02
2473 #define SEGS_AVAIL 0x01
2475 #define MSIPCISTAT 0xa6
2478 #define CLRPENDMSI 0x08
2481 #define TARGPCISTAT 0xa7
2485 #define TWATERR 0x02
2487 #define DATA_COUNT_ODD 0xa7
2491 #define CCSCBACNT 0xab
2493 #define SCBAUTOPTR 0xab
2494 #define AUSCBPTR_EN 0x80
2495 #define SCBPTR_ADDR 0x38
2496 #define SCBPTR_OFF 0x07
2498 #define CCSGADDR 0xac
2500 #define CCSCBADDR 0xac
2502 #define CCSCBADR_BK 0xac
2504 #define CMC_RAMBIST 0xad
2505 #define SG_ELEMENT_SIZE 0x80
2506 #define SCBRAMBIST_FAIL 0x40
2507 #define SG_BIST_FAIL 0x20
2508 #define SG_BIST_EN 0x10
2509 #define CMC_BUFFER_BIST_FAIL 0x02
2510 #define CMC_BUFFER_BIST_EN 0x01
2512 #define CCSCBCTL 0xad
2513 #define CCSCBDONE 0x80
2514 #define ARRDONE 0x40
2515 #define CCARREN 0x10
2516 #define CCSCBEN 0x08
2517 #define CCSCBDIR 0x04
2518 #define CCSCBRESET 0x01
2520 #define CCSGCTL 0xad
2522 #define CCSGDONE 0x80
2523 #define SG_CACHE_AVAIL 0x10
2524 #define CCSGENACK 0x08
2525 #define SG_FETCH_REQ 0x02
2526 #define CCSGRESET 0x01
2528 #define CCSGRAM 0xb0
2530 #define FLEXADR 0xb0
2532 #define CCSCBRAM 0xb0
2534 #define FLEXCNT 0xb3
2536 #define FLEXDMASTAT 0xb5
2537 #define FLEXDMAERR 0x02
2538 #define FLEXDMADONE 0x01
2540 #define FLEXDATA 0xb6
2545 #define FLXARBACK 0x80
2546 #define FLXARBREQ 0x40
2547 #define BRDADDR 0x38
2557 #define SEEOP_EWDS 0x40
2558 #define SEEOP_WALL 0x40
2559 #define SEEOP_EWEN 0x40
2560 #define SEEOPCODE 0x70
2562 #define SEESTART 0x01
2563 #define SEEOP_ERASE 0x70
2564 #define SEEOP_READ 0x60
2565 #define SEEOP_WRITE 0x50
2566 #define SEEOP_ERAL 0x40
2568 #define SEESTAT 0xbe
2569 #define INIT_DONE 0x80
2570 #define LDALTID_L 0x08
2571 #define SEEARBACK 0x04
2572 #define SEEBUSY 0x02
2576 #define DSPFLTRCTL 0xc0
2577 #define FLTRDISABLE 0x20
2578 #define EDGESENSE 0x10
2579 #define DSPFCNTSEL 0x0f
2581 #define DFWADDR 0xc0
2583 #define DSPDATACTL 0xc1
2584 #define BYPASSENAB 0x80
2585 #define DESQDIS 0x10
2586 #define RCVROFFSTDIS 0x04
2587 #define XMITOFFSTDIS 0x02
2589 #define DSPREQCTL 0xc2
2590 #define MANREQCTL 0xc0
2591 #define MANREQDLY 0x3f
2593 #define DFRADDR 0xc2
2595 #define DSPACKCTL 0xc3
2596 #define MANACKCTL 0xc0
2597 #define MANACKDLY 0x3f
2601 #define DSPSELECT 0xc4
2602 #define AUTOINCEN 0x80
2605 #define WRTBIASCTL 0xc5
2606 #define AUTOXBCDIS 0x80
2607 #define XMITMANVAL 0x3f
2609 #define RCVRBIOSCTL 0xc6
2610 #define AUTORBCDIS 0x80
2611 #define RCVRMANVAL 0x3f
2613 #define WRTBIASCALC 0xc7
2617 #define RCVRBIASCALC 0xc8
2619 #define DFBKPTR 0xc9
2621 #define SKEWCALC 0xc9
2623 #define DFDBCTL 0xcb
2624 #define DFF_CIO_WR_RDY 0x20
2625 #define DFF_CIO_RD_RDY 0x10
2626 #define DFF_DIR_ERR 0x08
2627 #define DFF_RAMBIST_FAIL 0x04
2628 #define DFF_RAMBIST_DONE 0x02
2629 #define DFF_RAMBIST_EN 0x01
2635 #define OVLYADDR 0xd4
2637 #define SEQCTL0 0xd6
2638 #define PERRORDIS 0x80
2639 #define PAUSEDIS 0x40
2640 #define FAILDIS 0x20
2641 #define FASTMODE 0x10
2642 #define BRKADRINTEN 0x08
2644 #define SEQRESET 0x02
2645 #define LOADRAM 0x01
2647 #define SEQCTL1 0xd7
2648 #define OVRLAY_DATA_CHK 0x08
2649 #define RAMBIST_DONE 0x04
2650 #define RAMBIST_FAIL 0x02
2651 #define RAMBIST_EN 0x01
2657 #define SEQINTCTL 0xd9
2658 #define INTVEC1DSL 0x80
2659 #define INT1_CONTEXT 0x20
2660 #define SCS_SEQ_INT1M1 0x10
2661 #define SCS_SEQ_INT1M0 0x08
2662 #define INTMASK2 0x04
2663 #define INTMASK1 0x02
2668 #define PRGMCNT 0xde
2676 #define BRKADDR0 0xe6
2678 #define BRKADDR1 0xe6
2681 #define ALLONES 0xe8
2683 #define ALLZEROS 0xea
2691 #define FUNCTION1 0xf0
2695 #define INTVEC1_ADDR 0xf4
2697 #define CURADDR 0xf4
2699 #define LASTADDR 0xf6
2701 #define INTVEC2_ADDR 0xf6
2703 #define LONGJMP_ADDR 0xf8
2705 #define ACCUM_SAVE 0xfa
2707 #define AHD_PCI_CONFIG_BASE 0x100
2709 #define SRAM_BASE 0x100
2711 #define WAITING_SCB_TAILS 0x100
2713 #define WAITING_TID_HEAD 0x120
2715 #define WAITING_TID_TAIL 0x122
2717 #define NEXT_QUEUED_SCB_ADDR 0x124
2719 #define COMPLETE_SCB_HEAD 0x128
2721 #define COMPLETE_SCB_DMAINPROG_HEAD 0x12a
2723 #define COMPLETE_DMA_SCB_HEAD 0x12c
2725 #define COMPLETE_DMA_SCB_TAIL 0x12e
2727 #define COMPLETE_ON_QFREEZE_HEAD 0x130
2729 #define QFREEZE_COUNT 0x132
2731 #define KERNEL_QFREEZE_COUNT 0x134
2733 #define SAVED_MODE 0x136
2735 #define MSG_OUT 0x137
2737 #define DMAPARAMS 0x138
2738 #define PRELOADEN 0x80
2739 #define WIDEODD 0x40
2741 #define SDMAENACK 0x10
2744 #define HDMAENACK 0x08
2745 #define DIRECTION 0x04
2746 #define FIFOFLUSH 0x02
2747 #define FIFORESET 0x01
2749 #define SEQ_FLAGS 0x139
2750 #define NOT_IDENTIFIED 0x80
2751 #define NO_CDB_SENT 0x40
2752 #define TARGET_CMD_IS_TAGGED 0x40
2754 #define TARG_CMD_PENDING 0x10
2755 #define CMDPHASE_PENDING 0x08
2756 #define DPHASE_PENDING 0x04
2757 #define SPHASE_PENDING 0x02
2758 #define NO_DISCONNECT 0x01
2760 #define SAVED_SCSIID 0x13a
2762 #define SAVED_LUN 0x13b
2764 #define LASTPHASE 0x13c
2765 #define PHASE_MASK 0xe0
2769 #define P_BUSFREE 0x01
2770 #define P_MESGIN 0xe0
2771 #define P_STATUS 0xc0
2772 #define P_MESGOUT 0xa0
2773 #define P_COMMAND 0x80
2774 #define P_DATAIN_DT 0x60
2775 #define P_DATAIN 0x40
2776 #define P_DATAOUT_DT 0x20
2777 #define P_DATAOUT 0x00
2779 #define QOUTFIFO_ENTRY_VALID_TAG 0x13d
2781 #define KERNEL_TQINPOS 0x13e
2783 #define TQINPOS 0x13f
2785 #define SHARED_DATA_ADDR 0x140
2787 #define QOUTFIFO_NEXT_ADDR 0x144
2790 #define RETURN_1 0x148
2791 #define SEND_MSG 0x80
2792 #define SEND_SENSE 0x40
2793 #define SEND_REJ 0x20
2794 #define MSGOUT_PHASEMIS 0x10
2795 #define EXIT_MSG_LOOP 0x08
2796 #define CONT_MSG_LOOP_WRITE 0x04
2797 #define CONT_MSG_LOOP_READ 0x03
2798 #define CONT_MSG_LOOP_TARG 0x02
2801 #define RETURN_2 0x149
2803 #define LAST_MSG 0x14a
2805 #define SCSISEQ_TEMPLATE 0x14b
2806 #define MANUALCTL 0x40
2808 #define ENRSELI 0x10
2809 #define MANUALP 0x0c
2810 #define ENAUTOATNP 0x02
2811 #define ALTSTIM 0x01
2813 #define INITIATOR_TAG 0x14c
2815 #define SEQ_FLAGS2 0x14d
2816 #define SELECTOUT_QFROZEN 0x04
2817 #define TARGET_MSG_PENDING 0x02
2818 #define PENDING_MK_MESSAGE 0x01
2820 #define ALLOCFIFO_SCBPTR 0x14e
2822 #define INT_COALESCING_TIMER 0x150
2824 #define INT_COALESCING_MAXCMDS 0x152
2826 #define INT_COALESCING_MINCMDS 0x153
2828 #define CMDS_PENDING 0x154
2830 #define INT_COALESCING_CMDCOUNT 0x156
2832 #define LOCAL_HS_MAILBOX 0x157
2834 #define CMDSIZE_TABLE 0x158
2836 #define MK_MESSAGE_SCB 0x160
2838 #define MK_MESSAGE_SCSIID 0x162
2840 #define SCB_RESIDUAL_DATACNT 0x180
2841 #define SCB_CDB_STORE 0x180
2842 #define SCB_HOST_CDB_PTR 0x180
2844 #define SCB_BASE 0x180
2846 #define SCB_RESIDUAL_SGPTR 0x184
2847 #define SG_ADDR_MASK 0xf8
2848 #define SG_OVERRUN_RESID 0x02
2850 #define SCB_SCSI_STATUS 0x188
2851 #define SCB_HOST_CDB_LEN 0x188
2853 #define SCB_TARGET_PHASES 0x189
2855 #define SCB_TARGET_DATA_DIR 0x18a
2857 #define SCB_TARGET_ITAG 0x18b
2859 #define SCB_SENSE_BUSADDR 0x18c
2860 #define SCB_NEXT_COMPLETE 0x18c
2862 #define SCB_TAG 0x190
2863 #define SCB_FIFO_USE_COUNT 0x190
2865 #define SCB_CONTROL 0x192
2866 #define TARGET_SCB 0x80
2867 #define DISCENB 0x40
2868 #define TAG_ENB 0x20
2869 #define MK_MESSAGE 0x10
2870 #define STATUS_RCVD 0x08
2871 #define DISCONNECTED 0x04
2872 #define SCB_TAG_TYPE 0x03
2874 #define SCB_SCSIID 0x193
2878 #define SCB_LUN 0x194
2881 #define SCB_TASK_ATTRIBUTE 0x195
2882 #define SCB_XFERLEN_ODD 0x01
2884 #define SCB_CDB_LEN 0x196
2885 #define SCB_CDB_LEN_PTR 0x80
2887 #define SCB_TASK_MANAGEMENT 0x197
2889 #define SCB_DATAPTR 0x198
2891 #define SCB_DATACNT 0x1a0
2892 #define SG_LAST_SEG 0x80
2893 #define SG_HIGH_ADDR_BITS 0x7f
2895 #define SCB_SGPTR 0x1a4
2896 #define SG_STATUS_VALID 0x04
2897 #define SG_FULL_RESID 0x02
2898 #define SG_LIST_NULL 0x01
2900 #define SCB_BUSADDR 0x1a8
2902 #define SCB_NEXT 0x1ac
2903 #define SCB_NEXT_SCB_BUSADDR 0x1ac
2905 #define SCB_NEXT2 0x1ae
2907 #define SCB_SPARE 0x1b0
2908 #define SCB_PKT_LUN 0x1b0
2910 #define SCB_DISCONNECTED_LISTS 0x1b8
2913 #define CMD_GROUP_CODE_SHIFT 0x05
2914 #define STIMESEL_MIN 0x18
2915 #define STIMESEL_SHIFT 0x03
2916 #define INVALID_ADDR 0x80
2917 #define AHD_PRECOMP_MASK 0x07
2918 #define TARGET_DATA_IN 0x01
2919 #define CCSCBADDR_MAX 0x80
2920 #define NUMDSPS 0x14
2921 #define SEEOP_EWEN_ADDR 0xc0
2922 #define AHD_ANNEXCOL_PER_DEV0 0x04
2923 #define DST_MODE_SHIFT 0x04
2924 #define AHD_TIMER_MAX_US 0x18ffe7
2925 #define AHD_TIMER_MAX_TICKS 0xffff
2926 #define AHD_SENSE_BUFSIZE 0x100
2927 #define BUS_8_BIT 0x00
2928 #define TARGET_CMD_CMPLT 0xfe
2929 #define SEEOP_WRAL_ADDR 0x40
2930 #define AHD_AMPLITUDE_DEF 0x07
2931 #define AHD_PRECOMP_CUTBACK_37 0x07
2932 #define AHD_PRECOMP_SHIFT 0x00
2933 #define AHD_ANNEXCOL_PRECOMP_SLEW 0x04
2934 #define AHD_TIMER_US_PER_TICK 0x19
2935 #define SCB_TRANSFER_SIZE_FULL_LUN 0x38
2936 #define STATUS_QUEUE_FULL 0x28
2937 #define STATUS_BUSY 0x08
2938 #define MAX_OFFSET_NON_PACED 0x7f
2939 #define MAX_OFFSET_PACED 0xfe
2940 #define BUS_32_BIT 0x02
2941 #define CCSGADDR_MAX 0x80
2942 #define TID_SHIFT 0x04
2943 #define MK_MESSAGE_BIT_OFFSET 0x04
2944 #define WRTBIASCTL_HP_DEFAULT 0x00
2945 #define SEEOP_EWDS_ADDR 0x00
2946 #define AHD_AMPLITUDE_SHIFT 0x00
2947 #define AHD_AMPLITUDE_MASK 0x07
2948 #define AHD_ANNEXCOL_AMPLITUDE 0x06
2949 #define AHD_SLEWRATE_DEF_REVA 0x08
2950 #define AHD_SLEWRATE_SHIFT 0x03
2951 #define AHD_SLEWRATE_MASK 0x78
2952 #define AHD_PRECOMP_CUTBACK_29 0x06
2953 #define AHD_NUM_PER_DEV_ANNEXCOLS 0x04
2954 #define B_CURRFIFO_0 0x02
2955 #define LUNLEN_SINGLE_LEVEL_LUN 0x0f
2956 #define NVRAM_SCB_OFFSET 0x2c
2957 #define STATUS_PKT_SENSE 0xff
2958 #define MAX_OFFSET_PACED_BUG 0x7f
2959 #define STIMESEL_BUG_ADJ 0x08
2960 #define CCSGRAM_MAXSEGS 0x10
2961 #define SEEOP_ERAL_ADDR 0x80
2962 #define AHD_SLEWRATE_DEF_REVB 0x08
2963 #define AHD_PRECOMP_CUTBACK_17 0x04
2964 #define SRC_MODE_SHIFT 0x00
2965 #define PKT_OVERRUN_BUFSIZE 0x200
2966 #define SCB_TRANSFER_SIZE_1BYTE_LUN 0x30
2967 #define HOST_MSG 0xff
2968 #define MAX_OFFSET 0xfe
2969 #define BUS_16_BIT 0x01
2972 /* Downloaded Constant Definitions */
2973 #define SG_SIZEOF 0x04
2974 #define SG_PREFETCH_ALIGN_MASK 0x02
2975 #define SG_PREFETCH_CNT_LIMIT 0x01
2976 #define CACHELINE_MASK 0x07
2977 #define SCB_TRANSFER_SIZE 0x06
2978 #define PKT_OVERRUN_BUFOFFSET 0x05
2979 #define SG_PREFETCH_ADDR_MASK 0x03
2980 #define SG_PREFETCH_CNT 0x00
2981 #define DOWNLOAD_CONST_COUNT 0x08
2984 /* Exported Labels */
2985 #define LABEL_timer_isr 0x28b
2986 #define LABEL_seq_isr 0x28f