1260401Sscottl/*
2260401Sscottl * DO NOT EDIT - This file is automatically generated
3260401Sscottl *		 from the following source files:
4260401Sscottl *
5260401Sscottl * $Id: //depot/aic7xxx/aic7xxx/aic7xxx.seq#58 $
6260401Sscottl * $Id: //depot/aic7xxx/aic7xxx/aic7xxx.reg#40 $
7260401Sscottl *
8260401Sscottl * $FreeBSD$
9260401Sscottl */
10260401Sscottltypedef int (ahc_reg_print_t)(u_int, u_int *, u_int);
11260401Sscottltypedef struct ahc_reg_parse_entry {
12260401Sscottl	char	*name;
13260401Sscottl	uint8_t	 value;
14260401Sscottl	uint8_t	 mask;
15260401Sscottl} ahc_reg_parse_entry_t;
16260401Sscottl
17260401Sscottl#if AIC_DEBUG_REGISTERS
18260401Sscottlahc_reg_print_t ahc_scsiseq_print;
19260401Sscottl#else
20260401Sscottl#define ahc_scsiseq_print(regvalue, cur_col, wrap) \
21260401Sscottl    ahc_print_register(NULL, 0, "SCSISEQ", 0x00, regvalue, cur_col, wrap)
22260401Sscottl#endif
23260401Sscottl
24260401Sscottl#if AIC_DEBUG_REGISTERS
25260401Sscottlahc_reg_print_t ahc_sxfrctl0_print;
26260401Sscottl#else
27260401Sscottl#define ahc_sxfrctl0_print(regvalue, cur_col, wrap) \
28260401Sscottl    ahc_print_register(NULL, 0, "SXFRCTL0", 0x01, regvalue, cur_col, wrap)
29260401Sscottl#endif
30260401Sscottl
31260401Sscottl#if AIC_DEBUG_REGISTERS
32260401Sscottlahc_reg_print_t ahc_sxfrctl1_print;
33260401Sscottl#else
34260401Sscottl#define ahc_sxfrctl1_print(regvalue, cur_col, wrap) \
35260401Sscottl    ahc_print_register(NULL, 0, "SXFRCTL1", 0x02, regvalue, cur_col, wrap)
36260401Sscottl#endif
37260401Sscottl
38260401Sscottl#if AIC_DEBUG_REGISTERS
39260401Sscottlahc_reg_print_t ahc_scsisigi_print;
40260401Sscottl#else
41260401Sscottl#define ahc_scsisigi_print(regvalue, cur_col, wrap) \
42260401Sscottl    ahc_print_register(NULL, 0, "SCSISIGI", 0x03, regvalue, cur_col, wrap)
43260401Sscottl#endif
44260401Sscottl
45260401Sscottl#if AIC_DEBUG_REGISTERS
46260401Sscottlahc_reg_print_t ahc_scsisigo_print;
47260401Sscottl#else
48260401Sscottl#define ahc_scsisigo_print(regvalue, cur_col, wrap) \
49260401Sscottl    ahc_print_register(NULL, 0, "SCSISIGO", 0x03, regvalue, cur_col, wrap)
50260401Sscottl#endif
51260401Sscottl
52260401Sscottl#if AIC_DEBUG_REGISTERS
53260401Sscottlahc_reg_print_t ahc_scsirate_print;
54260401Sscottl#else
55260401Sscottl#define ahc_scsirate_print(regvalue, cur_col, wrap) \
56260401Sscottl    ahc_print_register(NULL, 0, "SCSIRATE", 0x04, regvalue, cur_col, wrap)
57260401Sscottl#endif
58260401Sscottl
59260401Sscottl#if AIC_DEBUG_REGISTERS
60260401Sscottlahc_reg_print_t ahc_scsiid_print;
61260401Sscottl#else
62260401Sscottl#define ahc_scsiid_print(regvalue, cur_col, wrap) \
63260401Sscottl    ahc_print_register(NULL, 0, "SCSIID", 0x05, regvalue, cur_col, wrap)
64260401Sscottl#endif
65260401Sscottl
66260401Sscottl#if AIC_DEBUG_REGISTERS
67260401Sscottlahc_reg_print_t ahc_scsidatl_print;
68260401Sscottl#else
69260401Sscottl#define ahc_scsidatl_print(regvalue, cur_col, wrap) \
70260401Sscottl    ahc_print_register(NULL, 0, "SCSIDATL", 0x06, regvalue, cur_col, wrap)
71260401Sscottl#endif
72260401Sscottl
73260401Sscottl#if AIC_DEBUG_REGISTERS
74260401Sscottlahc_reg_print_t ahc_scsidath_print;
75260401Sscottl#else
76260401Sscottl#define ahc_scsidath_print(regvalue, cur_col, wrap) \
77260401Sscottl    ahc_print_register(NULL, 0, "SCSIDATH", 0x07, regvalue, cur_col, wrap)
78260401Sscottl#endif
79260401Sscottl
80260401Sscottl#if AIC_DEBUG_REGISTERS
81260401Sscottlahc_reg_print_t ahc_optionmode_print;
82260401Sscottl#else
83260401Sscottl#define ahc_optionmode_print(regvalue, cur_col, wrap) \
84260401Sscottl    ahc_print_register(NULL, 0, "OPTIONMODE", 0x08, regvalue, cur_col, wrap)
85260401Sscottl#endif
86260401Sscottl
87260401Sscottl#if AIC_DEBUG_REGISTERS
88260401Sscottlahc_reg_print_t ahc_stcnt_print;
89260401Sscottl#else
90260401Sscottl#define ahc_stcnt_print(regvalue, cur_col, wrap) \
91260401Sscottl    ahc_print_register(NULL, 0, "STCNT", 0x08, regvalue, cur_col, wrap)
92260401Sscottl#endif
93260401Sscottl
94260401Sscottl#if AIC_DEBUG_REGISTERS
95260401Sscottlahc_reg_print_t ahc_targcrccnt_print;
96260401Sscottl#else
97260401Sscottl#define ahc_targcrccnt_print(regvalue, cur_col, wrap) \
98260401Sscottl    ahc_print_register(NULL, 0, "TARGCRCCNT", 0x0a, regvalue, cur_col, wrap)
99260401Sscottl#endif
100260401Sscottl
101260401Sscottl#if AIC_DEBUG_REGISTERS
102260401Sscottlahc_reg_print_t ahc_clrsint0_print;
103260401Sscottl#else
104260401Sscottl#define ahc_clrsint0_print(regvalue, cur_col, wrap) \
105260401Sscottl    ahc_print_register(NULL, 0, "CLRSINT0", 0x0b, regvalue, cur_col, wrap)
106260401Sscottl#endif
107260401Sscottl
108260401Sscottl#if AIC_DEBUG_REGISTERS
109260401Sscottlahc_reg_print_t ahc_sstat0_print;
110260401Sscottl#else
111260401Sscottl#define ahc_sstat0_print(regvalue, cur_col, wrap) \
112260401Sscottl    ahc_print_register(NULL, 0, "SSTAT0", 0x0b, regvalue, cur_col, wrap)
113260401Sscottl#endif
114260401Sscottl
115260401Sscottl#if AIC_DEBUG_REGISTERS
116260401Sscottlahc_reg_print_t ahc_clrsint1_print;
117260401Sscottl#else
118260401Sscottl#define ahc_clrsint1_print(regvalue, cur_col, wrap) \
119260401Sscottl    ahc_print_register(NULL, 0, "CLRSINT1", 0x0c, regvalue, cur_col, wrap)
120260401Sscottl#endif
121260401Sscottl
122260401Sscottl#if AIC_DEBUG_REGISTERS
123260401Sscottlahc_reg_print_t ahc_sstat1_print;
124260401Sscottl#else
125260401Sscottl#define ahc_sstat1_print(regvalue, cur_col, wrap) \
126260401Sscottl    ahc_print_register(NULL, 0, "SSTAT1", 0x0c, regvalue, cur_col, wrap)
127260401Sscottl#endif
128260401Sscottl
129260401Sscottl#if AIC_DEBUG_REGISTERS
130260401Sscottlahc_reg_print_t ahc_sstat2_print;
131260401Sscottl#else
132260401Sscottl#define ahc_sstat2_print(regvalue, cur_col, wrap) \
133260401Sscottl    ahc_print_register(NULL, 0, "SSTAT2", 0x0d, regvalue, cur_col, wrap)
134260401Sscottl#endif
135260401Sscottl
136260401Sscottl#if AIC_DEBUG_REGISTERS
137260401Sscottlahc_reg_print_t ahc_sstat3_print;
138260401Sscottl#else
139260401Sscottl#define ahc_sstat3_print(regvalue, cur_col, wrap) \
140260401Sscottl    ahc_print_register(NULL, 0, "SSTAT3", 0x0e, regvalue, cur_col, wrap)
141260401Sscottl#endif
142260401Sscottl
143260401Sscottl#if AIC_DEBUG_REGISTERS
144260401Sscottlahc_reg_print_t ahc_scsiid_ultra2_print;
145260401Sscottl#else
146260401Sscottl#define ahc_scsiid_ultra2_print(regvalue, cur_col, wrap) \
147260401Sscottl    ahc_print_register(NULL, 0, "SCSIID_ULTRA2", 0x0f, regvalue, cur_col, wrap)
148260401Sscottl#endif
149260401Sscottl
150260401Sscottl#if AIC_DEBUG_REGISTERS
151260401Sscottlahc_reg_print_t ahc_simode0_print;
152260401Sscottl#else
153260401Sscottl#define ahc_simode0_print(regvalue, cur_col, wrap) \
154260401Sscottl    ahc_print_register(NULL, 0, "SIMODE0", 0x10, regvalue, cur_col, wrap)
155260401Sscottl#endif
156260401Sscottl
157260401Sscottl#if AIC_DEBUG_REGISTERS
158260401Sscottlahc_reg_print_t ahc_simode1_print;
159260401Sscottl#else
160260401Sscottl#define ahc_simode1_print(regvalue, cur_col, wrap) \
161260401Sscottl    ahc_print_register(NULL, 0, "SIMODE1", 0x11, regvalue, cur_col, wrap)
162260401Sscottl#endif
163260401Sscottl
164260401Sscottl#if AIC_DEBUG_REGISTERS
165260401Sscottlahc_reg_print_t ahc_scsibusl_print;
166260401Sscottl#else
167260401Sscottl#define ahc_scsibusl_print(regvalue, cur_col, wrap) \
168260401Sscottl    ahc_print_register(NULL, 0, "SCSIBUSL", 0x12, regvalue, cur_col, wrap)
169260401Sscottl#endif
170260401Sscottl
171260401Sscottl#if AIC_DEBUG_REGISTERS
172260401Sscottlahc_reg_print_t ahc_sxfrctl2_print;
173260401Sscottl#else
174260401Sscottl#define ahc_sxfrctl2_print(regvalue, cur_col, wrap) \
175260401Sscottl    ahc_print_register(NULL, 0, "SXFRCTL2", 0x13, regvalue, cur_col, wrap)
176260401Sscottl#endif
177260401Sscottl
178260401Sscottl#if AIC_DEBUG_REGISTERS
179260401Sscottlahc_reg_print_t ahc_scsibush_print;
180260401Sscottl#else
181260401Sscottl#define ahc_scsibush_print(regvalue, cur_col, wrap) \
182260401Sscottl    ahc_print_register(NULL, 0, "SCSIBUSH", 0x13, regvalue, cur_col, wrap)
183260401Sscottl#endif
184260401Sscottl
185260401Sscottl#if AIC_DEBUG_REGISTERS
186260401Sscottlahc_reg_print_t ahc_shaddr_print;
187260401Sscottl#else
188260401Sscottl#define ahc_shaddr_print(regvalue, cur_col, wrap) \
189260401Sscottl    ahc_print_register(NULL, 0, "SHADDR", 0x14, regvalue, cur_col, wrap)
190260401Sscottl#endif
191260401Sscottl
192260401Sscottl#if AIC_DEBUG_REGISTERS
193260401Sscottlahc_reg_print_t ahc_seltimer_print;
194260401Sscottl#else
195260401Sscottl#define ahc_seltimer_print(regvalue, cur_col, wrap) \
196260401Sscottl    ahc_print_register(NULL, 0, "SELTIMER", 0x18, regvalue, cur_col, wrap)
197260401Sscottl#endif
198260401Sscottl
199260401Sscottl#if AIC_DEBUG_REGISTERS
200260401Sscottlahc_reg_print_t ahc_selid_print;
201260401Sscottl#else
202260401Sscottl#define ahc_selid_print(regvalue, cur_col, wrap) \
203260401Sscottl    ahc_print_register(NULL, 0, "SELID", 0x19, regvalue, cur_col, wrap)
204260401Sscottl#endif
205260401Sscottl
206260401Sscottl#if AIC_DEBUG_REGISTERS
207260401Sscottlahc_reg_print_t ahc_scamctl_print;
208260401Sscottl#else
209260401Sscottl#define ahc_scamctl_print(regvalue, cur_col, wrap) \
210260401Sscottl    ahc_print_register(NULL, 0, "SCAMCTL", 0x1a, regvalue, cur_col, wrap)
211260401Sscottl#endif
212260401Sscottl
213260401Sscottl#if AIC_DEBUG_REGISTERS
214260401Sscottlahc_reg_print_t ahc_targid_print;
215260401Sscottl#else
216260401Sscottl#define ahc_targid_print(regvalue, cur_col, wrap) \
217260401Sscottl    ahc_print_register(NULL, 0, "TARGID", 0x1b, regvalue, cur_col, wrap)
218260401Sscottl#endif
219260401Sscottl
220260401Sscottl#if AIC_DEBUG_REGISTERS
221260401Sscottlahc_reg_print_t ahc_spiocap_print;
222260401Sscottl#else
223260401Sscottl#define ahc_spiocap_print(regvalue, cur_col, wrap) \
224260401Sscottl    ahc_print_register(NULL, 0, "SPIOCAP", 0x1b, regvalue, cur_col, wrap)
225260401Sscottl#endif
226260401Sscottl
227260401Sscottl#if AIC_DEBUG_REGISTERS
228260401Sscottlahc_reg_print_t ahc_brdctl_print;
229260401Sscottl#else
230260401Sscottl#define ahc_brdctl_print(regvalue, cur_col, wrap) \
231260401Sscottl    ahc_print_register(NULL, 0, "BRDCTL", 0x1d, regvalue, cur_col, wrap)
232260401Sscottl#endif
233260401Sscottl
234260401Sscottl#if AIC_DEBUG_REGISTERS
235260401Sscottlahc_reg_print_t ahc_seectl_print;
236260401Sscottl#else
237260401Sscottl#define ahc_seectl_print(regvalue, cur_col, wrap) \
238260401Sscottl    ahc_print_register(NULL, 0, "SEECTL", 0x1e, regvalue, cur_col, wrap)
239260401Sscottl#endif
240260401Sscottl
241260401Sscottl#if AIC_DEBUG_REGISTERS
242260401Sscottlahc_reg_print_t ahc_sblkctl_print;
243260401Sscottl#else
244260401Sscottl#define ahc_sblkctl_print(regvalue, cur_col, wrap) \
245260401Sscottl    ahc_print_register(NULL, 0, "SBLKCTL", 0x1f, regvalue, cur_col, wrap)
246260401Sscottl#endif
247260401Sscottl
248260401Sscottl#if AIC_DEBUG_REGISTERS
249260401Sscottlahc_reg_print_t ahc_busy_targets_print;
250260401Sscottl#else
251260401Sscottl#define ahc_busy_targets_print(regvalue, cur_col, wrap) \
252260401Sscottl    ahc_print_register(NULL, 0, "BUSY_TARGETS", 0x20, regvalue, cur_col, wrap)
253260401Sscottl#endif
254260401Sscottl
255260401Sscottl#if AIC_DEBUG_REGISTERS
256260401Sscottlahc_reg_print_t ahc_ultra_enb_print;
257260401Sscottl#else
258260401Sscottl#define ahc_ultra_enb_print(regvalue, cur_col, wrap) \
259260401Sscottl    ahc_print_register(NULL, 0, "ULTRA_ENB", 0x30, regvalue, cur_col, wrap)
260260401Sscottl#endif
261260401Sscottl
262260401Sscottl#if AIC_DEBUG_REGISTERS
263260401Sscottlahc_reg_print_t ahc_disc_dsb_print;
264260401Sscottl#else
265260401Sscottl#define ahc_disc_dsb_print(regvalue, cur_col, wrap) \
266260401Sscottl    ahc_print_register(NULL, 0, "DISC_DSB", 0x32, regvalue, cur_col, wrap)
267260401Sscottl#endif
268260401Sscottl
269260401Sscottl#if AIC_DEBUG_REGISTERS
270260401Sscottlahc_reg_print_t ahc_cmdsize_table_tail_print;
271260401Sscottl#else
272260401Sscottl#define ahc_cmdsize_table_tail_print(regvalue, cur_col, wrap) \
273260401Sscottl    ahc_print_register(NULL, 0, "CMDSIZE_TABLE_TAIL", 0x34, regvalue, cur_col, wrap)
274260401Sscottl#endif
275260401Sscottl
276260401Sscottl#if AIC_DEBUG_REGISTERS
277260401Sscottlahc_reg_print_t ahc_mwi_residual_print;
278260401Sscottl#else
279260401Sscottl#define ahc_mwi_residual_print(regvalue, cur_col, wrap) \
280260401Sscottl    ahc_print_register(NULL, 0, "MWI_RESIDUAL", 0x38, regvalue, cur_col, wrap)
281260401Sscottl#endif
282260401Sscottl
283260401Sscottl#if AIC_DEBUG_REGISTERS
284260401Sscottlahc_reg_print_t ahc_next_queued_scb_print;
285260401Sscottl#else
286260401Sscottl#define ahc_next_queued_scb_print(regvalue, cur_col, wrap) \
287260401Sscottl    ahc_print_register(NULL, 0, "NEXT_QUEUED_SCB", 0x39, regvalue, cur_col, wrap)
288260401Sscottl#endif
289260401Sscottl
290260401Sscottl#if AIC_DEBUG_REGISTERS
291260401Sscottlahc_reg_print_t ahc_msg_out_print;
292260401Sscottl#else
293260401Sscottl#define ahc_msg_out_print(regvalue, cur_col, wrap) \
294260401Sscottl    ahc_print_register(NULL, 0, "MSG_OUT", 0x3a, regvalue, cur_col, wrap)
295260401Sscottl#endif
296260401Sscottl
297260401Sscottl#if AIC_DEBUG_REGISTERS
298260401Sscottlahc_reg_print_t ahc_dmaparams_print;
299260401Sscottl#else
300260401Sscottl#define ahc_dmaparams_print(regvalue, cur_col, wrap) \
301260401Sscottl    ahc_print_register(NULL, 0, "DMAPARAMS", 0x3b, regvalue, cur_col, wrap)
302260401Sscottl#endif
303260401Sscottl
304260401Sscottl#if AIC_DEBUG_REGISTERS
305260401Sscottlahc_reg_print_t ahc_seq_flags_print;
306260401Sscottl#else
307260401Sscottl#define ahc_seq_flags_print(regvalue, cur_col, wrap) \
308260401Sscottl    ahc_print_register(NULL, 0, "SEQ_FLAGS", 0x3c, regvalue, cur_col, wrap)
309260401Sscottl#endif
310260401Sscottl
311260401Sscottl#if AIC_DEBUG_REGISTERS
312260401Sscottlahc_reg_print_t ahc_saved_scsiid_print;
313260401Sscottl#else
314260401Sscottl#define ahc_saved_scsiid_print(regvalue, cur_col, wrap) \
315260401Sscottl    ahc_print_register(NULL, 0, "SAVED_SCSIID", 0x3d, regvalue, cur_col, wrap)
316260401Sscottl#endif
317260401Sscottl
318260401Sscottl#if AIC_DEBUG_REGISTERS
319260401Sscottlahc_reg_print_t ahc_saved_lun_print;
320260401Sscottl#else
321260401Sscottl#define ahc_saved_lun_print(regvalue, cur_col, wrap) \
322260401Sscottl    ahc_print_register(NULL, 0, "SAVED_LUN", 0x3e, regvalue, cur_col, wrap)
323260401Sscottl#endif
324260401Sscottl
325260401Sscottl#if AIC_DEBUG_REGISTERS
326260401Sscottlahc_reg_print_t ahc_lastphase_print;
327260401Sscottl#else
328260401Sscottl#define ahc_lastphase_print(regvalue, cur_col, wrap) \
329260401Sscottl    ahc_print_register(NULL, 0, "LASTPHASE", 0x3f, regvalue, cur_col, wrap)
330260401Sscottl#endif
331260401Sscottl
332260401Sscottl#if AIC_DEBUG_REGISTERS
333260401Sscottlahc_reg_print_t ahc_waiting_scbh_print;
334260401Sscottl#else
335260401Sscottl#define ahc_waiting_scbh_print(regvalue, cur_col, wrap) \
336260401Sscottl    ahc_print_register(NULL, 0, "WAITING_SCBH", 0x40, regvalue, cur_col, wrap)
337260401Sscottl#endif
338260401Sscottl
339260401Sscottl#if AIC_DEBUG_REGISTERS
340260401Sscottlahc_reg_print_t ahc_disconnected_scbh_print;
341260401Sscottl#else
342260401Sscottl#define ahc_disconnected_scbh_print(regvalue, cur_col, wrap) \
343260401Sscottl    ahc_print_register(NULL, 0, "DISCONNECTED_SCBH", 0x41, regvalue, cur_col, wrap)
344260401Sscottl#endif
345260401Sscottl
346260401Sscottl#if AIC_DEBUG_REGISTERS
347260401Sscottlahc_reg_print_t ahc_free_scbh_print;
348260401Sscottl#else
349260401Sscottl#define ahc_free_scbh_print(regvalue, cur_col, wrap) \
350260401Sscottl    ahc_print_register(NULL, 0, "FREE_SCBH", 0x42, regvalue, cur_col, wrap)
351260401Sscottl#endif
352260401Sscottl
353260401Sscottl#if AIC_DEBUG_REGISTERS
354260401Sscottlahc_reg_print_t ahc_complete_scbh_print;
355260401Sscottl#else
356260401Sscottl#define ahc_complete_scbh_print(regvalue, cur_col, wrap) \
357260401Sscottl    ahc_print_register(NULL, 0, "COMPLETE_SCBH", 0x43, regvalue, cur_col, wrap)
358260401Sscottl#endif
359260401Sscottl
360260401Sscottl#if AIC_DEBUG_REGISTERS
361260401Sscottlahc_reg_print_t ahc_hscb_addr_print;
362260401Sscottl#else
363260401Sscottl#define ahc_hscb_addr_print(regvalue, cur_col, wrap) \
364260401Sscottl    ahc_print_register(NULL, 0, "HSCB_ADDR", 0x44, regvalue, cur_col, wrap)
365260401Sscottl#endif
366260401Sscottl
367260401Sscottl#if AIC_DEBUG_REGISTERS
368260401Sscottlahc_reg_print_t ahc_shared_data_addr_print;
369260401Sscottl#else
370260401Sscottl#define ahc_shared_data_addr_print(regvalue, cur_col, wrap) \
371260401Sscottl    ahc_print_register(NULL, 0, "SHARED_DATA_ADDR", 0x48, regvalue, cur_col, wrap)
372260401Sscottl#endif
373260401Sscottl
374260401Sscottl#if AIC_DEBUG_REGISTERS
375260401Sscottlahc_reg_print_t ahc_kernel_qinpos_print;
376260401Sscottl#else
377260401Sscottl#define ahc_kernel_qinpos_print(regvalue, cur_col, wrap) \
378260401Sscottl    ahc_print_register(NULL, 0, "KERNEL_QINPOS", 0x4c, regvalue, cur_col, wrap)
379260401Sscottl#endif
380260401Sscottl
381260401Sscottl#if AIC_DEBUG_REGISTERS
382260401Sscottlahc_reg_print_t ahc_qinpos_print;
383260401Sscottl#else
384260401Sscottl#define ahc_qinpos_print(regvalue, cur_col, wrap) \
385260401Sscottl    ahc_print_register(NULL, 0, "QINPOS", 0x4d, regvalue, cur_col, wrap)
386260401Sscottl#endif
387260401Sscottl
388260401Sscottl#if AIC_DEBUG_REGISTERS
389260401Sscottlahc_reg_print_t ahc_qoutpos_print;
390260401Sscottl#else
391260401Sscottl#define ahc_qoutpos_print(regvalue, cur_col, wrap) \
392260401Sscottl    ahc_print_register(NULL, 0, "QOUTPOS", 0x4e, regvalue, cur_col, wrap)
393260401Sscottl#endif
394260401Sscottl
395260401Sscottl#if AIC_DEBUG_REGISTERS
396260401Sscottlahc_reg_print_t ahc_kernel_tqinpos_print;
397260401Sscottl#else
398260401Sscottl#define ahc_kernel_tqinpos_print(regvalue, cur_col, wrap) \
399260401Sscottl    ahc_print_register(NULL, 0, "KERNEL_TQINPOS", 0x4f, regvalue, cur_col, wrap)
400260401Sscottl#endif
401260401Sscottl
402260401Sscottl#if AIC_DEBUG_REGISTERS
403260401Sscottlahc_reg_print_t ahc_tqinpos_print;
404260401Sscottl#else
405260401Sscottl#define ahc_tqinpos_print(regvalue, cur_col, wrap) \
406260401Sscottl    ahc_print_register(NULL, 0, "TQINPOS", 0x50, regvalue, cur_col, wrap)
407260401Sscottl#endif
408260401Sscottl
409260401Sscottl#if AIC_DEBUG_REGISTERS
410260401Sscottlahc_reg_print_t ahc_arg_1_print;
411260401Sscottl#else
412260401Sscottl#define ahc_arg_1_print(regvalue, cur_col, wrap) \
413260401Sscottl    ahc_print_register(NULL, 0, "ARG_1", 0x51, regvalue, cur_col, wrap)
414260401Sscottl#endif
415260401Sscottl
416260401Sscottl#if AIC_DEBUG_REGISTERS
417260401Sscottlahc_reg_print_t ahc_arg_2_print;
418260401Sscottl#else
419260401Sscottl#define ahc_arg_2_print(regvalue, cur_col, wrap) \
420260401Sscottl    ahc_print_register(NULL, 0, "ARG_2", 0x52, regvalue, cur_col, wrap)
421260401Sscottl#endif
422260401Sscottl
423260401Sscottl#if AIC_DEBUG_REGISTERS
424260401Sscottlahc_reg_print_t ahc_last_msg_print;
425260401Sscottl#else
426260401Sscottl#define ahc_last_msg_print(regvalue, cur_col, wrap) \
427260401Sscottl    ahc_print_register(NULL, 0, "LAST_MSG", 0x53, regvalue, cur_col, wrap)
428260401Sscottl#endif
429260401Sscottl
430260401Sscottl#if AIC_DEBUG_REGISTERS
431260401Sscottlahc_reg_print_t ahc_scsiseq_template_print;
432260401Sscottl#else
433260401Sscottl#define ahc_scsiseq_template_print(regvalue, cur_col, wrap) \
434260401Sscottl    ahc_print_register(NULL, 0, "SCSISEQ_TEMPLATE", 0x54, regvalue, cur_col, wrap)
435260401Sscottl#endif
436260401Sscottl
437260401Sscottl#if AIC_DEBUG_REGISTERS
438260401Sscottlahc_reg_print_t ahc_ha_274_biosglobal_print;
439260401Sscottl#else
440260401Sscottl#define ahc_ha_274_biosglobal_print(regvalue, cur_col, wrap) \
441260401Sscottl    ahc_print_register(NULL, 0, "HA_274_BIOSGLOBAL", 0x56, regvalue, cur_col, wrap)
442260401Sscottl#endif
443260401Sscottl
444260401Sscottl#if AIC_DEBUG_REGISTERS
445260401Sscottlahc_reg_print_t ahc_seq_flags2_print;
446260401Sscottl#else
447260401Sscottl#define ahc_seq_flags2_print(regvalue, cur_col, wrap) \
448260401Sscottl    ahc_print_register(NULL, 0, "SEQ_FLAGS2", 0x57, regvalue, cur_col, wrap)
449260401Sscottl#endif
450260401Sscottl
451260401Sscottl#if AIC_DEBUG_REGISTERS
452260401Sscottlahc_reg_print_t ahc_scsiconf_print;
453260401Sscottl#else
454260401Sscottl#define ahc_scsiconf_print(regvalue, cur_col, wrap) \
455260401Sscottl    ahc_print_register(NULL, 0, "SCSICONF", 0x5a, regvalue, cur_col, wrap)
456260401Sscottl#endif
457260401Sscottl
458260401Sscottl#if AIC_DEBUG_REGISTERS
459260401Sscottlahc_reg_print_t ahc_intdef_print;
460260401Sscottl#else
461260401Sscottl#define ahc_intdef_print(regvalue, cur_col, wrap) \
462260401Sscottl    ahc_print_register(NULL, 0, "INTDEF", 0x5c, regvalue, cur_col, wrap)
463260401Sscottl#endif
464260401Sscottl
465260401Sscottl#if AIC_DEBUG_REGISTERS
466260401Sscottlahc_reg_print_t ahc_hostconf_print;
467260401Sscottl#else
468260401Sscottl#define ahc_hostconf_print(regvalue, cur_col, wrap) \
469260401Sscottl    ahc_print_register(NULL, 0, "HOSTCONF", 0x5d, regvalue, cur_col, wrap)
470260401Sscottl#endif
471260401Sscottl
472260401Sscottl#if AIC_DEBUG_REGISTERS
473260401Sscottlahc_reg_print_t ahc_ha_274_biosctrl_print;
474260401Sscottl#else
475260401Sscottl#define ahc_ha_274_biosctrl_print(regvalue, cur_col, wrap) \
476260401Sscottl    ahc_print_register(NULL, 0, "HA_274_BIOSCTRL", 0x5f, regvalue, cur_col, wrap)
477260401Sscottl#endif
478260401Sscottl
479260401Sscottl#if AIC_DEBUG_REGISTERS
480260401Sscottlahc_reg_print_t ahc_seqctl_print;
481260401Sscottl#else
482260401Sscottl#define ahc_seqctl_print(regvalue, cur_col, wrap) \
483260401Sscottl    ahc_print_register(NULL, 0, "SEQCTL", 0x60, regvalue, cur_col, wrap)
484260401Sscottl#endif
485260401Sscottl
486260401Sscottl#if AIC_DEBUG_REGISTERS
487260401Sscottlahc_reg_print_t ahc_seqram_print;
488260401Sscottl#else
489260401Sscottl#define ahc_seqram_print(regvalue, cur_col, wrap) \
490260401Sscottl    ahc_print_register(NULL, 0, "SEQRAM", 0x61, regvalue, cur_col, wrap)
491260401Sscottl#endif
492260401Sscottl
493260401Sscottl#if AIC_DEBUG_REGISTERS
494260401Sscottlahc_reg_print_t ahc_seqaddr0_print;
495260401Sscottl#else
496260401Sscottl#define ahc_seqaddr0_print(regvalue, cur_col, wrap) \
497260401Sscottl    ahc_print_register(NULL, 0, "SEQADDR0", 0x62, regvalue, cur_col, wrap)
498260401Sscottl#endif
499260401Sscottl
500260401Sscottl#if AIC_DEBUG_REGISTERS
501260401Sscottlahc_reg_print_t ahc_seqaddr1_print;
502260401Sscottl#else
503260401Sscottl#define ahc_seqaddr1_print(regvalue, cur_col, wrap) \
504260401Sscottl    ahc_print_register(NULL, 0, "SEQADDR1", 0x63, regvalue, cur_col, wrap)
505260401Sscottl#endif
506260401Sscottl
507260401Sscottl#if AIC_DEBUG_REGISTERS
508260401Sscottlahc_reg_print_t ahc_accum_print;
509260401Sscottl#else
510260401Sscottl#define ahc_accum_print(regvalue, cur_col, wrap) \
511260401Sscottl    ahc_print_register(NULL, 0, "ACCUM", 0x64, regvalue, cur_col, wrap)
512260401Sscottl#endif
513260401Sscottl
514260401Sscottl#if AIC_DEBUG_REGISTERS
515260401Sscottlahc_reg_print_t ahc_sindex_print;
516260401Sscottl#else
517260401Sscottl#define ahc_sindex_print(regvalue, cur_col, wrap) \
518260401Sscottl    ahc_print_register(NULL, 0, "SINDEX", 0x65, regvalue, cur_col, wrap)
519260401Sscottl#endif
520260401Sscottl
521260401Sscottl#if AIC_DEBUG_REGISTERS
522260401Sscottlahc_reg_print_t ahc_dindex_print;
523260401Sscottl#else
524260401Sscottl#define ahc_dindex_print(regvalue, cur_col, wrap) \
525260401Sscottl    ahc_print_register(NULL, 0, "DINDEX", 0x66, regvalue, cur_col, wrap)
526260401Sscottl#endif
527260401Sscottl
528260401Sscottl#if AIC_DEBUG_REGISTERS
529260401Sscottlahc_reg_print_t ahc_allones_print;
530260401Sscottl#else
531260401Sscottl#define ahc_allones_print(regvalue, cur_col, wrap) \
532260401Sscottl    ahc_print_register(NULL, 0, "ALLONES", 0x69, regvalue, cur_col, wrap)
533260401Sscottl#endif
534260401Sscottl
535260401Sscottl#if AIC_DEBUG_REGISTERS
536260401Sscottlahc_reg_print_t ahc_none_print;
537260401Sscottl#else
538260401Sscottl#define ahc_none_print(regvalue, cur_col, wrap) \
539260401Sscottl    ahc_print_register(NULL, 0, "NONE", 0x6a, regvalue, cur_col, wrap)
540260401Sscottl#endif
541260401Sscottl
542260401Sscottl#if AIC_DEBUG_REGISTERS
543260401Sscottlahc_reg_print_t ahc_allzeros_print;
544260401Sscottl#else
545260401Sscottl#define ahc_allzeros_print(regvalue, cur_col, wrap) \
546260401Sscottl    ahc_print_register(NULL, 0, "ALLZEROS", 0x6a, regvalue, cur_col, wrap)
547260401Sscottl#endif
548260401Sscottl
549260401Sscottl#if AIC_DEBUG_REGISTERS
550260401Sscottlahc_reg_print_t ahc_flags_print;
551260401Sscottl#else
552260401Sscottl#define ahc_flags_print(regvalue, cur_col, wrap) \
553260401Sscottl    ahc_print_register(NULL, 0, "FLAGS", 0x6b, regvalue, cur_col, wrap)
554260401Sscottl#endif
555260401Sscottl
556260401Sscottl#if AIC_DEBUG_REGISTERS
557260401Sscottlahc_reg_print_t ahc_sindir_print;
558260401Sscottl#else
559260401Sscottl#define ahc_sindir_print(regvalue, cur_col, wrap) \
560260401Sscottl    ahc_print_register(NULL, 0, "SINDIR", 0x6c, regvalue, cur_col, wrap)
561260401Sscottl#endif
562260401Sscottl
563260401Sscottl#if AIC_DEBUG_REGISTERS
564260401Sscottlahc_reg_print_t ahc_dindir_print;
565260401Sscottl#else
566260401Sscottl#define ahc_dindir_print(regvalue, cur_col, wrap) \
567260401Sscottl    ahc_print_register(NULL, 0, "DINDIR", 0x6d, regvalue, cur_col, wrap)
568260401Sscottl#endif
569260401Sscottl
570260401Sscottl#if AIC_DEBUG_REGISTERS
571260401Sscottlahc_reg_print_t ahc_function1_print;
572260401Sscottl#else
573260401Sscottl#define ahc_function1_print(regvalue, cur_col, wrap) \
574260401Sscottl    ahc_print_register(NULL, 0, "FUNCTION1", 0x6e, regvalue, cur_col, wrap)
575260401Sscottl#endif
576260401Sscottl
577260401Sscottl#if AIC_DEBUG_REGISTERS
578260401Sscottlahc_reg_print_t ahc_stack_print;
579260401Sscottl#else
580260401Sscottl#define ahc_stack_print(regvalue, cur_col, wrap) \
581260401Sscottl    ahc_print_register(NULL, 0, "STACK", 0x6f, regvalue, cur_col, wrap)
582260401Sscottl#endif
583260401Sscottl
584260401Sscottl#if AIC_DEBUG_REGISTERS
585260401Sscottlahc_reg_print_t ahc_targ_offset_print;
586260401Sscottl#else
587260401Sscottl#define ahc_targ_offset_print(regvalue, cur_col, wrap) \
588260401Sscottl    ahc_print_register(NULL, 0, "TARG_OFFSET", 0x70, regvalue, cur_col, wrap)
589260401Sscottl#endif
590260401Sscottl
591260401Sscottl#if AIC_DEBUG_REGISTERS
592260401Sscottlahc_reg_print_t ahc_sram_base_print;
593260401Sscottl#else
594260401Sscottl#define ahc_sram_base_print(regvalue, cur_col, wrap) \
595260401Sscottl    ahc_print_register(NULL, 0, "SRAM_BASE", 0x70, regvalue, cur_col, wrap)
596260401Sscottl#endif
597260401Sscottl
598260401Sscottl#if AIC_DEBUG_REGISTERS
599260401Sscottlahc_reg_print_t ahc_dscommand0_print;
600260401Sscottl#else
601260401Sscottl#define ahc_dscommand0_print(regvalue, cur_col, wrap) \
602260401Sscottl    ahc_print_register(NULL, 0, "DSCOMMAND0", 0x84, regvalue, cur_col, wrap)
603260401Sscottl#endif
604260401Sscottl
605260401Sscottl#if AIC_DEBUG_REGISTERS
606260401Sscottlahc_reg_print_t ahc_bctl_print;
607260401Sscottl#else
608260401Sscottl#define ahc_bctl_print(regvalue, cur_col, wrap) \
609260401Sscottl    ahc_print_register(NULL, 0, "BCTL", 0x84, regvalue, cur_col, wrap)
610260401Sscottl#endif
611260401Sscottl
612260401Sscottl#if AIC_DEBUG_REGISTERS
613260401Sscottlahc_reg_print_t ahc_bustime_print;
614260401Sscottl#else
615260401Sscottl#define ahc_bustime_print(regvalue, cur_col, wrap) \
616260401Sscottl    ahc_print_register(NULL, 0, "BUSTIME", 0x85, regvalue, cur_col, wrap)
617260401Sscottl#endif
618260401Sscottl
619260401Sscottl#if AIC_DEBUG_REGISTERS
620260401Sscottlahc_reg_print_t ahc_dscommand1_print;
621260401Sscottl#else
622260401Sscottl#define ahc_dscommand1_print(regvalue, cur_col, wrap) \
623260401Sscottl    ahc_print_register(NULL, 0, "DSCOMMAND1", 0x85, regvalue, cur_col, wrap)
624260401Sscottl#endif
625260401Sscottl
626260401Sscottl#if AIC_DEBUG_REGISTERS
627260401Sscottlahc_reg_print_t ahc_busspd_print;
628260401Sscottl#else
629260401Sscottl#define ahc_busspd_print(regvalue, cur_col, wrap) \
630260401Sscottl    ahc_print_register(NULL, 0, "BUSSPD", 0x86, regvalue, cur_col, wrap)
631260401Sscottl#endif
632260401Sscottl
633260401Sscottl#if AIC_DEBUG_REGISTERS
634260401Sscottlahc_reg_print_t ahc_hs_mailbox_print;
635260401Sscottl#else
636260401Sscottl#define ahc_hs_mailbox_print(regvalue, cur_col, wrap) \
637260401Sscottl    ahc_print_register(NULL, 0, "HS_MAILBOX", 0x86, regvalue, cur_col, wrap)
638260401Sscottl#endif
639260401Sscottl
640260401Sscottl#if AIC_DEBUG_REGISTERS
641260401Sscottlahc_reg_print_t ahc_dspcistatus_print;
642260401Sscottl#else
643260401Sscottl#define ahc_dspcistatus_print(regvalue, cur_col, wrap) \
644260401Sscottl    ahc_print_register(NULL, 0, "DSPCISTATUS", 0x86, regvalue, cur_col, wrap)
645260401Sscottl#endif
646260401Sscottl
647260401Sscottl#if AIC_DEBUG_REGISTERS
648260401Sscottlahc_reg_print_t ahc_hcntrl_print;
649260401Sscottl#else
650260401Sscottl#define ahc_hcntrl_print(regvalue, cur_col, wrap) \
651260401Sscottl    ahc_print_register(NULL, 0, "HCNTRL", 0x87, regvalue, cur_col, wrap)
652260401Sscottl#endif
653260401Sscottl
654260401Sscottl#if AIC_DEBUG_REGISTERS
655260401Sscottlahc_reg_print_t ahc_haddr_print;
656260401Sscottl#else
657260401Sscottl#define ahc_haddr_print(regvalue, cur_col, wrap) \
658260401Sscottl    ahc_print_register(NULL, 0, "HADDR", 0x88, regvalue, cur_col, wrap)
659260401Sscottl#endif
660260401Sscottl
661260401Sscottl#if AIC_DEBUG_REGISTERS
662260401Sscottlahc_reg_print_t ahc_hcnt_print;
663260401Sscottl#else
664260401Sscottl#define ahc_hcnt_print(regvalue, cur_col, wrap) \
665260401Sscottl    ahc_print_register(NULL, 0, "HCNT", 0x8c, regvalue, cur_col, wrap)
666260401Sscottl#endif
667260401Sscottl
668260401Sscottl#if AIC_DEBUG_REGISTERS
669260401Sscottlahc_reg_print_t ahc_scbptr_print;
670260401Sscottl#else
671260401Sscottl#define ahc_scbptr_print(regvalue, cur_col, wrap) \
672260401Sscottl    ahc_print_register(NULL, 0, "SCBPTR", 0x90, regvalue, cur_col, wrap)
673260401Sscottl#endif
674260401Sscottl
675260401Sscottl#if AIC_DEBUG_REGISTERS
676260401Sscottlahc_reg_print_t ahc_intstat_print;
677260401Sscottl#else
678260401Sscottl#define ahc_intstat_print(regvalue, cur_col, wrap) \
679260401Sscottl    ahc_print_register(NULL, 0, "INTSTAT", 0x91, regvalue, cur_col, wrap)
680260401Sscottl#endif
681260401Sscottl
682260401Sscottl#if AIC_DEBUG_REGISTERS
683260401Sscottlahc_reg_print_t ahc_error_print;
684260401Sscottl#else
685260401Sscottl#define ahc_error_print(regvalue, cur_col, wrap) \
686260401Sscottl    ahc_print_register(NULL, 0, "ERROR", 0x92, regvalue, cur_col, wrap)
687260401Sscottl#endif
688260401Sscottl
689260401Sscottl#if AIC_DEBUG_REGISTERS
690260401Sscottlahc_reg_print_t ahc_clrint_print;
691260401Sscottl#else
692260401Sscottl#define ahc_clrint_print(regvalue, cur_col, wrap) \
693260401Sscottl    ahc_print_register(NULL, 0, "CLRINT", 0x92, regvalue, cur_col, wrap)
694260401Sscottl#endif
695260401Sscottl
696260401Sscottl#if AIC_DEBUG_REGISTERS
697260401Sscottlahc_reg_print_t ahc_dfcntrl_print;
698260401Sscottl#else
699260401Sscottl#define ahc_dfcntrl_print(regvalue, cur_col, wrap) \
700260401Sscottl    ahc_print_register(NULL, 0, "DFCNTRL", 0x93, regvalue, cur_col, wrap)
701260401Sscottl#endif
702260401Sscottl
703260401Sscottl#if AIC_DEBUG_REGISTERS
704260401Sscottlahc_reg_print_t ahc_dfstatus_print;
705260401Sscottl#else
706260401Sscottl#define ahc_dfstatus_print(regvalue, cur_col, wrap) \
707260401Sscottl    ahc_print_register(NULL, 0, "DFSTATUS", 0x94, regvalue, cur_col, wrap)
708260401Sscottl#endif
709260401Sscottl
710260401Sscottl#if AIC_DEBUG_REGISTERS
711260401Sscottlahc_reg_print_t ahc_dfwaddr_print;
712260401Sscottl#else
713260401Sscottl#define ahc_dfwaddr_print(regvalue, cur_col, wrap) \
714260401Sscottl    ahc_print_register(NULL, 0, "DFWADDR", 0x95, regvalue, cur_col, wrap)
715260401Sscottl#endif
716260401Sscottl
717260401Sscottl#if AIC_DEBUG_REGISTERS
718260401Sscottlahc_reg_print_t ahc_dfraddr_print;
719260401Sscottl#else
720260401Sscottl#define ahc_dfraddr_print(regvalue, cur_col, wrap) \
721260401Sscottl    ahc_print_register(NULL, 0, "DFRADDR", 0x97, regvalue, cur_col, wrap)
722260401Sscottl#endif
723260401Sscottl
724260401Sscottl#if AIC_DEBUG_REGISTERS
725260401Sscottlahc_reg_print_t ahc_dfdat_print;
726260401Sscottl#else
727260401Sscottl#define ahc_dfdat_print(regvalue, cur_col, wrap) \
728260401Sscottl    ahc_print_register(NULL, 0, "DFDAT", 0x99, regvalue, cur_col, wrap)
729260401Sscottl#endif
730260401Sscottl
731260401Sscottl#if AIC_DEBUG_REGISTERS
732260401Sscottlahc_reg_print_t ahc_scbcnt_print;
733260401Sscottl#else
734260401Sscottl#define ahc_scbcnt_print(regvalue, cur_col, wrap) \
735260401Sscottl    ahc_print_register(NULL, 0, "SCBCNT", 0x9a, regvalue, cur_col, wrap)
736260401Sscottl#endif
737260401Sscottl
738260401Sscottl#if AIC_DEBUG_REGISTERS
739260401Sscottlahc_reg_print_t ahc_qinfifo_print;
740260401Sscottl#else
741260401Sscottl#define ahc_qinfifo_print(regvalue, cur_col, wrap) \
742260401Sscottl    ahc_print_register(NULL, 0, "QINFIFO", 0x9b, regvalue, cur_col, wrap)
743260401Sscottl#endif
744260401Sscottl
745260401Sscottl#if AIC_DEBUG_REGISTERS
746260401Sscottlahc_reg_print_t ahc_qincnt_print;
747260401Sscottl#else
748260401Sscottl#define ahc_qincnt_print(regvalue, cur_col, wrap) \
749260401Sscottl    ahc_print_register(NULL, 0, "QINCNT", 0x9c, regvalue, cur_col, wrap)
750260401Sscottl#endif
751260401Sscottl
752260401Sscottl#if AIC_DEBUG_REGISTERS
753260401Sscottlahc_reg_print_t ahc_crccontrol1_print;
754260401Sscottl#else
755260401Sscottl#define ahc_crccontrol1_print(regvalue, cur_col, wrap) \
756260401Sscottl    ahc_print_register(NULL, 0, "CRCCONTROL1", 0x9d, regvalue, cur_col, wrap)
757260401Sscottl#endif
758260401Sscottl
759260401Sscottl#if AIC_DEBUG_REGISTERS
760260401Sscottlahc_reg_print_t ahc_qoutfifo_print;
761260401Sscottl#else
762260401Sscottl#define ahc_qoutfifo_print(regvalue, cur_col, wrap) \
763260401Sscottl    ahc_print_register(NULL, 0, "QOUTFIFO", 0x9d, regvalue, cur_col, wrap)
764260401Sscottl#endif
765260401Sscottl
766260401Sscottl#if AIC_DEBUG_REGISTERS
767260401Sscottlahc_reg_print_t ahc_qoutcnt_print;
768260401Sscottl#else
769260401Sscottl#define ahc_qoutcnt_print(regvalue, cur_col, wrap) \
770260401Sscottl    ahc_print_register(NULL, 0, "QOUTCNT", 0x9e, regvalue, cur_col, wrap)
771260401Sscottl#endif
772260401Sscottl
773260401Sscottl#if AIC_DEBUG_REGISTERS
774260401Sscottlahc_reg_print_t ahc_scsiphase_print;
775260401Sscottl#else
776260401Sscottl#define ahc_scsiphase_print(regvalue, cur_col, wrap) \
777260401Sscottl    ahc_print_register(NULL, 0, "SCSIPHASE", 0x9e, regvalue, cur_col, wrap)
778260401Sscottl#endif
779260401Sscottl
780260401Sscottl#if AIC_DEBUG_REGISTERS
781260401Sscottlahc_reg_print_t ahc_sfunct_print;
782260401Sscottl#else
783260401Sscottl#define ahc_sfunct_print(regvalue, cur_col, wrap) \
784260401Sscottl    ahc_print_register(NULL, 0, "SFUNCT", 0x9f, regvalue, cur_col, wrap)
785260401Sscottl#endif
786260401Sscottl
787260401Sscottl#if AIC_DEBUG_REGISTERS
788260401Sscottlahc_reg_print_t ahc_scb_base_print;
789260401Sscottl#else
790260401Sscottl#define ahc_scb_base_print(regvalue, cur_col, wrap) \
791260401Sscottl    ahc_print_register(NULL, 0, "SCB_BASE", 0xa0, regvalue, cur_col, wrap)
792260401Sscottl#endif
793260401Sscottl
794260401Sscottl#if AIC_DEBUG_REGISTERS
795260401Sscottlahc_reg_print_t ahc_scb_cdb_ptr_print;
796260401Sscottl#else
797260401Sscottl#define ahc_scb_cdb_ptr_print(regvalue, cur_col, wrap) \
798260401Sscottl    ahc_print_register(NULL, 0, "SCB_CDB_PTR", 0xa0, regvalue, cur_col, wrap)
799260401Sscottl#endif
800260401Sscottl
801260401Sscottl#if AIC_DEBUG_REGISTERS
802260401Sscottlahc_reg_print_t ahc_scb_residual_sgptr_print;
803260401Sscottl#else
804260401Sscottl#define ahc_scb_residual_sgptr_print(regvalue, cur_col, wrap) \
805260401Sscottl    ahc_print_register(NULL, 0, "SCB_RESIDUAL_SGPTR", 0xa4, regvalue, cur_col, wrap)
806260401Sscottl#endif
807260401Sscottl
808260401Sscottl#if AIC_DEBUG_REGISTERS
809260401Sscottlahc_reg_print_t ahc_scb_scsi_status_print;
810260401Sscottl#else
811260401Sscottl#define ahc_scb_scsi_status_print(regvalue, cur_col, wrap) \
812260401Sscottl    ahc_print_register(NULL, 0, "SCB_SCSI_STATUS", 0xa8, regvalue, cur_col, wrap)
813260401Sscottl#endif
814260401Sscottl
815260401Sscottl#if AIC_DEBUG_REGISTERS
816260401Sscottlahc_reg_print_t ahc_scb_target_phases_print;
817260401Sscottl#else
818260401Sscottl#define ahc_scb_target_phases_print(regvalue, cur_col, wrap) \
819260401Sscottl    ahc_print_register(NULL, 0, "SCB_TARGET_PHASES", 0xa9, regvalue, cur_col, wrap)
820260401Sscottl#endif
821260401Sscottl
822260401Sscottl#if AIC_DEBUG_REGISTERS
823260401Sscottlahc_reg_print_t ahc_scb_target_data_dir_print;
824260401Sscottl#else
825260401Sscottl#define ahc_scb_target_data_dir_print(regvalue, cur_col, wrap) \
826260401Sscottl    ahc_print_register(NULL, 0, "SCB_TARGET_DATA_DIR", 0xaa, regvalue, cur_col, wrap)
827260401Sscottl#endif
828260401Sscottl
829260401Sscottl#if AIC_DEBUG_REGISTERS
830260401Sscottlahc_reg_print_t ahc_scb_target_itag_print;
831260401Sscottl#else
832260401Sscottl#define ahc_scb_target_itag_print(regvalue, cur_col, wrap) \
833260401Sscottl    ahc_print_register(NULL, 0, "SCB_TARGET_ITAG", 0xab, regvalue, cur_col, wrap)
834260401Sscottl#endif
835260401Sscottl
836260401Sscottl#if AIC_DEBUG_REGISTERS
837260401Sscottlahc_reg_print_t ahc_scb_dataptr_print;
838260401Sscottl#else
839260401Sscottl#define ahc_scb_dataptr_print(regvalue, cur_col, wrap) \
840260401Sscottl    ahc_print_register(NULL, 0, "SCB_DATAPTR", 0xac, regvalue, cur_col, wrap)
841260401Sscottl#endif
842260401Sscottl
843260401Sscottl#if AIC_DEBUG_REGISTERS
844260401Sscottlahc_reg_print_t ahc_scb_datacnt_print;
845260401Sscottl#else
846260401Sscottl#define ahc_scb_datacnt_print(regvalue, cur_col, wrap) \
847260401Sscottl    ahc_print_register(NULL, 0, "SCB_DATACNT", 0xb0, regvalue, cur_col, wrap)
848260401Sscottl#endif
849260401Sscottl
850260401Sscottl#if AIC_DEBUG_REGISTERS
851260401Sscottlahc_reg_print_t ahc_scb_sgptr_print;
852260401Sscottl#else
853260401Sscottl#define ahc_scb_sgptr_print(regvalue, cur_col, wrap) \
854260401Sscottl    ahc_print_register(NULL, 0, "SCB_SGPTR", 0xb4, regvalue, cur_col, wrap)
855260401Sscottl#endif
856260401Sscottl
857260401Sscottl#if AIC_DEBUG_REGISTERS
858260401Sscottlahc_reg_print_t ahc_scb_control_print;
859260401Sscottl#else
860260401Sscottl#define ahc_scb_control_print(regvalue, cur_col, wrap) \
861260401Sscottl    ahc_print_register(NULL, 0, "SCB_CONTROL", 0xb8, regvalue, cur_col, wrap)
862260401Sscottl#endif
863260401Sscottl
864260401Sscottl#if AIC_DEBUG_REGISTERS
865260401Sscottlahc_reg_print_t ahc_scb_scsiid_print;
866260401Sscottl#else
867260401Sscottl#define ahc_scb_scsiid_print(regvalue, cur_col, wrap) \
868260401Sscottl    ahc_print_register(NULL, 0, "SCB_SCSIID", 0xb9, regvalue, cur_col, wrap)
869260401Sscottl#endif
870260401Sscottl
871260401Sscottl#if AIC_DEBUG_REGISTERS
872260401Sscottlahc_reg_print_t ahc_scb_lun_print;
873260401Sscottl#else
874260401Sscottl#define ahc_scb_lun_print(regvalue, cur_col, wrap) \
875260401Sscottl    ahc_print_register(NULL, 0, "SCB_LUN", 0xba, regvalue, cur_col, wrap)
876260401Sscottl#endif
877260401Sscottl
878260401Sscottl#if AIC_DEBUG_REGISTERS
879260401Sscottlahc_reg_print_t ahc_scb_tag_print;
880260401Sscottl#else
881260401Sscottl#define ahc_scb_tag_print(regvalue, cur_col, wrap) \
882260401Sscottl    ahc_print_register(NULL, 0, "SCB_TAG", 0xbb, regvalue, cur_col, wrap)
883260401Sscottl#endif
884260401Sscottl
885260401Sscottl#if AIC_DEBUG_REGISTERS
886260401Sscottlahc_reg_print_t ahc_scb_cdb_len_print;
887260401Sscottl#else
888260401Sscottl#define ahc_scb_cdb_len_print(regvalue, cur_col, wrap) \
889260401Sscottl    ahc_print_register(NULL, 0, "SCB_CDB_LEN", 0xbc, regvalue, cur_col, wrap)
890260401Sscottl#endif
891260401Sscottl
892260401Sscottl#if AIC_DEBUG_REGISTERS
893260401Sscottlahc_reg_print_t ahc_scb_scsirate_print;
894260401Sscottl#else
895260401Sscottl#define ahc_scb_scsirate_print(regvalue, cur_col, wrap) \
896260401Sscottl    ahc_print_register(NULL, 0, "SCB_SCSIRATE", 0xbd, regvalue, cur_col, wrap)
897260401Sscottl#endif
898260401Sscottl
899260401Sscottl#if AIC_DEBUG_REGISTERS
900260401Sscottlahc_reg_print_t ahc_scb_scsioffset_print;
901260401Sscottl#else
902260401Sscottl#define ahc_scb_scsioffset_print(regvalue, cur_col, wrap) \
903260401Sscottl    ahc_print_register(NULL, 0, "SCB_SCSIOFFSET", 0xbe, regvalue, cur_col, wrap)
904260401Sscottl#endif
905260401Sscottl
906260401Sscottl#if AIC_DEBUG_REGISTERS
907260401Sscottlahc_reg_print_t ahc_scb_next_print;
908260401Sscottl#else
909260401Sscottl#define ahc_scb_next_print(regvalue, cur_col, wrap) \
910260401Sscottl    ahc_print_register(NULL, 0, "SCB_NEXT", 0xbf, regvalue, cur_col, wrap)
911260401Sscottl#endif
912260401Sscottl
913260401Sscottl#if AIC_DEBUG_REGISTERS
914260401Sscottlahc_reg_print_t ahc_scb_64_spare_print;
915260401Sscottl#else
916260401Sscottl#define ahc_scb_64_spare_print(regvalue, cur_col, wrap) \
917260401Sscottl    ahc_print_register(NULL, 0, "SCB_64_SPARE", 0xc0, regvalue, cur_col, wrap)
918260401Sscottl#endif
919260401Sscottl
920260401Sscottl#if AIC_DEBUG_REGISTERS
921260401Sscottlahc_reg_print_t ahc_seectl_2840_print;
922260401Sscottl#else
923260401Sscottl#define ahc_seectl_2840_print(regvalue, cur_col, wrap) \
924260401Sscottl    ahc_print_register(NULL, 0, "SEECTL_2840", 0xc0, regvalue, cur_col, wrap)
925260401Sscottl#endif
926260401Sscottl
927260401Sscottl#if AIC_DEBUG_REGISTERS
928260401Sscottlahc_reg_print_t ahc_status_2840_print;
929260401Sscottl#else
930260401Sscottl#define ahc_status_2840_print(regvalue, cur_col, wrap) \
931260401Sscottl    ahc_print_register(NULL, 0, "STATUS_2840", 0xc1, regvalue, cur_col, wrap)
932260401Sscottl#endif
933260401Sscottl
934260401Sscottl#if AIC_DEBUG_REGISTERS
935260401Sscottlahc_reg_print_t ahc_scb_64_btt_print;
936260401Sscottl#else
937260401Sscottl#define ahc_scb_64_btt_print(regvalue, cur_col, wrap) \
938260401Sscottl    ahc_print_register(NULL, 0, "SCB_64_BTT", 0xd0, regvalue, cur_col, wrap)
939260401Sscottl#endif
940260401Sscottl
941260401Sscottl#if AIC_DEBUG_REGISTERS
942260401Sscottlahc_reg_print_t ahc_cchaddr_print;
943260401Sscottl#else
944260401Sscottl#define ahc_cchaddr_print(regvalue, cur_col, wrap) \
945260401Sscottl    ahc_print_register(NULL, 0, "CCHADDR", 0xe0, regvalue, cur_col, wrap)
946260401Sscottl#endif
947260401Sscottl
948260401Sscottl#if AIC_DEBUG_REGISTERS
949260401Sscottlahc_reg_print_t ahc_cchcnt_print;
950260401Sscottl#else
951260401Sscottl#define ahc_cchcnt_print(regvalue, cur_col, wrap) \
952260401Sscottl    ahc_print_register(NULL, 0, "CCHCNT", 0xe8, regvalue, cur_col, wrap)
953260401Sscottl#endif
954260401Sscottl
955260401Sscottl#if AIC_DEBUG_REGISTERS
956260401Sscottlahc_reg_print_t ahc_ccsgram_print;
957260401Sscottl#else
958260401Sscottl#define ahc_ccsgram_print(regvalue, cur_col, wrap) \
959260401Sscottl    ahc_print_register(NULL, 0, "CCSGRAM", 0xe9, regvalue, cur_col, wrap)
960260401Sscottl#endif
961260401Sscottl
962260401Sscottl#if AIC_DEBUG_REGISTERS
963260401Sscottlahc_reg_print_t ahc_ccsgaddr_print;
964260401Sscottl#else
965260401Sscottl#define ahc_ccsgaddr_print(regvalue, cur_col, wrap) \
966260401Sscottl    ahc_print_register(NULL, 0, "CCSGADDR", 0xea, regvalue, cur_col, wrap)
967260401Sscottl#endif
968260401Sscottl
969260401Sscottl#if AIC_DEBUG_REGISTERS
970260401Sscottlahc_reg_print_t ahc_ccsgctl_print;
971260401Sscottl#else
972260401Sscottl#define ahc_ccsgctl_print(regvalue, cur_col, wrap) \
973260401Sscottl    ahc_print_register(NULL, 0, "CCSGCTL", 0xeb, regvalue, cur_col, wrap)
974260401Sscottl#endif
975260401Sscottl
976260401Sscottl#if AIC_DEBUG_REGISTERS
977260401Sscottlahc_reg_print_t ahc_ccscbram_print;
978260401Sscottl#else
979260401Sscottl#define ahc_ccscbram_print(regvalue, cur_col, wrap) \
980260401Sscottl    ahc_print_register(NULL, 0, "CCSCBRAM", 0xec, regvalue, cur_col, wrap)
981260401Sscottl#endif
982260401Sscottl
983260401Sscottl#if AIC_DEBUG_REGISTERS
984260401Sscottlahc_reg_print_t ahc_ccscbaddr_print;
985260401Sscottl#else
986260401Sscottl#define ahc_ccscbaddr_print(regvalue, cur_col, wrap) \
987260401Sscottl    ahc_print_register(NULL, 0, "CCSCBADDR", 0xed, regvalue, cur_col, wrap)
988260401Sscottl#endif
989260401Sscottl
990260401Sscottl#if AIC_DEBUG_REGISTERS
991260401Sscottlahc_reg_print_t ahc_ccscbctl_print;
992260401Sscottl#else
993260401Sscottl#define ahc_ccscbctl_print(regvalue, cur_col, wrap) \
994260401Sscottl    ahc_print_register(NULL, 0, "CCSCBCTL", 0xee, regvalue, cur_col, wrap)
995260401Sscottl#endif
996260401Sscottl
997260401Sscottl#if AIC_DEBUG_REGISTERS
998260401Sscottlahc_reg_print_t ahc_ccscbcnt_print;
999260401Sscottl#else
1000260401Sscottl#define ahc_ccscbcnt_print(regvalue, cur_col, wrap) \
1001260401Sscottl    ahc_print_register(NULL, 0, "CCSCBCNT", 0xef, regvalue, cur_col, wrap)
1002260401Sscottl#endif
1003260401Sscottl
1004260401Sscottl#if AIC_DEBUG_REGISTERS
1005260401Sscottlahc_reg_print_t ahc_scbbaddr_print;
1006260401Sscottl#else
1007260401Sscottl#define ahc_scbbaddr_print(regvalue, cur_col, wrap) \
1008260401Sscottl    ahc_print_register(NULL, 0, "SCBBADDR", 0xf0, regvalue, cur_col, wrap)
1009260401Sscottl#endif
1010260401Sscottl
1011260401Sscottl#if AIC_DEBUG_REGISTERS
1012260401Sscottlahc_reg_print_t ahc_ccscbptr_print;
1013260401Sscottl#else
1014260401Sscottl#define ahc_ccscbptr_print(regvalue, cur_col, wrap) \
1015260401Sscottl    ahc_print_register(NULL, 0, "CCSCBPTR", 0xf1, regvalue, cur_col, wrap)
1016260401Sscottl#endif
1017260401Sscottl
1018260401Sscottl#if AIC_DEBUG_REGISTERS
1019260401Sscottlahc_reg_print_t ahc_hnscb_qoff_print;
1020260401Sscottl#else
1021260401Sscottl#define ahc_hnscb_qoff_print(regvalue, cur_col, wrap) \
1022260401Sscottl    ahc_print_register(NULL, 0, "HNSCB_QOFF", 0xf4, regvalue, cur_col, wrap)
1023260401Sscottl#endif
1024260401Sscottl
1025260401Sscottl#if AIC_DEBUG_REGISTERS
1026260401Sscottlahc_reg_print_t ahc_snscb_qoff_print;
1027260401Sscottl#else
1028260401Sscottl#define ahc_snscb_qoff_print(regvalue, cur_col, wrap) \
1029260401Sscottl    ahc_print_register(NULL, 0, "SNSCB_QOFF", 0xf6, regvalue, cur_col, wrap)
1030260401Sscottl#endif
1031260401Sscottl
1032260401Sscottl#if AIC_DEBUG_REGISTERS
1033260401Sscottlahc_reg_print_t ahc_sdscb_qoff_print;
1034260401Sscottl#else
1035260401Sscottl#define ahc_sdscb_qoff_print(regvalue, cur_col, wrap) \
1036260401Sscottl    ahc_print_register(NULL, 0, "SDSCB_QOFF", 0xf8, regvalue, cur_col, wrap)
1037260401Sscottl#endif
1038260401Sscottl
1039260401Sscottl#if AIC_DEBUG_REGISTERS
1040260401Sscottlahc_reg_print_t ahc_qoff_ctlsta_print;
1041260401Sscottl#else
1042260401Sscottl#define ahc_qoff_ctlsta_print(regvalue, cur_col, wrap) \
1043260401Sscottl    ahc_print_register(NULL, 0, "QOFF_CTLSTA", 0xfa, regvalue, cur_col, wrap)
1044260401Sscottl#endif
1045260401Sscottl
1046260401Sscottl#if AIC_DEBUG_REGISTERS
1047260401Sscottlahc_reg_print_t ahc_dff_thrsh_print;
1048260401Sscottl#else
1049260401Sscottl#define ahc_dff_thrsh_print(regvalue, cur_col, wrap) \
1050260401Sscottl    ahc_print_register(NULL, 0, "DFF_THRSH", 0xfb, regvalue, cur_col, wrap)
1051260401Sscottl#endif
1052260401Sscottl
1053260401Sscottl#if AIC_DEBUG_REGISTERS
1054260401Sscottlahc_reg_print_t ahc_sg_cache_shadow_print;
1055260401Sscottl#else
1056260401Sscottl#define ahc_sg_cache_shadow_print(regvalue, cur_col, wrap) \
1057260401Sscottl    ahc_print_register(NULL, 0, "SG_CACHE_SHADOW", 0xfc, regvalue, cur_col, wrap)
1058260401Sscottl#endif
1059260401Sscottl
1060260401Sscottl#if AIC_DEBUG_REGISTERS
1061260401Sscottlahc_reg_print_t ahc_sg_cache_pre_print;
1062260401Sscottl#else
1063260401Sscottl#define ahc_sg_cache_pre_print(regvalue, cur_col, wrap) \
1064260401Sscottl    ahc_print_register(NULL, 0, "SG_CACHE_PRE", 0xfc, regvalue, cur_col, wrap)
1065260401Sscottl#endif
1066260401Sscottl
1067260401Sscottl
1068260401Sscottl#define	SCSISEQ         		0x00
1069260401Sscottl#define		TEMODE          	0x80
1070260401Sscottl#define		SCSIRSTO        	0x01
1071260401Sscottl
1072260401Sscottl#define	SXFRCTL0        		0x01
1073260401Sscottl#define		DFON            	0x80
1074260401Sscottl#define		DFPEXP          	0x40
1075260401Sscottl#define		FAST20          	0x20
1076260401Sscottl#define		CLRSTCNT        	0x10
1077260401Sscottl#define		SPIOEN          	0x08
1078260401Sscottl#define		SCAMEN          	0x04
1079260401Sscottl#define		CLRCHN          	0x02
1080260401Sscottl
1081260401Sscottl#define	SXFRCTL1        		0x02
1082260401Sscottl#define		STIMESEL        	0x18
1083260401Sscottl#define		BITBUCKET       	0x80
1084260401Sscottl#define		SWRAPEN         	0x40
1085260401Sscottl#define		ENSTIMER        	0x04
1086260401Sscottl#define		ACTNEGEN        	0x02
1087260401Sscottl#define		STPWEN          	0x01
1088260401Sscottl
1089260401Sscottl#define	SCSISIGI        		0x03
1090260401Sscottl#define		P_DATAIN_DT     	0x60
1091260401Sscottl#define		P_DATAOUT_DT    	0x20
1092260401Sscottl#define		ATNI            	0x10
1093260401Sscottl#define		SELI            	0x08
1094260401Sscottl#define		BSYI            	0x04
1095260401Sscottl#define		REQI            	0x02
1096260401Sscottl#define		ACKI            	0x01
1097260401Sscottl
1098260401Sscottl#define	SCSISIGO        		0x03
1099260401Sscottl#define		CDO             	0x80
1100260401Sscottl#define		IOO             	0x40
1101260401Sscottl#define		MSGO            	0x20
1102260401Sscottl#define		ATNO            	0x10
1103260401Sscottl#define		SELO            	0x08
1104260401Sscottl#define		BSYO            	0x04
1105260401Sscottl#define		REQO            	0x02
1106260401Sscottl#define		ACKO            	0x01
1107260401Sscottl
1108260401Sscottl#define	SCSIRATE        		0x04
1109260401Sscottl#define		SXFR            	0x70
1110260401Sscottl#define		SXFR_ULTRA2     	0x0f
1111260401Sscottl#define		SOFS            	0x0f
1112260401Sscottl#define		WIDEXFER        	0x80
1113260401Sscottl#define		ENABLE_CRC      	0x40
1114260401Sscottl#define		SINGLE_EDGE     	0x10
1115260401Sscottl
1116260401Sscottl#define	SCSIID          		0x05
1117260401Sscottl#define	SCSIOFFSET      		0x05
1118260401Sscottl#define		SOFS_ULTRA2     	0x7f
1119260401Sscottl
1120260401Sscottl#define	SCSIDATL        		0x06
1121260401Sscottl
1122260401Sscottl#define	SCSIDATH        		0x07
1123260401Sscottl
1124260401Sscottl#define	OPTIONMODE      		0x08
1125260401Sscottl#define		OPTIONMODE_DEFAULTS	0x03
1126260401Sscottl#define		AUTORATEEN      	0x80
1127260401Sscottl#define		AUTOACKEN       	0x40
1128260401Sscottl#define		ATNMGMNTEN      	0x20
1129260401Sscottl#define		BUSFREEREV      	0x10
1130260401Sscottl#define		EXPPHASEDIS     	0x08
1131260401Sscottl#define		SCSIDATL_IMGEN  	0x04
1132260401Sscottl#define		AUTO_MSGOUT_DE  	0x02
1133260401Sscottl#define		DIS_MSGIN_DUALEDGE	0x01
1134260401Sscottl
1135260401Sscottl#define	STCNT           		0x08
1136260401Sscottl
1137260401Sscottl#define	TARGCRCCNT      		0x0a
1138260401Sscottl
1139260401Sscottl#define	CLRSINT0        		0x0b
1140260401Sscottl#define		CLRSELDO        	0x40
1141260401Sscottl#define		CLRSELDI        	0x20
1142260401Sscottl#define		CLRSELINGO      	0x10
1143260401Sscottl#define		CLRIOERR        	0x08
1144260401Sscottl#define		CLRSWRAP        	0x08
1145260401Sscottl#define		CLRSPIORDY      	0x02
1146260401Sscottl
1147260401Sscottl#define	SSTAT0          		0x0b
1148260401Sscottl#define		TARGET          	0x80
1149260401Sscottl#define		SELDO           	0x40
1150260401Sscottl#define		SELDI           	0x20
1151260401Sscottl#define		SELINGO         	0x10
1152260401Sscottl#define		SWRAP           	0x08
1153260401Sscottl#define		IOERR           	0x08
1154260401Sscottl#define		SDONE           	0x04
1155260401Sscottl#define		SPIORDY         	0x02
1156260401Sscottl#define		DMADONE         	0x01
1157260401Sscottl
1158260401Sscottl#define	CLRSINT1        		0x0c
1159260401Sscottl#define		CLRSELTIMEO     	0x80
1160260401Sscottl#define		CLRATNO         	0x40
1161260401Sscottl#define		CLRSCSIRSTI     	0x20
1162260401Sscottl#define		CLRBUSFREE      	0x08
1163260401Sscottl#define		CLRSCSIPERR     	0x04
1164260401Sscottl#define		CLRPHASECHG     	0x02
1165260401Sscottl#define		CLRREQINIT      	0x01
1166260401Sscottl
1167260401Sscottl#define	SSTAT1          		0x0c
1168260401Sscottl#define		SELTO           	0x80
1169260401Sscottl#define		ATNTARG         	0x40
1170260401Sscottl#define		SCSIRSTI        	0x20
1171260401Sscottl#define		PHASEMIS        	0x10
1172260401Sscottl#define		BUSFREE         	0x08
1173260401Sscottl#define		SCSIPERR        	0x04
1174260401Sscottl#define		PHASECHG        	0x02
1175260401Sscottl#define		REQINIT         	0x01
1176260401Sscottl
1177260401Sscottl#define	SSTAT2          		0x0d
1178260401Sscottl#define		SFCNT           	0x1f
1179260401Sscottl#define		OVERRUN         	0x80
1180260401Sscottl#define		SHVALID         	0x40
1181260401Sscottl#define		EXP_ACTIVE      	0x10
1182260401Sscottl#define		CRCVALERR       	0x08
1183260401Sscottl#define		CRCENDERR       	0x04
1184260401Sscottl#define		CRCREQERR       	0x02
1185260401Sscottl#define		DUAL_EDGE_ERR   	0x01
1186260401Sscottl
1187260401Sscottl#define	SSTAT3          		0x0e
1188260401Sscottl#define		SCSICNT         	0xf0
1189260401Sscottl#define		U2OFFCNT        	0x7f
1190260401Sscottl#define		OFFCNT          	0x0f
1191260401Sscottl
1192260401Sscottl#define	SCSIID_ULTRA2   		0x0f
1193260401Sscottl
1194260401Sscottl#define	SIMODE0         		0x10
1195260401Sscottl#define		ENSELDO         	0x40
1196260401Sscottl#define		ENSELDI         	0x20
1197260401Sscottl#define		ENSELINGO       	0x10
1198260401Sscottl#define		ENIOERR         	0x08
1199260401Sscottl#define		ENSWRAP         	0x08
1200260401Sscottl#define		ENSDONE         	0x04
1201260401Sscottl#define		ENSPIORDY       	0x02
1202260401Sscottl#define		ENDMADONE       	0x01
1203260401Sscottl
1204260401Sscottl#define	SIMODE1         		0x11
1205260401Sscottl#define		ENSELTIMO       	0x80
1206260401Sscottl#define		ENATNTARG       	0x40
1207260401Sscottl#define		ENSCSIRST       	0x20
1208260401Sscottl#define		ENPHASEMIS      	0x10
1209260401Sscottl#define		ENBUSFREE       	0x08
1210260401Sscottl#define		ENSCSIPERR      	0x04
1211260401Sscottl#define		ENPHASECHG      	0x02
1212260401Sscottl#define		ENREQINIT       	0x01
1213260401Sscottl
1214260401Sscottl#define	SCSIBUSL        		0x12
1215260401Sscottl
1216260401Sscottl#define	SXFRCTL2        		0x13
1217260401Sscottl#define		ASYNC_SETUP     	0x07
1218260401Sscottl#define		AUTORSTDIS      	0x10
1219260401Sscottl#define		CMDDMAEN        	0x08
1220260401Sscottl
1221260401Sscottl#define	SCSIBUSH        		0x13
1222260401Sscottl
1223260401Sscottl#define	SHADDR          		0x14
1224260401Sscottl
1225260401Sscottl#define	SELTIMER        		0x18
1226260401Sscottl#define	TARGIDIN        		0x18
1227260401Sscottl#define		STAGE6          	0x20
1228260401Sscottl#define		STAGE5          	0x10
1229260401Sscottl#define		STAGE4          	0x08
1230260401Sscottl#define		STAGE3          	0x04
1231260401Sscottl#define		STAGE2          	0x02
1232260401Sscottl#define		STAGE1          	0x01
1233260401Sscottl
1234260401Sscottl#define	SELID           		0x19
1235260401Sscottl#define		SELID_MASK      	0xf0
1236260401Sscottl#define		ONEBIT          	0x08
1237260401Sscottl
1238260401Sscottl#define	SCAMCTL         		0x1a
1239260401Sscottl#define		SCAMLVL         	0x03
1240260401Sscottl#define		ENSCAMSELO      	0x80
1241260401Sscottl#define		CLRSCAMSELID    	0x40
1242260401Sscottl#define		ALTSTIM         	0x20
1243260401Sscottl#define		DFLTTID         	0x10
1244260401Sscottl
1245260401Sscottl#define	TARGID          		0x1b
1246260401Sscottl
1247260401Sscottl#define	SPIOCAP         		0x1b
1248260401Sscottl#define		SOFT1           	0x80
1249260401Sscottl#define		SOFT0           	0x40
1250260401Sscottl#define		SOFTCMDEN       	0x20
1251260401Sscottl#define		EXT_BRDCTL      	0x10
1252260401Sscottl#define		SEEPROM         	0x08
1253260401Sscottl#define		EEPROM          	0x04
1254260401Sscottl#define		ROM             	0x02
1255260401Sscottl#define		SSPIOCPS        	0x01
1256260401Sscottl
1257260401Sscottl#define	BRDCTL          		0x1d
1258260401Sscottl#define		BRDDAT7         	0x80
1259260401Sscottl#define		BRDDAT6         	0x40
1260260401Sscottl#define		BRDDAT5         	0x20
1261260401Sscottl#define		BRDDAT4         	0x10
1262260401Sscottl#define		BRDSTB          	0x10
1263260401Sscottl#define		BRDDAT3         	0x08
1264260401Sscottl#define		BRDCS           	0x08
1265260401Sscottl#define		BRDDAT2         	0x04
1266260401Sscottl#define		BRDRW           	0x04
1267260401Sscottl#define		BRDCTL1         	0x02
1268260401Sscottl#define		BRDRW_ULTRA2    	0x02
1269260401Sscottl#define		BRDCTL0         	0x01
1270260401Sscottl#define		BRDSTB_ULTRA2   	0x01
1271260401Sscottl
1272260401Sscottl#define	SEECTL          		0x1e
1273260401Sscottl#define		EXTARBACK       	0x80
1274260401Sscottl#define		EXTARBREQ       	0x40
1275260401Sscottl#define		SEEMS           	0x20
1276260401Sscottl#define		SEERDY          	0x10
1277260401Sscottl#define		SEECS           	0x08
1278260401Sscottl#define		SEECK           	0x04
1279260401Sscottl#define		SEEDO           	0x02
1280260401Sscottl#define		SEEDI           	0x01
1281260401Sscottl
1282260401Sscottl#define	SBLKCTL         		0x1f
1283260401Sscottl#define		DIAGLEDEN       	0x80
1284260401Sscottl#define		DIAGLEDON       	0x40
1285260401Sscottl#define		AUTOFLUSHDIS    	0x20
1286260401Sscottl#define		ENAB40          	0x08
1287260401Sscottl#define		SELBUSB         	0x08
1288260401Sscottl#define		ENAB20          	0x04
1289260401Sscottl#define		SELWIDE         	0x02
1290260401Sscottl#define		XCVR            	0x01
1291260401Sscottl
1292260401Sscottl#define	BUSY_TARGETS    		0x20
1293260401Sscottl#define	TARG_SCSIRATE   		0x20
1294260401Sscottl
1295260401Sscottl#define	ULTRA_ENB       		0x30
1296260401Sscottl#define	CMDSIZE_TABLE   		0x30
1297260401Sscottl
1298260401Sscottl#define	DISC_DSB        		0x32
1299260401Sscottl
1300260401Sscottl#define	CMDSIZE_TABLE_TAIL		0x34
1301260401Sscottl
1302260401Sscottl#define	MWI_RESIDUAL    		0x38
1303260401Sscottl
1304260401Sscottl#define	NEXT_QUEUED_SCB 		0x39
1305260401Sscottl
1306260401Sscottl#define	MSG_OUT         		0x3a
1307260401Sscottl
1308260401Sscottl#define	DMAPARAMS       		0x3b
1309260401Sscottl#define		PRELOADEN       	0x80
1310260401Sscottl#define		WIDEODD         	0x40
1311260401Sscottl#define		SCSIEN          	0x20
1312260401Sscottl#define		SDMAENACK       	0x10
1313260401Sscottl#define		SDMAEN          	0x10
1314260401Sscottl#define		HDMAEN          	0x08
1315260401Sscottl#define		HDMAENACK       	0x08
1316260401Sscottl#define		DIRECTION       	0x04
1317260401Sscottl#define		FIFOFLUSH       	0x02
1318260401Sscottl#define		FIFORESET       	0x01
1319260401Sscottl
1320260401Sscottl#define	SEQ_FLAGS       		0x3c
1321260401Sscottl#define		NOT_IDENTIFIED  	0x80
1322260401Sscottl#define		NO_CDB_SENT     	0x40
1323260401Sscottl#define		TARGET_CMD_IS_TAGGED	0x40
1324260401Sscottl#define		DPHASE          	0x20
1325260401Sscottl#define		TARG_CMD_PENDING	0x10
1326260401Sscottl#define		CMDPHASE_PENDING	0x08
1327260401Sscottl#define		DPHASE_PENDING  	0x04
1328260401Sscottl#define		SPHASE_PENDING  	0x02
1329260401Sscottl#define		NO_DISCONNECT   	0x01
1330260401Sscottl
1331260401Sscottl#define	SAVED_SCSIID    		0x3d
1332260401Sscottl
1333260401Sscottl#define	SAVED_LUN       		0x3e
1334260401Sscottl
1335260401Sscottl#define	LASTPHASE       		0x3f
1336260401Sscottl#define		PHASE_MASK      	0xe0
1337260401Sscottl#define		P_MESGIN        	0xe0
1338260401Sscottl#define		P_STATUS        	0xc0
1339260401Sscottl#define		P_MESGOUT       	0xa0
1340260401Sscottl#define		P_COMMAND       	0x80
1341260401Sscottl#define		P_DATAIN        	0x40
1342260401Sscottl#define		P_BUSFREE       	0x01
1343260401Sscottl#define		P_DATAOUT       	0x00
1344260401Sscottl#define		CDI             	0x80
1345260401Sscottl#define		IOI             	0x40
1346260401Sscottl#define		MSGI            	0x20
1347260401Sscottl
1348260401Sscottl#define	WAITING_SCBH    		0x40
1349260401Sscottl
1350260401Sscottl#define	DISCONNECTED_SCBH		0x41
1351260401Sscottl
1352260401Sscottl#define	FREE_SCBH       		0x42
1353260401Sscottl
1354260401Sscottl#define	COMPLETE_SCBH   		0x43
1355260401Sscottl
1356260401Sscottl#define	HSCB_ADDR       		0x44
1357260401Sscottl
1358260401Sscottl#define	SHARED_DATA_ADDR		0x48
1359260401Sscottl
1360260401Sscottl#define	KERNEL_QINPOS   		0x4c
1361260401Sscottl
1362260401Sscottl#define	QINPOS          		0x4d
1363260401Sscottl
1364260401Sscottl#define	QOUTPOS         		0x4e
1365260401Sscottl
1366260401Sscottl#define	KERNEL_TQINPOS  		0x4f
1367260401Sscottl
1368260401Sscottl#define	TQINPOS         		0x50
1369260401Sscottl
1370260401Sscottl#define	ARG_1           		0x51
1371260401Sscottl#define	RETURN_1        		0x51
1372260401Sscottl#define		SEND_MSG        	0x80
1373260401Sscottl#define		SEND_SENSE      	0x40
1374260401Sscottl#define		SEND_REJ        	0x20
1375260401Sscottl#define		MSGOUT_PHASEMIS 	0x10
1376260401Sscottl#define		EXIT_MSG_LOOP   	0x08
1377260401Sscottl#define		CONT_MSG_LOOP   	0x04
1378260401Sscottl#define		CONT_TARG_SESSION	0x02
1379260401Sscottl#define		SPARE           	0x01
1380260401Sscottl
1381260401Sscottl#define	ARG_2           		0x52
1382260401Sscottl#define	RETURN_2        		0x52
1383260401Sscottl
1384260401Sscottl#define	LAST_MSG        		0x53
1385260401Sscottl#define	TARG_IMMEDIATE_SCB		0x53
1386260401Sscottl
1387260401Sscottl#define	SCSISEQ_TEMPLATE		0x54
1388260401Sscottl#define		ENSELO          	0x40
1389260401Sscottl#define		ENSELI          	0x20
1390260401Sscottl#define		ENRSELI         	0x10
1391260401Sscottl#define		ENAUTOATNO      	0x08
1392260401Sscottl#define		ENAUTOATNI      	0x04
1393260401Sscottl#define		ENAUTOATNP      	0x02
1394260401Sscottl
1395260401Sscottl#define	HA_274_BIOSGLOBAL		0x56
1396260401Sscottl#define	INITIATOR_TAG   		0x56
1397260401Sscottl#define		HA_274_EXTENDED_TRANS	0x01
1398260401Sscottl
1399260401Sscottl#define	SEQ_FLAGS2      		0x57
1400260401Sscottl#define		TARGET_MSG_PENDING	0x02
1401260401Sscottl#define		SCB_DMA         	0x01
1402260401Sscottl
1403260401Sscottl#define	SCSICONF        		0x5a
1404260401Sscottl#define		HWSCSIID        	0x0f
1405260401Sscottl#define		HSCSIID         	0x07
1406260401Sscottl#define		TERM_ENB        	0x80
1407260401Sscottl#define		RESET_SCSI      	0x40
1408260401Sscottl#define		ENSPCHK         	0x20
1409260401Sscottl
1410260401Sscottl#define	INTDEF          		0x5c
1411260401Sscottl#define		VECTOR          	0x0f
1412260401Sscottl#define		EDGE_TRIG       	0x80
1413260401Sscottl
1414260401Sscottl#define	HOSTCONF        		0x5d
1415260401Sscottl
1416260401Sscottl#define	HA_274_BIOSCTRL 		0x5f
1417260401Sscottl#define		BIOSDISABLED    	0x30
1418260401Sscottl#define		BIOSMODE        	0x30
1419260401Sscottl#define		CHANNEL_B_PRIMARY	0x08
1420260401Sscottl
1421260401Sscottl#define	SEQCTL          		0x60
1422260401Sscottl#define		PERRORDIS       	0x80
1423260401Sscottl#define		PAUSEDIS        	0x40
1424260401Sscottl#define		FAILDIS         	0x20
1425260401Sscottl#define		FASTMODE        	0x10
1426260401Sscottl#define		BRKADRINTEN     	0x08
1427260401Sscottl#define		STEP            	0x04
1428260401Sscottl#define		SEQRESET        	0x02
1429260401Sscottl#define		LOADRAM         	0x01
1430260401Sscottl
1431260401Sscottl#define	SEQRAM          		0x61
1432260401Sscottl
1433260401Sscottl#define	SEQADDR0        		0x62
1434260401Sscottl
1435260401Sscottl#define	SEQADDR1        		0x63
1436260401Sscottl#define		SEQADDR1_MASK   	0x01
1437260401Sscottl
1438260401Sscottl#define	ACCUM           		0x64
1439260401Sscottl
1440260401Sscottl#define	SINDEX          		0x65
1441260401Sscottl
1442260401Sscottl#define	DINDEX          		0x66
1443260401Sscottl
1444260401Sscottl#define	ALLONES         		0x69
1445260401Sscottl
1446260401Sscottl#define	NONE            		0x6a
1447260401Sscottl
1448260401Sscottl#define	ALLZEROS        		0x6a
1449260401Sscottl
1450260401Sscottl#define	FLAGS           		0x6b
1451260401Sscottl#define		ZERO            	0x02
1452260401Sscottl#define		CARRY           	0x01
1453260401Sscottl
1454260401Sscottl#define	SINDIR          		0x6c
1455260401Sscottl
1456260401Sscottl#define	DINDIR          		0x6d
1457260401Sscottl
1458260401Sscottl#define	FUNCTION1       		0x6e
1459260401Sscottl
1460260401Sscottl#define	STACK           		0x6f
1461260401Sscottl
1462260401Sscottl#define	TARG_OFFSET     		0x70
1463260401Sscottl
1464260401Sscottl#define	SRAM_BASE       		0x70
1465260401Sscottl
1466260401Sscottl#define	DSCOMMAND0      		0x84
1467260401Sscottl#define		CACHETHEN       	0x80
1468260401Sscottl#define		DPARCKEN        	0x40
1469260401Sscottl#define		MPARCKEN        	0x20
1470260401Sscottl#define		EXTREQLCK       	0x10
1471260401Sscottl#define		INTSCBRAMSEL    	0x08
1472260401Sscottl#define		RAMPS           	0x04
1473260401Sscottl#define		USCBSIZE32      	0x02
1474260401Sscottl#define		CIOPARCKEN      	0x01
1475260401Sscottl
1476260401Sscottl#define	BCTL            		0x84
1477260401Sscottl#define		ACE             	0x08
1478260401Sscottl#define		ENABLE          	0x01
1479260401Sscottl
1480260401Sscottl#define	BUSTIME         		0x85
1481260401Sscottl#define		BOFF            	0xf0
1482260401Sscottl#define		BON             	0x0f
1483260401Sscottl
1484260401Sscottl#define	DSCOMMAND1      		0x85
1485260401Sscottl#define		DSLATT          	0xfc
1486260401Sscottl#define		HADDLDSEL1      	0x02
1487260401Sscottl#define		HADDLDSEL0      	0x01
1488260401Sscottl
1489260401Sscottl#define	BUSSPD          		0x86
1490260401Sscottl#define		DFTHRSH         	0xc0
1491260401Sscottl#define		DFTHRSH_75      	0x80
1492260401Sscottl#define		STBOFF          	0x38
1493260401Sscottl#define		STBON           	0x07
1494260401Sscottl
1495260401Sscottl#define	HS_MAILBOX      		0x86
1496260401Sscottl#define		HOST_MAILBOX    	0xf0
1497260401Sscottl#define		HOST_TQINPOS    	0x80
1498260401Sscottl#define		SEQ_MAILBOX     	0x0f
1499260401Sscottl
1500260401Sscottl#define	DSPCISTATUS     		0x86
1501260401Sscottl#define		DFTHRSH_100     	0xc0
1502260401Sscottl
1503260401Sscottl#define	HCNTRL          		0x87
1504260401Sscottl#define		POWRDN          	0x40
1505260401Sscottl#define		SWINT           	0x10
1506260401Sscottl#define		IRQMS           	0x08
1507260401Sscottl#define		PAUSE           	0x04
1508260401Sscottl#define		INTEN           	0x02
1509260401Sscottl#define		CHIPRST         	0x01
1510260401Sscottl#define		CHIPRSTACK      	0x01
1511260401Sscottl
1512260401Sscottl#define	HADDR           		0x88
1513260401Sscottl
1514260401Sscottl#define	HCNT            		0x8c
1515260401Sscottl
1516260401Sscottl#define	SCBPTR          		0x90
1517260401Sscottl
1518260401Sscottl#define	INTSTAT         		0x91
1519260401Sscottl#define		SEQINT_MASK     	0xf1
1520260401Sscottl#define		OUT_OF_RANGE    	0xe1
1521260401Sscottl#define		NO_FREE_SCB     	0xd1
1522260401Sscottl#define		SCB_MISMATCH    	0xc1
1523260401Sscottl#define		MISSED_BUSFREE  	0xb1
1524260401Sscottl#define		MKMSG_FAILED    	0xa1
1525260401Sscottl#define		DATA_OVERRUN    	0x91
1526260401Sscottl#define		PERR_DETECTED   	0x81
1527260401Sscottl#define		BAD_STATUS      	0x71
1528260401Sscottl#define		HOST_MSG_LOOP   	0x61
1529260401Sscottl#define		PDATA_REINIT    	0x51
1530260401Sscottl#define		IGN_WIDE_RES    	0x41
1531260401Sscottl#define		NO_MATCH        	0x31
1532260401Sscottl#define		PROTO_VIOLATION 	0x21
1533260401Sscottl#define		SEND_REJECT     	0x11
1534260401Sscottl#define		INT_PEND        	0x0f
1535260401Sscottl#define		BAD_PHASE       	0x01
1536260401Sscottl#define		BRKADRINT       	0x08
1537260401Sscottl#define		SCSIINT         	0x04
1538260401Sscottl#define		CMDCMPLT        	0x02
1539260401Sscottl#define		SEQINT          	0x01
1540260401Sscottl
1541260401Sscottl#define	ERROR           		0x92
1542260401Sscottl#define		CIOPARERR       	0x80
1543260401Sscottl#define		PCIERRSTAT      	0x40
1544260401Sscottl#define		MPARERR         	0x20
1545260401Sscottl#define		DPARERR         	0x10
1546260401Sscottl#define		SQPARERR        	0x08
1547260401Sscottl#define		ILLOPCODE       	0x04
1548260401Sscottl#define		ILLSADDR        	0x02
1549260401Sscottl#define		ILLHADDR        	0x01
1550260401Sscottl
1551260401Sscottl#define	CLRINT          		0x92
1552260401Sscottl#define		CLRPARERR       	0x10
1553260401Sscottl#define		CLRBRKADRINT    	0x08
1554260401Sscottl#define		CLRSCSIINT      	0x04
1555260401Sscottl#define		CLRCMDINT       	0x02
1556260401Sscottl#define		CLRSEQINT       	0x01
1557260401Sscottl
1558260401Sscottl#define	DFCNTRL         		0x93
1559260401Sscottl
1560260401Sscottl#define	DFSTATUS        		0x94
1561260401Sscottl#define		PRELOAD_AVAIL   	0x80
1562260401Sscottl#define		DFCACHETH       	0x40
1563260401Sscottl#define		FIFOQWDEMP      	0x20
1564260401Sscottl#define		MREQPEND        	0x10
1565260401Sscottl#define		HDONE           	0x08
1566260401Sscottl#define		DFTHRESH        	0x04
1567260401Sscottl#define		FIFOFULL        	0x02
1568260401Sscottl#define		FIFOEMP         	0x01
1569260401Sscottl
1570260401Sscottl#define	DFWADDR         		0x95
1571260401Sscottl
1572260401Sscottl#define	DFRADDR         		0x97
1573260401Sscottl
1574260401Sscottl#define	DFDAT           		0x99
1575260401Sscottl
1576260401Sscottl#define	SCBCNT          		0x9a
1577260401Sscottl#define		SCBCNT_MASK     	0x1f
1578260401Sscottl#define		SCBAUTO         	0x80
1579260401Sscottl
1580260401Sscottl#define	QINFIFO         		0x9b
1581260401Sscottl
1582260401Sscottl#define	QINCNT          		0x9c
1583260401Sscottl
1584260401Sscottl#define	CRCCONTROL1     		0x9d
1585260401Sscottl#define		CRCONSEEN       	0x80
1586260401Sscottl#define		CRCVALCHKEN     	0x40
1587260401Sscottl#define		CRCENDCHKEN     	0x20
1588260401Sscottl#define		CRCREQCHKEN     	0x10
1589260401Sscottl#define		TARGCRCENDEN    	0x08
1590260401Sscottl#define		TARGCRCCNTEN    	0x04
1591260401Sscottl
1592260401Sscottl#define	QOUTFIFO        		0x9d
1593260401Sscottl
1594260401Sscottl#define	QOUTCNT         		0x9e
1595260401Sscottl
1596260401Sscottl#define	SCSIPHASE       		0x9e
1597260401Sscottl#define		DATA_PHASE_MASK 	0x03
1598260401Sscottl#define		STATUS_PHASE    	0x20
1599260401Sscottl#define		COMMAND_PHASE   	0x10
1600260401Sscottl#define		MSG_IN_PHASE    	0x08
1601260401Sscottl#define		MSG_OUT_PHASE   	0x04
1602260401Sscottl#define		DATA_IN_PHASE   	0x02
1603260401Sscottl#define		DATA_OUT_PHASE  	0x01
1604260401Sscottl
1605260401Sscottl#define	SFUNCT          		0x9f
1606260401Sscottl#define		ALT_MODE        	0x80
1607260401Sscottl
1608260401Sscottl#define	SCB_BASE        		0xa0
1609260401Sscottl
1610260401Sscottl#define	SCB_CDB_PTR     		0xa0
1611260401Sscottl#define	SCB_RESIDUAL_DATACNT		0xa0
1612260401Sscottl#define	SCB_CDB_STORE   		0xa0
1613260401Sscottl
1614260401Sscottl#define	SCB_RESIDUAL_SGPTR		0xa4
1615260401Sscottl
1616260401Sscottl#define	SCB_SCSI_STATUS 		0xa8
1617260401Sscottl
1618260401Sscottl#define	SCB_TARGET_PHASES		0xa9
1619260401Sscottl
1620260401Sscottl#define	SCB_TARGET_DATA_DIR		0xaa
1621260401Sscottl
1622260401Sscottl#define	SCB_TARGET_ITAG 		0xab
1623260401Sscottl
1624260401Sscottl#define	SCB_DATAPTR     		0xac
1625260401Sscottl
1626260401Sscottl#define	SCB_DATACNT     		0xb0
1627260401Sscottl#define		SG_HIGH_ADDR_BITS	0x7f
1628260401Sscottl#define		SG_LAST_SEG     	0x80
1629260401Sscottl
1630260401Sscottl#define	SCB_SGPTR       		0xb4
1631260401Sscottl#define		SG_RESID_VALID  	0x04
1632260401Sscottl#define		SG_FULL_RESID   	0x02
1633260401Sscottl#define		SG_LIST_NULL    	0x01
1634260401Sscottl
1635260401Sscottl#define	SCB_CONTROL     		0xb8
1636260401Sscottl#define		SCB_TAG_TYPE    	0x03
1637260401Sscottl#define		STATUS_RCVD     	0x80
1638260401Sscottl#define		TARGET_SCB      	0x80
1639260401Sscottl#define		DISCENB         	0x40
1640260401Sscottl#define		TAG_ENB         	0x20
1641260401Sscottl#define		MK_MESSAGE      	0x10
1642260401Sscottl#define		ULTRAENB        	0x08
1643260401Sscottl#define		DISCONNECTED    	0x04
1644260401Sscottl
1645260401Sscottl#define	SCB_SCSIID      		0xb9
1646260401Sscottl#define		TID             	0xf0
1647260401Sscottl#define		TWIN_TID        	0x70
1648260401Sscottl#define		OID             	0x0f
1649260401Sscottl#define		TWIN_CHNLB      	0x80
1650260401Sscottl
1651260401Sscottl#define	SCB_LUN         		0xba
1652260401Sscottl#define		LID             	0x3f
1653260401Sscottl#define		SCB_XFERLEN_ODD 	0x80
1654260401Sscottl
1655260401Sscottl#define	SCB_TAG         		0xbb
1656260401Sscottl
1657260401Sscottl#define	SCB_CDB_LEN     		0xbc
1658260401Sscottl
1659260401Sscottl#define	SCB_SCSIRATE    		0xbd
1660260401Sscottl
1661260401Sscottl#define	SCB_SCSIOFFSET  		0xbe
1662260401Sscottl
1663260401Sscottl#define	SCB_NEXT        		0xbf
1664260401Sscottl
1665260401Sscottl#define	SCB_64_SPARE    		0xc0
1666260401Sscottl
1667260401Sscottl#define	SEECTL_2840     		0xc0
1668260401Sscottl#define		CS_2840         	0x04
1669260401Sscottl#define		CK_2840         	0x02
1670260401Sscottl#define		DO_2840         	0x01
1671260401Sscottl
1672260401Sscottl#define	STATUS_2840     		0xc1
1673260401Sscottl#define		BIOS_SEL        	0x60
1674260401Sscottl#define		ADSEL           	0x1e
1675260401Sscottl#define		EEPROM_TF       	0x80
1676260401Sscottl#define		DI_2840         	0x01
1677260401Sscottl
1678260401Sscottl#define	SCB_64_BTT      		0xd0
1679260401Sscottl
1680260401Sscottl#define	CCHADDR         		0xe0
1681260401Sscottl
1682260401Sscottl#define	CCHCNT          		0xe8
1683260401Sscottl
1684260401Sscottl#define	CCSGRAM         		0xe9
1685260401Sscottl
1686260401Sscottl#define	CCSGADDR        		0xea
1687260401Sscottl
1688260401Sscottl#define	CCSGCTL         		0xeb
1689260401Sscottl#define		CCSGDONE        	0x80
1690260401Sscottl#define		CCSGEN          	0x08
1691260401Sscottl#define		SG_FETCH_NEEDED 	0x02
1692260401Sscottl#define		CCSGRESET       	0x01
1693260401Sscottl
1694260401Sscottl#define	CCSCBRAM        		0xec
1695260401Sscottl
1696260401Sscottl#define	CCSCBADDR       		0xed
1697260401Sscottl
1698260401Sscottl#define	CCSCBCTL        		0xee
1699260401Sscottl#define		CCSCBDONE       	0x80
1700260401Sscottl#define		ARRDONE         	0x40
1701260401Sscottl#define		CCARREN         	0x10
1702260401Sscottl#define		CCSCBEN         	0x08
1703260401Sscottl#define		CCSCBDIR        	0x04
1704260401Sscottl#define		CCSCBRESET      	0x01
1705260401Sscottl
1706260401Sscottl#define	CCSCBCNT        		0xef
1707260401Sscottl
1708260401Sscottl#define	SCBBADDR        		0xf0
1709260401Sscottl
1710260401Sscottl#define	CCSCBPTR        		0xf1
1711260401Sscottl
1712260401Sscottl#define	HNSCB_QOFF      		0xf4
1713260401Sscottl
1714260401Sscottl#define	SNSCB_QOFF      		0xf6
1715260401Sscottl
1716260401Sscottl#define	SDSCB_QOFF      		0xf8
1717260401Sscottl
1718260401Sscottl#define	QOFF_CTLSTA     		0xfa
1719260401Sscottl#define		SCB_QSIZE       	0x07
1720260401Sscottl#define		SCB_QSIZE_256   	0x06
1721260401Sscottl#define		SCB_AVAIL       	0x40
1722260401Sscottl#define		SNSCB_ROLLOVER  	0x20
1723260401Sscottl#define		SDSCB_ROLLOVER  	0x10
1724260401Sscottl
1725260401Sscottl#define	DFF_THRSH       		0xfb
1726260401Sscottl#define		WR_DFTHRSH      	0x70
1727260401Sscottl#define		WR_DFTHRSH_MAX  	0x70
1728260401Sscottl#define		WR_DFTHRSH_90   	0x60
1729260401Sscottl#define		WR_DFTHRSH_85   	0x50
1730260401Sscottl#define		WR_DFTHRSH_75   	0x40
1731260401Sscottl#define		WR_DFTHRSH_63   	0x30
1732260401Sscottl#define		WR_DFTHRSH_50   	0x20
1733260401Sscottl#define		WR_DFTHRSH_25   	0x10
1734260401Sscottl#define		RD_DFTHRSH_MAX  	0x07
1735260401Sscottl#define		RD_DFTHRSH      	0x07
1736260401Sscottl#define		RD_DFTHRSH_90   	0x06
1737260401Sscottl#define		RD_DFTHRSH_85   	0x05
1738260401Sscottl#define		RD_DFTHRSH_75   	0x04
1739260401Sscottl#define		RD_DFTHRSH_63   	0x03
1740260401Sscottl#define		RD_DFTHRSH_50   	0x02
1741260401Sscottl#define		RD_DFTHRSH_25   	0x01
1742260401Sscottl#define		RD_DFTHRSH_MIN  	0x00
1743260401Sscottl#define		WR_DFTHRSH_MIN  	0x00
1744260401Sscottl
1745260401Sscottl#define	SG_CACHE_SHADOW 		0xfc
1746260401Sscottl#define		SG_ADDR_MASK    	0xf8
1747260401Sscottl#define		LAST_SEG        	0x02
1748260401Sscottl#define		LAST_SEG_DONE   	0x01
1749260401Sscottl
1750260401Sscottl#define	SG_CACHE_PRE    		0xfc
1751260401Sscottl
1752260401Sscottl
1753260401Sscottl#define	MAX_OFFSET_ULTRA2	0x7f
1754260401Sscottl#define	SCB_LIST_NULL	0xff
1755260401Sscottl#define	HOST_MSG	0xff
1756260401Sscottl#define	MAX_OFFSET	0x7f
1757260401Sscottl#define	BUS_32_BIT	0x02
1758260401Sscottl#define	CMD_GROUP_CODE_SHIFT	0x05
1759260401Sscottl#define	BUS_8_BIT	0x00
1760260401Sscottl#define	CCSGRAM_MAXSEGS	0x10
1761260401Sscottl#define	TARGET_DATA_IN	0x01
1762260401Sscottl#define	STATUS_QUEUE_FULL	0x28
1763260401Sscottl#define	STATUS_BUSY	0x08
1764260401Sscottl#define	MAX_OFFSET_8BIT	0x0f
1765260401Sscottl#define	BUS_16_BIT	0x01
1766260401Sscottl#define	TID_SHIFT	0x04
1767260401Sscottl#define	SCB_DOWNLOAD_SIZE_64	0x30
1768260401Sscottl#define	SCB_UPLOAD_SIZE	0x20
1769260401Sscottl#define	HOST_MAILBOX_SHIFT	0x04
1770260401Sscottl#define	MAX_OFFSET_16BIT	0x08
1771260401Sscottl#define	TARGET_CMD_CMPLT	0xfe
1772260401Sscottl#define	SG_SIZEOF	0x08
1773260401Sscottl#define	SCB_DOWNLOAD_SIZE	0x20
1774260401Sscottl#define	SEQ_MAILBOX_SHIFT	0x00
1775260401Sscottl#define	CCSGADDR_MAX	0x80
1776260401Sscottl#define	STACK_SIZE	0x04
1777260401Sscottl
1778260401Sscottl
1779260401Sscottl/* Downloaded Constant Definitions */
1780260401Sscottl#define	SG_PREFETCH_ADDR_MASK	0x06
1781260401Sscottl#define	SG_PREFETCH_ALIGN_MASK	0x05
1782260401Sscottl#define	QOUTFIFO_OFFSET	0x00
1783260401Sscottl#define	SG_PREFETCH_CNT	0x04
1784260401Sscottl#define	INVERTED_CACHESIZE_MASK	0x03
1785260401Sscottl#define	CACHESIZE_MASK	0x02
1786260401Sscottl#define	QINFIFO_OFFSET	0x01
1787260401Sscottl#define	DOWNLOAD_CONST_COUNT	0x07
1788260401Sscottl
1789260401Sscottl
1790260401Sscottl/* Exported Labels */
1791