18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * DO NOT EDIT - This file is automatically generated
38c2ecf20Sopenharmony_ci *		 from the following source files:
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * $Id: //depot/aic7xxx/aic7xxx/aic79xx.seq#120 $
68c2ecf20Sopenharmony_ci * $Id: //depot/aic7xxx/aic7xxx/aic79xx.reg#77 $
78c2ecf20Sopenharmony_ci */
88c2ecf20Sopenharmony_citypedef int (ahd_reg_print_t)(u_int, u_int *, u_int);
98c2ecf20Sopenharmony_citypedef struct ahd_reg_parse_entry {
108c2ecf20Sopenharmony_ci	char	*name;
118c2ecf20Sopenharmony_ci	uint8_t	 value;
128c2ecf20Sopenharmony_ci	uint8_t	 mask;
138c2ecf20Sopenharmony_ci} ahd_reg_parse_entry_t;
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
168c2ecf20Sopenharmony_ciahd_reg_print_t ahd_intstat_print;
178c2ecf20Sopenharmony_ci#else
188c2ecf20Sopenharmony_ci#define ahd_intstat_print(regvalue, cur_col, wrap) \
198c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "INTSTAT", 0x01, regvalue, cur_col, wrap)
208c2ecf20Sopenharmony_ci#endif
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
238c2ecf20Sopenharmony_ciahd_reg_print_t ahd_hs_mailbox_print;
248c2ecf20Sopenharmony_ci#else
258c2ecf20Sopenharmony_ci#define ahd_hs_mailbox_print(regvalue, cur_col, wrap) \
268c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "HS_MAILBOX", 0x0b, regvalue, cur_col, wrap)
278c2ecf20Sopenharmony_ci#endif
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
308c2ecf20Sopenharmony_ciahd_reg_print_t ahd_seqintstat_print;
318c2ecf20Sopenharmony_ci#else
328c2ecf20Sopenharmony_ci#define ahd_seqintstat_print(regvalue, cur_col, wrap) \
338c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SEQINTSTAT", 0x0c, regvalue, cur_col, wrap)
348c2ecf20Sopenharmony_ci#endif
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
378c2ecf20Sopenharmony_ciahd_reg_print_t ahd_intctl_print;
388c2ecf20Sopenharmony_ci#else
398c2ecf20Sopenharmony_ci#define ahd_intctl_print(regvalue, cur_col, wrap) \
408c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "INTCTL", 0x18, regvalue, cur_col, wrap)
418c2ecf20Sopenharmony_ci#endif
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
448c2ecf20Sopenharmony_ciahd_reg_print_t ahd_dfcntrl_print;
458c2ecf20Sopenharmony_ci#else
468c2ecf20Sopenharmony_ci#define ahd_dfcntrl_print(regvalue, cur_col, wrap) \
478c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "DFCNTRL", 0x19, regvalue, cur_col, wrap)
488c2ecf20Sopenharmony_ci#endif
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
518c2ecf20Sopenharmony_ciahd_reg_print_t ahd_dfstatus_print;
528c2ecf20Sopenharmony_ci#else
538c2ecf20Sopenharmony_ci#define ahd_dfstatus_print(regvalue, cur_col, wrap) \
548c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "DFSTATUS", 0x1a, regvalue, cur_col, wrap)
558c2ecf20Sopenharmony_ci#endif
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
588c2ecf20Sopenharmony_ciahd_reg_print_t ahd_sg_cache_shadow_print;
598c2ecf20Sopenharmony_ci#else
608c2ecf20Sopenharmony_ci#define ahd_sg_cache_shadow_print(regvalue, cur_col, wrap) \
618c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SG_CACHE_SHADOW", 0x1b, regvalue, cur_col, wrap)
628c2ecf20Sopenharmony_ci#endif
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
658c2ecf20Sopenharmony_ciahd_reg_print_t ahd_scsiseq0_print;
668c2ecf20Sopenharmony_ci#else
678c2ecf20Sopenharmony_ci#define ahd_scsiseq0_print(regvalue, cur_col, wrap) \
688c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SCSISEQ0", 0x3a, regvalue, cur_col, wrap)
698c2ecf20Sopenharmony_ci#endif
708c2ecf20Sopenharmony_ci
718c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
728c2ecf20Sopenharmony_ciahd_reg_print_t ahd_scsiseq1_print;
738c2ecf20Sopenharmony_ci#else
748c2ecf20Sopenharmony_ci#define ahd_scsiseq1_print(regvalue, cur_col, wrap) \
758c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SCSISEQ1", 0x3b, regvalue, cur_col, wrap)
768c2ecf20Sopenharmony_ci#endif
778c2ecf20Sopenharmony_ci
788c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
798c2ecf20Sopenharmony_ciahd_reg_print_t ahd_dffstat_print;
808c2ecf20Sopenharmony_ci#else
818c2ecf20Sopenharmony_ci#define ahd_dffstat_print(regvalue, cur_col, wrap) \
828c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "DFFSTAT", 0x3f, regvalue, cur_col, wrap)
838c2ecf20Sopenharmony_ci#endif
848c2ecf20Sopenharmony_ci
858c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
868c2ecf20Sopenharmony_ciahd_reg_print_t ahd_scsisigi_print;
878c2ecf20Sopenharmony_ci#else
888c2ecf20Sopenharmony_ci#define ahd_scsisigi_print(regvalue, cur_col, wrap) \
898c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SCSISIGI", 0x41, regvalue, cur_col, wrap)
908c2ecf20Sopenharmony_ci#endif
918c2ecf20Sopenharmony_ci
928c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
938c2ecf20Sopenharmony_ciahd_reg_print_t ahd_scsiphase_print;
948c2ecf20Sopenharmony_ci#else
958c2ecf20Sopenharmony_ci#define ahd_scsiphase_print(regvalue, cur_col, wrap) \
968c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SCSIPHASE", 0x42, regvalue, cur_col, wrap)
978c2ecf20Sopenharmony_ci#endif
988c2ecf20Sopenharmony_ci
998c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
1008c2ecf20Sopenharmony_ciahd_reg_print_t ahd_scsibus_print;
1018c2ecf20Sopenharmony_ci#else
1028c2ecf20Sopenharmony_ci#define ahd_scsibus_print(regvalue, cur_col, wrap) \
1038c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SCSIBUS", 0x46, regvalue, cur_col, wrap)
1048c2ecf20Sopenharmony_ci#endif
1058c2ecf20Sopenharmony_ci
1068c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
1078c2ecf20Sopenharmony_ciahd_reg_print_t ahd_selid_print;
1088c2ecf20Sopenharmony_ci#else
1098c2ecf20Sopenharmony_ci#define ahd_selid_print(regvalue, cur_col, wrap) \
1108c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SELID", 0x49, regvalue, cur_col, wrap)
1118c2ecf20Sopenharmony_ci#endif
1128c2ecf20Sopenharmony_ci
1138c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
1148c2ecf20Sopenharmony_ciahd_reg_print_t ahd_simode0_print;
1158c2ecf20Sopenharmony_ci#else
1168c2ecf20Sopenharmony_ci#define ahd_simode0_print(regvalue, cur_col, wrap) \
1178c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SIMODE0", 0x4b, regvalue, cur_col, wrap)
1188c2ecf20Sopenharmony_ci#endif
1198c2ecf20Sopenharmony_ci
1208c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
1218c2ecf20Sopenharmony_ciahd_reg_print_t ahd_sstat0_print;
1228c2ecf20Sopenharmony_ci#else
1238c2ecf20Sopenharmony_ci#define ahd_sstat0_print(regvalue, cur_col, wrap) \
1248c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SSTAT0", 0x4b, regvalue, cur_col, wrap)
1258c2ecf20Sopenharmony_ci#endif
1268c2ecf20Sopenharmony_ci
1278c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
1288c2ecf20Sopenharmony_ciahd_reg_print_t ahd_sstat1_print;
1298c2ecf20Sopenharmony_ci#else
1308c2ecf20Sopenharmony_ci#define ahd_sstat1_print(regvalue, cur_col, wrap) \
1318c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SSTAT1", 0x4c, regvalue, cur_col, wrap)
1328c2ecf20Sopenharmony_ci#endif
1338c2ecf20Sopenharmony_ci
1348c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
1358c2ecf20Sopenharmony_ciahd_reg_print_t ahd_sstat2_print;
1368c2ecf20Sopenharmony_ci#else
1378c2ecf20Sopenharmony_ci#define ahd_sstat2_print(regvalue, cur_col, wrap) \
1388c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SSTAT2", 0x4d, regvalue, cur_col, wrap)
1398c2ecf20Sopenharmony_ci#endif
1408c2ecf20Sopenharmony_ci
1418c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
1428c2ecf20Sopenharmony_ciahd_reg_print_t ahd_perrdiag_print;
1438c2ecf20Sopenharmony_ci#else
1448c2ecf20Sopenharmony_ci#define ahd_perrdiag_print(regvalue, cur_col, wrap) \
1458c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "PERRDIAG", 0x4e, regvalue, cur_col, wrap)
1468c2ecf20Sopenharmony_ci#endif
1478c2ecf20Sopenharmony_ci
1488c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
1498c2ecf20Sopenharmony_ciahd_reg_print_t ahd_soffcnt_print;
1508c2ecf20Sopenharmony_ci#else
1518c2ecf20Sopenharmony_ci#define ahd_soffcnt_print(regvalue, cur_col, wrap) \
1528c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SOFFCNT", 0x4f, regvalue, cur_col, wrap)
1538c2ecf20Sopenharmony_ci#endif
1548c2ecf20Sopenharmony_ci
1558c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
1568c2ecf20Sopenharmony_ciahd_reg_print_t ahd_lqistat0_print;
1578c2ecf20Sopenharmony_ci#else
1588c2ecf20Sopenharmony_ci#define ahd_lqistat0_print(regvalue, cur_col, wrap) \
1598c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "LQISTAT0", 0x50, regvalue, cur_col, wrap)
1608c2ecf20Sopenharmony_ci#endif
1618c2ecf20Sopenharmony_ci
1628c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
1638c2ecf20Sopenharmony_ciahd_reg_print_t ahd_lqistat1_print;
1648c2ecf20Sopenharmony_ci#else
1658c2ecf20Sopenharmony_ci#define ahd_lqistat1_print(regvalue, cur_col, wrap) \
1668c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "LQISTAT1", 0x51, regvalue, cur_col, wrap)
1678c2ecf20Sopenharmony_ci#endif
1688c2ecf20Sopenharmony_ci
1698c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
1708c2ecf20Sopenharmony_ciahd_reg_print_t ahd_lqistat2_print;
1718c2ecf20Sopenharmony_ci#else
1728c2ecf20Sopenharmony_ci#define ahd_lqistat2_print(regvalue, cur_col, wrap) \
1738c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "LQISTAT2", 0x52, regvalue, cur_col, wrap)
1748c2ecf20Sopenharmony_ci#endif
1758c2ecf20Sopenharmony_ci
1768c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
1778c2ecf20Sopenharmony_ciahd_reg_print_t ahd_sstat3_print;
1788c2ecf20Sopenharmony_ci#else
1798c2ecf20Sopenharmony_ci#define ahd_sstat3_print(regvalue, cur_col, wrap) \
1808c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SSTAT3", 0x53, regvalue, cur_col, wrap)
1818c2ecf20Sopenharmony_ci#endif
1828c2ecf20Sopenharmony_ci
1838c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
1848c2ecf20Sopenharmony_ciahd_reg_print_t ahd_lqostat0_print;
1858c2ecf20Sopenharmony_ci#else
1868c2ecf20Sopenharmony_ci#define ahd_lqostat0_print(regvalue, cur_col, wrap) \
1878c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "LQOSTAT0", 0x54, regvalue, cur_col, wrap)
1888c2ecf20Sopenharmony_ci#endif
1898c2ecf20Sopenharmony_ci
1908c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
1918c2ecf20Sopenharmony_ciahd_reg_print_t ahd_lqostat1_print;
1928c2ecf20Sopenharmony_ci#else
1938c2ecf20Sopenharmony_ci#define ahd_lqostat1_print(regvalue, cur_col, wrap) \
1948c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "LQOSTAT1", 0x55, regvalue, cur_col, wrap)
1958c2ecf20Sopenharmony_ci#endif
1968c2ecf20Sopenharmony_ci
1978c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
1988c2ecf20Sopenharmony_ciahd_reg_print_t ahd_lqostat2_print;
1998c2ecf20Sopenharmony_ci#else
2008c2ecf20Sopenharmony_ci#define ahd_lqostat2_print(regvalue, cur_col, wrap) \
2018c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "LQOSTAT2", 0x56, regvalue, cur_col, wrap)
2028c2ecf20Sopenharmony_ci#endif
2038c2ecf20Sopenharmony_ci
2048c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
2058c2ecf20Sopenharmony_ciahd_reg_print_t ahd_simode1_print;
2068c2ecf20Sopenharmony_ci#else
2078c2ecf20Sopenharmony_ci#define ahd_simode1_print(regvalue, cur_col, wrap) \
2088c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SIMODE1", 0x57, regvalue, cur_col, wrap)
2098c2ecf20Sopenharmony_ci#endif
2108c2ecf20Sopenharmony_ci
2118c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
2128c2ecf20Sopenharmony_ciahd_reg_print_t ahd_dffsxfrctl_print;
2138c2ecf20Sopenharmony_ci#else
2148c2ecf20Sopenharmony_ci#define ahd_dffsxfrctl_print(regvalue, cur_col, wrap) \
2158c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "DFFSXFRCTL", 0x5a, regvalue, cur_col, wrap)
2168c2ecf20Sopenharmony_ci#endif
2178c2ecf20Sopenharmony_ci
2188c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
2198c2ecf20Sopenharmony_ciahd_reg_print_t ahd_seqintsrc_print;
2208c2ecf20Sopenharmony_ci#else
2218c2ecf20Sopenharmony_ci#define ahd_seqintsrc_print(regvalue, cur_col, wrap) \
2228c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SEQINTSRC", 0x5b, regvalue, cur_col, wrap)
2238c2ecf20Sopenharmony_ci#endif
2248c2ecf20Sopenharmony_ci
2258c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
2268c2ecf20Sopenharmony_ciahd_reg_print_t ahd_seqimode_print;
2278c2ecf20Sopenharmony_ci#else
2288c2ecf20Sopenharmony_ci#define ahd_seqimode_print(regvalue, cur_col, wrap) \
2298c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SEQIMODE", 0x5c, regvalue, cur_col, wrap)
2308c2ecf20Sopenharmony_ci#endif
2318c2ecf20Sopenharmony_ci
2328c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
2338c2ecf20Sopenharmony_ciahd_reg_print_t ahd_mdffstat_print;
2348c2ecf20Sopenharmony_ci#else
2358c2ecf20Sopenharmony_ci#define ahd_mdffstat_print(regvalue, cur_col, wrap) \
2368c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "MDFFSTAT", 0x5d, regvalue, cur_col, wrap)
2378c2ecf20Sopenharmony_ci#endif
2388c2ecf20Sopenharmony_ci
2398c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
2408c2ecf20Sopenharmony_ciahd_reg_print_t ahd_seloid_print;
2418c2ecf20Sopenharmony_ci#else
2428c2ecf20Sopenharmony_ci#define ahd_seloid_print(regvalue, cur_col, wrap) \
2438c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SELOID", 0x6b, regvalue, cur_col, wrap)
2448c2ecf20Sopenharmony_ci#endif
2458c2ecf20Sopenharmony_ci
2468c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
2478c2ecf20Sopenharmony_ciahd_reg_print_t ahd_sg_state_print;
2488c2ecf20Sopenharmony_ci#else
2498c2ecf20Sopenharmony_ci#define ahd_sg_state_print(regvalue, cur_col, wrap) \
2508c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SG_STATE", 0xa6, regvalue, cur_col, wrap)
2518c2ecf20Sopenharmony_ci#endif
2528c2ecf20Sopenharmony_ci
2538c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
2548c2ecf20Sopenharmony_ciahd_reg_print_t ahd_ccscbctl_print;
2558c2ecf20Sopenharmony_ci#else
2568c2ecf20Sopenharmony_ci#define ahd_ccscbctl_print(regvalue, cur_col, wrap) \
2578c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "CCSCBCTL", 0xad, regvalue, cur_col, wrap)
2588c2ecf20Sopenharmony_ci#endif
2598c2ecf20Sopenharmony_ci
2608c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
2618c2ecf20Sopenharmony_ciahd_reg_print_t ahd_ccsgctl_print;
2628c2ecf20Sopenharmony_ci#else
2638c2ecf20Sopenharmony_ci#define ahd_ccsgctl_print(regvalue, cur_col, wrap) \
2648c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "CCSGCTL", 0xad, regvalue, cur_col, wrap)
2658c2ecf20Sopenharmony_ci#endif
2668c2ecf20Sopenharmony_ci
2678c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
2688c2ecf20Sopenharmony_ciahd_reg_print_t ahd_seqctl0_print;
2698c2ecf20Sopenharmony_ci#else
2708c2ecf20Sopenharmony_ci#define ahd_seqctl0_print(regvalue, cur_col, wrap) \
2718c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SEQCTL0", 0xd6, regvalue, cur_col, wrap)
2728c2ecf20Sopenharmony_ci#endif
2738c2ecf20Sopenharmony_ci
2748c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
2758c2ecf20Sopenharmony_ciahd_reg_print_t ahd_seqintctl_print;
2768c2ecf20Sopenharmony_ci#else
2778c2ecf20Sopenharmony_ci#define ahd_seqintctl_print(regvalue, cur_col, wrap) \
2788c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SEQINTCTL", 0xd9, regvalue, cur_col, wrap)
2798c2ecf20Sopenharmony_ci#endif
2808c2ecf20Sopenharmony_ci
2818c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
2828c2ecf20Sopenharmony_ciahd_reg_print_t ahd_sram_base_print;
2838c2ecf20Sopenharmony_ci#else
2848c2ecf20Sopenharmony_ci#define ahd_sram_base_print(regvalue, cur_col, wrap) \
2858c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SRAM_BASE", 0x100, regvalue, cur_col, wrap)
2868c2ecf20Sopenharmony_ci#endif
2878c2ecf20Sopenharmony_ci
2888c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
2898c2ecf20Sopenharmony_ciahd_reg_print_t ahd_qfreeze_count_print;
2908c2ecf20Sopenharmony_ci#else
2918c2ecf20Sopenharmony_ci#define ahd_qfreeze_count_print(regvalue, cur_col, wrap) \
2928c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "QFREEZE_COUNT", 0x132, regvalue, cur_col, wrap)
2938c2ecf20Sopenharmony_ci#endif
2948c2ecf20Sopenharmony_ci
2958c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
2968c2ecf20Sopenharmony_ciahd_reg_print_t ahd_kernel_qfreeze_count_print;
2978c2ecf20Sopenharmony_ci#else
2988c2ecf20Sopenharmony_ci#define ahd_kernel_qfreeze_count_print(regvalue, cur_col, wrap) \
2998c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "KERNEL_QFREEZE_COUNT", 0x134, regvalue, cur_col, wrap)
3008c2ecf20Sopenharmony_ci#endif
3018c2ecf20Sopenharmony_ci
3028c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
3038c2ecf20Sopenharmony_ciahd_reg_print_t ahd_saved_mode_print;
3048c2ecf20Sopenharmony_ci#else
3058c2ecf20Sopenharmony_ci#define ahd_saved_mode_print(regvalue, cur_col, wrap) \
3068c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SAVED_MODE", 0x136, regvalue, cur_col, wrap)
3078c2ecf20Sopenharmony_ci#endif
3088c2ecf20Sopenharmony_ci
3098c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
3108c2ecf20Sopenharmony_ciahd_reg_print_t ahd_seq_flags_print;
3118c2ecf20Sopenharmony_ci#else
3128c2ecf20Sopenharmony_ci#define ahd_seq_flags_print(regvalue, cur_col, wrap) \
3138c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SEQ_FLAGS", 0x139, regvalue, cur_col, wrap)
3148c2ecf20Sopenharmony_ci#endif
3158c2ecf20Sopenharmony_ci
3168c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
3178c2ecf20Sopenharmony_ciahd_reg_print_t ahd_lastphase_print;
3188c2ecf20Sopenharmony_ci#else
3198c2ecf20Sopenharmony_ci#define ahd_lastphase_print(regvalue, cur_col, wrap) \
3208c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "LASTPHASE", 0x13c, regvalue, cur_col, wrap)
3218c2ecf20Sopenharmony_ci#endif
3228c2ecf20Sopenharmony_ci
3238c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
3248c2ecf20Sopenharmony_ciahd_reg_print_t ahd_seq_flags2_print;
3258c2ecf20Sopenharmony_ci#else
3268c2ecf20Sopenharmony_ci#define ahd_seq_flags2_print(regvalue, cur_col, wrap) \
3278c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SEQ_FLAGS2", 0x14d, regvalue, cur_col, wrap)
3288c2ecf20Sopenharmony_ci#endif
3298c2ecf20Sopenharmony_ci
3308c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
3318c2ecf20Sopenharmony_ciahd_reg_print_t ahd_mk_message_scb_print;
3328c2ecf20Sopenharmony_ci#else
3338c2ecf20Sopenharmony_ci#define ahd_mk_message_scb_print(regvalue, cur_col, wrap) \
3348c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "MK_MESSAGE_SCB", 0x160, regvalue, cur_col, wrap)
3358c2ecf20Sopenharmony_ci#endif
3368c2ecf20Sopenharmony_ci
3378c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
3388c2ecf20Sopenharmony_ciahd_reg_print_t ahd_mk_message_scsiid_print;
3398c2ecf20Sopenharmony_ci#else
3408c2ecf20Sopenharmony_ci#define ahd_mk_message_scsiid_print(regvalue, cur_col, wrap) \
3418c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "MK_MESSAGE_SCSIID", 0x162, regvalue, cur_col, wrap)
3428c2ecf20Sopenharmony_ci#endif
3438c2ecf20Sopenharmony_ci
3448c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
3458c2ecf20Sopenharmony_ciahd_reg_print_t ahd_scb_base_print;
3468c2ecf20Sopenharmony_ci#else
3478c2ecf20Sopenharmony_ci#define ahd_scb_base_print(regvalue, cur_col, wrap) \
3488c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SCB_BASE", 0x180, regvalue, cur_col, wrap)
3498c2ecf20Sopenharmony_ci#endif
3508c2ecf20Sopenharmony_ci
3518c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
3528c2ecf20Sopenharmony_ciahd_reg_print_t ahd_scb_control_print;
3538c2ecf20Sopenharmony_ci#else
3548c2ecf20Sopenharmony_ci#define ahd_scb_control_print(regvalue, cur_col, wrap) \
3558c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SCB_CONTROL", 0x192, regvalue, cur_col, wrap)
3568c2ecf20Sopenharmony_ci#endif
3578c2ecf20Sopenharmony_ci
3588c2ecf20Sopenharmony_ci#if AIC_DEBUG_REGISTERS
3598c2ecf20Sopenharmony_ciahd_reg_print_t ahd_scb_scsiid_print;
3608c2ecf20Sopenharmony_ci#else
3618c2ecf20Sopenharmony_ci#define ahd_scb_scsiid_print(regvalue, cur_col, wrap) \
3628c2ecf20Sopenharmony_ci    ahd_print_register(NULL, 0, "SCB_SCSIID", 0x193, regvalue, cur_col, wrap)
3638c2ecf20Sopenharmony_ci#endif
3648c2ecf20Sopenharmony_ci
3658c2ecf20Sopenharmony_ci
3668c2ecf20Sopenharmony_ci#define	MODE_PTR        		0x00
3678c2ecf20Sopenharmony_ci#define		DST_MODE        	0x70
3688c2ecf20Sopenharmony_ci#define		SRC_MODE        	0x07
3698c2ecf20Sopenharmony_ci
3708c2ecf20Sopenharmony_ci#define	INTSTAT         		0x01
3718c2ecf20Sopenharmony_ci#define		INT_PEND        	0xff
3728c2ecf20Sopenharmony_ci#define		HWERRINT        	0x80
3738c2ecf20Sopenharmony_ci#define		BRKADRINT       	0x40
3748c2ecf20Sopenharmony_ci#define		SWTMINT         	0x20
3758c2ecf20Sopenharmony_ci#define		PCIINT          	0x10
3768c2ecf20Sopenharmony_ci#define		SCSIINT         	0x08
3778c2ecf20Sopenharmony_ci#define		SEQINT          	0x04
3788c2ecf20Sopenharmony_ci#define		CMDCMPLT        	0x02
3798c2ecf20Sopenharmony_ci#define		SPLTINT         	0x01
3808c2ecf20Sopenharmony_ci
3818c2ecf20Sopenharmony_ci#define	SEQINTCODE      		0x02
3828c2ecf20Sopenharmony_ci#define		BAD_SCB_STATUS  	0x1a
3838c2ecf20Sopenharmony_ci#define		SAW_HWERR       	0x19
3848c2ecf20Sopenharmony_ci#define		TRACEPOINT3     	0x18
3858c2ecf20Sopenharmony_ci#define		TRACEPOINT2     	0x17
3868c2ecf20Sopenharmony_ci#define		TRACEPOINT1     	0x16
3878c2ecf20Sopenharmony_ci#define		TRACEPOINT0     	0x15
3888c2ecf20Sopenharmony_ci#define		TASKMGMT_CMD_CMPLT_OKAY	0x14
3898c2ecf20Sopenharmony_ci#define		TASKMGMT_FUNC_COMPLETE	0x13
3908c2ecf20Sopenharmony_ci#define		ENTERING_NONPACK	0x12
3918c2ecf20Sopenharmony_ci#define		CFG4OVERRUN     	0x11
3928c2ecf20Sopenharmony_ci#define		STATUS_OVERRUN  	0x10
3938c2ecf20Sopenharmony_ci#define		CFG4ISTAT_INTR  	0x0f
3948c2ecf20Sopenharmony_ci#define		INVALID_SEQINT  	0x0e
3958c2ecf20Sopenharmony_ci#define		ILLEGAL_PHASE   	0x0d
3968c2ecf20Sopenharmony_ci#define		DUMP_CARD_STATE 	0x0c
3978c2ecf20Sopenharmony_ci#define		MISSED_BUSFREE  	0x0b
3988c2ecf20Sopenharmony_ci#define		MKMSG_FAILED    	0x0a
3998c2ecf20Sopenharmony_ci#define		DATA_OVERRUN    	0x09
4008c2ecf20Sopenharmony_ci#define		BAD_STATUS      	0x08
4018c2ecf20Sopenharmony_ci#define		HOST_MSG_LOOP   	0x07
4028c2ecf20Sopenharmony_ci#define		PDATA_REINIT    	0x06
4038c2ecf20Sopenharmony_ci#define		IGN_WIDE_RES    	0x05
4048c2ecf20Sopenharmony_ci#define		NO_MATCH        	0x04
4058c2ecf20Sopenharmony_ci#define		PROTO_VIOLATION 	0x03
4068c2ecf20Sopenharmony_ci#define		SEND_REJECT     	0x02
4078c2ecf20Sopenharmony_ci#define		BAD_PHASE       	0x01
4088c2ecf20Sopenharmony_ci#define		NO_SEQINT       	0x00
4098c2ecf20Sopenharmony_ci
4108c2ecf20Sopenharmony_ci#define	CLRINT          		0x03
4118c2ecf20Sopenharmony_ci#define		CLRHWERRINT     	0x80
4128c2ecf20Sopenharmony_ci#define		CLRBRKADRINT    	0x40
4138c2ecf20Sopenharmony_ci#define		CLRSWTMINT      	0x20
4148c2ecf20Sopenharmony_ci#define		CLRPCIINT       	0x10
4158c2ecf20Sopenharmony_ci#define		CLRSCSIINT      	0x08
4168c2ecf20Sopenharmony_ci#define		CLRSEQINT       	0x04
4178c2ecf20Sopenharmony_ci#define		CLRCMDINT       	0x02
4188c2ecf20Sopenharmony_ci#define		CLRSPLTINT      	0x01
4198c2ecf20Sopenharmony_ci
4208c2ecf20Sopenharmony_ci#define	CLRERR          		0x04
4218c2ecf20Sopenharmony_ci#define		CLRCIOPARERR    	0x80
4228c2ecf20Sopenharmony_ci#define		CLRCIOACCESFAIL 	0x40
4238c2ecf20Sopenharmony_ci#define		CLRMPARERR      	0x20
4248c2ecf20Sopenharmony_ci#define		CLRDPARERR      	0x10
4258c2ecf20Sopenharmony_ci#define		CLRSQPARERR     	0x08
4268c2ecf20Sopenharmony_ci#define		CLRILLOPCODE    	0x04
4278c2ecf20Sopenharmony_ci#define		CLRDSCTMOUT     	0x02
4288c2ecf20Sopenharmony_ci
4298c2ecf20Sopenharmony_ci#define	ERROR           		0x04
4308c2ecf20Sopenharmony_ci#define		CIOPARERR       	0x80
4318c2ecf20Sopenharmony_ci#define		CIOACCESFAIL    	0x40
4328c2ecf20Sopenharmony_ci#define		MPARERR         	0x20
4338c2ecf20Sopenharmony_ci#define		DPARERR         	0x10
4348c2ecf20Sopenharmony_ci#define		SQPARERR        	0x08
4358c2ecf20Sopenharmony_ci#define		ILLOPCODE       	0x04
4368c2ecf20Sopenharmony_ci#define		DSCTMOUT        	0x02
4378c2ecf20Sopenharmony_ci
4388c2ecf20Sopenharmony_ci#define	HCNTRL          		0x05
4398c2ecf20Sopenharmony_ci#define		SEQ_RESET       	0x80
4408c2ecf20Sopenharmony_ci#define		POWRDN          	0x40
4418c2ecf20Sopenharmony_ci#define		SWINT           	0x10
4428c2ecf20Sopenharmony_ci#define		SWTIMER_START_B 	0x08
4438c2ecf20Sopenharmony_ci#define		PAUSE           	0x04
4448c2ecf20Sopenharmony_ci#define		INTEN           	0x02
4458c2ecf20Sopenharmony_ci#define		CHIPRST         	0x01
4468c2ecf20Sopenharmony_ci#define		CHIPRSTACK      	0x01
4478c2ecf20Sopenharmony_ci
4488c2ecf20Sopenharmony_ci#define	HNSCB_QOFF      		0x06
4498c2ecf20Sopenharmony_ci
4508c2ecf20Sopenharmony_ci#define	HESCB_QOFF      		0x08
4518c2ecf20Sopenharmony_ci
4528c2ecf20Sopenharmony_ci#define	HS_MAILBOX      		0x0b
4538c2ecf20Sopenharmony_ci#define		HOST_TQINPOS    	0x80
4548c2ecf20Sopenharmony_ci#define		ENINT_COALESCE  	0x40
4558c2ecf20Sopenharmony_ci
4568c2ecf20Sopenharmony_ci#define	SEQINTSTAT      		0x0c
4578c2ecf20Sopenharmony_ci#define		SEQ_SWTMRTO     	0x10
4588c2ecf20Sopenharmony_ci#define		SEQ_SEQINT      	0x08
4598c2ecf20Sopenharmony_ci#define		SEQ_SCSIINT     	0x04
4608c2ecf20Sopenharmony_ci#define		SEQ_PCIINT      	0x02
4618c2ecf20Sopenharmony_ci#define		SEQ_SPLTINT     	0x01
4628c2ecf20Sopenharmony_ci
4638c2ecf20Sopenharmony_ci#define	CLRSEQINTSTAT   		0x0c
4648c2ecf20Sopenharmony_ci#define		CLRSEQ_SWTMRTO  	0x10
4658c2ecf20Sopenharmony_ci#define		CLRSEQ_SEQINT   	0x08
4668c2ecf20Sopenharmony_ci#define		CLRSEQ_SCSIINT  	0x04
4678c2ecf20Sopenharmony_ci#define		CLRSEQ_PCIINT   	0x02
4688c2ecf20Sopenharmony_ci#define		CLRSEQ_SPLTINT  	0x01
4698c2ecf20Sopenharmony_ci
4708c2ecf20Sopenharmony_ci#define	SWTIMER         		0x0e
4718c2ecf20Sopenharmony_ci
4728c2ecf20Sopenharmony_ci#define	SNSCB_QOFF      		0x10
4738c2ecf20Sopenharmony_ci
4748c2ecf20Sopenharmony_ci#define	SESCB_QOFF      		0x12
4758c2ecf20Sopenharmony_ci
4768c2ecf20Sopenharmony_ci#define	SDSCB_QOFF      		0x14
4778c2ecf20Sopenharmony_ci
4788c2ecf20Sopenharmony_ci#define	QOFF_CTLSTA     		0x16
4798c2ecf20Sopenharmony_ci#define		EMPTY_SCB_AVAIL 	0x80
4808c2ecf20Sopenharmony_ci#define		NEW_SCB_AVAIL   	0x40
4818c2ecf20Sopenharmony_ci#define		SDSCB_ROLLOVR   	0x20
4828c2ecf20Sopenharmony_ci#define		HS_MAILBOX_ACT  	0x10
4838c2ecf20Sopenharmony_ci#define		SCB_QSIZE       	0x0f
4848c2ecf20Sopenharmony_ci#define		SCB_QSIZE_16384 	0x0c
4858c2ecf20Sopenharmony_ci#define		SCB_QSIZE_8192  	0x0b
4868c2ecf20Sopenharmony_ci#define		SCB_QSIZE_4096  	0x0a
4878c2ecf20Sopenharmony_ci#define		SCB_QSIZE_2048  	0x09
4888c2ecf20Sopenharmony_ci#define		SCB_QSIZE_1024  	0x08
4898c2ecf20Sopenharmony_ci#define		SCB_QSIZE_512   	0x07
4908c2ecf20Sopenharmony_ci#define		SCB_QSIZE_256   	0x06
4918c2ecf20Sopenharmony_ci#define		SCB_QSIZE_128   	0x05
4928c2ecf20Sopenharmony_ci#define		SCB_QSIZE_64    	0x04
4938c2ecf20Sopenharmony_ci#define		SCB_QSIZE_32    	0x03
4948c2ecf20Sopenharmony_ci#define		SCB_QSIZE_16    	0x02
4958c2ecf20Sopenharmony_ci#define		SCB_QSIZE_8     	0x01
4968c2ecf20Sopenharmony_ci#define		SCB_QSIZE_4     	0x00
4978c2ecf20Sopenharmony_ci
4988c2ecf20Sopenharmony_ci#define	INTCTL          		0x18
4998c2ecf20Sopenharmony_ci#define		SWTMINTMASK     	0x80
5008c2ecf20Sopenharmony_ci#define		SWTMINTEN       	0x40
5018c2ecf20Sopenharmony_ci#define		SWTIMER_START   	0x20
5028c2ecf20Sopenharmony_ci#define		AUTOCLRCMDINT   	0x10
5038c2ecf20Sopenharmony_ci#define		PCIINTEN        	0x08
5048c2ecf20Sopenharmony_ci#define		SCSIINTEN       	0x04
5058c2ecf20Sopenharmony_ci#define		SEQINTEN        	0x02
5068c2ecf20Sopenharmony_ci#define		SPLTINTEN       	0x01
5078c2ecf20Sopenharmony_ci
5088c2ecf20Sopenharmony_ci#define	DFCNTRL         		0x19
5098c2ecf20Sopenharmony_ci#define		SCSIENWRDIS     	0x40
5108c2ecf20Sopenharmony_ci#define		SCSIENACK       	0x20
5118c2ecf20Sopenharmony_ci#define		DIRECTIONACK    	0x04
5128c2ecf20Sopenharmony_ci#define		FIFOFLUSHACK    	0x02
5138c2ecf20Sopenharmony_ci#define		DIRECTIONEN     	0x01
5148c2ecf20Sopenharmony_ci
5158c2ecf20Sopenharmony_ci#define	DSCOMMAND0      		0x19
5168c2ecf20Sopenharmony_ci#define		CACHETHEN       	0x80
5178c2ecf20Sopenharmony_ci#define		DPARCKEN        	0x40
5188c2ecf20Sopenharmony_ci#define		MPARCKEN        	0x20
5198c2ecf20Sopenharmony_ci#define		EXTREQLCK       	0x10
5208c2ecf20Sopenharmony_ci#define		DISABLE_TWATE   	0x02
5218c2ecf20Sopenharmony_ci#define		CIOPARCKEN      	0x01
5228c2ecf20Sopenharmony_ci
5238c2ecf20Sopenharmony_ci#define	DFSTATUS        		0x1a
5248c2ecf20Sopenharmony_ci#define		PRELOAD_AVAIL   	0x80
5258c2ecf20Sopenharmony_ci#define		PKT_PRELOAD_AVAIL	0x40
5268c2ecf20Sopenharmony_ci#define		MREQPEND        	0x10
5278c2ecf20Sopenharmony_ci#define		HDONE           	0x08
5288c2ecf20Sopenharmony_ci#define		DFTHRESH        	0x04
5298c2ecf20Sopenharmony_ci#define		FIFOFULL        	0x02
5308c2ecf20Sopenharmony_ci#define		FIFOEMP         	0x01
5318c2ecf20Sopenharmony_ci
5328c2ecf20Sopenharmony_ci#define	ARBCTL          		0x1b
5338c2ecf20Sopenharmony_ci#define		RESET_HARB      	0x80
5348c2ecf20Sopenharmony_ci#define		RETRY_SWEN      	0x08
5358c2ecf20Sopenharmony_ci#define		USE_TIME        	0x07
5368c2ecf20Sopenharmony_ci
5378c2ecf20Sopenharmony_ci#define	SG_CACHE_SHADOW 		0x1b
5388c2ecf20Sopenharmony_ci#define		ODD_SEG         	0x04
5398c2ecf20Sopenharmony_ci#define		LAST_SEG        	0x02
5408c2ecf20Sopenharmony_ci#define		LAST_SEG_DONE   	0x01
5418c2ecf20Sopenharmony_ci
5428c2ecf20Sopenharmony_ci#define	SG_CACHE_PRE    		0x1b
5438c2ecf20Sopenharmony_ci
5448c2ecf20Sopenharmony_ci#define	TYPEPTR         		0x20
5458c2ecf20Sopenharmony_ci
5468c2ecf20Sopenharmony_ci#define	LQIN            		0x20
5478c2ecf20Sopenharmony_ci
5488c2ecf20Sopenharmony_ci#define	TAGPTR          		0x21
5498c2ecf20Sopenharmony_ci
5508c2ecf20Sopenharmony_ci#define	LUNPTR          		0x22
5518c2ecf20Sopenharmony_ci
5528c2ecf20Sopenharmony_ci#define	DATALENPTR      		0x23
5538c2ecf20Sopenharmony_ci
5548c2ecf20Sopenharmony_ci#define	STATLENPTR      		0x24
5558c2ecf20Sopenharmony_ci
5568c2ecf20Sopenharmony_ci#define	CMDLENPTR       		0x25
5578c2ecf20Sopenharmony_ci
5588c2ecf20Sopenharmony_ci#define	ATTRPTR         		0x26
5598c2ecf20Sopenharmony_ci
5608c2ecf20Sopenharmony_ci#define	FLAGPTR         		0x27
5618c2ecf20Sopenharmony_ci
5628c2ecf20Sopenharmony_ci#define	CMDPTR          		0x28
5638c2ecf20Sopenharmony_ci
5648c2ecf20Sopenharmony_ci#define	QNEXTPTR        		0x29
5658c2ecf20Sopenharmony_ci
5668c2ecf20Sopenharmony_ci#define	IDPTR           		0x2a
5678c2ecf20Sopenharmony_ci
5688c2ecf20Sopenharmony_ci#define	ABRTBYTEPTR     		0x2b
5698c2ecf20Sopenharmony_ci
5708c2ecf20Sopenharmony_ci#define	ABRTBITPTR      		0x2c
5718c2ecf20Sopenharmony_ci
5728c2ecf20Sopenharmony_ci#define	MAXCMDBYTES     		0x2d
5738c2ecf20Sopenharmony_ci
5748c2ecf20Sopenharmony_ci#define	MAXCMD2RCV      		0x2e
5758c2ecf20Sopenharmony_ci
5768c2ecf20Sopenharmony_ci#define	SHORTTHRESH     		0x2f
5778c2ecf20Sopenharmony_ci
5788c2ecf20Sopenharmony_ci#define	LUNLEN          		0x30
5798c2ecf20Sopenharmony_ci#define		TLUNLEN         	0xf0
5808c2ecf20Sopenharmony_ci#define		ILUNLEN         	0x0f
5818c2ecf20Sopenharmony_ci
5828c2ecf20Sopenharmony_ci#define	CDBLIMIT        		0x31
5838c2ecf20Sopenharmony_ci
5848c2ecf20Sopenharmony_ci#define	MAXCMD          		0x32
5858c2ecf20Sopenharmony_ci
5868c2ecf20Sopenharmony_ci#define	MAXCMDCNT       		0x33
5878c2ecf20Sopenharmony_ci
5888c2ecf20Sopenharmony_ci#define	LQRSVD01        		0x34
5898c2ecf20Sopenharmony_ci
5908c2ecf20Sopenharmony_ci#define	LQRSVD16        		0x35
5918c2ecf20Sopenharmony_ci
5928c2ecf20Sopenharmony_ci#define	LQRSVD17        		0x36
5938c2ecf20Sopenharmony_ci
5948c2ecf20Sopenharmony_ci#define	CMDRSVD0        		0x37
5958c2ecf20Sopenharmony_ci
5968c2ecf20Sopenharmony_ci#define	LQCTL0          		0x38
5978c2ecf20Sopenharmony_ci#define		LQITARGCLT      	0xc0
5988c2ecf20Sopenharmony_ci#define		LQIINITGCLT     	0x30
5998c2ecf20Sopenharmony_ci#define		LQ0TARGCLT      	0x0c
6008c2ecf20Sopenharmony_ci#define		LQ0INITGCLT     	0x03
6018c2ecf20Sopenharmony_ci
6028c2ecf20Sopenharmony_ci#define	LQCTL1          		0x38
6038c2ecf20Sopenharmony_ci#define		PCI2PCI         	0x04
6048c2ecf20Sopenharmony_ci#define		SINGLECMD       	0x02
6058c2ecf20Sopenharmony_ci#define		ABORTPENDING    	0x01
6068c2ecf20Sopenharmony_ci
6078c2ecf20Sopenharmony_ci#define	LQCTL2          		0x39
6088c2ecf20Sopenharmony_ci#define		LQIRETRY        	0x80
6098c2ecf20Sopenharmony_ci#define		LQICONTINUE     	0x40
6108c2ecf20Sopenharmony_ci#define		LQITOIDLE       	0x20
6118c2ecf20Sopenharmony_ci#define		LQIPAUSE        	0x10
6128c2ecf20Sopenharmony_ci#define		LQORETRY        	0x08
6138c2ecf20Sopenharmony_ci#define		LQOCONTINUE     	0x04
6148c2ecf20Sopenharmony_ci#define		LQOTOIDLE       	0x02
6158c2ecf20Sopenharmony_ci#define		LQOPAUSE        	0x01
6168c2ecf20Sopenharmony_ci
6178c2ecf20Sopenharmony_ci#define	SCSBIST0        		0x39
6188c2ecf20Sopenharmony_ci#define		GSBISTERR       	0x40
6198c2ecf20Sopenharmony_ci#define		GSBISTDONE      	0x20
6208c2ecf20Sopenharmony_ci#define		GSBISTRUN       	0x10
6218c2ecf20Sopenharmony_ci#define		OSBISTERR       	0x04
6228c2ecf20Sopenharmony_ci#define		OSBISTDONE      	0x02
6238c2ecf20Sopenharmony_ci#define		OSBISTRUN       	0x01
6248c2ecf20Sopenharmony_ci
6258c2ecf20Sopenharmony_ci#define	SCSISEQ0        		0x3a
6268c2ecf20Sopenharmony_ci#define		TEMODEO         	0x80
6278c2ecf20Sopenharmony_ci#define		ENSELO          	0x40
6288c2ecf20Sopenharmony_ci#define		ENARBO          	0x20
6298c2ecf20Sopenharmony_ci#define		FORCEBUSFREE    	0x10
6308c2ecf20Sopenharmony_ci#define		SCSIRSTO        	0x01
6318c2ecf20Sopenharmony_ci
6328c2ecf20Sopenharmony_ci#define	SCSBIST1        		0x3a
6338c2ecf20Sopenharmony_ci#define		NTBISTERR       	0x04
6348c2ecf20Sopenharmony_ci#define		NTBISTDONE      	0x02
6358c2ecf20Sopenharmony_ci#define		NTBISTRUN       	0x01
6368c2ecf20Sopenharmony_ci
6378c2ecf20Sopenharmony_ci#define	SCSISEQ1        		0x3b
6388c2ecf20Sopenharmony_ci
6398c2ecf20Sopenharmony_ci#define	BUSINITID       		0x3c
6408c2ecf20Sopenharmony_ci
6418c2ecf20Sopenharmony_ci#define	SXFRCTL0        		0x3c
6428c2ecf20Sopenharmony_ci#define		DFON            	0x80
6438c2ecf20Sopenharmony_ci#define		DFPEXP          	0x40
6448c2ecf20Sopenharmony_ci#define		BIOSCANCELEN    	0x10
6458c2ecf20Sopenharmony_ci#define		SPIOEN          	0x08
6468c2ecf20Sopenharmony_ci
6478c2ecf20Sopenharmony_ci#define	DLCOUNT         		0x3c
6488c2ecf20Sopenharmony_ci
6498c2ecf20Sopenharmony_ci#define	SXFRCTL1        		0x3d
6508c2ecf20Sopenharmony_ci#define		BITBUCKET       	0x80
6518c2ecf20Sopenharmony_ci#define		ENSACHK         	0x40
6528c2ecf20Sopenharmony_ci#define		ENSPCHK         	0x20
6538c2ecf20Sopenharmony_ci#define		STIMESEL        	0x18
6548c2ecf20Sopenharmony_ci#define		ENSTIMER        	0x04
6558c2ecf20Sopenharmony_ci#define		ACTNEGEN        	0x02
6568c2ecf20Sopenharmony_ci#define		STPWEN          	0x01
6578c2ecf20Sopenharmony_ci
6588c2ecf20Sopenharmony_ci#define	BUSTARGID       		0x3e
6598c2ecf20Sopenharmony_ci
6608c2ecf20Sopenharmony_ci#define	SXFRCTL2        		0x3e
6618c2ecf20Sopenharmony_ci#define		AUTORSTDIS      	0x10
6628c2ecf20Sopenharmony_ci#define		CMDDMAEN        	0x08
6638c2ecf20Sopenharmony_ci#define		ASU             	0x07
6648c2ecf20Sopenharmony_ci
6658c2ecf20Sopenharmony_ci#define	DFFSTAT         		0x3f
6668c2ecf20Sopenharmony_ci#define		CURRFIFO        	0x03
6678c2ecf20Sopenharmony_ci#define		FIFO1FREE       	0x20
6688c2ecf20Sopenharmony_ci#define		FIFO0FREE       	0x10
6698c2ecf20Sopenharmony_ci#define		CURRFIFO_NONE   	0x03
6708c2ecf20Sopenharmony_ci#define		CURRFIFO_1      	0x01
6718c2ecf20Sopenharmony_ci#define		CURRFIFO_0      	0x00
6728c2ecf20Sopenharmony_ci
6738c2ecf20Sopenharmony_ci#define	MULTARGID       		0x40
6748c2ecf20Sopenharmony_ci
6758c2ecf20Sopenharmony_ci#define	SCSISIGO        		0x40
6768c2ecf20Sopenharmony_ci#define		CDO             	0x80
6778c2ecf20Sopenharmony_ci#define		IOO             	0x40
6788c2ecf20Sopenharmony_ci#define		MSGO            	0x20
6798c2ecf20Sopenharmony_ci#define		ATNO            	0x10
6808c2ecf20Sopenharmony_ci#define		SELO            	0x08
6818c2ecf20Sopenharmony_ci#define		BSYO            	0x04
6828c2ecf20Sopenharmony_ci#define		REQO            	0x02
6838c2ecf20Sopenharmony_ci#define		ACKO            	0x01
6848c2ecf20Sopenharmony_ci
6858c2ecf20Sopenharmony_ci#define	SCSISIGI        		0x41
6868c2ecf20Sopenharmony_ci#define		ATNI            	0x10
6878c2ecf20Sopenharmony_ci#define		SELI            	0x08
6888c2ecf20Sopenharmony_ci#define		BSYI            	0x04
6898c2ecf20Sopenharmony_ci#define		REQI            	0x02
6908c2ecf20Sopenharmony_ci#define		ACKI            	0x01
6918c2ecf20Sopenharmony_ci
6928c2ecf20Sopenharmony_ci#define	SCSIPHASE       		0x42
6938c2ecf20Sopenharmony_ci#define		STATUS_PHASE    	0x20
6948c2ecf20Sopenharmony_ci#define		COMMAND_PHASE   	0x10
6958c2ecf20Sopenharmony_ci#define		MSG_IN_PHASE    	0x08
6968c2ecf20Sopenharmony_ci#define		MSG_OUT_PHASE   	0x04
6978c2ecf20Sopenharmony_ci#define		DATA_PHASE_MASK 	0x03
6988c2ecf20Sopenharmony_ci#define		DATA_IN_PHASE   	0x02
6998c2ecf20Sopenharmony_ci#define		DATA_OUT_PHASE  	0x01
7008c2ecf20Sopenharmony_ci
7018c2ecf20Sopenharmony_ci#define	SCSIDAT0_IMG    		0x43
7028c2ecf20Sopenharmony_ci
7038c2ecf20Sopenharmony_ci#define	SCSIDAT         		0x44
7048c2ecf20Sopenharmony_ci
7058c2ecf20Sopenharmony_ci#define	SCSIBUS         		0x46
7068c2ecf20Sopenharmony_ci
7078c2ecf20Sopenharmony_ci#define	TARGIDIN        		0x48
7088c2ecf20Sopenharmony_ci#define		CLKOUT          	0x80
7098c2ecf20Sopenharmony_ci#define		TARGID          	0x0f
7108c2ecf20Sopenharmony_ci
7118c2ecf20Sopenharmony_ci#define	SELID           		0x49
7128c2ecf20Sopenharmony_ci#define		SELID_MASK      	0xf0
7138c2ecf20Sopenharmony_ci#define		ONEBIT          	0x08
7148c2ecf20Sopenharmony_ci
7158c2ecf20Sopenharmony_ci#define	OPTIONMODE      		0x4a
7168c2ecf20Sopenharmony_ci#define		OPTIONMODE_DEFAULTS	0x02
7178c2ecf20Sopenharmony_ci#define		BIOSCANCTL      	0x80
7188c2ecf20Sopenharmony_ci#define		AUTOACKEN       	0x40
7198c2ecf20Sopenharmony_ci#define		BIASCANCTL      	0x20
7208c2ecf20Sopenharmony_ci#define		BUSFREEREV      	0x10
7218c2ecf20Sopenharmony_ci#define		ENDGFORMCHK     	0x04
7228c2ecf20Sopenharmony_ci#define		AUTO_MSGOUT_DE  	0x02
7238c2ecf20Sopenharmony_ci
7248c2ecf20Sopenharmony_ci#define	SBLKCTL         		0x4a
7258c2ecf20Sopenharmony_ci#define		DIAGLEDEN       	0x80
7268c2ecf20Sopenharmony_ci#define		DIAGLEDON       	0x40
7278c2ecf20Sopenharmony_ci#define		ENAB40          	0x08
7288c2ecf20Sopenharmony_ci#define		ENAB20          	0x04
7298c2ecf20Sopenharmony_ci#define		SELWIDE         	0x02
7308c2ecf20Sopenharmony_ci
7318c2ecf20Sopenharmony_ci#define	SIMODE0         		0x4b
7328c2ecf20Sopenharmony_ci#define		ENSELDO         	0x40
7338c2ecf20Sopenharmony_ci#define		ENSELDI         	0x20
7348c2ecf20Sopenharmony_ci#define		ENSELINGO       	0x10
7358c2ecf20Sopenharmony_ci#define		ENIOERR         	0x08
7368c2ecf20Sopenharmony_ci#define		ENOVERRUN       	0x04
7378c2ecf20Sopenharmony_ci#define		ENSPIORDY       	0x02
7388c2ecf20Sopenharmony_ci#define		ENARBDO         	0x01
7398c2ecf20Sopenharmony_ci
7408c2ecf20Sopenharmony_ci#define	SSTAT0          		0x4b
7418c2ecf20Sopenharmony_ci#define		TARGET          	0x80
7428c2ecf20Sopenharmony_ci#define		SELDO           	0x40
7438c2ecf20Sopenharmony_ci#define		SELDI           	0x20
7448c2ecf20Sopenharmony_ci#define		SELINGO         	0x10
7458c2ecf20Sopenharmony_ci#define		IOERR           	0x08
7468c2ecf20Sopenharmony_ci#define		OVERRUN         	0x04
7478c2ecf20Sopenharmony_ci#define		SPIORDY         	0x02
7488c2ecf20Sopenharmony_ci#define		ARBDO           	0x01
7498c2ecf20Sopenharmony_ci
7508c2ecf20Sopenharmony_ci#define	CLRSINT0        		0x4b
7518c2ecf20Sopenharmony_ci#define		CLRSELDO        	0x40
7528c2ecf20Sopenharmony_ci#define		CLRSELDI        	0x20
7538c2ecf20Sopenharmony_ci#define		CLRSELINGO      	0x10
7548c2ecf20Sopenharmony_ci#define		CLRIOERR        	0x08
7558c2ecf20Sopenharmony_ci#define		CLROVERRUN      	0x04
7568c2ecf20Sopenharmony_ci#define		CLRSPIORDY      	0x02
7578c2ecf20Sopenharmony_ci#define		CLRARBDO        	0x01
7588c2ecf20Sopenharmony_ci
7598c2ecf20Sopenharmony_ci#define	SSTAT1          		0x4c
7608c2ecf20Sopenharmony_ci#define		SELTO           	0x80
7618c2ecf20Sopenharmony_ci#define		ATNTARG         	0x40
7628c2ecf20Sopenharmony_ci#define		SCSIRSTI        	0x20
7638c2ecf20Sopenharmony_ci#define		PHASEMIS        	0x10
7648c2ecf20Sopenharmony_ci#define		BUSFREE         	0x08
7658c2ecf20Sopenharmony_ci#define		SCSIPERR        	0x04
7668c2ecf20Sopenharmony_ci#define		STRB2FAST       	0x02
7678c2ecf20Sopenharmony_ci#define		REQINIT         	0x01
7688c2ecf20Sopenharmony_ci
7698c2ecf20Sopenharmony_ci#define	CLRSINT1        		0x4c
7708c2ecf20Sopenharmony_ci#define		CLRSELTIMEO     	0x80
7718c2ecf20Sopenharmony_ci#define		CLRATNO         	0x40
7728c2ecf20Sopenharmony_ci#define		CLRSCSIRSTI     	0x20
7738c2ecf20Sopenharmony_ci#define		CLRBUSFREE      	0x08
7748c2ecf20Sopenharmony_ci#define		CLRSCSIPERR     	0x04
7758c2ecf20Sopenharmony_ci#define		CLRSTRB2FAST    	0x02
7768c2ecf20Sopenharmony_ci#define		CLRREQINIT      	0x01
7778c2ecf20Sopenharmony_ci
7788c2ecf20Sopenharmony_ci#define	SIMODE2         		0x4d
7798c2ecf20Sopenharmony_ci#define		ENWIDE_RES      	0x04
7808c2ecf20Sopenharmony_ci#define		ENSDONE         	0x02
7818c2ecf20Sopenharmony_ci#define		ENDMADONE       	0x01
7828c2ecf20Sopenharmony_ci
7838c2ecf20Sopenharmony_ci#define	SSTAT2          		0x4d
7848c2ecf20Sopenharmony_ci#define		BUSFREETIME     	0xc0
7858c2ecf20Sopenharmony_ci#define		NONPACKREQ      	0x20
7868c2ecf20Sopenharmony_ci#define		EXP_ACTIVE      	0x10
7878c2ecf20Sopenharmony_ci#define		BSYX            	0x08
7888c2ecf20Sopenharmony_ci#define		WIDE_RES        	0x04
7898c2ecf20Sopenharmony_ci#define		SDONE           	0x02
7908c2ecf20Sopenharmony_ci#define		DMADONE         	0x01
7918c2ecf20Sopenharmony_ci#define		BUSFREE_DFF1    	0xc0
7928c2ecf20Sopenharmony_ci#define		BUSFREE_DFF0    	0x80
7938c2ecf20Sopenharmony_ci#define		BUSFREE_LQO     	0x40
7948c2ecf20Sopenharmony_ci
7958c2ecf20Sopenharmony_ci#define	CLRSINT2        		0x4d
7968c2ecf20Sopenharmony_ci#define		CLRNONPACKREQ   	0x20
7978c2ecf20Sopenharmony_ci#define		CLRWIDE_RES     	0x04
7988c2ecf20Sopenharmony_ci#define		CLRSDONE        	0x02
7998c2ecf20Sopenharmony_ci#define		CLRDMADONE      	0x01
8008c2ecf20Sopenharmony_ci
8018c2ecf20Sopenharmony_ci#define	PERRDIAG        		0x4e
8028c2ecf20Sopenharmony_ci#define		HIZERO          	0x80
8038c2ecf20Sopenharmony_ci#define		HIPERR          	0x40
8048c2ecf20Sopenharmony_ci#define		PREVPHASE       	0x20
8058c2ecf20Sopenharmony_ci#define		PARITYERR       	0x10
8068c2ecf20Sopenharmony_ci#define		AIPERR          	0x08
8078c2ecf20Sopenharmony_ci#define		CRCERR          	0x04
8088c2ecf20Sopenharmony_ci#define		DGFORMERR       	0x02
8098c2ecf20Sopenharmony_ci#define		DTERR           	0x01
8108c2ecf20Sopenharmony_ci
8118c2ecf20Sopenharmony_ci#define	LQISTATE        		0x4e
8128c2ecf20Sopenharmony_ci
8138c2ecf20Sopenharmony_ci#define	LQOSTATE        		0x4f
8148c2ecf20Sopenharmony_ci
8158c2ecf20Sopenharmony_ci#define	SOFFCNT         		0x4f
8168c2ecf20Sopenharmony_ci
8178c2ecf20Sopenharmony_ci#define	LQISTAT0        		0x50
8188c2ecf20Sopenharmony_ci#define		LQIATNQAS       	0x20
8198c2ecf20Sopenharmony_ci#define		LQICRCT1        	0x10
8208c2ecf20Sopenharmony_ci#define		LQICRCT2        	0x08
8218c2ecf20Sopenharmony_ci#define		LQIBADLQT       	0x04
8228c2ecf20Sopenharmony_ci#define		LQIATNLQ        	0x02
8238c2ecf20Sopenharmony_ci#define		LQIATNCMD       	0x01
8248c2ecf20Sopenharmony_ci
8258c2ecf20Sopenharmony_ci#define	LQIMODE0        		0x50
8268c2ecf20Sopenharmony_ci#define		ENLQIATNQASK    	0x20
8278c2ecf20Sopenharmony_ci#define		ENLQICRCT1      	0x10
8288c2ecf20Sopenharmony_ci#define		ENLQICRCT2      	0x08
8298c2ecf20Sopenharmony_ci#define		ENLQIBADLQT     	0x04
8308c2ecf20Sopenharmony_ci#define		ENLQIATNLQ      	0x02
8318c2ecf20Sopenharmony_ci#define		ENLQIATNCMD     	0x01
8328c2ecf20Sopenharmony_ci
8338c2ecf20Sopenharmony_ci#define	CLRLQIINT0      		0x50
8348c2ecf20Sopenharmony_ci#define		CLRLQIATNQAS    	0x20
8358c2ecf20Sopenharmony_ci#define		CLRLQICRCT1     	0x10
8368c2ecf20Sopenharmony_ci#define		CLRLQICRCT2     	0x08
8378c2ecf20Sopenharmony_ci#define		CLRLQIBADLQT    	0x04
8388c2ecf20Sopenharmony_ci#define		CLRLQIATNLQ     	0x02
8398c2ecf20Sopenharmony_ci#define		CLRLQIATNCMD    	0x01
8408c2ecf20Sopenharmony_ci
8418c2ecf20Sopenharmony_ci#define	LQIMODE1        		0x51
8428c2ecf20Sopenharmony_ci#define		ENLQIPHASE_LQ   	0x80
8438c2ecf20Sopenharmony_ci#define		ENLQIPHASE_NLQ  	0x40
8448c2ecf20Sopenharmony_ci#define		ENLIQABORT      	0x20
8458c2ecf20Sopenharmony_ci#define		ENLQICRCI_LQ    	0x10
8468c2ecf20Sopenharmony_ci#define		ENLQICRCI_NLQ   	0x08
8478c2ecf20Sopenharmony_ci#define		ENLQIBADLQI     	0x04
8488c2ecf20Sopenharmony_ci#define		ENLQIOVERI_LQ   	0x02
8498c2ecf20Sopenharmony_ci#define		ENLQIOVERI_NLQ  	0x01
8508c2ecf20Sopenharmony_ci
8518c2ecf20Sopenharmony_ci#define	LQISTAT1        		0x51
8528c2ecf20Sopenharmony_ci#define		LQIPHASE_LQ     	0x80
8538c2ecf20Sopenharmony_ci#define		LQIPHASE_NLQ    	0x40
8548c2ecf20Sopenharmony_ci#define		LQIABORT        	0x20
8558c2ecf20Sopenharmony_ci#define		LQICRCI_LQ      	0x10
8568c2ecf20Sopenharmony_ci#define		LQICRCI_NLQ     	0x08
8578c2ecf20Sopenharmony_ci#define		LQIBADLQI       	0x04
8588c2ecf20Sopenharmony_ci#define		LQIOVERI_LQ     	0x02
8598c2ecf20Sopenharmony_ci#define		LQIOVERI_NLQ    	0x01
8608c2ecf20Sopenharmony_ci
8618c2ecf20Sopenharmony_ci#define	CLRLQIINT1      		0x51
8628c2ecf20Sopenharmony_ci#define		CLRLQIPHASE_LQ  	0x80
8638c2ecf20Sopenharmony_ci#define		CLRLQIPHASE_NLQ 	0x40
8648c2ecf20Sopenharmony_ci#define		CLRLIQABORT     	0x20
8658c2ecf20Sopenharmony_ci#define		CLRLQICRCI_LQ   	0x10
8668c2ecf20Sopenharmony_ci#define		CLRLQICRCI_NLQ  	0x08
8678c2ecf20Sopenharmony_ci#define		CLRLQIBADLQI    	0x04
8688c2ecf20Sopenharmony_ci#define		CLRLQIOVERI_LQ  	0x02
8698c2ecf20Sopenharmony_ci#define		CLRLQIOVERI_NLQ 	0x01
8708c2ecf20Sopenharmony_ci
8718c2ecf20Sopenharmony_ci#define	LQISTAT2        		0x52
8728c2ecf20Sopenharmony_ci#define		PACKETIZED      	0x80
8738c2ecf20Sopenharmony_ci#define		LQIPHASE_OUTPKT 	0x40
8748c2ecf20Sopenharmony_ci#define		LQIWORKONLQ     	0x20
8758c2ecf20Sopenharmony_ci#define		LQIWAITFIFO     	0x10
8768c2ecf20Sopenharmony_ci#define		LQISTOPPKT      	0x08
8778c2ecf20Sopenharmony_ci#define		LQISTOPLQ       	0x04
8788c2ecf20Sopenharmony_ci#define		LQISTOPCMD      	0x02
8798c2ecf20Sopenharmony_ci#define		LQIGSAVAIL      	0x01
8808c2ecf20Sopenharmony_ci
8818c2ecf20Sopenharmony_ci#define	SIMODE3         		0x53
8828c2ecf20Sopenharmony_ci#define		ENNTRAMPERR     	0x02
8838c2ecf20Sopenharmony_ci#define		ENOSRAMPERR     	0x01
8848c2ecf20Sopenharmony_ci
8858c2ecf20Sopenharmony_ci#define	SSTAT3          		0x53
8868c2ecf20Sopenharmony_ci#define		NTRAMPERR       	0x02
8878c2ecf20Sopenharmony_ci#define		OSRAMPERR       	0x01
8888c2ecf20Sopenharmony_ci
8898c2ecf20Sopenharmony_ci#define	CLRSINT3        		0x53
8908c2ecf20Sopenharmony_ci#define		CLRNTRAMPERR    	0x02
8918c2ecf20Sopenharmony_ci#define		CLROSRAMPERR    	0x01
8928c2ecf20Sopenharmony_ci
8938c2ecf20Sopenharmony_ci#define	CLRLQOINT0      		0x54
8948c2ecf20Sopenharmony_ci#define		CLRLQOTARGSCBPERR	0x10
8958c2ecf20Sopenharmony_ci#define		CLRLQOSTOPT2    	0x08
8968c2ecf20Sopenharmony_ci#define		CLRLQOATNLQ     	0x04
8978c2ecf20Sopenharmony_ci#define		CLRLQOATNPKT    	0x02
8988c2ecf20Sopenharmony_ci#define		CLRLQOTCRC      	0x01
8998c2ecf20Sopenharmony_ci
9008c2ecf20Sopenharmony_ci#define	LQOSTAT0        		0x54
9018c2ecf20Sopenharmony_ci#define		LQOTARGSCBPERR  	0x10
9028c2ecf20Sopenharmony_ci#define		LQOSTOPT2       	0x08
9038c2ecf20Sopenharmony_ci#define		LQOATNLQ        	0x04
9048c2ecf20Sopenharmony_ci#define		LQOATNPKT       	0x02
9058c2ecf20Sopenharmony_ci#define		LQOTCRC         	0x01
9068c2ecf20Sopenharmony_ci
9078c2ecf20Sopenharmony_ci#define	LQOMODE0        		0x54
9088c2ecf20Sopenharmony_ci#define		ENLQOTARGSCBPERR	0x10
9098c2ecf20Sopenharmony_ci#define		ENLQOSTOPT2     	0x08
9108c2ecf20Sopenharmony_ci#define		ENLQOATNLQ      	0x04
9118c2ecf20Sopenharmony_ci#define		ENLQOATNPKT     	0x02
9128c2ecf20Sopenharmony_ci#define		ENLQOTCRC       	0x01
9138c2ecf20Sopenharmony_ci
9148c2ecf20Sopenharmony_ci#define	LQOMODE1        		0x55
9158c2ecf20Sopenharmony_ci#define		ENLQOINITSCBPERR	0x10
9168c2ecf20Sopenharmony_ci#define		ENLQOSTOPI2     	0x08
9178c2ecf20Sopenharmony_ci#define		ENLQOBADQAS     	0x04
9188c2ecf20Sopenharmony_ci#define		ENLQOBUSFREE    	0x02
9198c2ecf20Sopenharmony_ci#define		ENLQOPHACHGINPKT	0x01
9208c2ecf20Sopenharmony_ci
9218c2ecf20Sopenharmony_ci#define	CLRLQOINT1      		0x55
9228c2ecf20Sopenharmony_ci#define		CLRLQOINITSCBPERR	0x10
9238c2ecf20Sopenharmony_ci#define		CLRLQOSTOPI2    	0x08
9248c2ecf20Sopenharmony_ci#define		CLRLQOBADQAS    	0x04
9258c2ecf20Sopenharmony_ci#define		CLRLQOBUSFREE   	0x02
9268c2ecf20Sopenharmony_ci#define		CLRLQOPHACHGINPKT	0x01
9278c2ecf20Sopenharmony_ci
9288c2ecf20Sopenharmony_ci#define	LQOSTAT1        		0x55
9298c2ecf20Sopenharmony_ci#define		LQOINITSCBPERR  	0x10
9308c2ecf20Sopenharmony_ci#define		LQOSTOPI2       	0x08
9318c2ecf20Sopenharmony_ci#define		LQOBADQAS       	0x04
9328c2ecf20Sopenharmony_ci#define		LQOBUSFREE      	0x02
9338c2ecf20Sopenharmony_ci#define		LQOPHACHGINPKT  	0x01
9348c2ecf20Sopenharmony_ci
9358c2ecf20Sopenharmony_ci#define	LQOSTAT2        		0x56
9368c2ecf20Sopenharmony_ci#define		LQOPKT          	0xe0
9378c2ecf20Sopenharmony_ci#define		LQOWAITFIFO     	0x10
9388c2ecf20Sopenharmony_ci#define		LQOPHACHGOUTPKT 	0x02
9398c2ecf20Sopenharmony_ci#define		LQOSTOP0        	0x01
9408c2ecf20Sopenharmony_ci
9418c2ecf20Sopenharmony_ci#define	OS_SPACE_CNT    		0x56
9428c2ecf20Sopenharmony_ci
9438c2ecf20Sopenharmony_ci#define	SIMODE1         		0x57
9448c2ecf20Sopenharmony_ci#define		ENSELTIMO       	0x80
9458c2ecf20Sopenharmony_ci#define		ENATNTARG       	0x40
9468c2ecf20Sopenharmony_ci#define		ENSCSIRST       	0x20
9478c2ecf20Sopenharmony_ci#define		ENPHASEMIS      	0x10
9488c2ecf20Sopenharmony_ci#define		ENBUSFREE       	0x08
9498c2ecf20Sopenharmony_ci#define		ENSCSIPERR      	0x04
9508c2ecf20Sopenharmony_ci#define		ENSTRB2FAST     	0x02
9518c2ecf20Sopenharmony_ci#define		ENREQINIT       	0x01
9528c2ecf20Sopenharmony_ci
9538c2ecf20Sopenharmony_ci#define	GSFIFO          		0x58
9548c2ecf20Sopenharmony_ci
9558c2ecf20Sopenharmony_ci#define	DFFSXFRCTL      		0x5a
9568c2ecf20Sopenharmony_ci#define		DFFBITBUCKET    	0x08
9578c2ecf20Sopenharmony_ci#define		CLRSHCNT        	0x04
9588c2ecf20Sopenharmony_ci#define		CLRCHN          	0x02
9598c2ecf20Sopenharmony_ci#define		RSTCHN          	0x01
9608c2ecf20Sopenharmony_ci
9618c2ecf20Sopenharmony_ci#define	LQOSCSCTL       		0x5a
9628c2ecf20Sopenharmony_ci#define		LQOH2A_VERSION  	0x80
9638c2ecf20Sopenharmony_ci#define		LQOBUSETDLY     	0x40
9648c2ecf20Sopenharmony_ci#define		LQONOHOLDLACK   	0x02
9658c2ecf20Sopenharmony_ci#define		LQONOCHKOVER    	0x01
9668c2ecf20Sopenharmony_ci
9678c2ecf20Sopenharmony_ci#define	NEXTSCB         		0x5a
9688c2ecf20Sopenharmony_ci
9698c2ecf20Sopenharmony_ci#define	CLRSEQINTSRC    		0x5b
9708c2ecf20Sopenharmony_ci#define		CLRCTXTDONE     	0x40
9718c2ecf20Sopenharmony_ci#define		CLRSAVEPTRS     	0x20
9728c2ecf20Sopenharmony_ci#define		CLRCFG4DATA     	0x10
9738c2ecf20Sopenharmony_ci#define		CLRCFG4ISTAT    	0x08
9748c2ecf20Sopenharmony_ci#define		CLRCFG4TSTAT    	0x04
9758c2ecf20Sopenharmony_ci#define		CLRCFG4ICMD     	0x02
9768c2ecf20Sopenharmony_ci#define		CLRCFG4TCMD     	0x01
9778c2ecf20Sopenharmony_ci
9788c2ecf20Sopenharmony_ci#define	SEQINTSRC       		0x5b
9798c2ecf20Sopenharmony_ci#define		CTXTDONE        	0x40
9808c2ecf20Sopenharmony_ci#define		SAVEPTRS        	0x20
9818c2ecf20Sopenharmony_ci#define		CFG4DATA        	0x10
9828c2ecf20Sopenharmony_ci#define		CFG4ISTAT       	0x08
9838c2ecf20Sopenharmony_ci#define		CFG4TSTAT       	0x04
9848c2ecf20Sopenharmony_ci#define		CFG4ICMD        	0x02
9858c2ecf20Sopenharmony_ci#define		CFG4TCMD        	0x01
9868c2ecf20Sopenharmony_ci
9878c2ecf20Sopenharmony_ci#define	SEQIMODE        		0x5c
9888c2ecf20Sopenharmony_ci#define		ENCTXTDONE      	0x40
9898c2ecf20Sopenharmony_ci#define		ENSAVEPTRS      	0x20
9908c2ecf20Sopenharmony_ci#define		ENCFG4DATA      	0x10
9918c2ecf20Sopenharmony_ci#define		ENCFG4ISTAT     	0x08
9928c2ecf20Sopenharmony_ci#define		ENCFG4TSTAT     	0x04
9938c2ecf20Sopenharmony_ci#define		ENCFG4ICMD      	0x02
9948c2ecf20Sopenharmony_ci#define		ENCFG4TCMD      	0x01
9958c2ecf20Sopenharmony_ci
9968c2ecf20Sopenharmony_ci#define	CURRSCB         		0x5c
9978c2ecf20Sopenharmony_ci
9988c2ecf20Sopenharmony_ci#define	CRCCONTROL      		0x5d
9998c2ecf20Sopenharmony_ci#define		CRCVALCHKEN     	0x40
10008c2ecf20Sopenharmony_ci
10018c2ecf20Sopenharmony_ci#define	MDFFSTAT        		0x5d
10028c2ecf20Sopenharmony_ci#define		SHCNTNEGATIVE   	0x40
10038c2ecf20Sopenharmony_ci#define		SHCNTMINUS1     	0x20
10048c2ecf20Sopenharmony_ci#define		LASTSDONE       	0x10
10058c2ecf20Sopenharmony_ci#define		SHVALID         	0x08
10068c2ecf20Sopenharmony_ci#define		DLZERO          	0x04
10078c2ecf20Sopenharmony_ci#define		DATAINFIFO      	0x02
10088c2ecf20Sopenharmony_ci#define		FIFOFREE        	0x01
10098c2ecf20Sopenharmony_ci
10108c2ecf20Sopenharmony_ci#define	DFFTAG          		0x5e
10118c2ecf20Sopenharmony_ci
10128c2ecf20Sopenharmony_ci#define	SCSITEST        		0x5e
10138c2ecf20Sopenharmony_ci#define		CNTRTEST        	0x08
10148c2ecf20Sopenharmony_ci#define		SEL_TXPLL_DEBUG 	0x04
10158c2ecf20Sopenharmony_ci
10168c2ecf20Sopenharmony_ci#define	LASTSCB         		0x5e
10178c2ecf20Sopenharmony_ci
10188c2ecf20Sopenharmony_ci#define	IOPDNCTL        		0x5f
10198c2ecf20Sopenharmony_ci#define		DISABLE_OE      	0x80
10208c2ecf20Sopenharmony_ci#define		PDN_IDIST       	0x04
10218c2ecf20Sopenharmony_ci#define		PDN_DIFFSENSE   	0x01
10228c2ecf20Sopenharmony_ci
10238c2ecf20Sopenharmony_ci#define	DGRPCRCI        		0x60
10248c2ecf20Sopenharmony_ci
10258c2ecf20Sopenharmony_ci#define	NEGOADDR        		0x60
10268c2ecf20Sopenharmony_ci
10278c2ecf20Sopenharmony_ci#define	SHADDR          		0x60
10288c2ecf20Sopenharmony_ci
10298c2ecf20Sopenharmony_ci#define	NEGPERIOD       		0x61
10308c2ecf20Sopenharmony_ci
10318c2ecf20Sopenharmony_ci#define	NEGOFFSET       		0x62
10328c2ecf20Sopenharmony_ci
10338c2ecf20Sopenharmony_ci#define	PACKCRCI        		0x62
10348c2ecf20Sopenharmony_ci
10358c2ecf20Sopenharmony_ci#define	NEGPPROPTS      		0x63
10368c2ecf20Sopenharmony_ci#define		PPROPT_PACE     	0x08
10378c2ecf20Sopenharmony_ci#define		PPROPT_QAS      	0x04
10388c2ecf20Sopenharmony_ci#define		PPROPT_DT       	0x02
10398c2ecf20Sopenharmony_ci#define		PPROPT_IUT      	0x01
10408c2ecf20Sopenharmony_ci
10418c2ecf20Sopenharmony_ci#define	NEGCONOPTS      		0x64
10428c2ecf20Sopenharmony_ci#define		ENSNAPSHOT      	0x40
10438c2ecf20Sopenharmony_ci#define		RTI_WRTDIS      	0x20
10448c2ecf20Sopenharmony_ci#define		RTI_OVRDTRN     	0x10
10458c2ecf20Sopenharmony_ci#define		ENSLOWCRC       	0x08
10468c2ecf20Sopenharmony_ci#define		ENAUTOATNI      	0x04
10478c2ecf20Sopenharmony_ci#define		ENAUTOATNO      	0x02
10488c2ecf20Sopenharmony_ci#define		WIDEXFER        	0x01
10498c2ecf20Sopenharmony_ci
10508c2ecf20Sopenharmony_ci#define	ANNEXCOL        		0x65
10518c2ecf20Sopenharmony_ci
10528c2ecf20Sopenharmony_ci#define	ANNEXDAT        		0x66
10538c2ecf20Sopenharmony_ci
10548c2ecf20Sopenharmony_ci#define	SCSCHKN         		0x66
10558c2ecf20Sopenharmony_ci#define		BIDICHKDIS      	0x80
10568c2ecf20Sopenharmony_ci#define		STSELSKIDDIS    	0x40
10578c2ecf20Sopenharmony_ci#define		CURRFIFODEF     	0x20
10588c2ecf20Sopenharmony_ci#define		WIDERESEN       	0x10
10598c2ecf20Sopenharmony_ci#define		SDONEMSKDIS     	0x08
10608c2ecf20Sopenharmony_ci#define		DFFACTCLR       	0x04
10618c2ecf20Sopenharmony_ci#define		SHVALIDSTDIS    	0x02
10628c2ecf20Sopenharmony_ci#define		LSTSGCLRDIS     	0x01
10638c2ecf20Sopenharmony_ci
10648c2ecf20Sopenharmony_ci#define	IOWNID          		0x67
10658c2ecf20Sopenharmony_ci
10668c2ecf20Sopenharmony_ci#define	PLL960CTL0      		0x68
10678c2ecf20Sopenharmony_ci
10688c2ecf20Sopenharmony_ci#define	SHCNT           		0x68
10698c2ecf20Sopenharmony_ci
10708c2ecf20Sopenharmony_ci#define	PLL960CTL1      		0x69
10718c2ecf20Sopenharmony_ci
10728c2ecf20Sopenharmony_ci#define	TOWNID          		0x69
10738c2ecf20Sopenharmony_ci
10748c2ecf20Sopenharmony_ci#define	PLL960CNT0      		0x6a
10758c2ecf20Sopenharmony_ci
10768c2ecf20Sopenharmony_ci#define	XSIG            		0x6a
10778c2ecf20Sopenharmony_ci
10788c2ecf20Sopenharmony_ci#define	SELOID          		0x6b
10798c2ecf20Sopenharmony_ci
10808c2ecf20Sopenharmony_ci#define	FAIRNESS        		0x6c
10818c2ecf20Sopenharmony_ci
10828c2ecf20Sopenharmony_ci#define	PLL400CTL0      		0x6c
10838c2ecf20Sopenharmony_ci#define		PLL_VCOSEL      	0x80
10848c2ecf20Sopenharmony_ci#define		PLL_PWDN        	0x40
10858c2ecf20Sopenharmony_ci#define		PLL_NS          	0x30
10868c2ecf20Sopenharmony_ci#define		PLL_ENLUD       	0x08
10878c2ecf20Sopenharmony_ci#define		PLL_ENLPF       	0x04
10888c2ecf20Sopenharmony_ci#define		PLL_DLPF        	0x02
10898c2ecf20Sopenharmony_ci#define		PLL_ENFBM       	0x01
10908c2ecf20Sopenharmony_ci
10918c2ecf20Sopenharmony_ci#define	PLL400CTL1      		0x6d
10928c2ecf20Sopenharmony_ci#define		PLL_CNTEN       	0x80
10938c2ecf20Sopenharmony_ci#define		PLL_CNTCLR      	0x40
10948c2ecf20Sopenharmony_ci#define		PLL_RST         	0x01
10958c2ecf20Sopenharmony_ci
10968c2ecf20Sopenharmony_ci#define	UNFAIRNESS      		0x6e
10978c2ecf20Sopenharmony_ci
10988c2ecf20Sopenharmony_ci#define	PLL400CNT0      		0x6e
10998c2ecf20Sopenharmony_ci
11008c2ecf20Sopenharmony_ci#define	HADDR           		0x70
11018c2ecf20Sopenharmony_ci
11028c2ecf20Sopenharmony_ci#define	HODMAADR        		0x70
11038c2ecf20Sopenharmony_ci
11048c2ecf20Sopenharmony_ci#define	PLLDELAY        		0x70
11058c2ecf20Sopenharmony_ci#define		SPLIT_DROP_REQ  	0x80
11068c2ecf20Sopenharmony_ci
11078c2ecf20Sopenharmony_ci#define	HCNT            		0x78
11088c2ecf20Sopenharmony_ci
11098c2ecf20Sopenharmony_ci#define	HODMACNT        		0x78
11108c2ecf20Sopenharmony_ci
11118c2ecf20Sopenharmony_ci#define	HODMAEN         		0x7a
11128c2ecf20Sopenharmony_ci
11138c2ecf20Sopenharmony_ci#define	SGHADDR         		0x7c
11148c2ecf20Sopenharmony_ci
11158c2ecf20Sopenharmony_ci#define	SCBHADDR        		0x7c
11168c2ecf20Sopenharmony_ci
11178c2ecf20Sopenharmony_ci#define	SGHCNT          		0x84
11188c2ecf20Sopenharmony_ci
11198c2ecf20Sopenharmony_ci#define	SCBHCNT         		0x84
11208c2ecf20Sopenharmony_ci
11218c2ecf20Sopenharmony_ci#define	DFF_THRSH       		0x88
11228c2ecf20Sopenharmony_ci#define		WR_DFTHRSH      	0x70
11238c2ecf20Sopenharmony_ci#define		RD_DFTHRSH      	0x07
11248c2ecf20Sopenharmony_ci#define		WR_DFTHRSH_MAX  	0x70
11258c2ecf20Sopenharmony_ci#define		WR_DFTHRSH_90   	0x60
11268c2ecf20Sopenharmony_ci#define		WR_DFTHRSH_85   	0x50
11278c2ecf20Sopenharmony_ci#define		WR_DFTHRSH_75   	0x40
11288c2ecf20Sopenharmony_ci#define		WR_DFTHRSH_63   	0x30
11298c2ecf20Sopenharmony_ci#define		WR_DFTHRSH_50   	0x20
11308c2ecf20Sopenharmony_ci#define		WR_DFTHRSH_25   	0x10
11318c2ecf20Sopenharmony_ci#define		RD_DFTHRSH_MAX  	0x07
11328c2ecf20Sopenharmony_ci#define		RD_DFTHRSH_90   	0x06
11338c2ecf20Sopenharmony_ci#define		RD_DFTHRSH_85   	0x05
11348c2ecf20Sopenharmony_ci#define		RD_DFTHRSH_75   	0x04
11358c2ecf20Sopenharmony_ci#define		RD_DFTHRSH_63   	0x03
11368c2ecf20Sopenharmony_ci#define		RD_DFTHRSH_50   	0x02
11378c2ecf20Sopenharmony_ci#define		RD_DFTHRSH_25   	0x01
11388c2ecf20Sopenharmony_ci#define		RD_DFTHRSH_MIN  	0x00
11398c2ecf20Sopenharmony_ci#define		WR_DFTHRSH_MIN  	0x00
11408c2ecf20Sopenharmony_ci
11418c2ecf20Sopenharmony_ci#define	ROMADDR         		0x8a
11428c2ecf20Sopenharmony_ci
11438c2ecf20Sopenharmony_ci#define	ROMCNTRL        		0x8d
11448c2ecf20Sopenharmony_ci#define		ROMOP           	0xe0
11458c2ecf20Sopenharmony_ci#define		ROMSPD          	0x18
11468c2ecf20Sopenharmony_ci#define		REPEAT          	0x02
11478c2ecf20Sopenharmony_ci#define		RDY             	0x01
11488c2ecf20Sopenharmony_ci
11498c2ecf20Sopenharmony_ci#define	ROMDATA         		0x8e
11508c2ecf20Sopenharmony_ci
11518c2ecf20Sopenharmony_ci#define	CMCRXMSG0       		0x90
11528c2ecf20Sopenharmony_ci
11538c2ecf20Sopenharmony_ci#define	OVLYRXMSG0      		0x90
11548c2ecf20Sopenharmony_ci
11558c2ecf20Sopenharmony_ci#define	DCHRXMSG0       		0x90
11568c2ecf20Sopenharmony_ci
11578c2ecf20Sopenharmony_ci#define	ROENABLE        		0x90
11588c2ecf20Sopenharmony_ci#define		MSIROEN         	0x20
11598c2ecf20Sopenharmony_ci#define		OVLYROEN        	0x10
11608c2ecf20Sopenharmony_ci#define		CMCROEN         	0x08
11618c2ecf20Sopenharmony_ci#define		SGROEN          	0x04
11628c2ecf20Sopenharmony_ci#define		DCH1ROEN        	0x02
11638c2ecf20Sopenharmony_ci#define		DCH0ROEN        	0x01
11648c2ecf20Sopenharmony_ci
11658c2ecf20Sopenharmony_ci#define	OVLYRXMSG1      		0x91
11668c2ecf20Sopenharmony_ci
11678c2ecf20Sopenharmony_ci#define	CMCRXMSG1       		0x91
11688c2ecf20Sopenharmony_ci
11698c2ecf20Sopenharmony_ci#define	DCHRXMSG1       		0x91
11708c2ecf20Sopenharmony_ci
11718c2ecf20Sopenharmony_ci#define	NSENABLE        		0x91
11728c2ecf20Sopenharmony_ci#define		MSINSEN         	0x20
11738c2ecf20Sopenharmony_ci#define		OVLYNSEN        	0x10
11748c2ecf20Sopenharmony_ci#define		CMCNSEN         	0x08
11758c2ecf20Sopenharmony_ci#define		SGNSEN          	0x04
11768c2ecf20Sopenharmony_ci#define		DCH1NSEN        	0x02
11778c2ecf20Sopenharmony_ci#define		DCH0NSEN        	0x01
11788c2ecf20Sopenharmony_ci
11798c2ecf20Sopenharmony_ci#define	DCHRXMSG2       		0x92
11808c2ecf20Sopenharmony_ci
11818c2ecf20Sopenharmony_ci#define	CMCRXMSG2       		0x92
11828c2ecf20Sopenharmony_ci
11838c2ecf20Sopenharmony_ci#define	OST             		0x92
11848c2ecf20Sopenharmony_ci
11858c2ecf20Sopenharmony_ci#define	OVLYRXMSG2      		0x92
11868c2ecf20Sopenharmony_ci
11878c2ecf20Sopenharmony_ci#define	DCHRXMSG3       		0x93
11888c2ecf20Sopenharmony_ci
11898c2ecf20Sopenharmony_ci#define	OVLYRXMSG3      		0x93
11908c2ecf20Sopenharmony_ci
11918c2ecf20Sopenharmony_ci#define	CMCRXMSG3       		0x93
11928c2ecf20Sopenharmony_ci
11938c2ecf20Sopenharmony_ci#define	PCIXCTL         		0x93
11948c2ecf20Sopenharmony_ci#define		SERRPULSE       	0x80
11958c2ecf20Sopenharmony_ci#define		UNEXPSCIEN      	0x20
11968c2ecf20Sopenharmony_ci#define		SPLTSMADIS      	0x10
11978c2ecf20Sopenharmony_ci#define		SPLTSTADIS      	0x08
11988c2ecf20Sopenharmony_ci#define		SRSPDPEEN       	0x04
11998c2ecf20Sopenharmony_ci#define		TSCSERREN       	0x02
12008c2ecf20Sopenharmony_ci#define		CMPABCDIS       	0x01
12018c2ecf20Sopenharmony_ci
12028c2ecf20Sopenharmony_ci#define	CMCSEQBCNT      		0x94
12038c2ecf20Sopenharmony_ci
12048c2ecf20Sopenharmony_ci#define	OVLYSEQBCNT     		0x94
12058c2ecf20Sopenharmony_ci
12068c2ecf20Sopenharmony_ci#define	DCHSEQBCNT      		0x94
12078c2ecf20Sopenharmony_ci
12088c2ecf20Sopenharmony_ci#define	DCHSPLTSTAT0    		0x96
12098c2ecf20Sopenharmony_ci
12108c2ecf20Sopenharmony_ci#define	OVLYSPLTSTAT0   		0x96
12118c2ecf20Sopenharmony_ci
12128c2ecf20Sopenharmony_ci#define	CMCSPLTSTAT0    		0x96
12138c2ecf20Sopenharmony_ci
12148c2ecf20Sopenharmony_ci#define	OVLYSPLTSTAT1   		0x97
12158c2ecf20Sopenharmony_ci
12168c2ecf20Sopenharmony_ci#define	DCHSPLTSTAT1    		0x97
12178c2ecf20Sopenharmony_ci
12188c2ecf20Sopenharmony_ci#define	CMCSPLTSTAT1    		0x97
12198c2ecf20Sopenharmony_ci
12208c2ecf20Sopenharmony_ci#define	SGRXMSG0        		0x98
12218c2ecf20Sopenharmony_ci#define		CDNUM           	0xf8
12228c2ecf20Sopenharmony_ci#define		CFNUM           	0x07
12238c2ecf20Sopenharmony_ci
12248c2ecf20Sopenharmony_ci#define	SLVSPLTOUTADR0  		0x98
12258c2ecf20Sopenharmony_ci#define		LOWER_ADDR      	0x7f
12268c2ecf20Sopenharmony_ci
12278c2ecf20Sopenharmony_ci#define	SGRXMSG1        		0x99
12288c2ecf20Sopenharmony_ci#define		CBNUM           	0xff
12298c2ecf20Sopenharmony_ci
12308c2ecf20Sopenharmony_ci#define	SLVSPLTOUTADR1  		0x99
12318c2ecf20Sopenharmony_ci#define		REQ_DNUM        	0xf8
12328c2ecf20Sopenharmony_ci#define		REQ_FNUM        	0x07
12338c2ecf20Sopenharmony_ci
12348c2ecf20Sopenharmony_ci#define	SGRXMSG2        		0x9a
12358c2ecf20Sopenharmony_ci#define		MINDEX          	0xff
12368c2ecf20Sopenharmony_ci
12378c2ecf20Sopenharmony_ci#define	SLVSPLTOUTADR2  		0x9a
12388c2ecf20Sopenharmony_ci#define		REQ_BNUM        	0xff
12398c2ecf20Sopenharmony_ci
12408c2ecf20Sopenharmony_ci#define	SGRXMSG3        		0x9b
12418c2ecf20Sopenharmony_ci#define		MCLASS          	0x0f
12428c2ecf20Sopenharmony_ci
12438c2ecf20Sopenharmony_ci#define	SLVSPLTOUTADR3  		0x9b
12448c2ecf20Sopenharmony_ci#define		TAG_NUM         	0x1f
12458c2ecf20Sopenharmony_ci#define		RLXORD          	0x10
12468c2ecf20Sopenharmony_ci
12478c2ecf20Sopenharmony_ci#define	SLVSPLTOUTATTR0 		0x9c
12488c2ecf20Sopenharmony_ci#define		LOWER_BCNT      	0xff
12498c2ecf20Sopenharmony_ci
12508c2ecf20Sopenharmony_ci#define	SGSEQBCNT       		0x9c
12518c2ecf20Sopenharmony_ci
12528c2ecf20Sopenharmony_ci#define	SLVSPLTOUTATTR1 		0x9d
12538c2ecf20Sopenharmony_ci#define		CMPLT_DNUM      	0xf8
12548c2ecf20Sopenharmony_ci#define		CMPLT_FNUM      	0x07
12558c2ecf20Sopenharmony_ci
12568c2ecf20Sopenharmony_ci#define	SGSPLTSTAT0     		0x9e
12578c2ecf20Sopenharmony_ci#define		STAETERM        	0x80
12588c2ecf20Sopenharmony_ci#define		SCBCERR         	0x40
12598c2ecf20Sopenharmony_ci#define		SCADERR         	0x20
12608c2ecf20Sopenharmony_ci#define		SCDATBUCKET     	0x10
12618c2ecf20Sopenharmony_ci#define		CNTNOTCMPLT     	0x08
12628c2ecf20Sopenharmony_ci#define		RXOVRUN         	0x04
12638c2ecf20Sopenharmony_ci#define		RXSCEMSG        	0x02
12648c2ecf20Sopenharmony_ci#define		RXSPLTRSP       	0x01
12658c2ecf20Sopenharmony_ci
12668c2ecf20Sopenharmony_ci#define	SLVSPLTOUTATTR2 		0x9e
12678c2ecf20Sopenharmony_ci#define		CMPLT_BNUM      	0xff
12688c2ecf20Sopenharmony_ci
12698c2ecf20Sopenharmony_ci#define	SGSPLTSTAT1     		0x9f
12708c2ecf20Sopenharmony_ci#define		RXDATABUCKET    	0x01
12718c2ecf20Sopenharmony_ci
12728c2ecf20Sopenharmony_ci#define	SFUNCT          		0x9f
12738c2ecf20Sopenharmony_ci#define		TEST_GROUP      	0xf0
12748c2ecf20Sopenharmony_ci#define		TEST_NUM        	0x0f
12758c2ecf20Sopenharmony_ci
12768c2ecf20Sopenharmony_ci#define	DF0PCISTAT      		0xa0
12778c2ecf20Sopenharmony_ci
12788c2ecf20Sopenharmony_ci#define	REG0            		0xa0
12798c2ecf20Sopenharmony_ci
12808c2ecf20Sopenharmony_ci#define	DF1PCISTAT      		0xa1
12818c2ecf20Sopenharmony_ci
12828c2ecf20Sopenharmony_ci#define	SGPCISTAT       		0xa2
12838c2ecf20Sopenharmony_ci
12848c2ecf20Sopenharmony_ci#define	REG1            		0xa2
12858c2ecf20Sopenharmony_ci
12868c2ecf20Sopenharmony_ci#define	CMCPCISTAT      		0xa3
12878c2ecf20Sopenharmony_ci
12888c2ecf20Sopenharmony_ci#define	OVLYPCISTAT     		0xa4
12898c2ecf20Sopenharmony_ci#define		SCAAPERR        	0x08
12908c2ecf20Sopenharmony_ci#define		RDPERR          	0x04
12918c2ecf20Sopenharmony_ci
12928c2ecf20Sopenharmony_ci#define	REG_ISR         		0xa4
12938c2ecf20Sopenharmony_ci
12948c2ecf20Sopenharmony_ci#define	SG_STATE        		0xa6
12958c2ecf20Sopenharmony_ci#define		FETCH_INPROG    	0x04
12968c2ecf20Sopenharmony_ci#define		LOADING_NEEDED  	0x02
12978c2ecf20Sopenharmony_ci#define		SEGS_AVAIL      	0x01
12988c2ecf20Sopenharmony_ci
12998c2ecf20Sopenharmony_ci#define	MSIPCISTAT      		0xa6
13008c2ecf20Sopenharmony_ci#define		RMA             	0x20
13018c2ecf20Sopenharmony_ci#define		RTA             	0x10
13028c2ecf20Sopenharmony_ci#define		CLRPENDMSI      	0x08
13038c2ecf20Sopenharmony_ci#define		DPR             	0x01
13048c2ecf20Sopenharmony_ci
13058c2ecf20Sopenharmony_ci#define	DATA_COUNT_ODD  		0xa7
13068c2ecf20Sopenharmony_ci
13078c2ecf20Sopenharmony_ci#define	TARGPCISTAT     		0xa7
13088c2ecf20Sopenharmony_ci#define		DPE             	0x80
13098c2ecf20Sopenharmony_ci#define		SSE             	0x40
13108c2ecf20Sopenharmony_ci#define		STA             	0x08
13118c2ecf20Sopenharmony_ci#define		TWATERR         	0x02
13128c2ecf20Sopenharmony_ci
13138c2ecf20Sopenharmony_ci#define	SCBPTR          		0xa8
13148c2ecf20Sopenharmony_ci
13158c2ecf20Sopenharmony_ci#define	CCSCBACNT       		0xab
13168c2ecf20Sopenharmony_ci
13178c2ecf20Sopenharmony_ci#define	SCBAUTOPTR      		0xab
13188c2ecf20Sopenharmony_ci#define		AUSCBPTR_EN     	0x80
13198c2ecf20Sopenharmony_ci#define		SCBPTR_ADDR     	0x38
13208c2ecf20Sopenharmony_ci#define		SCBPTR_OFF      	0x07
13218c2ecf20Sopenharmony_ci
13228c2ecf20Sopenharmony_ci#define	CCSGADDR        		0xac
13238c2ecf20Sopenharmony_ci
13248c2ecf20Sopenharmony_ci#define	CCSCBADDR       		0xac
13258c2ecf20Sopenharmony_ci
13268c2ecf20Sopenharmony_ci#define	CCSCBADR_BK     		0xac
13278c2ecf20Sopenharmony_ci
13288c2ecf20Sopenharmony_ci#define	CMC_RAMBIST     		0xad
13298c2ecf20Sopenharmony_ci#define		SG_ELEMENT_SIZE 	0x80
13308c2ecf20Sopenharmony_ci#define		SCBRAMBIST_FAIL 	0x40
13318c2ecf20Sopenharmony_ci#define		SG_BIST_FAIL    	0x20
13328c2ecf20Sopenharmony_ci#define		SG_BIST_EN      	0x10
13338c2ecf20Sopenharmony_ci#define		CMC_BUFFER_BIST_FAIL	0x02
13348c2ecf20Sopenharmony_ci#define		CMC_BUFFER_BIST_EN	0x01
13358c2ecf20Sopenharmony_ci
13368c2ecf20Sopenharmony_ci#define	CCSCBCTL        		0xad
13378c2ecf20Sopenharmony_ci#define		CCSCBDONE       	0x80
13388c2ecf20Sopenharmony_ci#define		ARRDONE         	0x40
13398c2ecf20Sopenharmony_ci#define		CCARREN         	0x10
13408c2ecf20Sopenharmony_ci#define		CCSCBEN         	0x08
13418c2ecf20Sopenharmony_ci#define		CCSCBDIR        	0x04
13428c2ecf20Sopenharmony_ci#define		CCSCBRESET      	0x01
13438c2ecf20Sopenharmony_ci
13448c2ecf20Sopenharmony_ci#define	CCSGCTL         		0xad
13458c2ecf20Sopenharmony_ci#define		CCSGEN          	0x0c
13468c2ecf20Sopenharmony_ci#define		CCSGDONE        	0x80
13478c2ecf20Sopenharmony_ci#define		SG_CACHE_AVAIL  	0x10
13488c2ecf20Sopenharmony_ci#define		CCSGENACK       	0x08
13498c2ecf20Sopenharmony_ci#define		SG_FETCH_REQ    	0x02
13508c2ecf20Sopenharmony_ci#define		CCSGRESET       	0x01
13518c2ecf20Sopenharmony_ci
13528c2ecf20Sopenharmony_ci#define	CCSGRAM         		0xb0
13538c2ecf20Sopenharmony_ci
13548c2ecf20Sopenharmony_ci#define	FLEXADR         		0xb0
13558c2ecf20Sopenharmony_ci
13568c2ecf20Sopenharmony_ci#define	CCSCBRAM        		0xb0
13578c2ecf20Sopenharmony_ci
13588c2ecf20Sopenharmony_ci#define	FLEXCNT         		0xb3
13598c2ecf20Sopenharmony_ci
13608c2ecf20Sopenharmony_ci#define	FLEXDMASTAT     		0xb5
13618c2ecf20Sopenharmony_ci#define		FLEXDMAERR      	0x02
13628c2ecf20Sopenharmony_ci#define		FLEXDMADONE     	0x01
13638c2ecf20Sopenharmony_ci
13648c2ecf20Sopenharmony_ci#define	FLEXDATA        		0xb6
13658c2ecf20Sopenharmony_ci
13668c2ecf20Sopenharmony_ci#define	BRDDAT          		0xb8
13678c2ecf20Sopenharmony_ci
13688c2ecf20Sopenharmony_ci#define	BRDCTL          		0xb9
13698c2ecf20Sopenharmony_ci#define		FLXARBACK       	0x80
13708c2ecf20Sopenharmony_ci#define		FLXARBREQ       	0x40
13718c2ecf20Sopenharmony_ci#define		BRDADDR         	0x38
13728c2ecf20Sopenharmony_ci#define		BRDEN           	0x04
13738c2ecf20Sopenharmony_ci#define		BRDRW           	0x02
13748c2ecf20Sopenharmony_ci#define		BRDSTB          	0x01
13758c2ecf20Sopenharmony_ci
13768c2ecf20Sopenharmony_ci#define	SEEADR          		0xba
13778c2ecf20Sopenharmony_ci
13788c2ecf20Sopenharmony_ci#define	SEEDAT          		0xbc
13798c2ecf20Sopenharmony_ci
13808c2ecf20Sopenharmony_ci#define	SEECTL          		0xbe
13818c2ecf20Sopenharmony_ci#define		SEEOP_EWDS      	0x40
13828c2ecf20Sopenharmony_ci#define		SEEOP_WALL      	0x40
13838c2ecf20Sopenharmony_ci#define		SEEOP_EWEN      	0x40
13848c2ecf20Sopenharmony_ci#define		SEEOPCODE       	0x70
13858c2ecf20Sopenharmony_ci#define		SEERST          	0x02
13868c2ecf20Sopenharmony_ci#define		SEESTART        	0x01
13878c2ecf20Sopenharmony_ci#define		SEEOP_ERASE     	0x70
13888c2ecf20Sopenharmony_ci#define		SEEOP_READ      	0x60
13898c2ecf20Sopenharmony_ci#define		SEEOP_WRITE     	0x50
13908c2ecf20Sopenharmony_ci#define		SEEOP_ERAL      	0x40
13918c2ecf20Sopenharmony_ci
13928c2ecf20Sopenharmony_ci#define	SEESTAT         		0xbe
13938c2ecf20Sopenharmony_ci#define		INIT_DONE       	0x80
13948c2ecf20Sopenharmony_ci#define		LDALTID_L       	0x08
13958c2ecf20Sopenharmony_ci#define		SEEARBACK       	0x04
13968c2ecf20Sopenharmony_ci#define		SEEBUSY         	0x02
13978c2ecf20Sopenharmony_ci
13988c2ecf20Sopenharmony_ci#define	SCBCNT          		0xbf
13998c2ecf20Sopenharmony_ci
14008c2ecf20Sopenharmony_ci#define	DSPFLTRCTL      		0xc0
14018c2ecf20Sopenharmony_ci#define		FLTRDISABLE     	0x20
14028c2ecf20Sopenharmony_ci#define		EDGESENSE       	0x10
14038c2ecf20Sopenharmony_ci#define		DSPFCNTSEL      	0x0f
14048c2ecf20Sopenharmony_ci
14058c2ecf20Sopenharmony_ci#define	DFWADDR         		0xc0
14068c2ecf20Sopenharmony_ci
14078c2ecf20Sopenharmony_ci#define	DSPDATACTL      		0xc1
14088c2ecf20Sopenharmony_ci#define		BYPASSENAB      	0x80
14098c2ecf20Sopenharmony_ci#define		DESQDIS         	0x10
14108c2ecf20Sopenharmony_ci#define		RCVROFFSTDIS    	0x04
14118c2ecf20Sopenharmony_ci#define		XMITOFFSTDIS    	0x02
14128c2ecf20Sopenharmony_ci
14138c2ecf20Sopenharmony_ci#define	DSPREQCTL       		0xc2
14148c2ecf20Sopenharmony_ci#define		MANREQCTL       	0xc0
14158c2ecf20Sopenharmony_ci#define		MANREQDLY       	0x3f
14168c2ecf20Sopenharmony_ci
14178c2ecf20Sopenharmony_ci#define	DFRADDR         		0xc2
14188c2ecf20Sopenharmony_ci
14198c2ecf20Sopenharmony_ci#define	DSPACKCTL       		0xc3
14208c2ecf20Sopenharmony_ci#define		MANACKCTL       	0xc0
14218c2ecf20Sopenharmony_ci#define		MANACKDLY       	0x3f
14228c2ecf20Sopenharmony_ci
14238c2ecf20Sopenharmony_ci#define	DFDAT           		0xc4
14248c2ecf20Sopenharmony_ci
14258c2ecf20Sopenharmony_ci#define	DSPSELECT       		0xc4
14268c2ecf20Sopenharmony_ci#define		AUTOINCEN       	0x80
14278c2ecf20Sopenharmony_ci#define		DSPSEL          	0x1f
14288c2ecf20Sopenharmony_ci
14298c2ecf20Sopenharmony_ci#define	WRTBIASCTL      		0xc5
14308c2ecf20Sopenharmony_ci#define		AUTOXBCDIS      	0x80
14318c2ecf20Sopenharmony_ci#define		XMITMANVAL      	0x3f
14328c2ecf20Sopenharmony_ci
14338c2ecf20Sopenharmony_ci#define	RCVRBIOSCTL     		0xc6
14348c2ecf20Sopenharmony_ci#define		AUTORBCDIS      	0x80
14358c2ecf20Sopenharmony_ci#define		RCVRMANVAL      	0x3f
14368c2ecf20Sopenharmony_ci
14378c2ecf20Sopenharmony_ci#define	WRTBIASCALC     		0xc7
14388c2ecf20Sopenharmony_ci
14398c2ecf20Sopenharmony_ci#define	DFPTRS          		0xc8
14408c2ecf20Sopenharmony_ci
14418c2ecf20Sopenharmony_ci#define	RCVRBIASCALC    		0xc8
14428c2ecf20Sopenharmony_ci
14438c2ecf20Sopenharmony_ci#define	DFBKPTR         		0xc9
14448c2ecf20Sopenharmony_ci
14458c2ecf20Sopenharmony_ci#define	SKEWCALC        		0xc9
14468c2ecf20Sopenharmony_ci
14478c2ecf20Sopenharmony_ci#define	DFDBCTL         		0xcb
14488c2ecf20Sopenharmony_ci#define		DFF_CIO_WR_RDY  	0x20
14498c2ecf20Sopenharmony_ci#define		DFF_CIO_RD_RDY  	0x10
14508c2ecf20Sopenharmony_ci#define		DFF_DIR_ERR     	0x08
14518c2ecf20Sopenharmony_ci#define		DFF_RAMBIST_FAIL	0x04
14528c2ecf20Sopenharmony_ci#define		DFF_RAMBIST_DONE	0x02
14538c2ecf20Sopenharmony_ci#define		DFF_RAMBIST_EN  	0x01
14548c2ecf20Sopenharmony_ci
14558c2ecf20Sopenharmony_ci#define	DFSCNT          		0xcc
14568c2ecf20Sopenharmony_ci
14578c2ecf20Sopenharmony_ci#define	DFBCNT          		0xce
14588c2ecf20Sopenharmony_ci
14598c2ecf20Sopenharmony_ci#define	OVLYADDR        		0xd4
14608c2ecf20Sopenharmony_ci
14618c2ecf20Sopenharmony_ci#define	SEQCTL0         		0xd6
14628c2ecf20Sopenharmony_ci#define		PERRORDIS       	0x80
14638c2ecf20Sopenharmony_ci#define		PAUSEDIS        	0x40
14648c2ecf20Sopenharmony_ci#define		FAILDIS         	0x20
14658c2ecf20Sopenharmony_ci#define		FASTMODE        	0x10
14668c2ecf20Sopenharmony_ci#define		BRKADRINTEN     	0x08
14678c2ecf20Sopenharmony_ci#define		STEP            	0x04
14688c2ecf20Sopenharmony_ci#define		SEQRESET        	0x02
14698c2ecf20Sopenharmony_ci#define		LOADRAM         	0x01
14708c2ecf20Sopenharmony_ci
14718c2ecf20Sopenharmony_ci#define	SEQCTL1         		0xd7
14728c2ecf20Sopenharmony_ci#define		OVRLAY_DATA_CHK 	0x08
14738c2ecf20Sopenharmony_ci#define		RAMBIST_DONE    	0x04
14748c2ecf20Sopenharmony_ci#define		RAMBIST_FAIL    	0x02
14758c2ecf20Sopenharmony_ci#define		RAMBIST_EN      	0x01
14768c2ecf20Sopenharmony_ci
14778c2ecf20Sopenharmony_ci#define	FLAGS           		0xd8
14788c2ecf20Sopenharmony_ci#define		ZERO            	0x02
14798c2ecf20Sopenharmony_ci#define		CARRY           	0x01
14808c2ecf20Sopenharmony_ci
14818c2ecf20Sopenharmony_ci#define	SEQINTCTL       		0xd9
14828c2ecf20Sopenharmony_ci#define		INTVEC1DSL      	0x80
14838c2ecf20Sopenharmony_ci#define		INT1_CONTEXT    	0x20
14848c2ecf20Sopenharmony_ci#define		SCS_SEQ_INT1M1  	0x10
14858c2ecf20Sopenharmony_ci#define		SCS_SEQ_INT1M0  	0x08
14868c2ecf20Sopenharmony_ci#define		INTMASK2        	0x04
14878c2ecf20Sopenharmony_ci#define		INTMASK1        	0x02
14888c2ecf20Sopenharmony_ci#define		IRET            	0x01
14898c2ecf20Sopenharmony_ci
14908c2ecf20Sopenharmony_ci#define	SEQRAM          		0xda
14918c2ecf20Sopenharmony_ci
14928c2ecf20Sopenharmony_ci#define	PRGMCNT         		0xde
14938c2ecf20Sopenharmony_ci
14948c2ecf20Sopenharmony_ci#define	ACCUM           		0xe0
14958c2ecf20Sopenharmony_ci
14968c2ecf20Sopenharmony_ci#define	SINDEX          		0xe2
14978c2ecf20Sopenharmony_ci
14988c2ecf20Sopenharmony_ci#define	DINDEX          		0xe4
14998c2ecf20Sopenharmony_ci
15008c2ecf20Sopenharmony_ci#define	BRKADDR0        		0xe6
15018c2ecf20Sopenharmony_ci
15028c2ecf20Sopenharmony_ci#define	BRKADDR1        		0xe6
15038c2ecf20Sopenharmony_ci#define		BRKDIS          	0x80
15048c2ecf20Sopenharmony_ci
15058c2ecf20Sopenharmony_ci#define	ALLONES         		0xe8
15068c2ecf20Sopenharmony_ci
15078c2ecf20Sopenharmony_ci#define	ALLZEROS        		0xea
15088c2ecf20Sopenharmony_ci
15098c2ecf20Sopenharmony_ci#define	NONE            		0xea
15108c2ecf20Sopenharmony_ci
15118c2ecf20Sopenharmony_ci#define	SINDIR          		0xec
15128c2ecf20Sopenharmony_ci
15138c2ecf20Sopenharmony_ci#define	DINDIR          		0xed
15148c2ecf20Sopenharmony_ci
15158c2ecf20Sopenharmony_ci#define	FUNCTION1       		0xf0
15168c2ecf20Sopenharmony_ci
15178c2ecf20Sopenharmony_ci#define	STACK           		0xf2
15188c2ecf20Sopenharmony_ci
15198c2ecf20Sopenharmony_ci#define	INTVEC1_ADDR    		0xf4
15208c2ecf20Sopenharmony_ci
15218c2ecf20Sopenharmony_ci#define	CURADDR         		0xf4
15228c2ecf20Sopenharmony_ci
15238c2ecf20Sopenharmony_ci#define	LASTADDR        		0xf6
15248c2ecf20Sopenharmony_ci
15258c2ecf20Sopenharmony_ci#define	INTVEC2_ADDR    		0xf6
15268c2ecf20Sopenharmony_ci
15278c2ecf20Sopenharmony_ci#define	LONGJMP_ADDR    		0xf8
15288c2ecf20Sopenharmony_ci
15298c2ecf20Sopenharmony_ci#define	ACCUM_SAVE      		0xfa
15308c2ecf20Sopenharmony_ci
15318c2ecf20Sopenharmony_ci#define	AHD_PCI_CONFIG_BASE		0x100
15328c2ecf20Sopenharmony_ci
15338c2ecf20Sopenharmony_ci#define	SRAM_BASE       		0x100
15348c2ecf20Sopenharmony_ci
15358c2ecf20Sopenharmony_ci#define	WAITING_SCB_TAILS		0x100
15368c2ecf20Sopenharmony_ci
15378c2ecf20Sopenharmony_ci#define	WAITING_TID_HEAD		0x120
15388c2ecf20Sopenharmony_ci
15398c2ecf20Sopenharmony_ci#define	WAITING_TID_TAIL		0x122
15408c2ecf20Sopenharmony_ci
15418c2ecf20Sopenharmony_ci#define	NEXT_QUEUED_SCB_ADDR		0x124
15428c2ecf20Sopenharmony_ci
15438c2ecf20Sopenharmony_ci#define	COMPLETE_SCB_HEAD		0x128
15448c2ecf20Sopenharmony_ci
15458c2ecf20Sopenharmony_ci#define	COMPLETE_SCB_DMAINPROG_HEAD		0x12a
15468c2ecf20Sopenharmony_ci
15478c2ecf20Sopenharmony_ci#define	COMPLETE_DMA_SCB_HEAD		0x12c
15488c2ecf20Sopenharmony_ci
15498c2ecf20Sopenharmony_ci#define	COMPLETE_DMA_SCB_TAIL		0x12e
15508c2ecf20Sopenharmony_ci
15518c2ecf20Sopenharmony_ci#define	COMPLETE_ON_QFREEZE_HEAD		0x130
15528c2ecf20Sopenharmony_ci
15538c2ecf20Sopenharmony_ci#define	QFREEZE_COUNT   		0x132
15548c2ecf20Sopenharmony_ci
15558c2ecf20Sopenharmony_ci#define	KERNEL_QFREEZE_COUNT		0x134
15568c2ecf20Sopenharmony_ci
15578c2ecf20Sopenharmony_ci#define	SAVED_MODE      		0x136
15588c2ecf20Sopenharmony_ci
15598c2ecf20Sopenharmony_ci#define	MSG_OUT         		0x137
15608c2ecf20Sopenharmony_ci
15618c2ecf20Sopenharmony_ci#define	DMAPARAMS       		0x138
15628c2ecf20Sopenharmony_ci#define		PRELOADEN       	0x80
15638c2ecf20Sopenharmony_ci#define		WIDEODD         	0x40
15648c2ecf20Sopenharmony_ci#define		SCSIEN          	0x20
15658c2ecf20Sopenharmony_ci#define		SDMAENACK       	0x10
15668c2ecf20Sopenharmony_ci#define		SDMAEN          	0x10
15678c2ecf20Sopenharmony_ci#define		HDMAEN          	0x08
15688c2ecf20Sopenharmony_ci#define		HDMAENACK       	0x08
15698c2ecf20Sopenharmony_ci#define		DIRECTION       	0x04
15708c2ecf20Sopenharmony_ci#define		FIFOFLUSH       	0x02
15718c2ecf20Sopenharmony_ci#define		FIFORESET       	0x01
15728c2ecf20Sopenharmony_ci
15738c2ecf20Sopenharmony_ci#define	SEQ_FLAGS       		0x139
15748c2ecf20Sopenharmony_ci#define		NOT_IDENTIFIED  	0x80
15758c2ecf20Sopenharmony_ci#define		NO_CDB_SENT     	0x40
15768c2ecf20Sopenharmony_ci#define		TARGET_CMD_IS_TAGGED	0x40
15778c2ecf20Sopenharmony_ci#define		DPHASE          	0x20
15788c2ecf20Sopenharmony_ci#define		TARG_CMD_PENDING	0x10
15798c2ecf20Sopenharmony_ci#define		CMDPHASE_PENDING	0x08
15808c2ecf20Sopenharmony_ci#define		DPHASE_PENDING  	0x04
15818c2ecf20Sopenharmony_ci#define		SPHASE_PENDING  	0x02
15828c2ecf20Sopenharmony_ci#define		NO_DISCONNECT   	0x01
15838c2ecf20Sopenharmony_ci
15848c2ecf20Sopenharmony_ci#define	SAVED_SCSIID    		0x13a
15858c2ecf20Sopenharmony_ci
15868c2ecf20Sopenharmony_ci#define	SAVED_LUN       		0x13b
15878c2ecf20Sopenharmony_ci
15888c2ecf20Sopenharmony_ci#define	LASTPHASE       		0x13c
15898c2ecf20Sopenharmony_ci#define		PHASE_MASK      	0xe0
15908c2ecf20Sopenharmony_ci#define		CDI             	0x80
15918c2ecf20Sopenharmony_ci#define		IOI             	0x40
15928c2ecf20Sopenharmony_ci#define		MSGI            	0x20
15938c2ecf20Sopenharmony_ci#define		P_BUSFREE       	0x01
15948c2ecf20Sopenharmony_ci#define		P_MESGIN        	0xe0
15958c2ecf20Sopenharmony_ci#define		P_STATUS        	0xc0
15968c2ecf20Sopenharmony_ci#define		P_MESGOUT       	0xa0
15978c2ecf20Sopenharmony_ci#define		P_COMMAND       	0x80
15988c2ecf20Sopenharmony_ci#define		P_DATAIN_DT     	0x60
15998c2ecf20Sopenharmony_ci#define		P_DATAIN        	0x40
16008c2ecf20Sopenharmony_ci#define		P_DATAOUT_DT    	0x20
16018c2ecf20Sopenharmony_ci#define		P_DATAOUT       	0x00
16028c2ecf20Sopenharmony_ci
16038c2ecf20Sopenharmony_ci#define	QOUTFIFO_ENTRY_VALID_TAG		0x13d
16048c2ecf20Sopenharmony_ci
16058c2ecf20Sopenharmony_ci#define	KERNEL_TQINPOS  		0x13e
16068c2ecf20Sopenharmony_ci
16078c2ecf20Sopenharmony_ci#define	TQINPOS         		0x13f
16088c2ecf20Sopenharmony_ci
16098c2ecf20Sopenharmony_ci#define	SHARED_DATA_ADDR		0x140
16108c2ecf20Sopenharmony_ci
16118c2ecf20Sopenharmony_ci#define	QOUTFIFO_NEXT_ADDR		0x144
16128c2ecf20Sopenharmony_ci
16138c2ecf20Sopenharmony_ci#define	ARG_1           		0x148
16148c2ecf20Sopenharmony_ci#define	RETURN_1        		0x148
16158c2ecf20Sopenharmony_ci#define		SEND_MSG        	0x80
16168c2ecf20Sopenharmony_ci#define		SEND_SENSE      	0x40
16178c2ecf20Sopenharmony_ci#define		SEND_REJ        	0x20
16188c2ecf20Sopenharmony_ci#define		MSGOUT_PHASEMIS 	0x10
16198c2ecf20Sopenharmony_ci#define		EXIT_MSG_LOOP   	0x08
16208c2ecf20Sopenharmony_ci#define		CONT_MSG_LOOP_WRITE	0x04
16218c2ecf20Sopenharmony_ci#define		CONT_MSG_LOOP_READ	0x03
16228c2ecf20Sopenharmony_ci#define		CONT_MSG_LOOP_TARG	0x02
16238c2ecf20Sopenharmony_ci
16248c2ecf20Sopenharmony_ci#define	ARG_2           		0x149
16258c2ecf20Sopenharmony_ci#define	RETURN_2        		0x149
16268c2ecf20Sopenharmony_ci
16278c2ecf20Sopenharmony_ci#define	LAST_MSG        		0x14a
16288c2ecf20Sopenharmony_ci
16298c2ecf20Sopenharmony_ci#define	SCSISEQ_TEMPLATE		0x14b
16308c2ecf20Sopenharmony_ci#define		MANUALCTL       	0x40
16318c2ecf20Sopenharmony_ci#define		ENSELI          	0x20
16328c2ecf20Sopenharmony_ci#define		ENRSELI         	0x10
16338c2ecf20Sopenharmony_ci#define		MANUALP         	0x0c
16348c2ecf20Sopenharmony_ci#define		ENAUTOATNP      	0x02
16358c2ecf20Sopenharmony_ci#define		ALTSTIM         	0x01
16368c2ecf20Sopenharmony_ci
16378c2ecf20Sopenharmony_ci#define	INITIATOR_TAG   		0x14c
16388c2ecf20Sopenharmony_ci
16398c2ecf20Sopenharmony_ci#define	SEQ_FLAGS2      		0x14d
16408c2ecf20Sopenharmony_ci#define		SELECTOUT_QFROZEN	0x04
16418c2ecf20Sopenharmony_ci#define		TARGET_MSG_PENDING	0x02
16428c2ecf20Sopenharmony_ci#define		PENDING_MK_MESSAGE	0x01
16438c2ecf20Sopenharmony_ci
16448c2ecf20Sopenharmony_ci#define	ALLOCFIFO_SCBPTR		0x14e
16458c2ecf20Sopenharmony_ci
16468c2ecf20Sopenharmony_ci#define	INT_COALESCING_TIMER		0x150
16478c2ecf20Sopenharmony_ci
16488c2ecf20Sopenharmony_ci#define	INT_COALESCING_MAXCMDS		0x152
16498c2ecf20Sopenharmony_ci
16508c2ecf20Sopenharmony_ci#define	INT_COALESCING_MINCMDS		0x153
16518c2ecf20Sopenharmony_ci
16528c2ecf20Sopenharmony_ci#define	CMDS_PENDING    		0x154
16538c2ecf20Sopenharmony_ci
16548c2ecf20Sopenharmony_ci#define	INT_COALESCING_CMDCOUNT		0x156
16558c2ecf20Sopenharmony_ci
16568c2ecf20Sopenharmony_ci#define	LOCAL_HS_MAILBOX		0x157
16578c2ecf20Sopenharmony_ci
16588c2ecf20Sopenharmony_ci#define	CMDSIZE_TABLE   		0x158
16598c2ecf20Sopenharmony_ci
16608c2ecf20Sopenharmony_ci#define	MK_MESSAGE_SCB  		0x160
16618c2ecf20Sopenharmony_ci
16628c2ecf20Sopenharmony_ci#define	MK_MESSAGE_SCSIID		0x162
16638c2ecf20Sopenharmony_ci
16648c2ecf20Sopenharmony_ci#define	SCB_RESIDUAL_DATACNT		0x180
16658c2ecf20Sopenharmony_ci#define	SCB_CDB_STORE   		0x180
16668c2ecf20Sopenharmony_ci#define	SCB_HOST_CDB_PTR		0x180
16678c2ecf20Sopenharmony_ci
16688c2ecf20Sopenharmony_ci#define	SCB_BASE        		0x180
16698c2ecf20Sopenharmony_ci
16708c2ecf20Sopenharmony_ci#define	SCB_RESIDUAL_SGPTR		0x184
16718c2ecf20Sopenharmony_ci#define		SG_ADDR_MASK    	0xf8
16728c2ecf20Sopenharmony_ci#define		SG_OVERRUN_RESID	0x02
16738c2ecf20Sopenharmony_ci
16748c2ecf20Sopenharmony_ci#define	SCB_SCSI_STATUS 		0x188
16758c2ecf20Sopenharmony_ci#define	SCB_HOST_CDB_LEN		0x188
16768c2ecf20Sopenharmony_ci
16778c2ecf20Sopenharmony_ci#define	SCB_TARGET_PHASES		0x189
16788c2ecf20Sopenharmony_ci
16798c2ecf20Sopenharmony_ci#define	SCB_TARGET_DATA_DIR		0x18a
16808c2ecf20Sopenharmony_ci
16818c2ecf20Sopenharmony_ci#define	SCB_TARGET_ITAG 		0x18b
16828c2ecf20Sopenharmony_ci
16838c2ecf20Sopenharmony_ci#define	SCB_SENSE_BUSADDR		0x18c
16848c2ecf20Sopenharmony_ci#define	SCB_NEXT_COMPLETE		0x18c
16858c2ecf20Sopenharmony_ci
16868c2ecf20Sopenharmony_ci#define	SCB_TAG         		0x190
16878c2ecf20Sopenharmony_ci#define	SCB_FIFO_USE_COUNT		0x190
16888c2ecf20Sopenharmony_ci
16898c2ecf20Sopenharmony_ci#define	SCB_CONTROL     		0x192
16908c2ecf20Sopenharmony_ci#define		TARGET_SCB      	0x80
16918c2ecf20Sopenharmony_ci#define		DISCENB         	0x40
16928c2ecf20Sopenharmony_ci#define		TAG_ENB         	0x20
16938c2ecf20Sopenharmony_ci#define		MK_MESSAGE      	0x10
16948c2ecf20Sopenharmony_ci#define		STATUS_RCVD     	0x08
16958c2ecf20Sopenharmony_ci#define		DISCONNECTED    	0x04
16968c2ecf20Sopenharmony_ci#define		SCB_TAG_TYPE    	0x03
16978c2ecf20Sopenharmony_ci
16988c2ecf20Sopenharmony_ci#define	SCB_SCSIID      		0x193
16998c2ecf20Sopenharmony_ci#define		TID             	0xf0
17008c2ecf20Sopenharmony_ci#define		OID             	0x0f
17018c2ecf20Sopenharmony_ci
17028c2ecf20Sopenharmony_ci#define	SCB_LUN         		0x194
17038c2ecf20Sopenharmony_ci#define		LID             	0xff
17048c2ecf20Sopenharmony_ci
17058c2ecf20Sopenharmony_ci#define	SCB_TASK_ATTRIBUTE		0x195
17068c2ecf20Sopenharmony_ci#define		SCB_XFERLEN_ODD 	0x01
17078c2ecf20Sopenharmony_ci
17088c2ecf20Sopenharmony_ci#define	SCB_CDB_LEN     		0x196
17098c2ecf20Sopenharmony_ci#define		SCB_CDB_LEN_PTR 	0x80
17108c2ecf20Sopenharmony_ci
17118c2ecf20Sopenharmony_ci#define	SCB_TASK_MANAGEMENT		0x197
17128c2ecf20Sopenharmony_ci
17138c2ecf20Sopenharmony_ci#define	SCB_DATAPTR     		0x198
17148c2ecf20Sopenharmony_ci
17158c2ecf20Sopenharmony_ci#define	SCB_DATACNT     		0x1a0
17168c2ecf20Sopenharmony_ci#define		SG_LAST_SEG     	0x80
17178c2ecf20Sopenharmony_ci#define		SG_HIGH_ADDR_BITS	0x7f
17188c2ecf20Sopenharmony_ci
17198c2ecf20Sopenharmony_ci#define	SCB_SGPTR       		0x1a4
17208c2ecf20Sopenharmony_ci#define		SG_STATUS_VALID 	0x04
17218c2ecf20Sopenharmony_ci#define		SG_FULL_RESID   	0x02
17228c2ecf20Sopenharmony_ci#define		SG_LIST_NULL    	0x01
17238c2ecf20Sopenharmony_ci
17248c2ecf20Sopenharmony_ci#define	SCB_BUSADDR     		0x1a8
17258c2ecf20Sopenharmony_ci
17268c2ecf20Sopenharmony_ci#define	SCB_NEXT        		0x1ac
17278c2ecf20Sopenharmony_ci#define	SCB_NEXT_SCB_BUSADDR		0x1ac
17288c2ecf20Sopenharmony_ci
17298c2ecf20Sopenharmony_ci#define	SCB_NEXT2       		0x1ae
17308c2ecf20Sopenharmony_ci
17318c2ecf20Sopenharmony_ci#define	SCB_SPARE       		0x1b0
17328c2ecf20Sopenharmony_ci#define	SCB_PKT_LUN     		0x1b0
17338c2ecf20Sopenharmony_ci
17348c2ecf20Sopenharmony_ci#define	SCB_DISCONNECTED_LISTS		0x1b8
17358c2ecf20Sopenharmony_ci
17368c2ecf20Sopenharmony_ci
17378c2ecf20Sopenharmony_ci#define	STIMESEL_SHIFT	0x03
17388c2ecf20Sopenharmony_ci#define	STIMESEL_MIN	0x18
17398c2ecf20Sopenharmony_ci#define	INVALID_ADDR	0x80
17408c2ecf20Sopenharmony_ci#define	CMD_GROUP_CODE_SHIFT	0x05
17418c2ecf20Sopenharmony_ci#define	AHD_PRECOMP_MASK	0x07
17428c2ecf20Sopenharmony_ci#define	TARGET_DATA_IN	0x01
17438c2ecf20Sopenharmony_ci#define	SEEOP_EWEN_ADDR	0xc0
17448c2ecf20Sopenharmony_ci#define	NUMDSPS 	0x14
17458c2ecf20Sopenharmony_ci#define	DST_MODE_SHIFT	0x04
17468c2ecf20Sopenharmony_ci#define	CCSCBADDR_MAX	0x80
17478c2ecf20Sopenharmony_ci#define	AHD_ANNEXCOL_PER_DEV0	0x04
17488c2ecf20Sopenharmony_ci#define	TARGET_CMD_CMPLT	0xfe
17498c2ecf20Sopenharmony_ci#define	SEEOP_WRAL_ADDR	0x40
17508c2ecf20Sopenharmony_ci#define	BUS_8_BIT	0x00
17518c2ecf20Sopenharmony_ci#define	AHD_TIMER_MAX_US	0x18ffe7
17528c2ecf20Sopenharmony_ci#define	AHD_TIMER_MAX_TICKS	0xffff
17538c2ecf20Sopenharmony_ci#define	AHD_SENSE_BUFSIZE	0x100
17548c2ecf20Sopenharmony_ci#define	AHD_PRECOMP_SHIFT	0x00
17558c2ecf20Sopenharmony_ci#define	AHD_PRECOMP_CUTBACK_37	0x07
17568c2ecf20Sopenharmony_ci#define	AHD_ANNEXCOL_PRECOMP_SLEW	0x04
17578c2ecf20Sopenharmony_ci#define	AHD_AMPLITUDE_DEF	0x07
17588c2ecf20Sopenharmony_ci#define	WRTBIASCTL_HP_DEFAULT	0x00
17598c2ecf20Sopenharmony_ci#define	TID_SHIFT	0x04
17608c2ecf20Sopenharmony_ci#define	STATUS_QUEUE_FULL	0x28
17618c2ecf20Sopenharmony_ci#define	STATUS_BUSY	0x08
17628c2ecf20Sopenharmony_ci#define	SEEOP_EWDS_ADDR	0x00
17638c2ecf20Sopenharmony_ci#define	SCB_TRANSFER_SIZE_FULL_LUN	0x38
17648c2ecf20Sopenharmony_ci#define	MK_MESSAGE_BIT_OFFSET	0x04
17658c2ecf20Sopenharmony_ci#define	MAX_OFFSET_PACED	0xfe
17668c2ecf20Sopenharmony_ci#define	MAX_OFFSET_NON_PACED	0x7f
17678c2ecf20Sopenharmony_ci#define	LUNLEN_SINGLE_LEVEL_LUN	0x0f
17688c2ecf20Sopenharmony_ci#define	CCSGADDR_MAX	0x80
17698c2ecf20Sopenharmony_ci#define	B_CURRFIFO_0	0x02
17708c2ecf20Sopenharmony_ci#define	BUS_32_BIT	0x02
17718c2ecf20Sopenharmony_ci#define	AHD_TIMER_US_PER_TICK	0x19
17728c2ecf20Sopenharmony_ci#define	AHD_SLEWRATE_SHIFT	0x03
17738c2ecf20Sopenharmony_ci#define	AHD_SLEWRATE_MASK	0x78
17748c2ecf20Sopenharmony_ci#define	AHD_SLEWRATE_DEF_REVA	0x08
17758c2ecf20Sopenharmony_ci#define	AHD_PRECOMP_CUTBACK_29	0x06
17768c2ecf20Sopenharmony_ci#define	AHD_NUM_PER_DEV_ANNEXCOLS	0x04
17778c2ecf20Sopenharmony_ci#define	AHD_ANNEXCOL_AMPLITUDE	0x06
17788c2ecf20Sopenharmony_ci#define	AHD_AMPLITUDE_SHIFT	0x00
17798c2ecf20Sopenharmony_ci#define	AHD_AMPLITUDE_MASK	0x07
17808c2ecf20Sopenharmony_ci#define	STIMESEL_BUG_ADJ	0x08
17818c2ecf20Sopenharmony_ci#define	STATUS_PKT_SENSE	0xff
17828c2ecf20Sopenharmony_ci#define	SRC_MODE_SHIFT	0x00
17838c2ecf20Sopenharmony_ci#define	SEEOP_ERAL_ADDR	0x80
17848c2ecf20Sopenharmony_ci#define	NVRAM_SCB_OFFSET	0x2c
17858c2ecf20Sopenharmony_ci#define	MAX_OFFSET_PACED_BUG	0x7f
17868c2ecf20Sopenharmony_ci#define	CCSGRAM_MAXSEGS	0x10
17878c2ecf20Sopenharmony_ci#define	AHD_SLEWRATE_DEF_REVB	0x08
17888c2ecf20Sopenharmony_ci#define	AHD_PRECOMP_CUTBACK_17	0x04
17898c2ecf20Sopenharmony_ci#define	SCB_TRANSFER_SIZE_1BYTE_LUN	0x30
17908c2ecf20Sopenharmony_ci#define	PKT_OVERRUN_BUFSIZE	0x200
17918c2ecf20Sopenharmony_ci#define	MAX_OFFSET	0xfe
17928c2ecf20Sopenharmony_ci#define	HOST_MSG	0xff
17938c2ecf20Sopenharmony_ci#define	BUS_16_BIT	0x01
17948c2ecf20Sopenharmony_ci
17958c2ecf20Sopenharmony_ci
17968c2ecf20Sopenharmony_ci/* Downloaded Constant Definitions */
17978c2ecf20Sopenharmony_ci#define	SG_SIZEOF	0x04
17988c2ecf20Sopenharmony_ci#define	SG_PREFETCH_ALIGN_MASK	0x02
17998c2ecf20Sopenharmony_ci#define	SG_PREFETCH_CNT_LIMIT	0x01
18008c2ecf20Sopenharmony_ci#define	CACHELINE_MASK	0x07
18018c2ecf20Sopenharmony_ci#define	SCB_TRANSFER_SIZE	0x06
18028c2ecf20Sopenharmony_ci#define	PKT_OVERRUN_BUFOFFSET	0x05
18038c2ecf20Sopenharmony_ci#define	SG_PREFETCH_ADDR_MASK	0x03
18048c2ecf20Sopenharmony_ci#define	SG_PREFETCH_CNT	0x00
18058c2ecf20Sopenharmony_ci#define	DOWNLOAD_CONST_COUNT	0x08
18068c2ecf20Sopenharmony_ci
18078c2ecf20Sopenharmony_ci
18088c2ecf20Sopenharmony_ci/* Exported Labels */
18098c2ecf20Sopenharmony_ci#define	LABEL_timer_isr	0x28b
18108c2ecf20Sopenharmony_ci#define	LABEL_seq_isr 	0x28f
1811