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_intstat_print;
18 #define ahd_intstat_print(regvalue, cur_col, wrap) \
19 ahd_print_register(NULL, 0, "INTSTAT", 0x01, regvalue, cur_col, wrap)
22 #if AIC_DEBUG_REGISTERS
23 ahd_reg_print_t ahd_hs_mailbox_print;
25 #define ahd_hs_mailbox_print(regvalue, cur_col, wrap) \
26 ahd_print_register(NULL, 0, "HS_MAILBOX", 0x0b, regvalue, cur_col, wrap)
29 #if AIC_DEBUG_REGISTERS
30 ahd_reg_print_t ahd_seqintstat_print;
32 #define ahd_seqintstat_print(regvalue, cur_col, wrap) \
33 ahd_print_register(NULL, 0, "SEQINTSTAT", 0x0c, regvalue, cur_col, wrap)
36 #if AIC_DEBUG_REGISTERS
37 ahd_reg_print_t ahd_intctl_print;
39 #define ahd_intctl_print(regvalue, cur_col, wrap) \
40 ahd_print_register(NULL, 0, "INTCTL", 0x18, regvalue, cur_col, wrap)
43 #if AIC_DEBUG_REGISTERS
44 ahd_reg_print_t ahd_dfcntrl_print;
46 #define ahd_dfcntrl_print(regvalue, cur_col, wrap) \
47 ahd_print_register(NULL, 0, "DFCNTRL", 0x19, regvalue, cur_col, wrap)
50 #if AIC_DEBUG_REGISTERS
51 ahd_reg_print_t ahd_dfstatus_print;
53 #define ahd_dfstatus_print(regvalue, cur_col, wrap) \
54 ahd_print_register(NULL, 0, "DFSTATUS", 0x1a, regvalue, cur_col, wrap)
57 #if AIC_DEBUG_REGISTERS
58 ahd_reg_print_t ahd_sg_cache_shadow_print;
60 #define ahd_sg_cache_shadow_print(regvalue, cur_col, wrap) \
61 ahd_print_register(NULL, 0, "SG_CACHE_SHADOW", 0x1b, regvalue, cur_col, wrap)
64 #if AIC_DEBUG_REGISTERS
65 ahd_reg_print_t ahd_scsiseq0_print;
67 #define ahd_scsiseq0_print(regvalue, cur_col, wrap) \
68 ahd_print_register(NULL, 0, "SCSISEQ0", 0x3a, regvalue, cur_col, wrap)
71 #if AIC_DEBUG_REGISTERS
72 ahd_reg_print_t ahd_scsiseq1_print;
74 #define ahd_scsiseq1_print(regvalue, cur_col, wrap) \
75 ahd_print_register(NULL, 0, "SCSISEQ1", 0x3b, regvalue, cur_col, wrap)
78 #if AIC_DEBUG_REGISTERS
79 ahd_reg_print_t ahd_dffstat_print;
81 #define ahd_dffstat_print(regvalue, cur_col, wrap) \
82 ahd_print_register(NULL, 0, "DFFSTAT", 0x3f, regvalue, cur_col, wrap)
85 #if AIC_DEBUG_REGISTERS
86 ahd_reg_print_t ahd_scsisigi_print;
88 #define ahd_scsisigi_print(regvalue, cur_col, wrap) \
89 ahd_print_register(NULL, 0, "SCSISIGI", 0x41, regvalue, cur_col, wrap)
92 #if AIC_DEBUG_REGISTERS
93 ahd_reg_print_t ahd_scsiphase_print;
95 #define ahd_scsiphase_print(regvalue, cur_col, wrap) \
96 ahd_print_register(NULL, 0, "SCSIPHASE", 0x42, regvalue, cur_col, wrap)
99 #if AIC_DEBUG_REGISTERS
100 ahd_reg_print_t ahd_scsibus_print;
102 #define ahd_scsibus_print(regvalue, cur_col, wrap) \
103 ahd_print_register(NULL, 0, "SCSIBUS", 0x46, regvalue, cur_col, wrap)
106 #if AIC_DEBUG_REGISTERS
107 ahd_reg_print_t ahd_selid_print;
109 #define ahd_selid_print(regvalue, cur_col, wrap) \
110 ahd_print_register(NULL, 0, "SELID", 0x49, regvalue, cur_col, wrap)
113 #if AIC_DEBUG_REGISTERS
114 ahd_reg_print_t ahd_simode0_print;
116 #define ahd_simode0_print(regvalue, cur_col, wrap) \
117 ahd_print_register(NULL, 0, "SIMODE0", 0x4b, regvalue, cur_col, wrap)
120 #if AIC_DEBUG_REGISTERS
121 ahd_reg_print_t ahd_sstat0_print;
123 #define ahd_sstat0_print(regvalue, cur_col, wrap) \
124 ahd_print_register(NULL, 0, "SSTAT0", 0x4b, regvalue, cur_col, wrap)
127 #if AIC_DEBUG_REGISTERS
128 ahd_reg_print_t ahd_sstat1_print;
130 #define ahd_sstat1_print(regvalue, cur_col, wrap) \
131 ahd_print_register(NULL, 0, "SSTAT1", 0x4c, regvalue, cur_col, wrap)
134 #if AIC_DEBUG_REGISTERS
135 ahd_reg_print_t ahd_sstat2_print;
137 #define ahd_sstat2_print(regvalue, cur_col, wrap) \
138 ahd_print_register(NULL, 0, "SSTAT2", 0x4d, regvalue, cur_col, wrap)
141 #if AIC_DEBUG_REGISTERS
142 ahd_reg_print_t ahd_perrdiag_print;
144 #define ahd_perrdiag_print(regvalue, cur_col, wrap) \
145 ahd_print_register(NULL, 0, "PERRDIAG", 0x4e, regvalue, cur_col, wrap)
148 #if AIC_DEBUG_REGISTERS
149 ahd_reg_print_t ahd_soffcnt_print;
151 #define ahd_soffcnt_print(regvalue, cur_col, wrap) \
152 ahd_print_register(NULL, 0, "SOFFCNT", 0x4f, regvalue, cur_col, wrap)
155 #if AIC_DEBUG_REGISTERS
156 ahd_reg_print_t ahd_lqistat0_print;
158 #define ahd_lqistat0_print(regvalue, cur_col, wrap) \
159 ahd_print_register(NULL, 0, "LQISTAT0", 0x50, regvalue, cur_col, wrap)
162 #if AIC_DEBUG_REGISTERS
163 ahd_reg_print_t ahd_lqistat1_print;
165 #define ahd_lqistat1_print(regvalue, cur_col, wrap) \
166 ahd_print_register(NULL, 0, "LQISTAT1", 0x51, regvalue, cur_col, wrap)
169 #if AIC_DEBUG_REGISTERS
170 ahd_reg_print_t ahd_lqistat2_print;
172 #define ahd_lqistat2_print(regvalue, cur_col, wrap) \
173 ahd_print_register(NULL, 0, "LQISTAT2", 0x52, regvalue, cur_col, wrap)
176 #if AIC_DEBUG_REGISTERS
177 ahd_reg_print_t ahd_sstat3_print;
179 #define ahd_sstat3_print(regvalue, cur_col, wrap) \
180 ahd_print_register(NULL, 0, "SSTAT3", 0x53, regvalue, cur_col, wrap)
183 #if AIC_DEBUG_REGISTERS
184 ahd_reg_print_t ahd_lqostat0_print;
186 #define ahd_lqostat0_print(regvalue, cur_col, wrap) \
187 ahd_print_register(NULL, 0, "LQOSTAT0", 0x54, regvalue, cur_col, wrap)
190 #if AIC_DEBUG_REGISTERS
191 ahd_reg_print_t ahd_lqostat1_print;
193 #define ahd_lqostat1_print(regvalue, cur_col, wrap) \
194 ahd_print_register(NULL, 0, "LQOSTAT1", 0x55, regvalue, cur_col, wrap)
197 #if AIC_DEBUG_REGISTERS
198 ahd_reg_print_t ahd_lqostat2_print;
200 #define ahd_lqostat2_print(regvalue, cur_col, wrap) \
201 ahd_print_register(NULL, 0, "LQOSTAT2", 0x56, regvalue, cur_col, wrap)
204 #if AIC_DEBUG_REGISTERS
205 ahd_reg_print_t ahd_simode1_print;
207 #define ahd_simode1_print(regvalue, cur_col, wrap) \
208 ahd_print_register(NULL, 0, "SIMODE1", 0x57, regvalue, cur_col, wrap)
211 #if AIC_DEBUG_REGISTERS
212 ahd_reg_print_t ahd_dffsxfrctl_print;
214 #define ahd_dffsxfrctl_print(regvalue, cur_col, wrap) \
215 ahd_print_register(NULL, 0, "DFFSXFRCTL", 0x5a, regvalue, cur_col, wrap)
218 #if AIC_DEBUG_REGISTERS
219 ahd_reg_print_t ahd_seqintsrc_print;
221 #define ahd_seqintsrc_print(regvalue, cur_col, wrap) \
222 ahd_print_register(NULL, 0, "SEQINTSRC", 0x5b, regvalue, cur_col, wrap)
225 #if AIC_DEBUG_REGISTERS
226 ahd_reg_print_t ahd_seqimode_print;
228 #define ahd_seqimode_print(regvalue, cur_col, wrap) \
229 ahd_print_register(NULL, 0, "SEQIMODE", 0x5c, regvalue, cur_col, wrap)
232 #if AIC_DEBUG_REGISTERS
233 ahd_reg_print_t ahd_mdffstat_print;
235 #define ahd_mdffstat_print(regvalue, cur_col, wrap) \
236 ahd_print_register(NULL, 0, "MDFFSTAT", 0x5d, regvalue, cur_col, wrap)
239 #if AIC_DEBUG_REGISTERS
240 ahd_reg_print_t ahd_seloid_print;
242 #define ahd_seloid_print(regvalue, cur_col, wrap) \
243 ahd_print_register(NULL, 0, "SELOID", 0x6b, regvalue, cur_col, wrap)
246 #if AIC_DEBUG_REGISTERS
247 ahd_reg_print_t ahd_sg_state_print;
249 #define ahd_sg_state_print(regvalue, cur_col, wrap) \
250 ahd_print_register(NULL, 0, "SG_STATE", 0xa6, regvalue, cur_col, wrap)
253 #if AIC_DEBUG_REGISTERS
254 ahd_reg_print_t ahd_ccscbctl_print;
256 #define ahd_ccscbctl_print(regvalue, cur_col, wrap) \
257 ahd_print_register(NULL, 0, "CCSCBCTL", 0xad, regvalue, cur_col, wrap)
260 #if AIC_DEBUG_REGISTERS
261 ahd_reg_print_t ahd_ccsgctl_print;
263 #define ahd_ccsgctl_print(regvalue, cur_col, wrap) \
264 ahd_print_register(NULL, 0, "CCSGCTL", 0xad, regvalue, cur_col, wrap)
267 #if AIC_DEBUG_REGISTERS
268 ahd_reg_print_t ahd_seqctl0_print;
270 #define ahd_seqctl0_print(regvalue, cur_col, wrap) \
271 ahd_print_register(NULL, 0, "SEQCTL0", 0xd6, regvalue, cur_col, wrap)
274 #if AIC_DEBUG_REGISTERS
275 ahd_reg_print_t ahd_seqintctl_print;
277 #define ahd_seqintctl_print(regvalue, cur_col, wrap) \
278 ahd_print_register(NULL, 0, "SEQINTCTL", 0xd9, regvalue, cur_col, wrap)
281 #if AIC_DEBUG_REGISTERS
282 ahd_reg_print_t ahd_sram_base_print;
284 #define ahd_sram_base_print(regvalue, cur_col, wrap) \
285 ahd_print_register(NULL, 0, "SRAM_BASE", 0x100, regvalue, cur_col, wrap)
288 #if AIC_DEBUG_REGISTERS
289 ahd_reg_print_t ahd_qfreeze_count_print;
291 #define ahd_qfreeze_count_print(regvalue, cur_col, wrap) \
292 ahd_print_register(NULL, 0, "QFREEZE_COUNT", 0x132, regvalue, cur_col, wrap)
295 #if AIC_DEBUG_REGISTERS
296 ahd_reg_print_t ahd_kernel_qfreeze_count_print;
298 #define ahd_kernel_qfreeze_count_print(regvalue, cur_col, wrap) \
299 ahd_print_register(NULL, 0, "KERNEL_QFREEZE_COUNT", 0x134, regvalue, cur_col, wrap)
302 #if AIC_DEBUG_REGISTERS
303 ahd_reg_print_t ahd_saved_mode_print;
305 #define ahd_saved_mode_print(regvalue, cur_col, wrap) \
306 ahd_print_register(NULL, 0, "SAVED_MODE", 0x136, regvalue, cur_col, wrap)
309 #if AIC_DEBUG_REGISTERS
310 ahd_reg_print_t ahd_seq_flags_print;
312 #define ahd_seq_flags_print(regvalue, cur_col, wrap) \
313 ahd_print_register(NULL, 0, "SEQ_FLAGS", 0x139, regvalue, cur_col, wrap)
316 #if AIC_DEBUG_REGISTERS
317 ahd_reg_print_t ahd_lastphase_print;
319 #define ahd_lastphase_print(regvalue, cur_col, wrap) \
320 ahd_print_register(NULL, 0, "LASTPHASE", 0x13c, regvalue, cur_col, wrap)
323 #if AIC_DEBUG_REGISTERS
324 ahd_reg_print_t ahd_seq_flags2_print;
326 #define ahd_seq_flags2_print(regvalue, cur_col, wrap) \
327 ahd_print_register(NULL, 0, "SEQ_FLAGS2", 0x14d, regvalue, cur_col, wrap)
330 #if AIC_DEBUG_REGISTERS
331 ahd_reg_print_t ahd_mk_message_scb_print;
333 #define ahd_mk_message_scb_print(regvalue, cur_col, wrap) \
334 ahd_print_register(NULL, 0, "MK_MESSAGE_SCB", 0x160, regvalue, cur_col, wrap)
337 #if AIC_DEBUG_REGISTERS
338 ahd_reg_print_t ahd_mk_message_scsiid_print;
340 #define ahd_mk_message_scsiid_print(regvalue, cur_col, wrap) \
341 ahd_print_register(NULL, 0, "MK_MESSAGE_SCSIID", 0x162, regvalue, cur_col, wrap)
344 #if AIC_DEBUG_REGISTERS
345 ahd_reg_print_t ahd_scb_base_print;
347 #define ahd_scb_base_print(regvalue, cur_col, wrap) \
348 ahd_print_register(NULL, 0, "SCB_BASE", 0x180, regvalue, cur_col, wrap)
351 #if AIC_DEBUG_REGISTERS
352 ahd_reg_print_t ahd_scb_control_print;
354 #define ahd_scb_control_print(regvalue, cur_col, wrap) \
355 ahd_print_register(NULL, 0, "SCB_CONTROL", 0x192, regvalue, cur_col, wrap)
358 #if AIC_DEBUG_REGISTERS
359 ahd_reg_print_t ahd_scb_scsiid_print;
361 #define ahd_scb_scsiid_print(regvalue, cur_col, wrap) \
362 ahd_print_register(NULL, 0, "SCB_SCSIID", 0x193, regvalue, cur_col, wrap)
366 #define MODE_PTR 0x00
367 #define DST_MODE 0x70
368 #define SRC_MODE 0x07
371 #define INT_PEND 0xff
372 #define HWERRINT 0x80
373 #define BRKADRINT 0x40
378 #define CMDCMPLT 0x02
381 #define SEQINTCODE 0x02
382 #define BAD_SCB_STATUS 0x1a
383 #define SAW_HWERR 0x19
384 #define TRACEPOINT3 0x18
385 #define TRACEPOINT2 0x17
386 #define TRACEPOINT1 0x16
387 #define TRACEPOINT0 0x15
388 #define TASKMGMT_CMD_CMPLT_OKAY 0x14
389 #define TASKMGMT_FUNC_COMPLETE 0x13
390 #define ENTERING_NONPACK 0x12
391 #define CFG4OVERRUN 0x11
392 #define STATUS_OVERRUN 0x10
393 #define CFG4ISTAT_INTR 0x0f
394 #define INVALID_SEQINT 0x0e
395 #define ILLEGAL_PHASE 0x0d
396 #define DUMP_CARD_STATE 0x0c
397 #define MISSED_BUSFREE 0x0b
398 #define MKMSG_FAILED 0x0a
399 #define DATA_OVERRUN 0x09
400 #define BAD_STATUS 0x08
401 #define HOST_MSG_LOOP 0x07
402 #define PDATA_REINIT 0x06
403 #define IGN_WIDE_RES 0x05
404 #define NO_MATCH 0x04
405 #define PROTO_VIOLATION 0x03
406 #define SEND_REJECT 0x02
407 #define BAD_PHASE 0x01
408 #define NO_SEQINT 0x00
411 #define CLRHWERRINT 0x80
412 #define CLRBRKADRINT 0x40
413 #define CLRSWTMINT 0x20
414 #define CLRPCIINT 0x10
415 #define CLRSCSIINT 0x08
416 #define CLRSEQINT 0x04
417 #define CLRCMDINT 0x02
418 #define CLRSPLTINT 0x01
421 #define CLRCIOPARERR 0x80
422 #define CLRCIOACCESFAIL 0x40
423 #define CLRMPARERR 0x20
424 #define CLRDPARERR 0x10
425 #define CLRSQPARERR 0x08
426 #define CLRILLOPCODE 0x04
427 #define CLRDSCTMOUT 0x02
430 #define CIOPARERR 0x80
431 #define CIOACCESFAIL 0x40
434 #define SQPARERR 0x08
435 #define ILLOPCODE 0x04
436 #define DSCTMOUT 0x02
439 #define SEQ_RESET 0x80
442 #define SWTIMER_START_B 0x08
446 #define CHIPRSTACK 0x01
448 #define HNSCB_QOFF 0x06
450 #define HESCB_QOFF 0x08
452 #define HS_MAILBOX 0x0b
453 #define HOST_TQINPOS 0x80
454 #define ENINT_COALESCE 0x40
456 #define SEQINTSTAT 0x0c
457 #define SEQ_SWTMRTO 0x10
458 #define SEQ_SEQINT 0x08
459 #define SEQ_SCSIINT 0x04
460 #define SEQ_PCIINT 0x02
461 #define SEQ_SPLTINT 0x01
463 #define CLRSEQINTSTAT 0x0c
464 #define CLRSEQ_SWTMRTO 0x10
465 #define CLRSEQ_SEQINT 0x08
466 #define CLRSEQ_SCSIINT 0x04
467 #define CLRSEQ_PCIINT 0x02
468 #define CLRSEQ_SPLTINT 0x01
472 #define SNSCB_QOFF 0x10
474 #define SESCB_QOFF 0x12
476 #define SDSCB_QOFF 0x14
478 #define QOFF_CTLSTA 0x16
479 #define EMPTY_SCB_AVAIL 0x80
480 #define NEW_SCB_AVAIL 0x40
481 #define SDSCB_ROLLOVR 0x20
482 #define HS_MAILBOX_ACT 0x10
483 #define SCB_QSIZE 0x0f
484 #define SCB_QSIZE_16384 0x0c
485 #define SCB_QSIZE_8192 0x0b
486 #define SCB_QSIZE_4096 0x0a
487 #define SCB_QSIZE_2048 0x09
488 #define SCB_QSIZE_1024 0x08
489 #define SCB_QSIZE_512 0x07
490 #define SCB_QSIZE_256 0x06
491 #define SCB_QSIZE_128 0x05
492 #define SCB_QSIZE_64 0x04
493 #define SCB_QSIZE_32 0x03
494 #define SCB_QSIZE_16 0x02
495 #define SCB_QSIZE_8 0x01
496 #define SCB_QSIZE_4 0x00
499 #define SWTMINTMASK 0x80
500 #define SWTMINTEN 0x40
501 #define SWTIMER_START 0x20
502 #define AUTOCLRCMDINT 0x10
503 #define PCIINTEN 0x08
504 #define SCSIINTEN 0x04
505 #define SEQINTEN 0x02
506 #define SPLTINTEN 0x01
509 #define SCSIENWRDIS 0x40
510 #define SCSIENACK 0x20
511 #define DIRECTIONACK 0x04
512 #define FIFOFLUSHACK 0x02
513 #define DIRECTIONEN 0x01
515 #define DSCOMMAND0 0x19
516 #define CACHETHEN 0x80
517 #define DPARCKEN 0x40
518 #define MPARCKEN 0x20
519 #define EXTREQLCK 0x10
520 #define DISABLE_TWATE 0x02
521 #define CIOPARCKEN 0x01
523 #define DFSTATUS 0x1a
524 #define PRELOAD_AVAIL 0x80
525 #define PKT_PRELOAD_AVAIL 0x40
526 #define MREQPEND 0x10
528 #define DFTHRESH 0x04
529 #define FIFOFULL 0x02
533 #define RESET_HARB 0x80
534 #define RETRY_SWEN 0x08
535 #define USE_TIME 0x07
537 #define SG_CACHE_SHADOW 0x1b
539 #define LAST_SEG 0x02
540 #define LAST_SEG_DONE 0x01
542 #define SG_CACHE_PRE 0x1b
552 #define DATALENPTR 0x23
554 #define STATLENPTR 0x24
556 #define CMDLENPTR 0x25
564 #define QNEXTPTR 0x29
568 #define ABRTBYTEPTR 0x2b
570 #define ABRTBITPTR 0x2c
572 #define MAXCMDBYTES 0x2d
574 #define MAXCMD2RCV 0x2e
576 #define SHORTTHRESH 0x2f
582 #define CDBLIMIT 0x31
586 #define MAXCMDCNT 0x33
588 #define LQRSVD01 0x34
590 #define LQRSVD16 0x35
592 #define LQRSVD17 0x36
594 #define CMDRSVD0 0x37
597 #define LQITARGCLT 0xc0
598 #define LQIINITGCLT 0x30
599 #define LQ0TARGCLT 0x0c
600 #define LQ0INITGCLT 0x03
604 #define SINGLECMD 0x02
605 #define ABORTPENDING 0x01
608 #define LQIRETRY 0x80
609 #define LQICONTINUE 0x40
610 #define LQITOIDLE 0x20
611 #define LQIPAUSE 0x10
612 #define LQORETRY 0x08
613 #define LQOCONTINUE 0x04
614 #define LQOTOIDLE 0x02
615 #define LQOPAUSE 0x01
617 #define SCSBIST0 0x39
618 #define GSBISTERR 0x40
619 #define GSBISTDONE 0x20
620 #define GSBISTRUN 0x10
621 #define OSBISTERR 0x04
622 #define OSBISTDONE 0x02
623 #define OSBISTRUN 0x01
625 #define SCSISEQ0 0x3a
629 #define FORCEBUSFREE 0x10
630 #define SCSIRSTO 0x01
632 #define SCSBIST1 0x3a
633 #define NTBISTERR 0x04
634 #define NTBISTDONE 0x02
635 #define NTBISTRUN 0x01
637 #define SCSISEQ1 0x3b
639 #define BUSINITID 0x3c
641 #define SXFRCTL0 0x3c
644 #define BIOSCANCELEN 0x10
649 #define SXFRCTL1 0x3d
650 #define BITBUCKET 0x80
653 #define STIMESEL 0x18
654 #define ENSTIMER 0x04
655 #define ACTNEGEN 0x02
658 #define BUSTARGID 0x3e
660 #define SXFRCTL2 0x3e
661 #define AUTORSTDIS 0x10
662 #define CMDDMAEN 0x08
666 #define CURRFIFO 0x03
667 #define FIFO1FREE 0x20
668 #define FIFO0FREE 0x10
669 #define CURRFIFO_NONE 0x03
670 #define CURRFIFO_1 0x01
671 #define CURRFIFO_0 0x00
673 #define MULTARGID 0x40
675 #define SCSISIGO 0x40
685 #define SCSISIGI 0x41
692 #define SCSIPHASE 0x42
693 #define STATUS_PHASE 0x20
694 #define COMMAND_PHASE 0x10
695 #define MSG_IN_PHASE 0x08
696 #define MSG_OUT_PHASE 0x04
697 #define DATA_PHASE_MASK 0x03
698 #define DATA_IN_PHASE 0x02
699 #define DATA_OUT_PHASE 0x01
701 #define SCSIDAT0_IMG 0x43
707 #define TARGIDIN 0x48
712 #define SELID_MASK 0xf0
715 #define OPTIONMODE 0x4a
716 #define OPTIONMODE_DEFAULTS 0x02
717 #define BIOSCANCTL 0x80
718 #define AUTOACKEN 0x40
719 #define BIASCANCTL 0x20
720 #define BUSFREEREV 0x10
721 #define ENDGFORMCHK 0x04
722 #define AUTO_MSGOUT_DE 0x02
725 #define DIAGLEDEN 0x80
726 #define DIAGLEDON 0x40
734 #define ENSELINGO 0x10
736 #define ENOVERRUN 0x04
737 #define ENSPIORDY 0x02
750 #define CLRSINT0 0x4b
751 #define CLRSELDO 0x40
752 #define CLRSELDI 0x20
753 #define CLRSELINGO 0x10
754 #define CLRIOERR 0x08
755 #define CLROVERRUN 0x04
756 #define CLRSPIORDY 0x02
757 #define CLRARBDO 0x01
762 #define SCSIRSTI 0x20
763 #define PHASEMIS 0x10
765 #define SCSIPERR 0x04
766 #define STRB2FAST 0x02
769 #define CLRSINT1 0x4c
770 #define CLRSELTIMEO 0x80
772 #define CLRSCSIRSTI 0x20
773 #define CLRBUSFREE 0x08
774 #define CLRSCSIPERR 0x04
775 #define CLRSTRB2FAST 0x02
776 #define CLRREQINIT 0x01
779 #define ENWIDE_RES 0x04
781 #define ENDMADONE 0x01
784 #define BUSFREETIME 0xc0
785 #define NONPACKREQ 0x20
786 #define EXP_ACTIVE 0x10
788 #define WIDE_RES 0x04
791 #define BUSFREE_DFF1 0xc0
792 #define BUSFREE_DFF0 0x80
793 #define BUSFREE_LQO 0x40
795 #define CLRSINT2 0x4d
796 #define CLRNONPACKREQ 0x20
797 #define CLRWIDE_RES 0x04
798 #define CLRSDONE 0x02
799 #define CLRDMADONE 0x01
801 #define PERRDIAG 0x4e
804 #define PREVPHASE 0x20
805 #define PARITYERR 0x10
808 #define DGFORMERR 0x02
811 #define LQISTATE 0x4e
813 #define LQOSTATE 0x4f
817 #define LQISTAT0 0x50
818 #define LQIATNQAS 0x20
819 #define LQICRCT1 0x10
820 #define LQICRCT2 0x08
821 #define LQIBADLQT 0x04
822 #define LQIATNLQ 0x02
823 #define LQIATNCMD 0x01
825 #define LQIMODE0 0x50
826 #define ENLQIATNQASK 0x20
827 #define ENLQICRCT1 0x10
828 #define ENLQICRCT2 0x08
829 #define ENLQIBADLQT 0x04
830 #define ENLQIATNLQ 0x02
831 #define ENLQIATNCMD 0x01
833 #define CLRLQIINT0 0x50
834 #define CLRLQIATNQAS 0x20
835 #define CLRLQICRCT1 0x10
836 #define CLRLQICRCT2 0x08
837 #define CLRLQIBADLQT 0x04
838 #define CLRLQIATNLQ 0x02
839 #define CLRLQIATNCMD 0x01
841 #define LQIMODE1 0x51
842 #define ENLQIPHASE_LQ 0x80
843 #define ENLQIPHASE_NLQ 0x40
844 #define ENLIQABORT 0x20
845 #define ENLQICRCI_LQ 0x10
846 #define ENLQICRCI_NLQ 0x08
847 #define ENLQIBADLQI 0x04
848 #define ENLQIOVERI_LQ 0x02
849 #define ENLQIOVERI_NLQ 0x01
851 #define LQISTAT1 0x51
852 #define LQIPHASE_LQ 0x80
853 #define LQIPHASE_NLQ 0x40
854 #define LQIABORT 0x20
855 #define LQICRCI_LQ 0x10
856 #define LQICRCI_NLQ 0x08
857 #define LQIBADLQI 0x04
858 #define LQIOVERI_LQ 0x02
859 #define LQIOVERI_NLQ 0x01
861 #define CLRLQIINT1 0x51
862 #define CLRLQIPHASE_LQ 0x80
863 #define CLRLQIPHASE_NLQ 0x40
864 #define CLRLIQABORT 0x20
865 #define CLRLQICRCI_LQ 0x10
866 #define CLRLQICRCI_NLQ 0x08
867 #define CLRLQIBADLQI 0x04
868 #define CLRLQIOVERI_LQ 0x02
869 #define CLRLQIOVERI_NLQ 0x01
871 #define LQISTAT2 0x52
872 #define PACKETIZED 0x80
873 #define LQIPHASE_OUTPKT 0x40
874 #define LQIWORKONLQ 0x20
875 #define LQIWAITFIFO 0x10
876 #define LQISTOPPKT 0x08
877 #define LQISTOPLQ 0x04
878 #define LQISTOPCMD 0x02
879 #define LQIGSAVAIL 0x01
882 #define ENNTRAMPERR 0x02
883 #define ENOSRAMPERR 0x01
886 #define NTRAMPERR 0x02
887 #define OSRAMPERR 0x01
889 #define CLRSINT3 0x53
890 #define CLRNTRAMPERR 0x02
891 #define CLROSRAMPERR 0x01
893 #define CLRLQOINT0 0x54
894 #define CLRLQOTARGSCBPERR 0x10
895 #define CLRLQOSTOPT2 0x08
896 #define CLRLQOATNLQ 0x04
897 #define CLRLQOATNPKT 0x02
898 #define CLRLQOTCRC 0x01
900 #define LQOSTAT0 0x54
901 #define LQOTARGSCBPERR 0x10
902 #define LQOSTOPT2 0x08
903 #define LQOATNLQ 0x04
904 #define LQOATNPKT 0x02
907 #define LQOMODE0 0x54
908 #define ENLQOTARGSCBPERR 0x10
909 #define ENLQOSTOPT2 0x08
910 #define ENLQOATNLQ 0x04
911 #define ENLQOATNPKT 0x02
912 #define ENLQOTCRC 0x01
914 #define LQOMODE1 0x55
915 #define ENLQOINITSCBPERR 0x10
916 #define ENLQOSTOPI2 0x08
917 #define ENLQOBADQAS 0x04
918 #define ENLQOBUSFREE 0x02
919 #define ENLQOPHACHGINPKT 0x01
921 #define CLRLQOINT1 0x55
922 #define CLRLQOINITSCBPERR 0x10
923 #define CLRLQOSTOPI2 0x08
924 #define CLRLQOBADQAS 0x04
925 #define CLRLQOBUSFREE 0x02
926 #define CLRLQOPHACHGINPKT 0x01
928 #define LQOSTAT1 0x55
929 #define LQOINITSCBPERR 0x10
930 #define LQOSTOPI2 0x08
931 #define LQOBADQAS 0x04
932 #define LQOBUSFREE 0x02
933 #define LQOPHACHGINPKT 0x01
935 #define LQOSTAT2 0x56
937 #define LQOWAITFIFO 0x10
938 #define LQOPHACHGOUTPKT 0x02
939 #define LQOSTOP0 0x01
941 #define OS_SPACE_CNT 0x56
944 #define ENSELTIMO 0x80
945 #define ENATNTARG 0x40
946 #define ENSCSIRST 0x20
947 #define ENPHASEMIS 0x10
948 #define ENBUSFREE 0x08
949 #define ENSCSIPERR 0x04
950 #define ENSTRB2FAST 0x02
951 #define ENREQINIT 0x01
955 #define DFFSXFRCTL 0x5a
956 #define DFFBITBUCKET 0x08
957 #define CLRSHCNT 0x04
961 #define LQOSCSCTL 0x5a
962 #define LQOH2A_VERSION 0x80
963 #define LQOBUSETDLY 0x40
964 #define LQONOHOLDLACK 0x02
965 #define LQONOCHKOVER 0x01
969 #define CLRSEQINTSRC 0x5b
970 #define CLRCTXTDONE 0x40
971 #define CLRSAVEPTRS 0x20
972 #define CLRCFG4DATA 0x10
973 #define CLRCFG4ISTAT 0x08
974 #define CLRCFG4TSTAT 0x04
975 #define CLRCFG4ICMD 0x02
976 #define CLRCFG4TCMD 0x01
978 #define SEQINTSRC 0x5b
979 #define CTXTDONE 0x40
980 #define SAVEPTRS 0x20
981 #define CFG4DATA 0x10
982 #define CFG4ISTAT 0x08
983 #define CFG4TSTAT 0x04
984 #define CFG4ICMD 0x02
985 #define CFG4TCMD 0x01
987 #define SEQIMODE 0x5c
988 #define ENCTXTDONE 0x40
989 #define ENSAVEPTRS 0x20
990 #define ENCFG4DATA 0x10
991 #define ENCFG4ISTAT 0x08
992 #define ENCFG4TSTAT 0x04
993 #define ENCFG4ICMD 0x02
994 #define ENCFG4TCMD 0x01
998 #define CRCCONTROL 0x5d
999 #define CRCVALCHKEN 0x40
1001 #define MDFFSTAT 0x5d
1002 #define SHCNTNEGATIVE 0x40
1003 #define SHCNTMINUS1 0x20
1004 #define LASTSDONE 0x10
1005 #define SHVALID 0x08
1007 #define DATAINFIFO 0x02
1008 #define FIFOFREE 0x01
1012 #define SCSITEST 0x5e
1013 #define CNTRTEST 0x08
1014 #define SEL_TXPLL_DEBUG 0x04
1016 #define LASTSCB 0x5e
1018 #define IOPDNCTL 0x5f
1019 #define DISABLE_OE 0x80
1020 #define PDN_IDIST 0x04
1021 #define PDN_DIFFSENSE 0x01
1023 #define DGRPCRCI 0x60
1025 #define NEGOADDR 0x60
1029 #define NEGPERIOD 0x61
1031 #define NEGOFFSET 0x62
1033 #define PACKCRCI 0x62
1035 #define NEGPPROPTS 0x63
1036 #define PPROPT_PACE 0x08
1037 #define PPROPT_QAS 0x04
1038 #define PPROPT_DT 0x02
1039 #define PPROPT_IUT 0x01
1041 #define NEGCONOPTS 0x64
1042 #define ENSNAPSHOT 0x40
1043 #define RTI_WRTDIS 0x20
1044 #define RTI_OVRDTRN 0x10
1045 #define ENSLOWCRC 0x08
1046 #define ENAUTOATNI 0x04
1047 #define ENAUTOATNO 0x02
1048 #define WIDEXFER 0x01
1050 #define ANNEXCOL 0x65
1052 #define ANNEXDAT 0x66
1054 #define SCSCHKN 0x66
1055 #define BIDICHKDIS 0x80
1056 #define STSELSKIDDIS 0x40
1057 #define CURRFIFODEF 0x20
1058 #define WIDERESEN 0x10
1059 #define SDONEMSKDIS 0x08
1060 #define DFFACTCLR 0x04
1061 #define SHVALIDSTDIS 0x02
1062 #define LSTSGCLRDIS 0x01
1066 #define PLL960CTL0 0x68
1070 #define PLL960CTL1 0x69
1074 #define PLL960CNT0 0x6a
1080 #define FAIRNESS 0x6c
1082 #define PLL400CTL0 0x6c
1083 #define PLL_VCOSEL 0x80
1084 #define PLL_PWDN 0x40
1086 #define PLL_ENLUD 0x08
1087 #define PLL_ENLPF 0x04
1088 #define PLL_DLPF 0x02
1089 #define PLL_ENFBM 0x01
1091 #define PLL400CTL1 0x6d
1092 #define PLL_CNTEN 0x80
1093 #define PLL_CNTCLR 0x40
1094 #define PLL_RST 0x01
1096 #define UNFAIRNESS 0x6e
1098 #define PLL400CNT0 0x6e
1102 #define HODMAADR 0x70
1104 #define PLLDELAY 0x70
1105 #define SPLIT_DROP_REQ 0x80
1109 #define HODMACNT 0x78
1111 #define HODMAEN 0x7a
1113 #define SGHADDR 0x7c
1115 #define SCBHADDR 0x7c
1119 #define SCBHCNT 0x84
1121 #define DFF_THRSH 0x88
1122 #define WR_DFTHRSH 0x70
1123 #define RD_DFTHRSH 0x07
1124 #define WR_DFTHRSH_MAX 0x70
1125 #define WR_DFTHRSH_90 0x60
1126 #define WR_DFTHRSH_85 0x50
1127 #define WR_DFTHRSH_75 0x40
1128 #define WR_DFTHRSH_63 0x30
1129 #define WR_DFTHRSH_50 0x20
1130 #define WR_DFTHRSH_25 0x10
1131 #define RD_DFTHRSH_MAX 0x07
1132 #define RD_DFTHRSH_90 0x06
1133 #define RD_DFTHRSH_85 0x05
1134 #define RD_DFTHRSH_75 0x04
1135 #define RD_DFTHRSH_63 0x03
1136 #define RD_DFTHRSH_50 0x02
1137 #define RD_DFTHRSH_25 0x01
1138 #define RD_DFTHRSH_MIN 0x00
1139 #define WR_DFTHRSH_MIN 0x00
1141 #define ROMADDR 0x8a
1143 #define ROMCNTRL 0x8d
1149 #define ROMDATA 0x8e
1151 #define CMCRXMSG0 0x90
1153 #define OVLYRXMSG0 0x90
1155 #define DCHRXMSG0 0x90
1157 #define ROENABLE 0x90
1158 #define MSIROEN 0x20
1159 #define OVLYROEN 0x10
1160 #define CMCROEN 0x08
1162 #define DCH1ROEN 0x02
1163 #define DCH0ROEN 0x01
1165 #define OVLYRXMSG1 0x91
1167 #define CMCRXMSG1 0x91
1169 #define DCHRXMSG1 0x91
1171 #define NSENABLE 0x91
1172 #define MSINSEN 0x20
1173 #define OVLYNSEN 0x10
1174 #define CMCNSEN 0x08
1176 #define DCH1NSEN 0x02
1177 #define DCH0NSEN 0x01
1179 #define DCHRXMSG2 0x92
1181 #define CMCRXMSG2 0x92
1185 #define OVLYRXMSG2 0x92
1187 #define DCHRXMSG3 0x93
1189 #define OVLYRXMSG3 0x93
1191 #define CMCRXMSG3 0x93
1193 #define PCIXCTL 0x93
1194 #define SERRPULSE 0x80
1195 #define UNEXPSCIEN 0x20
1196 #define SPLTSMADIS 0x10
1197 #define SPLTSTADIS 0x08
1198 #define SRSPDPEEN 0x04
1199 #define TSCSERREN 0x02
1200 #define CMPABCDIS 0x01
1202 #define CMCSEQBCNT 0x94
1204 #define OVLYSEQBCNT 0x94
1206 #define DCHSEQBCNT 0x94
1208 #define DCHSPLTSTAT0 0x96
1210 #define OVLYSPLTSTAT0 0x96
1212 #define CMCSPLTSTAT0 0x96
1214 #define OVLYSPLTSTAT1 0x97
1216 #define DCHSPLTSTAT1 0x97
1218 #define CMCSPLTSTAT1 0x97
1220 #define SGRXMSG0 0x98
1224 #define SLVSPLTOUTADR0 0x98
1225 #define LOWER_ADDR 0x7f
1227 #define SGRXMSG1 0x99
1230 #define SLVSPLTOUTADR1 0x99
1231 #define REQ_DNUM 0xf8
1232 #define REQ_FNUM 0x07
1234 #define SGRXMSG2 0x9a
1237 #define SLVSPLTOUTADR2 0x9a
1238 #define REQ_BNUM 0xff
1240 #define SGRXMSG3 0x9b
1243 #define SLVSPLTOUTADR3 0x9b
1244 #define TAG_NUM 0x1f
1247 #define SLVSPLTOUTATTR0 0x9c
1248 #define LOWER_BCNT 0xff
1250 #define SGSEQBCNT 0x9c
1252 #define SLVSPLTOUTATTR1 0x9d
1253 #define CMPLT_DNUM 0xf8
1254 #define CMPLT_FNUM 0x07
1256 #define SGSPLTSTAT0 0x9e
1257 #define STAETERM 0x80
1258 #define SCBCERR 0x40
1259 #define SCADERR 0x20
1260 #define SCDATBUCKET 0x10
1261 #define CNTNOTCMPLT 0x08
1262 #define RXOVRUN 0x04
1263 #define RXSCEMSG 0x02
1264 #define RXSPLTRSP 0x01
1266 #define SLVSPLTOUTATTR2 0x9e
1267 #define CMPLT_BNUM 0xff
1269 #define SGSPLTSTAT1 0x9f
1270 #define RXDATABUCKET 0x01
1273 #define TEST_GROUP 0xf0
1274 #define TEST_NUM 0x0f
1276 #define DF0PCISTAT 0xa0
1280 #define DF1PCISTAT 0xa1
1282 #define SGPCISTAT 0xa2
1286 #define CMCPCISTAT 0xa3
1288 #define OVLYPCISTAT 0xa4
1289 #define SCAAPERR 0x08
1292 #define REG_ISR 0xa4
1294 #define SG_STATE 0xa6
1295 #define FETCH_INPROG 0x04
1296 #define LOADING_NEEDED 0x02
1297 #define SEGS_AVAIL 0x01
1299 #define MSIPCISTAT 0xa6
1302 #define CLRPENDMSI 0x08
1305 #define DATA_COUNT_ODD 0xa7
1307 #define TARGPCISTAT 0xa7
1311 #define TWATERR 0x02
1315 #define CCSCBACNT 0xab
1317 #define SCBAUTOPTR 0xab
1318 #define AUSCBPTR_EN 0x80
1319 #define SCBPTR_ADDR 0x38
1320 #define SCBPTR_OFF 0x07
1322 #define CCSGADDR 0xac
1324 #define CCSCBADDR 0xac
1326 #define CCSCBADR_BK 0xac
1328 #define CMC_RAMBIST 0xad
1329 #define SG_ELEMENT_SIZE 0x80
1330 #define SCBRAMBIST_FAIL 0x40
1331 #define SG_BIST_FAIL 0x20
1332 #define SG_BIST_EN 0x10
1333 #define CMC_BUFFER_BIST_FAIL 0x02
1334 #define CMC_BUFFER_BIST_EN 0x01
1336 #define CCSCBCTL 0xad
1337 #define CCSCBDONE 0x80
1338 #define ARRDONE 0x40
1339 #define CCARREN 0x10
1340 #define CCSCBEN 0x08
1341 #define CCSCBDIR 0x04
1342 #define CCSCBRESET 0x01
1344 #define CCSGCTL 0xad
1346 #define CCSGDONE 0x80
1347 #define SG_CACHE_AVAIL 0x10
1348 #define CCSGENACK 0x08
1349 #define SG_FETCH_REQ 0x02
1350 #define CCSGRESET 0x01
1352 #define CCSGRAM 0xb0
1354 #define FLEXADR 0xb0
1356 #define CCSCBRAM 0xb0
1358 #define FLEXCNT 0xb3
1360 #define FLEXDMASTAT 0xb5
1361 #define FLEXDMAERR 0x02
1362 #define FLEXDMADONE 0x01
1364 #define FLEXDATA 0xb6
1369 #define FLXARBACK 0x80
1370 #define FLXARBREQ 0x40
1371 #define BRDADDR 0x38
1381 #define SEEOP_EWDS 0x40
1382 #define SEEOP_WALL 0x40
1383 #define SEEOP_EWEN 0x40
1384 #define SEEOPCODE 0x70
1386 #define SEESTART 0x01
1387 #define SEEOP_ERASE 0x70
1388 #define SEEOP_READ 0x60
1389 #define SEEOP_WRITE 0x50
1390 #define SEEOP_ERAL 0x40
1392 #define SEESTAT 0xbe
1393 #define INIT_DONE 0x80
1394 #define LDALTID_L 0x08
1395 #define SEEARBACK 0x04
1396 #define SEEBUSY 0x02
1400 #define DSPFLTRCTL 0xc0
1401 #define FLTRDISABLE 0x20
1402 #define EDGESENSE 0x10
1403 #define DSPFCNTSEL 0x0f
1405 #define DFWADDR 0xc0
1407 #define DSPDATACTL 0xc1
1408 #define BYPASSENAB 0x80
1409 #define DESQDIS 0x10
1410 #define RCVROFFSTDIS 0x04
1411 #define XMITOFFSTDIS 0x02
1413 #define DSPREQCTL 0xc2
1414 #define MANREQCTL 0xc0
1415 #define MANREQDLY 0x3f
1417 #define DFRADDR 0xc2
1419 #define DSPACKCTL 0xc3
1420 #define MANACKCTL 0xc0
1421 #define MANACKDLY 0x3f
1425 #define DSPSELECT 0xc4
1426 #define AUTOINCEN 0x80
1429 #define WRTBIASCTL 0xc5
1430 #define AUTOXBCDIS 0x80
1431 #define XMITMANVAL 0x3f
1433 #define RCVRBIOSCTL 0xc6
1434 #define AUTORBCDIS 0x80
1435 #define RCVRMANVAL 0x3f
1437 #define WRTBIASCALC 0xc7
1441 #define RCVRBIASCALC 0xc8
1443 #define DFBKPTR 0xc9
1445 #define SKEWCALC 0xc9
1447 #define DFDBCTL 0xcb
1448 #define DFF_CIO_WR_RDY 0x20
1449 #define DFF_CIO_RD_RDY 0x10
1450 #define DFF_DIR_ERR 0x08
1451 #define DFF_RAMBIST_FAIL 0x04
1452 #define DFF_RAMBIST_DONE 0x02
1453 #define DFF_RAMBIST_EN 0x01
1459 #define OVLYADDR 0xd4
1461 #define SEQCTL0 0xd6
1462 #define PERRORDIS 0x80
1463 #define PAUSEDIS 0x40
1464 #define FAILDIS 0x20
1465 #define FASTMODE 0x10
1466 #define BRKADRINTEN 0x08
1468 #define SEQRESET 0x02
1469 #define LOADRAM 0x01
1471 #define SEQCTL1 0xd7
1472 #define OVRLAY_DATA_CHK 0x08
1473 #define RAMBIST_DONE 0x04
1474 #define RAMBIST_FAIL 0x02
1475 #define RAMBIST_EN 0x01
1481 #define SEQINTCTL 0xd9
1482 #define INTVEC1DSL 0x80
1483 #define INT1_CONTEXT 0x20
1484 #define SCS_SEQ_INT1M1 0x10
1485 #define SCS_SEQ_INT1M0 0x08
1486 #define INTMASK2 0x04
1487 #define INTMASK1 0x02
1492 #define PRGMCNT 0xde
1500 #define BRKADDR0 0xe6
1502 #define BRKADDR1 0xe6
1505 #define ALLONES 0xe8
1507 #define ALLZEROS 0xea
1515 #define FUNCTION1 0xf0
1519 #define INTVEC1_ADDR 0xf4
1521 #define CURADDR 0xf4
1523 #define LASTADDR 0xf6
1525 #define INTVEC2_ADDR 0xf6
1527 #define LONGJMP_ADDR 0xf8
1529 #define ACCUM_SAVE 0xfa
1531 #define AHD_PCI_CONFIG_BASE 0x100
1533 #define SRAM_BASE 0x100
1535 #define WAITING_SCB_TAILS 0x100
1537 #define WAITING_TID_HEAD 0x120
1539 #define WAITING_TID_TAIL 0x122
1541 #define NEXT_QUEUED_SCB_ADDR 0x124
1543 #define COMPLETE_SCB_HEAD 0x128
1545 #define COMPLETE_SCB_DMAINPROG_HEAD 0x12a
1547 #define COMPLETE_DMA_SCB_HEAD 0x12c
1549 #define COMPLETE_DMA_SCB_TAIL 0x12e
1551 #define COMPLETE_ON_QFREEZE_HEAD 0x130
1553 #define QFREEZE_COUNT 0x132
1555 #define KERNEL_QFREEZE_COUNT 0x134
1557 #define SAVED_MODE 0x136
1559 #define MSG_OUT 0x137
1561 #define DMAPARAMS 0x138
1562 #define PRELOADEN 0x80
1563 #define WIDEODD 0x40
1565 #define SDMAENACK 0x10
1568 #define HDMAENACK 0x08
1569 #define DIRECTION 0x04
1570 #define FIFOFLUSH 0x02
1571 #define FIFORESET 0x01
1573 #define SEQ_FLAGS 0x139
1574 #define NOT_IDENTIFIED 0x80
1575 #define NO_CDB_SENT 0x40
1576 #define TARGET_CMD_IS_TAGGED 0x40
1578 #define TARG_CMD_PENDING 0x10
1579 #define CMDPHASE_PENDING 0x08
1580 #define DPHASE_PENDING 0x04
1581 #define SPHASE_PENDING 0x02
1582 #define NO_DISCONNECT 0x01
1584 #define SAVED_SCSIID 0x13a
1586 #define SAVED_LUN 0x13b
1588 #define LASTPHASE 0x13c
1589 #define PHASE_MASK 0xe0
1593 #define P_BUSFREE 0x01
1594 #define P_MESGIN 0xe0
1595 #define P_STATUS 0xc0
1596 #define P_MESGOUT 0xa0
1597 #define P_COMMAND 0x80
1598 #define P_DATAIN_DT 0x60
1599 #define P_DATAIN 0x40
1600 #define P_DATAOUT_DT 0x20
1601 #define P_DATAOUT 0x00
1603 #define QOUTFIFO_ENTRY_VALID_TAG 0x13d
1605 #define KERNEL_TQINPOS 0x13e
1607 #define TQINPOS 0x13f
1609 #define SHARED_DATA_ADDR 0x140
1611 #define QOUTFIFO_NEXT_ADDR 0x144
1614 #define RETURN_1 0x148
1615 #define SEND_MSG 0x80
1616 #define SEND_SENSE 0x40
1617 #define SEND_REJ 0x20
1618 #define MSGOUT_PHASEMIS 0x10
1619 #define EXIT_MSG_LOOP 0x08
1620 #define CONT_MSG_LOOP_WRITE 0x04
1621 #define CONT_MSG_LOOP_READ 0x03
1622 #define CONT_MSG_LOOP_TARG 0x02
1625 #define RETURN_2 0x149
1627 #define LAST_MSG 0x14a
1629 #define SCSISEQ_TEMPLATE 0x14b
1630 #define MANUALCTL 0x40
1632 #define ENRSELI 0x10
1633 #define MANUALP 0x0c
1634 #define ENAUTOATNP 0x02
1635 #define ALTSTIM 0x01
1637 #define INITIATOR_TAG 0x14c
1639 #define SEQ_FLAGS2 0x14d
1640 #define SELECTOUT_QFROZEN 0x04
1641 #define TARGET_MSG_PENDING 0x02
1642 #define PENDING_MK_MESSAGE 0x01
1644 #define ALLOCFIFO_SCBPTR 0x14e
1646 #define INT_COALESCING_TIMER 0x150
1648 #define INT_COALESCING_MAXCMDS 0x152
1650 #define INT_COALESCING_MINCMDS 0x153
1652 #define CMDS_PENDING 0x154
1654 #define INT_COALESCING_CMDCOUNT 0x156
1656 #define LOCAL_HS_MAILBOX 0x157
1658 #define CMDSIZE_TABLE 0x158
1660 #define MK_MESSAGE_SCB 0x160
1662 #define MK_MESSAGE_SCSIID 0x162
1664 #define SCB_RESIDUAL_DATACNT 0x180
1665 #define SCB_CDB_STORE 0x180
1666 #define SCB_HOST_CDB_PTR 0x180
1668 #define SCB_BASE 0x180
1670 #define SCB_RESIDUAL_SGPTR 0x184
1671 #define SG_ADDR_MASK 0xf8
1672 #define SG_OVERRUN_RESID 0x02
1674 #define SCB_SCSI_STATUS 0x188
1675 #define SCB_HOST_CDB_LEN 0x188
1677 #define SCB_TARGET_PHASES 0x189
1679 #define SCB_TARGET_DATA_DIR 0x18a
1681 #define SCB_TARGET_ITAG 0x18b
1683 #define SCB_SENSE_BUSADDR 0x18c
1684 #define SCB_NEXT_COMPLETE 0x18c
1686 #define SCB_TAG 0x190
1687 #define SCB_FIFO_USE_COUNT 0x190
1689 #define SCB_CONTROL 0x192
1690 #define TARGET_SCB 0x80
1691 #define DISCENB 0x40
1692 #define TAG_ENB 0x20
1693 #define MK_MESSAGE 0x10
1694 #define STATUS_RCVD 0x08
1695 #define DISCONNECTED 0x04
1696 #define SCB_TAG_TYPE 0x03
1698 #define SCB_SCSIID 0x193
1702 #define SCB_LUN 0x194
1705 #define SCB_TASK_ATTRIBUTE 0x195
1706 #define SCB_XFERLEN_ODD 0x01
1708 #define SCB_CDB_LEN 0x196
1709 #define SCB_CDB_LEN_PTR 0x80
1711 #define SCB_TASK_MANAGEMENT 0x197
1713 #define SCB_DATAPTR 0x198
1715 #define SCB_DATACNT 0x1a0
1716 #define SG_LAST_SEG 0x80
1717 #define SG_HIGH_ADDR_BITS 0x7f
1719 #define SCB_SGPTR 0x1a4
1720 #define SG_STATUS_VALID 0x04
1721 #define SG_FULL_RESID 0x02
1722 #define SG_LIST_NULL 0x01
1724 #define SCB_BUSADDR 0x1a8
1726 #define SCB_NEXT 0x1ac
1727 #define SCB_NEXT_SCB_BUSADDR 0x1ac
1729 #define SCB_NEXT2 0x1ae
1731 #define SCB_SPARE 0x1b0
1732 #define SCB_PKT_LUN 0x1b0
1734 #define SCB_DISCONNECTED_LISTS 0x1b8
1737 #define STIMESEL_SHIFT 0x03
1738 #define STIMESEL_MIN 0x18
1739 #define INVALID_ADDR 0x80
1740 #define CMD_GROUP_CODE_SHIFT 0x05
1741 #define AHD_PRECOMP_MASK 0x07
1742 #define TARGET_DATA_IN 0x01
1743 #define SEEOP_EWEN_ADDR 0xc0
1744 #define NUMDSPS 0x14
1745 #define DST_MODE_SHIFT 0x04
1746 #define CCSCBADDR_MAX 0x80
1747 #define AHD_ANNEXCOL_PER_DEV0 0x04
1748 #define TARGET_CMD_CMPLT 0xfe
1749 #define SEEOP_WRAL_ADDR 0x40
1750 #define BUS_8_BIT 0x00
1751 #define AHD_TIMER_MAX_US 0x18ffe7
1752 #define AHD_TIMER_MAX_TICKS 0xffff
1753 #define AHD_SENSE_BUFSIZE 0x100
1754 #define AHD_PRECOMP_SHIFT 0x00
1755 #define AHD_PRECOMP_CUTBACK_37 0x07
1756 #define AHD_ANNEXCOL_PRECOMP_SLEW 0x04
1757 #define AHD_AMPLITUDE_DEF 0x07
1758 #define WRTBIASCTL_HP_DEFAULT 0x00
1759 #define TID_SHIFT 0x04
1760 #define STATUS_QUEUE_FULL 0x28
1761 #define STATUS_BUSY 0x08
1762 #define SEEOP_EWDS_ADDR 0x00
1763 #define SCB_TRANSFER_SIZE_FULL_LUN 0x38
1764 #define MK_MESSAGE_BIT_OFFSET 0x04
1765 #define MAX_OFFSET_PACED 0xfe
1766 #define MAX_OFFSET_NON_PACED 0x7f
1767 #define LUNLEN_SINGLE_LEVEL_LUN 0x0f
1768 #define CCSGADDR_MAX 0x80
1769 #define B_CURRFIFO_0 0x02
1770 #define BUS_32_BIT 0x02
1771 #define AHD_TIMER_US_PER_TICK 0x19
1772 #define AHD_SLEWRATE_SHIFT 0x03
1773 #define AHD_SLEWRATE_MASK 0x78
1774 #define AHD_SLEWRATE_DEF_REVA 0x08
1775 #define AHD_PRECOMP_CUTBACK_29 0x06
1776 #define AHD_NUM_PER_DEV_ANNEXCOLS 0x04
1777 #define AHD_ANNEXCOL_AMPLITUDE 0x06
1778 #define AHD_AMPLITUDE_SHIFT 0x00
1779 #define AHD_AMPLITUDE_MASK 0x07
1780 #define STIMESEL_BUG_ADJ 0x08
1781 #define STATUS_PKT_SENSE 0xff
1782 #define SRC_MODE_SHIFT 0x00
1783 #define SEEOP_ERAL_ADDR 0x80
1784 #define NVRAM_SCB_OFFSET 0x2c
1785 #define MAX_OFFSET_PACED_BUG 0x7f
1786 #define CCSGRAM_MAXSEGS 0x10
1787 #define AHD_SLEWRATE_DEF_REVB 0x08
1788 #define AHD_PRECOMP_CUTBACK_17 0x04
1789 #define SCB_TRANSFER_SIZE_1BYTE_LUN 0x30
1790 #define PKT_OVERRUN_BUFSIZE 0x200
1791 #define MAX_OFFSET 0xfe
1792 #define HOST_MSG 0xff
1793 #define BUS_16_BIT 0x01
1796 /* Downloaded Constant Definitions */
1797 #define SG_SIZEOF 0x04
1798 #define SG_PREFETCH_ALIGN_MASK 0x02
1799 #define SG_PREFETCH_CNT_LIMIT 0x01
1800 #define CACHELINE_MASK 0x07
1801 #define SCB_TRANSFER_SIZE 0x06
1802 #define PKT_OVERRUN_BUFOFFSET 0x05
1803 #define SG_PREFETCH_ADDR_MASK 0x03
1804 #define SG_PREFETCH_CNT 0x00
1805 #define DOWNLOAD_CONST_COUNT 0x08
1808 /* Exported Labels */
1809 #define LABEL_timer_isr 0x28b
1810 #define LABEL_seq_isr 0x28f