2 * DO NOT EDIT - This file is automatically generated
3 * from the following source files:
5 * $NetBSD: aic7xxx.seq,v 1.14 2003/04/19 19:26:10 fvdl Exp $
6 * $NetBSD: aic7xxx.reg,v 1.2 2003/04/19 19:26:10 fvdl Exp $
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_sxfrctl2_print
;
172 #define ahc_sxfrctl2_print(regvalue, cur_col, wrap) \
173 ahc_print_register(NULL, 0, "SXFRCTL2", 0x13, regvalue, cur_col, wrap)
176 #if AIC_DEBUG_REGISTERS
177 ahc_reg_print_t ahc_scsibush_print
;
179 #define ahc_scsibush_print(regvalue, cur_col, wrap) \
180 ahc_print_register(NULL, 0, "SCSIBUSH", 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_data_count_odd_print
;
438 #define ahc_data_count_odd_print(regvalue, cur_col, wrap) \
439 ahc_print_register(NULL, 0, "DATA_COUNT_ODD", 0x55, regvalue, cur_col, wrap)
442 #if AIC_DEBUG_REGISTERS
443 ahc_reg_print_t ahc_ha_274_biosglobal_print
;
445 #define ahc_ha_274_biosglobal_print(regvalue, cur_col, wrap) \
446 ahc_print_register(NULL, 0, "HA_274_BIOSGLOBAL", 0x56, regvalue, cur_col, wrap)
449 #if AIC_DEBUG_REGISTERS
450 ahc_reg_print_t ahc_seq_flags2_print
;
452 #define ahc_seq_flags2_print(regvalue, cur_col, wrap) \
453 ahc_print_register(NULL, 0, "SEQ_FLAGS2", 0x57, regvalue, cur_col, wrap)
456 #if AIC_DEBUG_REGISTERS
457 ahc_reg_print_t ahc_scsiconf_print
;
459 #define ahc_scsiconf_print(regvalue, cur_col, wrap) \
460 ahc_print_register(NULL, 0, "SCSICONF", 0x5a, regvalue, cur_col, wrap)
463 #if AIC_DEBUG_REGISTERS
464 ahc_reg_print_t ahc_intdef_print
;
466 #define ahc_intdef_print(regvalue, cur_col, wrap) \
467 ahc_print_register(NULL, 0, "INTDEF", 0x5c, regvalue, cur_col, wrap)
470 #if AIC_DEBUG_REGISTERS
471 ahc_reg_print_t ahc_hostconf_print
;
473 #define ahc_hostconf_print(regvalue, cur_col, wrap) \
474 ahc_print_register(NULL, 0, "HOSTCONF", 0x5d, regvalue, cur_col, wrap)
477 #if AIC_DEBUG_REGISTERS
478 ahc_reg_print_t ahc_ha_274_biosctrl_print
;
480 #define ahc_ha_274_biosctrl_print(regvalue, cur_col, wrap) \
481 ahc_print_register(NULL, 0, "HA_274_BIOSCTRL", 0x5f, regvalue, cur_col, wrap)
484 #if AIC_DEBUG_REGISTERS
485 ahc_reg_print_t ahc_seqctl_print
;
487 #define ahc_seqctl_print(regvalue, cur_col, wrap) \
488 ahc_print_register(NULL, 0, "SEQCTL", 0x60, regvalue, cur_col, wrap)
491 #if AIC_DEBUG_REGISTERS
492 ahc_reg_print_t ahc_seqram_print
;
494 #define ahc_seqram_print(regvalue, cur_col, wrap) \
495 ahc_print_register(NULL, 0, "SEQRAM", 0x61, regvalue, cur_col, wrap)
498 #if AIC_DEBUG_REGISTERS
499 ahc_reg_print_t ahc_seqaddr0_print
;
501 #define ahc_seqaddr0_print(regvalue, cur_col, wrap) \
502 ahc_print_register(NULL, 0, "SEQADDR0", 0x62, regvalue, cur_col, wrap)
505 #if AIC_DEBUG_REGISTERS
506 ahc_reg_print_t ahc_seqaddr1_print
;
508 #define ahc_seqaddr1_print(regvalue, cur_col, wrap) \
509 ahc_print_register(NULL, 0, "SEQADDR1", 0x63, regvalue, cur_col, wrap)
512 #if AIC_DEBUG_REGISTERS
513 ahc_reg_print_t ahc_accum_print
;
515 #define ahc_accum_print(regvalue, cur_col, wrap) \
516 ahc_print_register(NULL, 0, "ACCUM", 0x64, regvalue, cur_col, wrap)
519 #if AIC_DEBUG_REGISTERS
520 ahc_reg_print_t ahc_sindex_print
;
522 #define ahc_sindex_print(regvalue, cur_col, wrap) \
523 ahc_print_register(NULL, 0, "SINDEX", 0x65, regvalue, cur_col, wrap)
526 #if AIC_DEBUG_REGISTERS
527 ahc_reg_print_t ahc_dindex_print
;
529 #define ahc_dindex_print(regvalue, cur_col, wrap) \
530 ahc_print_register(NULL, 0, "DINDEX", 0x66, regvalue, cur_col, wrap)
533 #if AIC_DEBUG_REGISTERS
534 ahc_reg_print_t ahc_allones_print
;
536 #define ahc_allones_print(regvalue, cur_col, wrap) \
537 ahc_print_register(NULL, 0, "ALLONES", 0x69, 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_allzeros_print
;
550 #define ahc_allzeros_print(regvalue, cur_col, wrap) \
551 ahc_print_register(NULL, 0, "ALLZEROS", 0x6a, regvalue, cur_col, wrap)
554 #if AIC_DEBUG_REGISTERS
555 ahc_reg_print_t ahc_flags_print
;
557 #define ahc_flags_print(regvalue, cur_col, wrap) \
558 ahc_print_register(NULL, 0, "FLAGS", 0x6b, regvalue, cur_col, wrap)
561 #if AIC_DEBUG_REGISTERS
562 ahc_reg_print_t ahc_sindir_print
;
564 #define ahc_sindir_print(regvalue, cur_col, wrap) \
565 ahc_print_register(NULL, 0, "SINDIR", 0x6c, regvalue, cur_col, wrap)
568 #if AIC_DEBUG_REGISTERS
569 ahc_reg_print_t ahc_dindir_print
;
571 #define ahc_dindir_print(regvalue, cur_col, wrap) \
572 ahc_print_register(NULL, 0, "DINDIR", 0x6d, regvalue, cur_col, wrap)
575 #if AIC_DEBUG_REGISTERS
576 ahc_reg_print_t ahc_function1_print
;
578 #define ahc_function1_print(regvalue, cur_col, wrap) \
579 ahc_print_register(NULL, 0, "FUNCTION1", 0x6e, regvalue, cur_col, wrap)
582 #if AIC_DEBUG_REGISTERS
583 ahc_reg_print_t ahc_stack_print
;
585 #define ahc_stack_print(regvalue, cur_col, wrap) \
586 ahc_print_register(NULL, 0, "STACK", 0x6f, regvalue, cur_col, wrap)
589 #if AIC_DEBUG_REGISTERS
590 ahc_reg_print_t ahc_targ_offset_print
;
592 #define ahc_targ_offset_print(regvalue, cur_col, wrap) \
593 ahc_print_register(NULL, 0, "TARG_OFFSET", 0x70, regvalue, cur_col, wrap)
596 #if AIC_DEBUG_REGISTERS
597 ahc_reg_print_t ahc_sram_base_print
;
599 #define ahc_sram_base_print(regvalue, cur_col, wrap) \
600 ahc_print_register(NULL, 0, "SRAM_BASE", 0x70, regvalue, cur_col, wrap)
603 #if AIC_DEBUG_REGISTERS
604 ahc_reg_print_t ahc_bctl_print
;
606 #define ahc_bctl_print(regvalue, cur_col, wrap) \
607 ahc_print_register(NULL, 0, "BCTL", 0x84, regvalue, cur_col, wrap)
610 #if AIC_DEBUG_REGISTERS
611 ahc_reg_print_t ahc_dscommand0_print
;
613 #define ahc_dscommand0_print(regvalue, cur_col, wrap) \
614 ahc_print_register(NULL, 0, "DSCOMMAND0", 0x84, regvalue, cur_col, wrap)
617 #if AIC_DEBUG_REGISTERS
618 ahc_reg_print_t ahc_bustime_print
;
620 #define ahc_bustime_print(regvalue, cur_col, wrap) \
621 ahc_print_register(NULL, 0, "BUSTIME", 0x85, regvalue, cur_col, wrap)
624 #if AIC_DEBUG_REGISTERS
625 ahc_reg_print_t ahc_dscommand1_print
;
627 #define ahc_dscommand1_print(regvalue, cur_col, wrap) \
628 ahc_print_register(NULL, 0, "DSCOMMAND1", 0x85, regvalue, cur_col, wrap)
631 #if AIC_DEBUG_REGISTERS
632 ahc_reg_print_t ahc_busspd_print
;
634 #define ahc_busspd_print(regvalue, cur_col, wrap) \
635 ahc_print_register(NULL, 0, "BUSSPD", 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_hs_mailbox_print
;
648 #define ahc_hs_mailbox_print(regvalue, cur_col, wrap) \
649 ahc_print_register(NULL, 0, "HS_MAILBOX", 0x86, regvalue, cur_col, wrap)
652 #if AIC_DEBUG_REGISTERS
653 ahc_reg_print_t ahc_hcntrl_print
;
655 #define ahc_hcntrl_print(regvalue, cur_col, wrap) \
656 ahc_print_register(NULL, 0, "HCNTRL", 0x87, regvalue, cur_col, wrap)
659 #if AIC_DEBUG_REGISTERS
660 ahc_reg_print_t ahc_haddr_print
;
662 #define ahc_haddr_print(regvalue, cur_col, wrap) \
663 ahc_print_register(NULL, 0, "HADDR", 0x88, regvalue, cur_col, wrap)
666 #if AIC_DEBUG_REGISTERS
667 ahc_reg_print_t ahc_hcnt_print
;
669 #define ahc_hcnt_print(regvalue, cur_col, wrap) \
670 ahc_print_register(NULL, 0, "HCNT", 0x8c, regvalue, cur_col, wrap)
673 #if AIC_DEBUG_REGISTERS
674 ahc_reg_print_t ahc_scbptr_print
;
676 #define ahc_scbptr_print(regvalue, cur_col, wrap) \
677 ahc_print_register(NULL, 0, "SCBPTR", 0x90, regvalue, cur_col, wrap)
680 #if AIC_DEBUG_REGISTERS
681 ahc_reg_print_t ahc_intstat_print
;
683 #define ahc_intstat_print(regvalue, cur_col, wrap) \
684 ahc_print_register(NULL, 0, "INTSTAT", 0x91, 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_clrint_print
;
697 #define ahc_clrint_print(regvalue, cur_col, wrap) \
698 ahc_print_register(NULL, 0, "CLRINT", 0x92, regvalue, cur_col, wrap)
701 #if AIC_DEBUG_REGISTERS
702 ahc_reg_print_t ahc_dfcntrl_print
;
704 #define ahc_dfcntrl_print(regvalue, cur_col, wrap) \
705 ahc_print_register(NULL, 0, "DFCNTRL", 0x93, regvalue, cur_col, wrap)
708 #if AIC_DEBUG_REGISTERS
709 ahc_reg_print_t ahc_dfstatus_print
;
711 #define ahc_dfstatus_print(regvalue, cur_col, wrap) \
712 ahc_print_register(NULL, 0, "DFSTATUS", 0x94, regvalue, cur_col, wrap)
715 #if AIC_DEBUG_REGISTERS
716 ahc_reg_print_t ahc_dfwaddr_print
;
718 #define ahc_dfwaddr_print(regvalue, cur_col, wrap) \
719 ahc_print_register(NULL, 0, "DFWADDR", 0x95, regvalue, cur_col, wrap)
722 #if AIC_DEBUG_REGISTERS
723 ahc_reg_print_t ahc_dfraddr_print
;
725 #define ahc_dfraddr_print(regvalue, cur_col, wrap) \
726 ahc_print_register(NULL, 0, "DFRADDR", 0x97, regvalue, cur_col, wrap)
729 #if AIC_DEBUG_REGISTERS
730 ahc_reg_print_t ahc_dfdat_print
;
732 #define ahc_dfdat_print(regvalue, cur_col, wrap) \
733 ahc_print_register(NULL, 0, "DFDAT", 0x99, regvalue, cur_col, wrap)
736 #if AIC_DEBUG_REGISTERS
737 ahc_reg_print_t ahc_scbcnt_print
;
739 #define ahc_scbcnt_print(regvalue, cur_col, wrap) \
740 ahc_print_register(NULL, 0, "SCBCNT", 0x9a, regvalue, cur_col, wrap)
743 #if AIC_DEBUG_REGISTERS
744 ahc_reg_print_t ahc_qinfifo_print
;
746 #define ahc_qinfifo_print(regvalue, cur_col, wrap) \
747 ahc_print_register(NULL, 0, "QINFIFO", 0x9b, regvalue, cur_col, wrap)
750 #if AIC_DEBUG_REGISTERS
751 ahc_reg_print_t ahc_qincnt_print
;
753 #define ahc_qincnt_print(regvalue, cur_col, wrap) \
754 ahc_print_register(NULL, 0, "QINCNT", 0x9c, 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_qoutfifo_print
;
767 #define ahc_qoutfifo_print(regvalue, cur_col, wrap) \
768 ahc_print_register(NULL, 0, "QOUTFIFO", 0x9d, 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_qoutcnt_print
;
781 #define ahc_qoutcnt_print(regvalue, cur_col, wrap) \
782 ahc_print_register(NULL, 0, "QOUTCNT", 0x9e, regvalue, cur_col, wrap)
785 #if AIC_DEBUG_REGISTERS
786 ahc_reg_print_t ahc_sfunct_print
;
788 #define ahc_sfunct_print(regvalue, cur_col, wrap) \
789 ahc_print_register(NULL, 0, "SFUNCT", 0x9f, regvalue, cur_col, wrap)
792 #if AIC_DEBUG_REGISTERS
793 ahc_reg_print_t ahc_scb_base_print
;
795 #define ahc_scb_base_print(regvalue, cur_col, wrap) \
796 ahc_print_register(NULL, 0, "SCB_BASE", 0xa0, regvalue, cur_col, wrap)
799 #if AIC_DEBUG_REGISTERS
800 ahc_reg_print_t ahc_scb_cdb_ptr_print
;
802 #define ahc_scb_cdb_ptr_print(regvalue, cur_col, wrap) \
803 ahc_print_register(NULL, 0, "SCB_CDB_PTR", 0xa0, regvalue, cur_col, wrap)
806 #if AIC_DEBUG_REGISTERS
807 ahc_reg_print_t ahc_scb_residual_sgptr_print
;
809 #define ahc_scb_residual_sgptr_print(regvalue, cur_col, wrap) \
810 ahc_print_register(NULL, 0, "SCB_RESIDUAL_SGPTR", 0xa4, regvalue, cur_col, wrap)
813 #if AIC_DEBUG_REGISTERS
814 ahc_reg_print_t ahc_scb_scsi_status_print
;
816 #define ahc_scb_scsi_status_print(regvalue, cur_col, wrap) \
817 ahc_print_register(NULL, 0, "SCB_SCSI_STATUS", 0xa8, regvalue, cur_col, wrap)
820 #if AIC_DEBUG_REGISTERS
821 ahc_reg_print_t ahc_scb_target_phases_print
;
823 #define ahc_scb_target_phases_print(regvalue, cur_col, wrap) \
824 ahc_print_register(NULL, 0, "SCB_TARGET_PHASES", 0xa9, regvalue, cur_col, wrap)
827 #if AIC_DEBUG_REGISTERS
828 ahc_reg_print_t ahc_scb_target_data_dir_print
;
830 #define ahc_scb_target_data_dir_print(regvalue, cur_col, wrap) \
831 ahc_print_register(NULL, 0, "SCB_TARGET_DATA_DIR", 0xaa, regvalue, cur_col, wrap)
834 #if AIC_DEBUG_REGISTERS
835 ahc_reg_print_t ahc_scb_target_itag_print
;
837 #define ahc_scb_target_itag_print(regvalue, cur_col, wrap) \
838 ahc_print_register(NULL, 0, "SCB_TARGET_ITAG", 0xab, regvalue, cur_col, wrap)
841 #if AIC_DEBUG_REGISTERS
842 ahc_reg_print_t ahc_scb_dataptr_print
;
844 #define ahc_scb_dataptr_print(regvalue, cur_col, wrap) \
845 ahc_print_register(NULL, 0, "SCB_DATAPTR", 0xac, regvalue, cur_col, wrap)
848 #if AIC_DEBUG_REGISTERS
849 ahc_reg_print_t ahc_scb_datacnt_print
;
851 #define ahc_scb_datacnt_print(regvalue, cur_col, wrap) \
852 ahc_print_register(NULL, 0, "SCB_DATACNT", 0xb0, regvalue, cur_col, wrap)
855 #if AIC_DEBUG_REGISTERS
856 ahc_reg_print_t ahc_scb_sgptr_print
;
858 #define ahc_scb_sgptr_print(regvalue, cur_col, wrap) \
859 ahc_print_register(NULL, 0, "SCB_SGPTR", 0xb4, regvalue, cur_col, wrap)
862 #if AIC_DEBUG_REGISTERS
863 ahc_reg_print_t ahc_scb_control_print
;
865 #define ahc_scb_control_print(regvalue, cur_col, wrap) \
866 ahc_print_register(NULL, 0, "SCB_CONTROL", 0xb8, regvalue, cur_col, wrap)
869 #if AIC_DEBUG_REGISTERS
870 ahc_reg_print_t ahc_scb_scsiid_print
;
872 #define ahc_scb_scsiid_print(regvalue, cur_col, wrap) \
873 ahc_print_register(NULL, 0, "SCB_SCSIID", 0xb9, regvalue, cur_col, wrap)
876 #if AIC_DEBUG_REGISTERS
877 ahc_reg_print_t ahc_scb_lun_print
;
879 #define ahc_scb_lun_print(regvalue, cur_col, wrap) \
880 ahc_print_register(NULL, 0, "SCB_LUN", 0xba, regvalue, cur_col, wrap)
883 #if AIC_DEBUG_REGISTERS
884 ahc_reg_print_t ahc_scb_tag_print
;
886 #define ahc_scb_tag_print(regvalue, cur_col, wrap) \
887 ahc_print_register(NULL, 0, "SCB_TAG", 0xbb, regvalue, cur_col, wrap)
890 #if AIC_DEBUG_REGISTERS
891 ahc_reg_print_t ahc_scb_cdb_len_print
;
893 #define ahc_scb_cdb_len_print(regvalue, cur_col, wrap) \
894 ahc_print_register(NULL, 0, "SCB_CDB_LEN", 0xbc, regvalue, cur_col, wrap)
897 #if AIC_DEBUG_REGISTERS
898 ahc_reg_print_t ahc_scb_scsirate_print
;
900 #define ahc_scb_scsirate_print(regvalue, cur_col, wrap) \
901 ahc_print_register(NULL, 0, "SCB_SCSIRATE", 0xbd, regvalue, cur_col, wrap)
904 #if AIC_DEBUG_REGISTERS
905 ahc_reg_print_t ahc_scb_scsioffset_print
;
907 #define ahc_scb_scsioffset_print(regvalue, cur_col, wrap) \
908 ahc_print_register(NULL, 0, "SCB_SCSIOFFSET", 0xbe, regvalue, cur_col, wrap)
911 #if AIC_DEBUG_REGISTERS
912 ahc_reg_print_t ahc_scb_next_print
;
914 #define ahc_scb_next_print(regvalue, cur_col, wrap) \
915 ahc_print_register(NULL, 0, "SCB_NEXT", 0xbf, regvalue, cur_col, wrap)
918 #if AIC_DEBUG_REGISTERS
919 ahc_reg_print_t ahc_scb_64_spare_print
;
921 #define ahc_scb_64_spare_print(regvalue, cur_col, wrap) \
922 ahc_print_register(NULL, 0, "SCB_64_SPARE", 0xc0, regvalue, cur_col, wrap)
925 #if AIC_DEBUG_REGISTERS
926 ahc_reg_print_t ahc_seectl_2840_print
;
928 #define ahc_seectl_2840_print(regvalue, cur_col, wrap) \
929 ahc_print_register(NULL, 0, "SEECTL_2840", 0xc0, regvalue, cur_col, wrap)
932 #if AIC_DEBUG_REGISTERS
933 ahc_reg_print_t ahc_status_2840_print
;
935 #define ahc_status_2840_print(regvalue, cur_col, wrap) \
936 ahc_print_register(NULL, 0, "STATUS_2840", 0xc1, regvalue, cur_col, wrap)
939 #if AIC_DEBUG_REGISTERS
940 ahc_reg_print_t ahc_scb_64_btt_print
;
942 #define ahc_scb_64_btt_print(regvalue, cur_col, wrap) \
943 ahc_print_register(NULL, 0, "SCB_64_BTT", 0xd0, regvalue, cur_col, wrap)
946 #if AIC_DEBUG_REGISTERS
947 ahc_reg_print_t ahc_cchaddr_print
;
949 #define ahc_cchaddr_print(regvalue, cur_col, wrap) \
950 ahc_print_register(NULL, 0, "CCHADDR", 0xe0, regvalue, cur_col, wrap)
953 #if AIC_DEBUG_REGISTERS
954 ahc_reg_print_t ahc_cchcnt_print
;
956 #define ahc_cchcnt_print(regvalue, cur_col, wrap) \
957 ahc_print_register(NULL, 0, "CCHCNT", 0xe8, regvalue, cur_col, wrap)
960 #if AIC_DEBUG_REGISTERS
961 ahc_reg_print_t ahc_ccsgram_print
;
963 #define ahc_ccsgram_print(regvalue, cur_col, wrap) \
964 ahc_print_register(NULL, 0, "CCSGRAM", 0xe9, regvalue, cur_col, wrap)
967 #if AIC_DEBUG_REGISTERS
968 ahc_reg_print_t ahc_ccsgaddr_print
;
970 #define ahc_ccsgaddr_print(regvalue, cur_col, wrap) \
971 ahc_print_register(NULL, 0, "CCSGADDR", 0xea, regvalue, cur_col, wrap)
974 #if AIC_DEBUG_REGISTERS
975 ahc_reg_print_t ahc_ccsgctl_print
;
977 #define ahc_ccsgctl_print(regvalue, cur_col, wrap) \
978 ahc_print_register(NULL, 0, "CCSGCTL", 0xeb, regvalue, cur_col, wrap)
981 #if AIC_DEBUG_REGISTERS
982 ahc_reg_print_t ahc_ccscbram_print
;
984 #define ahc_ccscbram_print(regvalue, cur_col, wrap) \
985 ahc_print_register(NULL, 0, "CCSCBRAM", 0xec, regvalue, cur_col, wrap)
988 #if AIC_DEBUG_REGISTERS
989 ahc_reg_print_t ahc_ccscbaddr_print
;
991 #define ahc_ccscbaddr_print(regvalue, cur_col, wrap) \
992 ahc_print_register(NULL, 0, "CCSCBADDR", 0xed, regvalue, cur_col, wrap)
995 #if AIC_DEBUG_REGISTERS
996 ahc_reg_print_t ahc_ccscbctl_print
;
998 #define ahc_ccscbctl_print(regvalue, cur_col, wrap) \
999 ahc_print_register(NULL, 0, "CCSCBCTL", 0xee, regvalue, cur_col, wrap)
1002 #if AIC_DEBUG_REGISTERS
1003 ahc_reg_print_t ahc_ccscbcnt_print
;
1005 #define ahc_ccscbcnt_print(regvalue, cur_col, wrap) \
1006 ahc_print_register(NULL, 0, "CCSCBCNT", 0xef, regvalue, cur_col, wrap)
1009 #if AIC_DEBUG_REGISTERS
1010 ahc_reg_print_t ahc_scbbaddr_print
;
1012 #define ahc_scbbaddr_print(regvalue, cur_col, wrap) \
1013 ahc_print_register(NULL, 0, "SCBBADDR", 0xf0, regvalue, cur_col, wrap)
1016 #if AIC_DEBUG_REGISTERS
1017 ahc_reg_print_t ahc_ccscbptr_print
;
1019 #define ahc_ccscbptr_print(regvalue, cur_col, wrap) \
1020 ahc_print_register(NULL, 0, "CCSCBPTR", 0xf1, regvalue, cur_col, wrap)
1023 #if AIC_DEBUG_REGISTERS
1024 ahc_reg_print_t ahc_hnscb_qoff_print
;
1026 #define ahc_hnscb_qoff_print(regvalue, cur_col, wrap) \
1027 ahc_print_register(NULL, 0, "HNSCB_QOFF", 0xf4, regvalue, cur_col, wrap)
1030 #if AIC_DEBUG_REGISTERS
1031 ahc_reg_print_t ahc_snscb_qoff_print
;
1033 #define ahc_snscb_qoff_print(regvalue, cur_col, wrap) \
1034 ahc_print_register(NULL, 0, "SNSCB_QOFF", 0xf6, regvalue, cur_col, wrap)
1037 #if AIC_DEBUG_REGISTERS
1038 ahc_reg_print_t ahc_sdscb_qoff_print
;
1040 #define ahc_sdscb_qoff_print(regvalue, cur_col, wrap) \
1041 ahc_print_register(NULL, 0, "SDSCB_QOFF", 0xf8, regvalue, cur_col, wrap)
1044 #if AIC_DEBUG_REGISTERS
1045 ahc_reg_print_t ahc_qoff_ctlsta_print
;
1047 #define ahc_qoff_ctlsta_print(regvalue, cur_col, wrap) \
1048 ahc_print_register(NULL, 0, "QOFF_CTLSTA", 0xfa, regvalue, cur_col, wrap)
1051 #if AIC_DEBUG_REGISTERS
1052 ahc_reg_print_t ahc_dff_thrsh_print
;
1054 #define ahc_dff_thrsh_print(regvalue, cur_col, wrap) \
1055 ahc_print_register(NULL, 0, "DFF_THRSH", 0xfb, regvalue, cur_col, wrap)
1058 #if AIC_DEBUG_REGISTERS
1059 ahc_reg_print_t ahc_sg_cache_shadow_print
;
1061 #define ahc_sg_cache_shadow_print(regvalue, cur_col, wrap) \
1062 ahc_print_register(NULL, 0, "SG_CACHE_SHADOW", 0xfc, regvalue, cur_col, wrap)
1065 #if AIC_DEBUG_REGISTERS
1066 ahc_reg_print_t ahc_sg_cache_pre_print
;
1068 #define ahc_sg_cache_pre_print(regvalue, cur_col, wrap) \
1069 ahc_print_register(NULL, 0, "SG_CACHE_PRE", 0xfc, regvalue, cur_col, wrap)
1073 #define SCSISEQ 0x00
1075 #define SCSIRSTO 0x01
1077 #define SXFRCTL0 0x01
1081 #define CLRSTCNT 0x10
1086 #define SXFRCTL1 0x02
1087 #define STIMESEL 0x18
1088 #define BITBUCKET 0x80
1089 #define SWRAPEN 0x40
1090 #define ENSTIMER 0x04
1091 #define ACTNEGEN 0x02
1094 #define SCSISIGO 0x03
1104 #define SCSISIGI 0x03
1105 #define P_DATAIN_DT 0x60
1106 #define P_DATAOUT_DT 0x20
1113 #define SCSIRATE 0x04
1115 #define SXFR_ULTRA2 0x0f
1117 #define WIDEXFER 0x80
1118 #define ENABLE_CRC 0x40
1119 #define SINGLE_EDGE 0x10
1122 #define SCSIOFFSET 0x05
1123 #define SOFS_ULTRA2 0x7f
1125 #define SCSIDATL 0x06
1127 #define SCSIDATH 0x07
1131 #define OPTIONMODE 0x08
1132 #define OPTIONMODE_DEFAULTS 0x03
1133 #define AUTORATEEN 0x80
1134 #define AUTOACKEN 0x40
1135 #define ATNMGMNTEN 0x20
1136 #define BUSFREEREV 0x10
1137 #define EXPPHASEDIS 0x08
1138 #define SCSIDATL_IMGEN 0x04
1139 #define AUTO_MSGOUT_DE 0x02
1140 #define DIS_MSGIN_DUALEDGE 0x01
1142 #define TARGCRCCNT 0x0a
1144 #define CLRSINT0 0x0b
1145 #define CLRSELDO 0x40
1146 #define CLRSELDI 0x20
1147 #define CLRSELINGO 0x10
1148 #define CLRSWRAP 0x08
1149 #define CLRIOERR 0x08
1150 #define CLRSPIORDY 0x02
1156 #define SELINGO 0x10
1160 #define SPIORDY 0x02
1161 #define DMADONE 0x01
1163 #define CLRSINT1 0x0c
1164 #define CLRSELTIMEO 0x80
1165 #define CLRATNO 0x40
1166 #define CLRSCSIRSTI 0x20
1167 #define CLRBUSFREE 0x08
1168 #define CLRSCSIPERR 0x04
1169 #define CLRPHASECHG 0x02
1170 #define CLRREQINIT 0x01
1174 #define ATNTARG 0x40
1175 #define SCSIRSTI 0x20
1176 #define PHASEMIS 0x10
1177 #define BUSFREE 0x08
1178 #define SCSIPERR 0x04
1179 #define PHASECHG 0x02
1180 #define REQINIT 0x01
1184 #define OVERRUN 0x80
1185 #define SHVALID 0x40
1186 #define EXP_ACTIVE 0x10
1187 #define CRCVALERR 0x08
1188 #define CRCENDERR 0x04
1189 #define CRCREQERR 0x02
1190 #define DUAL_EDGE_ERR 0x01
1193 #define SCSICNT 0xf0
1194 #define U2OFFCNT 0x7f
1197 #define SCSIID_ULTRA2 0x0f
1199 #define SIMODE0 0x10
1200 #define ENSELDO 0x40
1201 #define ENSELDI 0x20
1202 #define ENSELINGO 0x10
1203 #define ENIOERR 0x08
1204 #define ENSWRAP 0x08
1205 #define ENSDONE 0x04
1206 #define ENSPIORDY 0x02
1207 #define ENDMADONE 0x01
1209 #define SIMODE1 0x11
1210 #define ENSELTIMO 0x80
1211 #define ENATNTARG 0x40
1212 #define ENSCSIRST 0x20
1213 #define ENPHASEMIS 0x10
1214 #define ENBUSFREE 0x08
1215 #define ENSCSIPERR 0x04
1216 #define ENPHASECHG 0x02
1217 #define ENREQINIT 0x01
1219 #define SCSIBUSL 0x12
1221 #define SXFRCTL2 0x13
1222 #define ASYNC_SETUP 0x07
1223 #define AUTORSTDIS 0x10
1224 #define CMDDMAEN 0x08
1226 #define SCSIBUSH 0x13
1230 #define SELTIMER 0x18
1231 #define TARGIDIN 0x18
1240 #define SELID_MASK 0xf0
1243 #define SCAMCTL 0x1a
1244 #define SCAMLVL 0x03
1245 #define ENSCAMSELO 0x80
1246 #define CLRSCAMSELID 0x40
1247 #define ALTSTIM 0x20
1248 #define DFLTTID 0x10
1252 #define SPIOCAP 0x1b
1255 #define SOFTCMDEN 0x20
1256 #define EXT_BRDCTL 0x10
1257 #define SEEPROM 0x08
1260 #define SSPIOCPS 0x01
1263 #define BRDDAT7 0x80
1264 #define BRDDAT6 0x40
1265 #define BRDDAT5 0x20
1266 #define BRDDAT4 0x10
1269 #define BRDDAT3 0x08
1270 #define BRDDAT2 0x04
1272 #define BRDCTL1 0x02
1273 #define BRDRW_ULTRA2 0x02
1274 #define BRDCTL0 0x01
1275 #define BRDSTB_ULTRA2 0x01
1278 #define EXTARBACK 0x80
1279 #define EXTARBREQ 0x40
1287 #define SBLKCTL 0x1f
1288 #define DIAGLEDEN 0x80
1289 #define DIAGLEDON 0x40
1290 #define AUTOFLUSHDIS 0x20
1292 #define SELBUSB 0x08
1294 #define SELWIDE 0x02
1297 #define BUSY_TARGETS 0x20
1298 #define TARG_SCSIRATE 0x20
1300 #define ULTRA_ENB 0x30
1301 #define CMDSIZE_TABLE 0x30
1303 #define DISC_DSB 0x32
1305 #define CMDSIZE_TABLE_TAIL 0x34
1307 #define MWI_RESIDUAL 0x38
1308 #define TARG_IMMEDIATE_SCB 0x38
1310 #define NEXT_QUEUED_SCB 0x39
1312 #define MSG_OUT 0x3a
1314 #define DMAPARAMS 0x3b
1315 #define PRELOADEN 0x80
1316 #define WIDEODD 0x40
1318 #define SDMAENACK 0x10
1321 #define HDMAENACK 0x08
1322 #define DIRECTION 0x04
1323 #define FIFOFLUSH 0x02
1324 #define FIFORESET 0x01
1326 #define SEQ_FLAGS 0x3c
1327 #define NOT_IDENTIFIED 0x80
1328 #define NO_CDB_SENT 0x40
1329 #define TARGET_CMD_IS_TAGGED 0x40
1331 #define TARG_CMD_PENDING 0x10
1332 #define CMDPHASE_PENDING 0x08
1333 #define DPHASE_PENDING 0x04
1334 #define SPHASE_PENDING 0x02
1335 #define NO_DISCONNECT 0x01
1337 #define SAVED_SCSIID 0x3d
1339 #define SAVED_LUN 0x3e
1341 #define LASTPHASE 0x3f
1342 #define PHASE_MASK 0xe0
1343 #define P_MESGIN 0xe0
1344 #define P_STATUS 0xc0
1345 #define P_MESGOUT 0xa0
1346 #define P_COMMAND 0x80
1347 #define P_DATAIN 0x40
1348 #define P_BUSFREE 0x01
1349 #define P_DATAOUT 0x00
1354 #define WAITING_SCBH 0x40
1356 #define DISCONNECTED_SCBH 0x41
1358 #define FREE_SCBH 0x42
1360 #define COMPLETE_SCBH 0x43
1362 #define HSCB_ADDR 0x44
1364 #define SHARED_DATA_ADDR 0x48
1366 #define KERNEL_QINPOS 0x4c
1370 #define QOUTPOS 0x4e
1372 #define KERNEL_TQINPOS 0x4f
1374 #define TQINPOS 0x50
1377 #define RETURN_1 0x51
1378 #define SEND_MSG 0x80
1379 #define SEND_SENSE 0x40
1380 #define SEND_REJ 0x20
1381 #define MSGOUT_PHASEMIS 0x10
1382 #define EXIT_MSG_LOOP 0x08
1383 #define CONT_MSG_LOOP 0x04
1384 #define CONT_TARG_SESSION 0x02
1387 #define RETURN_2 0x52
1389 #define LAST_MSG 0x53
1391 #define SCSISEQ_TEMPLATE 0x54
1394 #define ENRSELI 0x10
1395 #define ENAUTOATNO 0x08
1396 #define ENAUTOATNI 0x04
1397 #define ENAUTOATNP 0x02
1399 #define DATA_COUNT_ODD 0x55
1401 #define HA_274_BIOSGLOBAL 0x56
1402 #define INITIATOR_TAG 0x56
1403 #define HA_274_EXTENDED_TRANS 0x01
1405 #define SEQ_FLAGS2 0x57
1406 #define TARGET_MSG_PENDING 0x02
1407 #define SCB_DMA 0x01
1409 #define SCSICONF 0x5a
1410 #define HWSCSIID 0x0f
1411 #define HSCSIID 0x07
1412 #define TERM_ENB 0x80
1413 #define RESET_SCSI 0x40
1414 #define ENSPCHK 0x20
1418 #define EDGE_TRIG 0x80
1420 #define HOSTCONF 0x5d
1422 #define HA_274_BIOSCTRL 0x5f
1423 #define BIOSDISABLED 0x30
1424 #define BIOSMODE 0x30
1425 #define CHANNEL_B_PRIMARY 0x08
1428 #define PERRORDIS 0x80
1429 #define PAUSEDIS 0x40
1430 #define FAILDIS 0x20
1431 #define FASTMODE 0x10
1432 #define BRKADRINTEN 0x08
1434 #define SEQRESET 0x02
1435 #define LOADRAM 0x01
1439 #define SEQADDR0 0x62
1441 #define SEQADDR1 0x63
1442 #define SEQADDR1_MASK 0x01
1450 #define ALLONES 0x69
1454 #define ALLZEROS 0x6a
1464 #define FUNCTION1 0x6e
1468 #define TARG_OFFSET 0x70
1470 #define SRAM_BASE 0x70
1476 #define DSCOMMAND0 0x84
1477 #define CACHETHEN 0x80
1478 #define DPARCKEN 0x40
1479 #define MPARCKEN 0x20
1480 #define EXTREQLCK 0x10
1481 #define INTSCBRAMSEL 0x08
1483 #define USCBSIZE32 0x02
1484 #define CIOPARCKEN 0x01
1486 #define BUSTIME 0x85
1490 #define DSCOMMAND1 0x85
1492 #define HADDLDSEL1 0x02
1493 #define HADDLDSEL0 0x01
1496 #define DFTHRSH 0xc0
1497 #define DFTHRSH_75 0x80
1501 #define DSPCISTATUS 0x86
1502 #define DFTHRSH_100 0xc0
1504 #define HS_MAILBOX 0x86
1505 #define HOST_MAILBOX 0xf0
1506 #define HOST_TQINPOS 0x80
1507 #define SEQ_MAILBOX 0x0f
1515 #define CHIPRST 0x01
1516 #define CHIPRSTACK 0x01
1524 #define INTSTAT 0x91
1525 #define SEQINT_MASK 0xf1
1526 #define OUT_OF_RANGE 0xe1
1527 #define NO_FREE_SCB 0xd1
1528 #define SCB_MISMATCH 0xc1
1529 #define MISSED_BUSFREE 0xb1
1530 #define MKMSG_FAILED 0xa1
1531 #define DATA_OVERRUN 0x91
1532 #define PERR_DETECTED 0x81
1533 #define BAD_STATUS 0x71
1534 #define HOST_MSG_LOOP 0x61
1535 #define PDATA_REINIT 0x51
1536 #define IGN_WIDE_RES 0x41
1537 #define NO_MATCH 0x31
1538 #define PROTO_VIOLATION 0x21
1539 #define SEND_REJECT 0x11
1540 #define INT_PEND 0x0f
1541 #define BAD_PHASE 0x01
1542 #define BRKADRINT 0x08
1543 #define SCSIINT 0x04
1544 #define CMDCMPLT 0x02
1548 #define CIOPARERR 0x80
1549 #define PCIERRSTAT 0x40
1550 #define MPARERR 0x20
1551 #define DPARERR 0x10
1552 #define SQPARERR 0x08
1553 #define ILLOPCODE 0x04
1554 #define ILLSADDR 0x02
1555 #define ILLHADDR 0x01
1558 #define CLRPARERR 0x10
1559 #define CLRBRKADRINT 0x08
1560 #define CLRSCSIINT 0x04
1561 #define CLRCMDINT 0x02
1562 #define CLRSEQINT 0x01
1564 #define DFCNTRL 0x93
1566 #define DFSTATUS 0x94
1567 #define PRELOAD_AVAIL 0x80
1568 #define DFCACHETH 0x40
1569 #define FIFOQWDEMP 0x20
1570 #define MREQPEND 0x10
1572 #define DFTHRESH 0x04
1573 #define FIFOFULL 0x02
1574 #define FIFOEMP 0x01
1576 #define DFWADDR 0x95
1578 #define DFRADDR 0x97
1583 #define SCBCNT_MASK 0x1f
1584 #define SCBAUTO 0x80
1586 #define QINFIFO 0x9b
1590 #define CRCCONTROL1 0x9d
1591 #define CRCONSEEN 0x80
1592 #define CRCVALCHKEN 0x40
1593 #define CRCENDCHKEN 0x20
1594 #define CRCREQCHKEN 0x10
1595 #define TARGCRCENDEN 0x08
1596 #define TARGCRCCNTEN 0x04
1598 #define QOUTFIFO 0x9d
1600 #define SCSIPHASE 0x9e
1601 #define DATA_PHASE_MASK 0x03
1602 #define STATUS_PHASE 0x20
1603 #define COMMAND_PHASE 0x10
1604 #define MSG_IN_PHASE 0x08
1605 #define MSG_OUT_PHASE 0x04
1606 #define DATA_IN_PHASE 0x02
1607 #define DATA_OUT_PHASE 0x01
1609 #define QOUTCNT 0x9e
1612 #define ALT_MODE 0x80
1614 #define SCB_BASE 0xa0
1616 #define SCB_CDB_PTR 0xa0
1617 #define SCB_CDB_STORE 0xa0
1618 #define SCB_RESIDUAL_DATACNT 0xa0
1620 #define SCB_RESIDUAL_SGPTR 0xa4
1622 #define SCB_SCSI_STATUS 0xa8
1624 #define SCB_TARGET_PHASES 0xa9
1626 #define SCB_TARGET_DATA_DIR 0xaa
1628 #define SCB_TARGET_ITAG 0xab
1630 #define SCB_DATAPTR 0xac
1632 #define SCB_DATACNT 0xb0
1633 #define SG_HIGH_ADDR_BITS 0x7f
1634 #define SG_LAST_SEG 0x80
1636 #define SCB_SGPTR 0xb4
1637 #define SG_RESID_VALID 0x04
1638 #define SG_FULL_RESID 0x02
1639 #define SG_LIST_NULL 0x01
1641 #define SCB_CONTROL 0xb8
1642 #define SCB_TAG_TYPE 0x03
1643 #define TARGET_SCB 0x80
1644 #define STATUS_RCVD 0x80
1645 #define DISCENB 0x40
1646 #define TAG_ENB 0x20
1647 #define MK_MESSAGE 0x10
1648 #define ULTRAENB 0x08
1649 #define DISCONNECTED 0x04
1651 #define SCB_SCSIID 0xb9
1653 #define TWIN_TID 0x70
1655 #define TWIN_CHNLB 0x80
1657 #define SCB_LUN 0xba
1660 #define SCB_TAG 0xbb
1662 #define SCB_CDB_LEN 0xbc
1664 #define SCB_SCSIRATE 0xbd
1666 #define SCB_SCSIOFFSET 0xbe
1668 #define SCB_NEXT 0xbf
1670 #define SCB_64_SPARE 0xc0
1672 #define SEECTL_2840 0xc0
1673 #define CS_2840 0x04
1674 #define CK_2840 0x02
1675 #define DO_2840 0x01
1677 #define STATUS_2840 0xc1
1678 #define BIOS_SEL 0x60
1680 #define EEPROM_TF 0x80
1681 #define DI_2840 0x01
1683 #define SCB_64_BTT 0xd0
1685 #define CCHADDR 0xe0
1689 #define CCSGRAM 0xe9
1691 #define CCSGADDR 0xea
1693 #define CCSGCTL 0xeb
1694 #define CCSGDONE 0x80
1696 #define SG_FETCH_NEEDED 0x02
1697 #define CCSGRESET 0x01
1699 #define CCSCBRAM 0xec
1701 #define CCSCBADDR 0xed
1703 #define CCSCBCTL 0xee
1704 #define CCSCBDONE 0x80
1705 #define ARRDONE 0x40
1706 #define CCARREN 0x10
1707 #define CCSCBEN 0x08
1708 #define CCSCBDIR 0x04
1709 #define CCSCBRESET 0x01
1711 #define CCSCBCNT 0xef
1713 #define SCBBADDR 0xf0
1715 #define CCSCBPTR 0xf1
1717 #define HNSCB_QOFF 0xf4
1719 #define SNSCB_QOFF 0xf6
1721 #define SDSCB_QOFF 0xf8
1723 #define QOFF_CTLSTA 0xfa
1724 #define SCB_QSIZE 0x07
1725 #define SCB_QSIZE_256 0x06
1726 #define SCB_AVAIL 0x40
1727 #define SNSCB_ROLLOVER 0x20
1728 #define SDSCB_ROLLOVER 0x10
1730 #define DFF_THRSH 0xfb
1731 #define WR_DFTHRSH 0x70
1732 #define WR_DFTHRSH_MAX 0x70
1733 #define WR_DFTHRSH_90 0x60
1734 #define WR_DFTHRSH_85 0x50
1735 #define WR_DFTHRSH_75 0x40
1736 #define WR_DFTHRSH_63 0x30
1737 #define WR_DFTHRSH_50 0x20
1738 #define WR_DFTHRSH_25 0x10
1739 #define RD_DFTHRSH_MAX 0x07
1740 #define RD_DFTHRSH 0x07
1741 #define RD_DFTHRSH_90 0x06
1742 #define RD_DFTHRSH_85 0x05
1743 #define RD_DFTHRSH_75 0x04
1744 #define RD_DFTHRSH_63 0x03
1745 #define RD_DFTHRSH_50 0x02
1746 #define RD_DFTHRSH_25 0x01
1747 #define WR_DFTHRSH_MIN 0x00
1748 #define RD_DFTHRSH_MIN 0x00
1750 #define SG_CACHE_SHADOW 0xfc
1751 #define SG_ADDR_MASK 0xf8
1752 #define ODD_SEG 0x04
1753 #define LAST_SEG 0x02
1754 #define LAST_SEG_DONE 0x01
1756 #define SG_CACHE_PRE 0xfc
1759 #define TARGET_DATA_IN 0x01
1760 #define STATUS_BUSY 0x08
1761 #define BUS_16_BIT 0x01
1762 #define TID_SHIFT 0x04
1763 #define SCB_UPLOAD_SIZE 0x20
1764 #define HOST_MAILBOX_SHIFT 0x04
1765 #define MAX_OFFSET_ULTRA2 0x7f
1766 #define SCB_LIST_NULL 0xff
1767 #define HOST_MSG 0xff
1768 #define MAX_OFFSET 0xff
1769 #define BUS_32_BIT 0x02
1770 #define CMD_GROUP_CODE_SHIFT 0x05
1771 #define BUS_8_BIT 0x00
1772 #define CCSGRAM_MAXSEGS 0x10
1773 #define STATUS_QUEUE_FULL 0x28
1774 #define MAX_OFFSET_8BIT 0x0f
1775 #define SCB_DOWNLOAD_SIZE_64 0x30
1776 #define MAX_OFFSET_16BIT 0x08
1777 #define TARGET_CMD_CMPLT 0xfe
1778 #define SG_SIZEOF 0x08
1779 #define SCB_DOWNLOAD_SIZE 0x20
1780 #define SEQ_MAILBOX_SHIFT 0x00
1781 #define CCSGADDR_MAX 0x80
1782 #define STACK_SIZE 0x04
1785 /* Downloaded Constant Definitions */
1786 #define SG_PREFETCH_CNT 0x04
1787 #define SG_PREFETCH_ADDR_MASK 0x06
1788 #define SG_PREFETCH_ALIGN_MASK 0x05
1789 #define QOUTFIFO_OFFSET 0x00
1790 #define INVERTED_CACHESIZE_MASK 0x03
1791 #define CACHESIZE_MASK 0x02
1792 #define QINFIFO_OFFSET 0x01
1793 #define DOWNLOAD_CONST_COUNT 0x07
1796 /* Exported Labels */