2 * DO NOT EDIT - This file is automatically generated
3 * from the following source files:
5 * $Id: //depot/aic7xxx/aic7xxx/aic7xxx.seq#58 $
6 * $Id: //depot/aic7xxx/aic7xxx/aic7xxx.reg#40 $
8 typedef int (ahc_reg_print_t)(u_int, u_int *, u_int);
9 typedef struct ahc_reg_parse_entry {
13 } ahc_reg_parse_entry_t;
15 #if AIC_DEBUG_REGISTERS
16 ahc_reg_print_t ahc_scsiseq_print;
18 #define ahc_scsiseq_print(regvalue, cur_col, wrap) \
19 ahc_print_register(NULL, 0, "SCSISEQ", 0x00, regvalue, cur_col, wrap)
22 #if AIC_DEBUG_REGISTERS
23 ahc_reg_print_t ahc_sxfrctl0_print;
25 #define ahc_sxfrctl0_print(regvalue, cur_col, wrap) \
26 ahc_print_register(NULL, 0, "SXFRCTL0", 0x01, regvalue, cur_col, wrap)
29 #if AIC_DEBUG_REGISTERS
30 ahc_reg_print_t ahc_sxfrctl1_print;
32 #define ahc_sxfrctl1_print(regvalue, cur_col, wrap) \
33 ahc_print_register(NULL, 0, "SXFRCTL1", 0x02, regvalue, cur_col, wrap)
36 #if AIC_DEBUG_REGISTERS
37 ahc_reg_print_t ahc_scsisigo_print;
39 #define ahc_scsisigo_print(regvalue, cur_col, wrap) \
40 ahc_print_register(NULL, 0, "SCSISIGO", 0x03, regvalue, cur_col, wrap)
43 #if AIC_DEBUG_REGISTERS
44 ahc_reg_print_t ahc_scsisigi_print;
46 #define ahc_scsisigi_print(regvalue, cur_col, wrap) \
47 ahc_print_register(NULL, 0, "SCSISIGI", 0x03, regvalue, cur_col, wrap)
50 #if AIC_DEBUG_REGISTERS
51 ahc_reg_print_t ahc_scsirate_print;
53 #define ahc_scsirate_print(regvalue, cur_col, wrap) \
54 ahc_print_register(NULL, 0, "SCSIRATE", 0x04, regvalue, cur_col, wrap)
57 #if AIC_DEBUG_REGISTERS
58 ahc_reg_print_t ahc_scsiid_print;
60 #define ahc_scsiid_print(regvalue, cur_col, wrap) \
61 ahc_print_register(NULL, 0, "SCSIID", 0x05, regvalue, cur_col, wrap)
64 #if AIC_DEBUG_REGISTERS
65 ahc_reg_print_t ahc_scsidatl_print;
67 #define ahc_scsidatl_print(regvalue, cur_col, wrap) \
68 ahc_print_register(NULL, 0, "SCSIDATL", 0x06, regvalue, cur_col, wrap)
71 #if AIC_DEBUG_REGISTERS
72 ahc_reg_print_t ahc_scsidath_print;
74 #define ahc_scsidath_print(regvalue, cur_col, wrap) \
75 ahc_print_register(NULL, 0, "SCSIDATH", 0x07, regvalue, cur_col, wrap)
78 #if AIC_DEBUG_REGISTERS
79 ahc_reg_print_t ahc_stcnt_print;
81 #define ahc_stcnt_print(regvalue, cur_col, wrap) \
82 ahc_print_register(NULL, 0, "STCNT", 0x08, regvalue, cur_col, wrap)
85 #if AIC_DEBUG_REGISTERS
86 ahc_reg_print_t ahc_optionmode_print;
88 #define ahc_optionmode_print(regvalue, cur_col, wrap) \
89 ahc_print_register(NULL, 0, "OPTIONMODE", 0x08, regvalue, cur_col, wrap)
92 #if AIC_DEBUG_REGISTERS
93 ahc_reg_print_t ahc_targcrccnt_print;
95 #define ahc_targcrccnt_print(regvalue, cur_col, wrap) \
96 ahc_print_register(NULL, 0, "TARGCRCCNT", 0x0a, regvalue, cur_col, wrap)
99 #if AIC_DEBUG_REGISTERS
100 ahc_reg_print_t ahc_clrsint0_print;
102 #define ahc_clrsint0_print(regvalue, cur_col, wrap) \
103 ahc_print_register(NULL, 0, "CLRSINT0", 0x0b, regvalue, cur_col, wrap)
106 #if AIC_DEBUG_REGISTERS
107 ahc_reg_print_t ahc_sstat0_print;
109 #define ahc_sstat0_print(regvalue, cur_col, wrap) \
110 ahc_print_register(NULL, 0, "SSTAT0", 0x0b, regvalue, cur_col, wrap)
113 #if AIC_DEBUG_REGISTERS
114 ahc_reg_print_t ahc_clrsint1_print;
116 #define ahc_clrsint1_print(regvalue, cur_col, wrap) \
117 ahc_print_register(NULL, 0, "CLRSINT1", 0x0c, regvalue, cur_col, wrap)
120 #if AIC_DEBUG_REGISTERS
121 ahc_reg_print_t ahc_sstat1_print;
123 #define ahc_sstat1_print(regvalue, cur_col, wrap) \
124 ahc_print_register(NULL, 0, "SSTAT1", 0x0c, regvalue, cur_col, wrap)
127 #if AIC_DEBUG_REGISTERS
128 ahc_reg_print_t ahc_sstat2_print;
130 #define ahc_sstat2_print(regvalue, cur_col, wrap) \
131 ahc_print_register(NULL, 0, "SSTAT2", 0x0d, regvalue, cur_col, wrap)
134 #if AIC_DEBUG_REGISTERS
135 ahc_reg_print_t ahc_sstat3_print;
137 #define ahc_sstat3_print(regvalue, cur_col, wrap) \
138 ahc_print_register(NULL, 0, "SSTAT3", 0x0e, regvalue, cur_col, wrap)
141 #if AIC_DEBUG_REGISTERS
142 ahc_reg_print_t ahc_scsiid_ultra2_print;
144 #define ahc_scsiid_ultra2_print(regvalue, cur_col, wrap) \
145 ahc_print_register(NULL, 0, "SCSIID_ULTRA2", 0x0f, regvalue, cur_col, wrap)
148 #if AIC_DEBUG_REGISTERS
149 ahc_reg_print_t ahc_simode0_print;
151 #define ahc_simode0_print(regvalue, cur_col, wrap) \
152 ahc_print_register(NULL, 0, "SIMODE0", 0x10, regvalue, cur_col, wrap)
155 #if AIC_DEBUG_REGISTERS
156 ahc_reg_print_t ahc_simode1_print;
158 #define ahc_simode1_print(regvalue, cur_col, wrap) \
159 ahc_print_register(NULL, 0, "SIMODE1", 0x11, regvalue, cur_col, wrap)
162 #if AIC_DEBUG_REGISTERS
163 ahc_reg_print_t ahc_scsibusl_print;
165 #define ahc_scsibusl_print(regvalue, cur_col, wrap) \
166 ahc_print_register(NULL, 0, "SCSIBUSL", 0x12, regvalue, cur_col, wrap)
169 #if AIC_DEBUG_REGISTERS
170 ahc_reg_print_t ahc_scsibush_print;
172 #define ahc_scsibush_print(regvalue, cur_col, wrap) \
173 ahc_print_register(NULL, 0, "SCSIBUSH", 0x13, regvalue, cur_col, wrap)
176 #if AIC_DEBUG_REGISTERS
177 ahc_reg_print_t ahc_sxfrctl2_print;
179 #define ahc_sxfrctl2_print(regvalue, cur_col, wrap) \
180 ahc_print_register(NULL, 0, "SXFRCTL2", 0x13, regvalue, cur_col, wrap)
183 #if AIC_DEBUG_REGISTERS
184 ahc_reg_print_t ahc_shaddr_print;
186 #define ahc_shaddr_print(regvalue, cur_col, wrap) \
187 ahc_print_register(NULL, 0, "SHADDR", 0x14, regvalue, cur_col, wrap)
190 #if AIC_DEBUG_REGISTERS
191 ahc_reg_print_t ahc_seltimer_print;
193 #define ahc_seltimer_print(regvalue, cur_col, wrap) \
194 ahc_print_register(NULL, 0, "SELTIMER", 0x18, regvalue, cur_col, wrap)
197 #if AIC_DEBUG_REGISTERS
198 ahc_reg_print_t ahc_selid_print;
200 #define ahc_selid_print(regvalue, cur_col, wrap) \
201 ahc_print_register(NULL, 0, "SELID", 0x19, regvalue, cur_col, wrap)
204 #if AIC_DEBUG_REGISTERS
205 ahc_reg_print_t ahc_scamctl_print;
207 #define ahc_scamctl_print(regvalue, cur_col, wrap) \
208 ahc_print_register(NULL, 0, "SCAMCTL", 0x1a, regvalue, cur_col, wrap)
211 #if AIC_DEBUG_REGISTERS
212 ahc_reg_print_t ahc_targid_print;
214 #define ahc_targid_print(regvalue, cur_col, wrap) \
215 ahc_print_register(NULL, 0, "TARGID", 0x1b, regvalue, cur_col, wrap)
218 #if AIC_DEBUG_REGISTERS
219 ahc_reg_print_t ahc_spiocap_print;
221 #define ahc_spiocap_print(regvalue, cur_col, wrap) \
222 ahc_print_register(NULL, 0, "SPIOCAP", 0x1b, regvalue, cur_col, wrap)
225 #if AIC_DEBUG_REGISTERS
226 ahc_reg_print_t ahc_brdctl_print;
228 #define ahc_brdctl_print(regvalue, cur_col, wrap) \
229 ahc_print_register(NULL, 0, "BRDCTL", 0x1d, regvalue, cur_col, wrap)
232 #if AIC_DEBUG_REGISTERS
233 ahc_reg_print_t ahc_seectl_print;
235 #define ahc_seectl_print(regvalue, cur_col, wrap) \
236 ahc_print_register(NULL, 0, "SEECTL", 0x1e, regvalue, cur_col, wrap)
239 #if AIC_DEBUG_REGISTERS
240 ahc_reg_print_t ahc_sblkctl_print;
242 #define ahc_sblkctl_print(regvalue, cur_col, wrap) \
243 ahc_print_register(NULL, 0, "SBLKCTL", 0x1f, regvalue, cur_col, wrap)
246 #if AIC_DEBUG_REGISTERS
247 ahc_reg_print_t ahc_busy_targets_print;
249 #define ahc_busy_targets_print(regvalue, cur_col, wrap) \
250 ahc_print_register(NULL, 0, "BUSY_TARGETS", 0x20, regvalue, cur_col, wrap)
253 #if AIC_DEBUG_REGISTERS
254 ahc_reg_print_t ahc_ultra_enb_print;
256 #define ahc_ultra_enb_print(regvalue, cur_col, wrap) \
257 ahc_print_register(NULL, 0, "ULTRA_ENB", 0x30, regvalue, cur_col, wrap)
260 #if AIC_DEBUG_REGISTERS
261 ahc_reg_print_t ahc_disc_dsb_print;
263 #define ahc_disc_dsb_print(regvalue, cur_col, wrap) \
264 ahc_print_register(NULL, 0, "DISC_DSB", 0x32, regvalue, cur_col, wrap)
267 #if AIC_DEBUG_REGISTERS
268 ahc_reg_print_t ahc_cmdsize_table_tail_print;
270 #define ahc_cmdsize_table_tail_print(regvalue, cur_col, wrap) \
271 ahc_print_register(NULL, 0, "CMDSIZE_TABLE_TAIL", 0x34, regvalue, cur_col, wrap)
274 #if AIC_DEBUG_REGISTERS
275 ahc_reg_print_t ahc_mwi_residual_print;
277 #define ahc_mwi_residual_print(regvalue, cur_col, wrap) \
278 ahc_print_register(NULL, 0, "MWI_RESIDUAL", 0x38, regvalue, cur_col, wrap)
281 #if AIC_DEBUG_REGISTERS
282 ahc_reg_print_t ahc_next_queued_scb_print;
284 #define ahc_next_queued_scb_print(regvalue, cur_col, wrap) \
285 ahc_print_register(NULL, 0, "NEXT_QUEUED_SCB", 0x39, regvalue, cur_col, wrap)
288 #if AIC_DEBUG_REGISTERS
289 ahc_reg_print_t ahc_msg_out_print;
291 #define ahc_msg_out_print(regvalue, cur_col, wrap) \
292 ahc_print_register(NULL, 0, "MSG_OUT", 0x3a, regvalue, cur_col, wrap)
295 #if AIC_DEBUG_REGISTERS
296 ahc_reg_print_t ahc_dmaparams_print;
298 #define ahc_dmaparams_print(regvalue, cur_col, wrap) \
299 ahc_print_register(NULL, 0, "DMAPARAMS", 0x3b, regvalue, cur_col, wrap)
302 #if AIC_DEBUG_REGISTERS
303 ahc_reg_print_t ahc_seq_flags_print;
305 #define ahc_seq_flags_print(regvalue, cur_col, wrap) \
306 ahc_print_register(NULL, 0, "SEQ_FLAGS", 0x3c, regvalue, cur_col, wrap)
309 #if AIC_DEBUG_REGISTERS
310 ahc_reg_print_t ahc_saved_scsiid_print;
312 #define ahc_saved_scsiid_print(regvalue, cur_col, wrap) \
313 ahc_print_register(NULL, 0, "SAVED_SCSIID", 0x3d, regvalue, cur_col, wrap)
316 #if AIC_DEBUG_REGISTERS
317 ahc_reg_print_t ahc_saved_lun_print;
319 #define ahc_saved_lun_print(regvalue, cur_col, wrap) \
320 ahc_print_register(NULL, 0, "SAVED_LUN", 0x3e, regvalue, cur_col, wrap)
323 #if AIC_DEBUG_REGISTERS
324 ahc_reg_print_t ahc_lastphase_print;
326 #define ahc_lastphase_print(regvalue, cur_col, wrap) \
327 ahc_print_register(NULL, 0, "LASTPHASE", 0x3f, regvalue, cur_col, wrap)
330 #if AIC_DEBUG_REGISTERS
331 ahc_reg_print_t ahc_waiting_scbh_print;
333 #define ahc_waiting_scbh_print(regvalue, cur_col, wrap) \
334 ahc_print_register(NULL, 0, "WAITING_SCBH", 0x40, regvalue, cur_col, wrap)
337 #if AIC_DEBUG_REGISTERS
338 ahc_reg_print_t ahc_disconnected_scbh_print;
340 #define ahc_disconnected_scbh_print(regvalue, cur_col, wrap) \
341 ahc_print_register(NULL, 0, "DISCONNECTED_SCBH", 0x41, regvalue, cur_col, wrap)
344 #if AIC_DEBUG_REGISTERS
345 ahc_reg_print_t ahc_free_scbh_print;
347 #define ahc_free_scbh_print(regvalue, cur_col, wrap) \
348 ahc_print_register(NULL, 0, "FREE_SCBH", 0x42, regvalue, cur_col, wrap)
351 #if AIC_DEBUG_REGISTERS
352 ahc_reg_print_t ahc_complete_scbh_print;
354 #define ahc_complete_scbh_print(regvalue, cur_col, wrap) \
355 ahc_print_register(NULL, 0, "COMPLETE_SCBH", 0x43, regvalue, cur_col, wrap)
358 #if AIC_DEBUG_REGISTERS
359 ahc_reg_print_t ahc_hscb_addr_print;
361 #define ahc_hscb_addr_print(regvalue, cur_col, wrap) \
362 ahc_print_register(NULL, 0, "HSCB_ADDR", 0x44, regvalue, cur_col, wrap)
365 #if AIC_DEBUG_REGISTERS
366 ahc_reg_print_t ahc_shared_data_addr_print;
368 #define ahc_shared_data_addr_print(regvalue, cur_col, wrap) \
369 ahc_print_register(NULL, 0, "SHARED_DATA_ADDR", 0x48, regvalue, cur_col, wrap)
372 #if AIC_DEBUG_REGISTERS
373 ahc_reg_print_t ahc_kernel_qinpos_print;
375 #define ahc_kernel_qinpos_print(regvalue, cur_col, wrap) \
376 ahc_print_register(NULL, 0, "KERNEL_QINPOS", 0x4c, regvalue, cur_col, wrap)
379 #if AIC_DEBUG_REGISTERS
380 ahc_reg_print_t ahc_qinpos_print;
382 #define ahc_qinpos_print(regvalue, cur_col, wrap) \
383 ahc_print_register(NULL, 0, "QINPOS", 0x4d, regvalue, cur_col, wrap)
386 #if AIC_DEBUG_REGISTERS
387 ahc_reg_print_t ahc_qoutpos_print;
389 #define ahc_qoutpos_print(regvalue, cur_col, wrap) \
390 ahc_print_register(NULL, 0, "QOUTPOS", 0x4e, regvalue, cur_col, wrap)
393 #if AIC_DEBUG_REGISTERS
394 ahc_reg_print_t ahc_kernel_tqinpos_print;
396 #define ahc_kernel_tqinpos_print(regvalue, cur_col, wrap) \
397 ahc_print_register(NULL, 0, "KERNEL_TQINPOS", 0x4f, regvalue, cur_col, wrap)
400 #if AIC_DEBUG_REGISTERS
401 ahc_reg_print_t ahc_tqinpos_print;
403 #define ahc_tqinpos_print(regvalue, cur_col, wrap) \
404 ahc_print_register(NULL, 0, "TQINPOS", 0x50, regvalue, cur_col, wrap)
407 #if AIC_DEBUG_REGISTERS
408 ahc_reg_print_t ahc_arg_1_print;
410 #define ahc_arg_1_print(regvalue, cur_col, wrap) \
411 ahc_print_register(NULL, 0, "ARG_1", 0x51, regvalue, cur_col, wrap)
414 #if AIC_DEBUG_REGISTERS
415 ahc_reg_print_t ahc_arg_2_print;
417 #define ahc_arg_2_print(regvalue, cur_col, wrap) \
418 ahc_print_register(NULL, 0, "ARG_2", 0x52, regvalue, cur_col, wrap)
421 #if AIC_DEBUG_REGISTERS
422 ahc_reg_print_t ahc_last_msg_print;
424 #define ahc_last_msg_print(regvalue, cur_col, wrap) \
425 ahc_print_register(NULL, 0, "LAST_MSG", 0x53, regvalue, cur_col, wrap)
428 #if AIC_DEBUG_REGISTERS
429 ahc_reg_print_t ahc_scsiseq_template_print;
431 #define ahc_scsiseq_template_print(regvalue, cur_col, wrap) \
432 ahc_print_register(NULL, 0, "SCSISEQ_TEMPLATE", 0x54, regvalue, cur_col, wrap)
435 #if AIC_DEBUG_REGISTERS
436 ahc_reg_print_t ahc_ha_274_biosglobal_print;
438 #define ahc_ha_274_biosglobal_print(regvalue, cur_col, wrap) \
439 ahc_print_register(NULL, 0, "HA_274_BIOSGLOBAL", 0x56, regvalue, cur_col, wrap)
442 #if AIC_DEBUG_REGISTERS
443 ahc_reg_print_t ahc_seq_flags2_print;
445 #define ahc_seq_flags2_print(regvalue, cur_col, wrap) \
446 ahc_print_register(NULL, 0, "SEQ_FLAGS2", 0x57, regvalue, cur_col, wrap)
449 #if AIC_DEBUG_REGISTERS
450 ahc_reg_print_t ahc_scsiconf_print;
452 #define ahc_scsiconf_print(regvalue, cur_col, wrap) \
453 ahc_print_register(NULL, 0, "SCSICONF", 0x5a, regvalue, cur_col, wrap)
456 #if AIC_DEBUG_REGISTERS
457 ahc_reg_print_t ahc_intdef_print;
459 #define ahc_intdef_print(regvalue, cur_col, wrap) \
460 ahc_print_register(NULL, 0, "INTDEF", 0x5c, regvalue, cur_col, wrap)
463 #if AIC_DEBUG_REGISTERS
464 ahc_reg_print_t ahc_hostconf_print;
466 #define ahc_hostconf_print(regvalue, cur_col, wrap) \
467 ahc_print_register(NULL, 0, "HOSTCONF", 0x5d, regvalue, cur_col, wrap)
470 #if AIC_DEBUG_REGISTERS
471 ahc_reg_print_t ahc_ha_274_biosctrl_print;
473 #define ahc_ha_274_biosctrl_print(regvalue, cur_col, wrap) \
474 ahc_print_register(NULL, 0, "HA_274_BIOSCTRL", 0x5f, regvalue, cur_col, wrap)
477 #if AIC_DEBUG_REGISTERS
478 ahc_reg_print_t ahc_seqctl_print;
480 #define ahc_seqctl_print(regvalue, cur_col, wrap) \
481 ahc_print_register(NULL, 0, "SEQCTL", 0x60, regvalue, cur_col, wrap)
484 #if AIC_DEBUG_REGISTERS
485 ahc_reg_print_t ahc_seqram_print;
487 #define ahc_seqram_print(regvalue, cur_col, wrap) \
488 ahc_print_register(NULL, 0, "SEQRAM", 0x61, regvalue, cur_col, wrap)
491 #if AIC_DEBUG_REGISTERS
492 ahc_reg_print_t ahc_seqaddr0_print;
494 #define ahc_seqaddr0_print(regvalue, cur_col, wrap) \
495 ahc_print_register(NULL, 0, "SEQADDR0", 0x62, regvalue, cur_col, wrap)
498 #if AIC_DEBUG_REGISTERS
499 ahc_reg_print_t ahc_seqaddr1_print;
501 #define ahc_seqaddr1_print(regvalue, cur_col, wrap) \
502 ahc_print_register(NULL, 0, "SEQADDR1", 0x63, regvalue, cur_col, wrap)
505 #if AIC_DEBUG_REGISTERS
506 ahc_reg_print_t ahc_accum_print;
508 #define ahc_accum_print(regvalue, cur_col, wrap) \
509 ahc_print_register(NULL, 0, "ACCUM", 0x64, regvalue, cur_col, wrap)
512 #if AIC_DEBUG_REGISTERS
513 ahc_reg_print_t ahc_sindex_print;
515 #define ahc_sindex_print(regvalue, cur_col, wrap) \
516 ahc_print_register(NULL, 0, "SINDEX", 0x65, regvalue, cur_col, wrap)
519 #if AIC_DEBUG_REGISTERS
520 ahc_reg_print_t ahc_dindex_print;
522 #define ahc_dindex_print(regvalue, cur_col, wrap) \
523 ahc_print_register(NULL, 0, "DINDEX", 0x66, regvalue, cur_col, wrap)
526 #if AIC_DEBUG_REGISTERS
527 ahc_reg_print_t ahc_allones_print;
529 #define ahc_allones_print(regvalue, cur_col, wrap) \
530 ahc_print_register(NULL, 0, "ALLONES", 0x69, regvalue, cur_col, wrap)
533 #if AIC_DEBUG_REGISTERS
534 ahc_reg_print_t ahc_allzeros_print;
536 #define ahc_allzeros_print(regvalue, cur_col, wrap) \
537 ahc_print_register(NULL, 0, "ALLZEROS", 0x6a, regvalue, cur_col, wrap)
540 #if AIC_DEBUG_REGISTERS
541 ahc_reg_print_t ahc_none_print;
543 #define ahc_none_print(regvalue, cur_col, wrap) \
544 ahc_print_register(NULL, 0, "NONE", 0x6a, regvalue, cur_col, wrap)
547 #if AIC_DEBUG_REGISTERS
548 ahc_reg_print_t ahc_flags_print;
550 #define ahc_flags_print(regvalue, cur_col, wrap) \
551 ahc_print_register(NULL, 0, "FLAGS", 0x6b, regvalue, cur_col, wrap)
554 #if AIC_DEBUG_REGISTERS
555 ahc_reg_print_t ahc_sindir_print;
557 #define ahc_sindir_print(regvalue, cur_col, wrap) \
558 ahc_print_register(NULL, 0, "SINDIR", 0x6c, regvalue, cur_col, wrap)
561 #if AIC_DEBUG_REGISTERS
562 ahc_reg_print_t ahc_dindir_print;
564 #define ahc_dindir_print(regvalue, cur_col, wrap) \
565 ahc_print_register(NULL, 0, "DINDIR", 0x6d, regvalue, cur_col, wrap)
568 #if AIC_DEBUG_REGISTERS
569 ahc_reg_print_t ahc_function1_print;
571 #define ahc_function1_print(regvalue, cur_col, wrap) \
572 ahc_print_register(NULL, 0, "FUNCTION1", 0x6e, regvalue, cur_col, wrap)
575 #if AIC_DEBUG_REGISTERS
576 ahc_reg_print_t ahc_stack_print;
578 #define ahc_stack_print(regvalue, cur_col, wrap) \
579 ahc_print_register(NULL, 0, "STACK", 0x6f, regvalue, cur_col, wrap)
582 #if AIC_DEBUG_REGISTERS
583 ahc_reg_print_t ahc_targ_offset_print;
585 #define ahc_targ_offset_print(regvalue, cur_col, wrap) \
586 ahc_print_register(NULL, 0, "TARG_OFFSET", 0x70, regvalue, cur_col, wrap)
589 #if AIC_DEBUG_REGISTERS
590 ahc_reg_print_t ahc_sram_base_print;
592 #define ahc_sram_base_print(regvalue, cur_col, wrap) \
593 ahc_print_register(NULL, 0, "SRAM_BASE", 0x70, regvalue, cur_col, wrap)
596 #if AIC_DEBUG_REGISTERS
597 ahc_reg_print_t ahc_bctl_print;
599 #define ahc_bctl_print(regvalue, cur_col, wrap) \
600 ahc_print_register(NULL, 0, "BCTL", 0x84, regvalue, cur_col, wrap)
603 #if AIC_DEBUG_REGISTERS
604 ahc_reg_print_t ahc_dscommand0_print;
606 #define ahc_dscommand0_print(regvalue, cur_col, wrap) \
607 ahc_print_register(NULL, 0, "DSCOMMAND0", 0x84, regvalue, cur_col, wrap)
610 #if AIC_DEBUG_REGISTERS
611 ahc_reg_print_t ahc_bustime_print;
613 #define ahc_bustime_print(regvalue, cur_col, wrap) \
614 ahc_print_register(NULL, 0, "BUSTIME", 0x85, regvalue, cur_col, wrap)
617 #if AIC_DEBUG_REGISTERS
618 ahc_reg_print_t ahc_dscommand1_print;
620 #define ahc_dscommand1_print(regvalue, cur_col, wrap) \
621 ahc_print_register(NULL, 0, "DSCOMMAND1", 0x85, regvalue, cur_col, wrap)
624 #if AIC_DEBUG_REGISTERS
625 ahc_reg_print_t ahc_busspd_print;
627 #define ahc_busspd_print(regvalue, cur_col, wrap) \
628 ahc_print_register(NULL, 0, "BUSSPD", 0x86, regvalue, cur_col, wrap)
631 #if AIC_DEBUG_REGISTERS
632 ahc_reg_print_t ahc_hs_mailbox_print;
634 #define ahc_hs_mailbox_print(regvalue, cur_col, wrap) \
635 ahc_print_register(NULL, 0, "HS_MAILBOX", 0x86, regvalue, cur_col, wrap)
638 #if AIC_DEBUG_REGISTERS
639 ahc_reg_print_t ahc_dspcistatus_print;
641 #define ahc_dspcistatus_print(regvalue, cur_col, wrap) \
642 ahc_print_register(NULL, 0, "DSPCISTATUS", 0x86, regvalue, cur_col, wrap)
645 #if AIC_DEBUG_REGISTERS
646 ahc_reg_print_t ahc_hcntrl_print;
648 #define ahc_hcntrl_print(regvalue, cur_col, wrap) \
649 ahc_print_register(NULL, 0, "HCNTRL", 0x87, regvalue, cur_col, wrap)
652 #if AIC_DEBUG_REGISTERS
653 ahc_reg_print_t ahc_haddr_print;
655 #define ahc_haddr_print(regvalue, cur_col, wrap) \
656 ahc_print_register(NULL, 0, "HADDR", 0x88, regvalue, cur_col, wrap)
659 #if AIC_DEBUG_REGISTERS
660 ahc_reg_print_t ahc_hcnt_print;
662 #define ahc_hcnt_print(regvalue, cur_col, wrap) \
663 ahc_print_register(NULL, 0, "HCNT", 0x8c, regvalue, cur_col, wrap)
666 #if AIC_DEBUG_REGISTERS
667 ahc_reg_print_t ahc_scbptr_print;
669 #define ahc_scbptr_print(regvalue, cur_col, wrap) \
670 ahc_print_register(NULL, 0, "SCBPTR", 0x90, regvalue, cur_col, wrap)
673 #if AIC_DEBUG_REGISTERS
674 ahc_reg_print_t ahc_intstat_print;
676 #define ahc_intstat_print(regvalue, cur_col, wrap) \
677 ahc_print_register(NULL, 0, "INTSTAT", 0x91, regvalue, cur_col, wrap)
680 #if AIC_DEBUG_REGISTERS
681 ahc_reg_print_t ahc_clrint_print;
683 #define ahc_clrint_print(regvalue, cur_col, wrap) \
684 ahc_print_register(NULL, 0, "CLRINT", 0x92, regvalue, cur_col, wrap)
687 #if AIC_DEBUG_REGISTERS
688 ahc_reg_print_t ahc_error_print;
690 #define ahc_error_print(regvalue, cur_col, wrap) \
691 ahc_print_register(NULL, 0, "ERROR", 0x92, regvalue, cur_col, wrap)
694 #if AIC_DEBUG_REGISTERS
695 ahc_reg_print_t ahc_dfcntrl_print;
697 #define ahc_dfcntrl_print(regvalue, cur_col, wrap) \
698 ahc_print_register(NULL, 0, "DFCNTRL", 0x93, regvalue, cur_col, wrap)
701 #if AIC_DEBUG_REGISTERS
702 ahc_reg_print_t ahc_dfstatus_print;
704 #define ahc_dfstatus_print(regvalue, cur_col, wrap) \
705 ahc_print_register(NULL, 0, "DFSTATUS", 0x94, regvalue, cur_col, wrap)
708 #if AIC_DEBUG_REGISTERS
709 ahc_reg_print_t ahc_dfwaddr_print;
711 #define ahc_dfwaddr_print(regvalue, cur_col, wrap) \
712 ahc_print_register(NULL, 0, "DFWADDR", 0x95, regvalue, cur_col, wrap)
715 #if AIC_DEBUG_REGISTERS
716 ahc_reg_print_t ahc_dfraddr_print;
718 #define ahc_dfraddr_print(regvalue, cur_col, wrap) \
719 ahc_print_register(NULL, 0, "DFRADDR", 0x97, regvalue, cur_col, wrap)
722 #if AIC_DEBUG_REGISTERS
723 ahc_reg_print_t ahc_dfdat_print;
725 #define ahc_dfdat_print(regvalue, cur_col, wrap) \
726 ahc_print_register(NULL, 0, "DFDAT", 0x99, regvalue, cur_col, wrap)
729 #if AIC_DEBUG_REGISTERS
730 ahc_reg_print_t ahc_scbcnt_print;
732 #define ahc_scbcnt_print(regvalue, cur_col, wrap) \
733 ahc_print_register(NULL, 0, "SCBCNT", 0x9a, regvalue, cur_col, wrap)
736 #if AIC_DEBUG_REGISTERS
737 ahc_reg_print_t ahc_qinfifo_print;
739 #define ahc_qinfifo_print(regvalue, cur_col, wrap) \
740 ahc_print_register(NULL, 0, "QINFIFO", 0x9b, regvalue, cur_col, wrap)
743 #if AIC_DEBUG_REGISTERS
744 ahc_reg_print_t ahc_qincnt_print;
746 #define ahc_qincnt_print(regvalue, cur_col, wrap) \
747 ahc_print_register(NULL, 0, "QINCNT", 0x9c, regvalue, cur_col, wrap)
750 #if AIC_DEBUG_REGISTERS
751 ahc_reg_print_t ahc_qoutfifo_print;
753 #define ahc_qoutfifo_print(regvalue, cur_col, wrap) \
754 ahc_print_register(NULL, 0, "QOUTFIFO", 0x9d, regvalue, cur_col, wrap)
757 #if AIC_DEBUG_REGISTERS
758 ahc_reg_print_t ahc_crccontrol1_print;
760 #define ahc_crccontrol1_print(regvalue, cur_col, wrap) \
761 ahc_print_register(NULL, 0, "CRCCONTROL1", 0x9d, regvalue, cur_col, wrap)
764 #if AIC_DEBUG_REGISTERS
765 ahc_reg_print_t ahc_qoutcnt_print;
767 #define ahc_qoutcnt_print(regvalue, cur_col, wrap) \
768 ahc_print_register(NULL, 0, "QOUTCNT", 0x9e, regvalue, cur_col, wrap)
771 #if AIC_DEBUG_REGISTERS
772 ahc_reg_print_t ahc_scsiphase_print;
774 #define ahc_scsiphase_print(regvalue, cur_col, wrap) \
775 ahc_print_register(NULL, 0, "SCSIPHASE", 0x9e, regvalue, cur_col, wrap)
778 #if AIC_DEBUG_REGISTERS
779 ahc_reg_print_t ahc_sfunct_print;
781 #define ahc_sfunct_print(regvalue, cur_col, wrap) \
782 ahc_print_register(NULL, 0, "SFUNCT", 0x9f, regvalue, cur_col, wrap)
785 #if AIC_DEBUG_REGISTERS
786 ahc_reg_print_t ahc_scb_base_print;
788 #define ahc_scb_base_print(regvalue, cur_col, wrap) \
789 ahc_print_register(NULL, 0, "SCB_BASE", 0xa0, regvalue, cur_col, wrap)
792 #if AIC_DEBUG_REGISTERS
793 ahc_reg_print_t ahc_scb_cdb_ptr_print;
795 #define ahc_scb_cdb_ptr_print(regvalue, cur_col, wrap) \
796 ahc_print_register(NULL, 0, "SCB_CDB_PTR", 0xa0, regvalue, cur_col, wrap)
799 #if AIC_DEBUG_REGISTERS
800 ahc_reg_print_t ahc_scb_residual_sgptr_print;
802 #define ahc_scb_residual_sgptr_print(regvalue, cur_col, wrap) \
803 ahc_print_register(NULL, 0, "SCB_RESIDUAL_SGPTR", 0xa4, regvalue, cur_col, wrap)
806 #if AIC_DEBUG_REGISTERS
807 ahc_reg_print_t ahc_scb_scsi_status_print;
809 #define ahc_scb_scsi_status_print(regvalue, cur_col, wrap) \
810 ahc_print_register(NULL, 0, "SCB_SCSI_STATUS", 0xa8, regvalue, cur_col, wrap)
813 #if AIC_DEBUG_REGISTERS
814 ahc_reg_print_t ahc_scb_target_phases_print;
816 #define ahc_scb_target_phases_print(regvalue, cur_col, wrap) \
817 ahc_print_register(NULL, 0, "SCB_TARGET_PHASES", 0xa9, regvalue, cur_col, wrap)
820 #if AIC_DEBUG_REGISTERS
821 ahc_reg_print_t ahc_scb_target_data_dir_print;
823 #define ahc_scb_target_data_dir_print(regvalue, cur_col, wrap) \
824 ahc_print_register(NULL, 0, "SCB_TARGET_DATA_DIR", 0xaa, regvalue, cur_col, wrap)
827 #if AIC_DEBUG_REGISTERS
828 ahc_reg_print_t ahc_scb_target_itag_print;
830 #define ahc_scb_target_itag_print(regvalue, cur_col, wrap) \
831 ahc_print_register(NULL, 0, "SCB_TARGET_ITAG", 0xab, regvalue, cur_col, wrap)
834 #if AIC_DEBUG_REGISTERS
835 ahc_reg_print_t ahc_scb_dataptr_print;
837 #define ahc_scb_dataptr_print(regvalue, cur_col, wrap) \
838 ahc_print_register(NULL, 0, "SCB_DATAPTR", 0xac, regvalue, cur_col, wrap)
841 #if AIC_DEBUG_REGISTERS
842 ahc_reg_print_t ahc_scb_datacnt_print;
844 #define ahc_scb_datacnt_print(regvalue, cur_col, wrap) \
845 ahc_print_register(NULL, 0, "SCB_DATACNT", 0xb0, regvalue, cur_col, wrap)
848 #if AIC_DEBUG_REGISTERS
849 ahc_reg_print_t ahc_scb_sgptr_print;
851 #define ahc_scb_sgptr_print(regvalue, cur_col, wrap) \
852 ahc_print_register(NULL, 0, "SCB_SGPTR", 0xb4, regvalue, cur_col, wrap)
855 #if AIC_DEBUG_REGISTERS
856 ahc_reg_print_t ahc_scb_control_print;
858 #define ahc_scb_control_print(regvalue, cur_col, wrap) \
859 ahc_print_register(NULL, 0, "SCB_CONTROL", 0xb8, regvalue, cur_col, wrap)
862 #if AIC_DEBUG_REGISTERS
863 ahc_reg_print_t ahc_scb_scsiid_print;
865 #define ahc_scb_scsiid_print(regvalue, cur_col, wrap) \
866 ahc_print_register(NULL, 0, "SCB_SCSIID", 0xb9, regvalue, cur_col, wrap)
869 #if AIC_DEBUG_REGISTERS
870 ahc_reg_print_t ahc_scb_lun_print;
872 #define ahc_scb_lun_print(regvalue, cur_col, wrap) \
873 ahc_print_register(NULL, 0, "SCB_LUN", 0xba, regvalue, cur_col, wrap)
876 #if AIC_DEBUG_REGISTERS
877 ahc_reg_print_t ahc_scb_tag_print;
879 #define ahc_scb_tag_print(regvalue, cur_col, wrap) \
880 ahc_print_register(NULL, 0, "SCB_TAG", 0xbb, regvalue, cur_col, wrap)
883 #if AIC_DEBUG_REGISTERS
884 ahc_reg_print_t ahc_scb_cdb_len_print;
886 #define ahc_scb_cdb_len_print(regvalue, cur_col, wrap) \
887 ahc_print_register(NULL, 0, "SCB_CDB_LEN", 0xbc, regvalue, cur_col, wrap)
890 #if AIC_DEBUG_REGISTERS
891 ahc_reg_print_t ahc_scb_scsirate_print;
893 #define ahc_scb_scsirate_print(regvalue, cur_col, wrap) \
894 ahc_print_register(NULL, 0, "SCB_SCSIRATE", 0xbd, regvalue, cur_col, wrap)
897 #if AIC_DEBUG_REGISTERS
898 ahc_reg_print_t ahc_scb_scsioffset_print;
900 #define ahc_scb_scsioffset_print(regvalue, cur_col, wrap) \
901 ahc_print_register(NULL, 0, "SCB_SCSIOFFSET", 0xbe, regvalue, cur_col, wrap)
904 #if AIC_DEBUG_REGISTERS
905 ahc_reg_print_t ahc_scb_next_print;
907 #define ahc_scb_next_print(regvalue, cur_col, wrap) \
908 ahc_print_register(NULL, 0, "SCB_NEXT", 0xbf, regvalue, cur_col, wrap)
911 #if AIC_DEBUG_REGISTERS
912 ahc_reg_print_t ahc_scb_64_spare_print;
914 #define ahc_scb_64_spare_print(regvalue, cur_col, wrap) \
915 ahc_print_register(NULL, 0, "SCB_64_SPARE", 0xc0, regvalue, cur_col, wrap)
918 #if AIC_DEBUG_REGISTERS
919 ahc_reg_print_t ahc_seectl_2840_print;
921 #define ahc_seectl_2840_print(regvalue, cur_col, wrap) \
922 ahc_print_register(NULL, 0, "SEECTL_2840", 0xc0, regvalue, cur_col, wrap)
925 #if AIC_DEBUG_REGISTERS
926 ahc_reg_print_t ahc_status_2840_print;
928 #define ahc_status_2840_print(regvalue, cur_col, wrap) \
929 ahc_print_register(NULL, 0, "STATUS_2840", 0xc1, regvalue, cur_col, wrap)
932 #if AIC_DEBUG_REGISTERS
933 ahc_reg_print_t ahc_scb_64_btt_print;
935 #define ahc_scb_64_btt_print(regvalue, cur_col, wrap) \
936 ahc_print_register(NULL, 0, "SCB_64_BTT", 0xd0, regvalue, cur_col, wrap)
939 #if AIC_DEBUG_REGISTERS
940 ahc_reg_print_t ahc_cchaddr_print;
942 #define ahc_cchaddr_print(regvalue, cur_col, wrap) \
943 ahc_print_register(NULL, 0, "CCHADDR", 0xe0, regvalue, cur_col, wrap)
946 #if AIC_DEBUG_REGISTERS
947 ahc_reg_print_t ahc_cchcnt_print;
949 #define ahc_cchcnt_print(regvalue, cur_col, wrap) \
950 ahc_print_register(NULL, 0, "CCHCNT", 0xe8, regvalue, cur_col, wrap)
953 #if AIC_DEBUG_REGISTERS
954 ahc_reg_print_t ahc_ccsgram_print;
956 #define ahc_ccsgram_print(regvalue, cur_col, wrap) \
957 ahc_print_register(NULL, 0, "CCSGRAM", 0xe9, regvalue, cur_col, wrap)
960 #if AIC_DEBUG_REGISTERS
961 ahc_reg_print_t ahc_ccsgaddr_print;
963 #define ahc_ccsgaddr_print(regvalue, cur_col, wrap) \
964 ahc_print_register(NULL, 0, "CCSGADDR", 0xea, regvalue, cur_col, wrap)
967 #if AIC_DEBUG_REGISTERS
968 ahc_reg_print_t ahc_ccsgctl_print;
970 #define ahc_ccsgctl_print(regvalue, cur_col, wrap) \
971 ahc_print_register(NULL, 0, "CCSGCTL", 0xeb, regvalue, cur_col, wrap)
974 #if AIC_DEBUG_REGISTERS
975 ahc_reg_print_t ahc_ccscbram_print;
977 #define ahc_ccscbram_print(regvalue, cur_col, wrap) \
978 ahc_print_register(NULL, 0, "CCSCBRAM", 0xec, regvalue, cur_col, wrap)
981 #if AIC_DEBUG_REGISTERS
982 ahc_reg_print_t ahc_ccscbaddr_print;
984 #define ahc_ccscbaddr_print(regvalue, cur_col, wrap) \
985 ahc_print_register(NULL, 0, "CCSCBADDR", 0xed, regvalue, cur_col, wrap)
988 #if AIC_DEBUG_REGISTERS
989 ahc_reg_print_t ahc_ccscbctl_print;
991 #define ahc_ccscbctl_print(regvalue, cur_col, wrap) \
992 ahc_print_register(NULL, 0, "CCSCBCTL", 0xee, regvalue, cur_col, wrap)
995 #if AIC_DEBUG_REGISTERS
996 ahc_reg_print_t ahc_ccscbcnt_print;
998 #define ahc_ccscbcnt_print(regvalue, cur_col, wrap) \
999 ahc_print_register(NULL, 0, "CCSCBCNT", 0xef, regvalue, cur_col, wrap)
1002 #if AIC_DEBUG_REGISTERS
1003 ahc_reg_print_t ahc_scbbaddr_print;
1005 #define ahc_scbbaddr_print(regvalue, cur_col, wrap) \
1006 ahc_print_register(NULL, 0, "SCBBADDR", 0xf0, regvalue, cur_col, wrap)
1009 #if AIC_DEBUG_REGISTERS
1010 ahc_reg_print_t ahc_ccscbptr_print;
1012 #define ahc_ccscbptr_print(regvalue, cur_col, wrap) \
1013 ahc_print_register(NULL, 0, "CCSCBPTR", 0xf1, regvalue, cur_col, wrap)
1016 #if AIC_DEBUG_REGISTERS
1017 ahc_reg_print_t ahc_hnscb_qoff_print;
1019 #define ahc_hnscb_qoff_print(regvalue, cur_col, wrap) \
1020 ahc_print_register(NULL, 0, "HNSCB_QOFF", 0xf4, regvalue, cur_col, wrap)
1023 #if AIC_DEBUG_REGISTERS
1024 ahc_reg_print_t ahc_snscb_qoff_print;
1026 #define ahc_snscb_qoff_print(regvalue, cur_col, wrap) \
1027 ahc_print_register(NULL, 0, "SNSCB_QOFF", 0xf6, regvalue, cur_col, wrap)
1030 #if AIC_DEBUG_REGISTERS
1031 ahc_reg_print_t ahc_sdscb_qoff_print;
1033 #define ahc_sdscb_qoff_print(regvalue, cur_col, wrap) \
1034 ahc_print_register(NULL, 0, "SDSCB_QOFF", 0xf8, regvalue, cur_col, wrap)
1037 #if AIC_DEBUG_REGISTERS
1038 ahc_reg_print_t ahc_qoff_ctlsta_print;
1040 #define ahc_qoff_ctlsta_print(regvalue, cur_col, wrap) \
1041 ahc_print_register(NULL, 0, "QOFF_CTLSTA", 0xfa, regvalue, cur_col, wrap)
1044 #if AIC_DEBUG_REGISTERS
1045 ahc_reg_print_t ahc_dff_thrsh_print;
1047 #define ahc_dff_thrsh_print(regvalue, cur_col, wrap) \
1048 ahc_print_register(NULL, 0, "DFF_THRSH", 0xfb, regvalue, cur_col, wrap)
1051 #if AIC_DEBUG_REGISTERS
1052 ahc_reg_print_t ahc_sg_cache_shadow_print;
1054 #define ahc_sg_cache_shadow_print(regvalue, cur_col, wrap) \
1055 ahc_print_register(NULL, 0, "SG_CACHE_SHADOW", 0xfc, regvalue, cur_col, wrap)
1058 #if AIC_DEBUG_REGISTERS
1059 ahc_reg_print_t ahc_sg_cache_pre_print;
1061 #define ahc_sg_cache_pre_print(regvalue, cur_col, wrap) \
1062 ahc_print_register(NULL, 0, "SG_CACHE_PRE", 0xfc, regvalue, cur_col, wrap)
1066 #define SCSISEQ 0x00
1068 #define SCSIRSTO 0x01
1070 #define SXFRCTL0 0x01
1074 #define CLRSTCNT 0x10
1079 #define SXFRCTL1 0x02
1080 #define STIMESEL 0x18
1081 #define BITBUCKET 0x80
1082 #define SWRAPEN 0x40
1083 #define ENSTIMER 0x04
1084 #define ACTNEGEN 0x02
1087 #define SCSISIGO 0x03
1097 #define SCSISIGI 0x03
1098 #define P_DATAIN_DT 0x60
1099 #define P_DATAOUT_DT 0x20
1106 #define SCSIRATE 0x04
1109 #define SXFR_ULTRA2 0x0f
1110 #define WIDEXFER 0x80
1111 #define ENABLE_CRC 0x40
1112 #define SINGLE_EDGE 0x10
1115 #define SCSIOFFSET 0x05
1116 #define SOFS_ULTRA2 0x7f
1118 #define SCSIDATL 0x06
1120 #define SCSIDATH 0x07
1124 #define OPTIONMODE 0x08
1125 #define OPTIONMODE_DEFAULTS 0x03
1126 #define AUTORATEEN 0x80
1127 #define AUTOACKEN 0x40
1128 #define ATNMGMNTEN 0x20
1129 #define BUSFREEREV 0x10
1130 #define EXPPHASEDIS 0x08
1131 #define SCSIDATL_IMGEN 0x04
1132 #define AUTO_MSGOUT_DE 0x02
1133 #define DIS_MSGIN_DUALEDGE 0x01
1135 #define TARGCRCCNT 0x0a
1137 #define CLRSINT0 0x0b
1138 #define CLRSELDO 0x40
1139 #define CLRSELDI 0x20
1140 #define CLRSELINGO 0x10
1141 #define CLRIOERR 0x08
1142 #define CLRSWRAP 0x08
1143 #define CLRSPIORDY 0x02
1149 #define SELINGO 0x10
1153 #define SPIORDY 0x02
1154 #define DMADONE 0x01
1156 #define CLRSINT1 0x0c
1157 #define CLRSELTIMEO 0x80
1158 #define CLRATNO 0x40
1159 #define CLRSCSIRSTI 0x20
1160 #define CLRBUSFREE 0x08
1161 #define CLRSCSIPERR 0x04
1162 #define CLRPHASECHG 0x02
1163 #define CLRREQINIT 0x01
1167 #define ATNTARG 0x40
1168 #define SCSIRSTI 0x20
1169 #define PHASEMIS 0x10
1170 #define BUSFREE 0x08
1171 #define SCSIPERR 0x04
1172 #define PHASECHG 0x02
1173 #define REQINIT 0x01
1177 #define OVERRUN 0x80
1178 #define SHVALID 0x40
1179 #define EXP_ACTIVE 0x10
1180 #define CRCVALERR 0x08
1181 #define CRCENDERR 0x04
1182 #define CRCREQERR 0x02
1183 #define DUAL_EDGE_ERR 0x01
1186 #define SCSICNT 0xf0
1187 #define U2OFFCNT 0x7f
1190 #define SCSIID_ULTRA2 0x0f
1192 #define SIMODE0 0x10
1193 #define ENSELDO 0x40
1194 #define ENSELDI 0x20
1195 #define ENSELINGO 0x10
1196 #define ENIOERR 0x08
1197 #define ENSWRAP 0x08
1198 #define ENSDONE 0x04
1199 #define ENSPIORDY 0x02
1200 #define ENDMADONE 0x01
1202 #define SIMODE1 0x11
1203 #define ENSELTIMO 0x80
1204 #define ENATNTARG 0x40
1205 #define ENSCSIRST 0x20
1206 #define ENPHASEMIS 0x10
1207 #define ENBUSFREE 0x08
1208 #define ENSCSIPERR 0x04
1209 #define ENPHASECHG 0x02
1210 #define ENREQINIT 0x01
1212 #define SCSIBUSL 0x12
1214 #define SCSIBUSH 0x13
1216 #define SXFRCTL2 0x13
1217 #define ASYNC_SETUP 0x07
1218 #define AUTORSTDIS 0x10
1219 #define CMDDMAEN 0x08
1223 #define SELTIMER 0x18
1224 #define TARGIDIN 0x18
1233 #define SELID_MASK 0xf0
1236 #define SCAMCTL 0x1a
1237 #define SCAMLVL 0x03
1238 #define ENSCAMSELO 0x80
1239 #define CLRSCAMSELID 0x40
1240 #define ALTSTIM 0x20
1241 #define DFLTTID 0x10
1245 #define SPIOCAP 0x1b
1248 #define SOFTCMDEN 0x20
1249 #define EXT_BRDCTL 0x10
1250 #define SEEPROM 0x08
1253 #define SSPIOCPS 0x01
1256 #define BRDDAT7 0x80
1257 #define BRDDAT6 0x40
1258 #define BRDDAT5 0x20
1259 #define BRDDAT4 0x10
1261 #define BRDDAT3 0x08
1263 #define BRDDAT2 0x04
1265 #define BRDRW_ULTRA2 0x02
1266 #define BRDCTL1 0x02
1267 #define BRDCTL0 0x01
1268 #define BRDSTB_ULTRA2 0x01
1271 #define EXTARBACK 0x80
1272 #define EXTARBREQ 0x40
1280 #define SBLKCTL 0x1f
1281 #define DIAGLEDEN 0x80
1282 #define DIAGLEDON 0x40
1283 #define AUTOFLUSHDIS 0x20
1285 #define SELBUSB 0x08
1287 #define SELWIDE 0x02
1290 #define BUSY_TARGETS 0x20
1291 #define TARG_SCSIRATE 0x20
1293 #define ULTRA_ENB 0x30
1294 #define CMDSIZE_TABLE 0x30
1296 #define DISC_DSB 0x32
1298 #define CMDSIZE_TABLE_TAIL 0x34
1300 #define MWI_RESIDUAL 0x38
1302 #define NEXT_QUEUED_SCB 0x39
1304 #define MSG_OUT 0x3a
1306 #define DMAPARAMS 0x3b
1307 #define PRELOADEN 0x80
1308 #define WIDEODD 0x40
1311 #define SDMAENACK 0x10
1313 #define HDMAENACK 0x08
1314 #define DIRECTION 0x04
1315 #define FIFOFLUSH 0x02
1316 #define FIFORESET 0x01
1318 #define SEQ_FLAGS 0x3c
1319 #define NOT_IDENTIFIED 0x80
1320 #define NO_CDB_SENT 0x40
1321 #define TARGET_CMD_IS_TAGGED 0x40
1323 #define TARG_CMD_PENDING 0x10
1324 #define CMDPHASE_PENDING 0x08
1325 #define DPHASE_PENDING 0x04
1326 #define SPHASE_PENDING 0x02
1327 #define NO_DISCONNECT 0x01
1329 #define SAVED_SCSIID 0x3d
1331 #define SAVED_LUN 0x3e
1333 #define LASTPHASE 0x3f
1334 #define P_MESGIN 0xe0
1335 #define PHASE_MASK 0xe0
1336 #define P_STATUS 0xc0
1337 #define P_MESGOUT 0xa0
1338 #define P_COMMAND 0x80
1339 #define P_DATAIN 0x40
1340 #define P_BUSFREE 0x01
1341 #define P_DATAOUT 0x00
1346 #define WAITING_SCBH 0x40
1348 #define DISCONNECTED_SCBH 0x41
1350 #define FREE_SCBH 0x42
1352 #define COMPLETE_SCBH 0x43
1354 #define HSCB_ADDR 0x44
1356 #define SHARED_DATA_ADDR 0x48
1358 #define KERNEL_QINPOS 0x4c
1362 #define QOUTPOS 0x4e
1364 #define KERNEL_TQINPOS 0x4f
1366 #define TQINPOS 0x50
1369 #define RETURN_1 0x51
1370 #define SEND_MSG 0x80
1371 #define SEND_SENSE 0x40
1372 #define SEND_REJ 0x20
1373 #define MSGOUT_PHASEMIS 0x10
1374 #define EXIT_MSG_LOOP 0x08
1375 #define CONT_MSG_LOOP 0x04
1376 #define CONT_TARG_SESSION 0x02
1379 #define RETURN_2 0x52
1381 #define LAST_MSG 0x53
1382 #define TARG_IMMEDIATE_SCB 0x53
1384 #define SCSISEQ_TEMPLATE 0x54
1387 #define ENRSELI 0x10
1388 #define ENAUTOATNO 0x08
1389 #define ENAUTOATNI 0x04
1390 #define ENAUTOATNP 0x02
1392 #define HA_274_BIOSGLOBAL 0x56
1393 #define INITIATOR_TAG 0x56
1394 #define HA_274_EXTENDED_TRANS 0x01
1396 #define SEQ_FLAGS2 0x57
1397 #define TARGET_MSG_PENDING 0x02
1398 #define SCB_DMA 0x01
1400 #define SCSICONF 0x5a
1401 #define HWSCSIID 0x0f
1402 #define HSCSIID 0x07
1403 #define TERM_ENB 0x80
1404 #define RESET_SCSI 0x40
1405 #define ENSPCHK 0x20
1409 #define EDGE_TRIG 0x80
1411 #define HOSTCONF 0x5d
1413 #define HA_274_BIOSCTRL 0x5f
1414 #define BIOSDISABLED 0x30
1415 #define BIOSMODE 0x30
1416 #define CHANNEL_B_PRIMARY 0x08
1419 #define PERRORDIS 0x80
1420 #define PAUSEDIS 0x40
1421 #define FAILDIS 0x20
1422 #define FASTMODE 0x10
1423 #define BRKADRINTEN 0x08
1425 #define SEQRESET 0x02
1426 #define LOADRAM 0x01
1430 #define SEQADDR0 0x62
1432 #define SEQADDR1 0x63
1433 #define SEQADDR1_MASK 0x01
1441 #define ALLONES 0x69
1443 #define ALLZEROS 0x6a
1455 #define FUNCTION1 0x6e
1459 #define TARG_OFFSET 0x70
1461 #define SRAM_BASE 0x70
1467 #define DSCOMMAND0 0x84
1468 #define CACHETHEN 0x80
1469 #define DPARCKEN 0x40
1470 #define MPARCKEN 0x20
1471 #define EXTREQLCK 0x10
1472 #define INTSCBRAMSEL 0x08
1474 #define USCBSIZE32 0x02
1475 #define CIOPARCKEN 0x01
1477 #define BUSTIME 0x85
1481 #define DSCOMMAND1 0x85
1483 #define HADDLDSEL1 0x02
1484 #define HADDLDSEL0 0x01
1487 #define DFTHRSH 0xc0
1488 #define DFTHRSH_75 0x80
1492 #define HS_MAILBOX 0x86
1493 #define HOST_MAILBOX 0xf0
1494 #define HOST_TQINPOS 0x80
1495 #define SEQ_MAILBOX 0x0f
1497 #define DSPCISTATUS 0x86
1498 #define DFTHRSH_100 0xc0
1506 #define CHIPRST 0x01
1507 #define CHIPRSTACK 0x01
1515 #define INTSTAT 0x91
1516 #define SEQINT_MASK 0xf1
1517 #define OUT_OF_RANGE 0xe1
1518 #define NO_FREE_SCB 0xd1
1519 #define SCB_MISMATCH 0xc1
1520 #define MISSED_BUSFREE 0xb1
1521 #define MKMSG_FAILED 0xa1
1522 #define DATA_OVERRUN 0x91
1523 #define PERR_DETECTED 0x81
1524 #define BAD_STATUS 0x71
1525 #define HOST_MSG_LOOP 0x61
1526 #define PDATA_REINIT 0x51
1527 #define IGN_WIDE_RES 0x41
1528 #define NO_MATCH 0x31
1529 #define PROTO_VIOLATION 0x21
1530 #define SEND_REJECT 0x11
1531 #define INT_PEND 0x0f
1532 #define BAD_PHASE 0x01
1533 #define BRKADRINT 0x08
1534 #define SCSIINT 0x04
1535 #define CMDCMPLT 0x02
1539 #define CLRPARERR 0x10
1540 #define CLRBRKADRINT 0x08
1541 #define CLRSCSIINT 0x04
1542 #define CLRCMDINT 0x02
1543 #define CLRSEQINT 0x01
1546 #define CIOPARERR 0x80
1547 #define PCIERRSTAT 0x40
1548 #define MPARERR 0x20
1549 #define DPARERR 0x10
1550 #define SQPARERR 0x08
1551 #define ILLOPCODE 0x04
1552 #define ILLSADDR 0x02
1553 #define ILLHADDR 0x01
1555 #define DFCNTRL 0x93
1557 #define DFSTATUS 0x94
1558 #define PRELOAD_AVAIL 0x80
1559 #define DFCACHETH 0x40
1560 #define FIFOQWDEMP 0x20
1561 #define MREQPEND 0x10
1563 #define DFTHRESH 0x04
1564 #define FIFOFULL 0x02
1565 #define FIFOEMP 0x01
1567 #define DFWADDR 0x95
1569 #define DFRADDR 0x97
1574 #define SCBCNT_MASK 0x1f
1575 #define SCBAUTO 0x80
1577 #define QINFIFO 0x9b
1581 #define QOUTFIFO 0x9d
1583 #define CRCCONTROL1 0x9d
1584 #define CRCONSEEN 0x80
1585 #define CRCVALCHKEN 0x40
1586 #define CRCENDCHKEN 0x20
1587 #define CRCREQCHKEN 0x10
1588 #define TARGCRCENDEN 0x08
1589 #define TARGCRCCNTEN 0x04
1591 #define QOUTCNT 0x9e
1593 #define SCSIPHASE 0x9e
1594 #define DATA_PHASE_MASK 0x03
1595 #define STATUS_PHASE 0x20
1596 #define COMMAND_PHASE 0x10
1597 #define MSG_IN_PHASE 0x08
1598 #define MSG_OUT_PHASE 0x04
1599 #define DATA_IN_PHASE 0x02
1600 #define DATA_OUT_PHASE 0x01
1603 #define ALT_MODE 0x80
1605 #define SCB_BASE 0xa0
1607 #define SCB_CDB_PTR 0xa0
1608 #define SCB_RESIDUAL_DATACNT 0xa0
1609 #define SCB_CDB_STORE 0xa0
1611 #define SCB_RESIDUAL_SGPTR 0xa4
1613 #define SCB_SCSI_STATUS 0xa8
1615 #define SCB_TARGET_PHASES 0xa9
1617 #define SCB_TARGET_DATA_DIR 0xaa
1619 #define SCB_TARGET_ITAG 0xab
1621 #define SCB_DATAPTR 0xac
1623 #define SCB_DATACNT 0xb0
1624 #define SG_HIGH_ADDR_BITS 0x7f
1625 #define SG_LAST_SEG 0x80
1627 #define SCB_SGPTR 0xb4
1628 #define SG_RESID_VALID 0x04
1629 #define SG_FULL_RESID 0x02
1630 #define SG_LIST_NULL 0x01
1632 #define SCB_CONTROL 0xb8
1633 #define SCB_TAG_TYPE 0x03
1634 #define STATUS_RCVD 0x80
1635 #define TARGET_SCB 0x80
1636 #define DISCENB 0x40
1637 #define TAG_ENB 0x20
1638 #define MK_MESSAGE 0x10
1639 #define ULTRAENB 0x08
1640 #define DISCONNECTED 0x04
1642 #define SCB_SCSIID 0xb9
1644 #define TWIN_TID 0x70
1646 #define TWIN_CHNLB 0x80
1648 #define SCB_LUN 0xba
1650 #define SCB_XFERLEN_ODD 0x80
1652 #define SCB_TAG 0xbb
1654 #define SCB_CDB_LEN 0xbc
1656 #define SCB_SCSIRATE 0xbd
1658 #define SCB_SCSIOFFSET 0xbe
1660 #define SCB_NEXT 0xbf
1662 #define SCB_64_SPARE 0xc0
1664 #define SEECTL_2840 0xc0
1665 #define CS_2840 0x04
1666 #define CK_2840 0x02
1667 #define DO_2840 0x01
1669 #define STATUS_2840 0xc1
1670 #define BIOS_SEL 0x60
1672 #define EEPROM_TF 0x80
1673 #define DI_2840 0x01
1675 #define SCB_64_BTT 0xd0
1677 #define CCHADDR 0xe0
1681 #define CCSGRAM 0xe9
1683 #define CCSGADDR 0xea
1685 #define CCSGCTL 0xeb
1686 #define CCSGDONE 0x80
1688 #define SG_FETCH_NEEDED 0x02
1689 #define CCSGRESET 0x01
1691 #define CCSCBRAM 0xec
1693 #define CCSCBADDR 0xed
1695 #define CCSCBCTL 0xee
1696 #define CCSCBDONE 0x80
1697 #define ARRDONE 0x40
1698 #define CCARREN 0x10
1699 #define CCSCBEN 0x08
1700 #define CCSCBDIR 0x04
1701 #define CCSCBRESET 0x01
1703 #define CCSCBCNT 0xef
1705 #define SCBBADDR 0xf0
1707 #define CCSCBPTR 0xf1
1709 #define HNSCB_QOFF 0xf4
1711 #define SNSCB_QOFF 0xf6
1713 #define SDSCB_QOFF 0xf8
1715 #define QOFF_CTLSTA 0xfa
1716 #define SCB_QSIZE 0x07
1717 #define SCB_QSIZE_256 0x06
1718 #define SCB_AVAIL 0x40
1719 #define SNSCB_ROLLOVER 0x20
1720 #define SDSCB_ROLLOVER 0x10
1722 #define DFF_THRSH 0xfb
1723 #define WR_DFTHRSH 0x70
1724 #define WR_DFTHRSH_MAX 0x70
1725 #define WR_DFTHRSH_90 0x60
1726 #define WR_DFTHRSH_85 0x50
1727 #define WR_DFTHRSH_75 0x40
1728 #define WR_DFTHRSH_63 0x30
1729 #define WR_DFTHRSH_50 0x20
1730 #define WR_DFTHRSH_25 0x10
1731 #define RD_DFTHRSH 0x07
1732 #define RD_DFTHRSH_MAX 0x07
1733 #define RD_DFTHRSH_90 0x06
1734 #define RD_DFTHRSH_85 0x05
1735 #define RD_DFTHRSH_75 0x04
1736 #define RD_DFTHRSH_63 0x03
1737 #define RD_DFTHRSH_50 0x02
1738 #define RD_DFTHRSH_25 0x01
1739 #define RD_DFTHRSH_MIN 0x00
1740 #define WR_DFTHRSH_MIN 0x00
1742 #define SG_CACHE_SHADOW 0xfc
1743 #define SG_ADDR_MASK 0xf8
1744 #define LAST_SEG 0x02
1745 #define LAST_SEG_DONE 0x01
1747 #define SG_CACHE_PRE 0xfc
1750 #define MAX_OFFSET_ULTRA2 0x7f
1751 #define MAX_OFFSET_16BIT 0x08
1752 #define BUS_8_BIT 0x00
1753 #define TARGET_CMD_CMPLT 0xfe
1754 #define STATUS_QUEUE_FULL 0x28
1755 #define STATUS_BUSY 0x08
1756 #define MAX_OFFSET_8BIT 0x0f
1757 #define BUS_32_BIT 0x02
1758 #define CCSGADDR_MAX 0x80
1759 #define TID_SHIFT 0x04
1760 #define SCB_DOWNLOAD_SIZE_64 0x30
1761 #define HOST_MAILBOX_SHIFT 0x04
1762 #define CMD_GROUP_CODE_SHIFT 0x05
1763 #define CCSGRAM_MAXSEGS 0x10
1764 #define SCB_LIST_NULL 0xff
1765 #define SG_SIZEOF 0x08
1766 #define SCB_DOWNLOAD_SIZE 0x20
1767 #define SEQ_MAILBOX_SHIFT 0x00
1768 #define TARGET_DATA_IN 0x01
1769 #define HOST_MSG 0xff
1770 #define MAX_OFFSET 0x7f
1771 #define BUS_16_BIT 0x01
1772 #define SCB_UPLOAD_SIZE 0x20
1773 #define STACK_SIZE 0x04
1776 /* Downloaded Constant Definitions */
1777 #define INVERTED_CACHESIZE_MASK 0x03
1778 #define SG_PREFETCH_ADDR_MASK 0x06
1779 #define SG_PREFETCH_ALIGN_MASK 0x05
1780 #define QOUTFIFO_OFFSET 0x00
1781 #define SG_PREFETCH_CNT 0x04
1782 #define CACHESIZE_MASK 0x02
1783 #define QINFIFO_OFFSET 0x01
1784 #define DOWNLOAD_CONST_COUNT 0x07
1787 /* Exported Labels */