1*50b464aaSScott Long /* 2*50b464aaSScott Long * DO NOT EDIT - This file is automatically generated 3*50b464aaSScott Long * from the following source files: 4*50b464aaSScott Long * 5*50b464aaSScott Long * $Id: //depot/aic7xxx/aic7xxx/aic7xxx.seq#58 $ 6*50b464aaSScott Long * $Id: //depot/aic7xxx/aic7xxx/aic7xxx.reg#40 $ 7*50b464aaSScott Long */ 8*50b464aaSScott Long 9*50b464aaSScott Long #include <dev/aic7xxx/aic7xxx_osm.h> 10*50b464aaSScott Long 11*50b464aaSScott Long static ahc_reg_parse_entry_t SCSISEQ_parse_table[] = { 12*50b464aaSScott Long { "SCSIRSTO", 0x01, 0x01 }, 13*50b464aaSScott Long { "ENAUTOATNP", 0x02, 0x02 }, 14*50b464aaSScott Long { "ENAUTOATNI", 0x04, 0x04 }, 15*50b464aaSScott Long { "ENAUTOATNO", 0x08, 0x08 }, 16*50b464aaSScott Long { "ENRSELI", 0x10, 0x10 }, 17*50b464aaSScott Long { "ENSELI", 0x20, 0x20 }, 18*50b464aaSScott Long { "ENSELO", 0x40, 0x40 }, 19*50b464aaSScott Long { "TEMODE", 0x80, 0x80 } 20*50b464aaSScott Long }; 21*50b464aaSScott Long 22*50b464aaSScott Long int 23*50b464aaSScott Long ahc_scsiseq_print(u_int regvalue, u_int *cur_col, u_int wrap) 24*50b464aaSScott Long { 25*50b464aaSScott Long return (ahc_print_register(SCSISEQ_parse_table, 8, "SCSISEQ", 26*50b464aaSScott Long 0x00, regvalue, cur_col, wrap)); 27*50b464aaSScott Long } 28*50b464aaSScott Long 29*50b464aaSScott Long static ahc_reg_parse_entry_t SXFRCTL0_parse_table[] = { 30*50b464aaSScott Long { "CLRCHN", 0x02, 0x02 }, 31*50b464aaSScott Long { "SCAMEN", 0x04, 0x04 }, 32*50b464aaSScott Long { "SPIOEN", 0x08, 0x08 }, 33*50b464aaSScott Long { "CLRSTCNT", 0x10, 0x10 }, 34*50b464aaSScott Long { "FAST20", 0x20, 0x20 }, 35*50b464aaSScott Long { "DFPEXP", 0x40, 0x40 }, 36*50b464aaSScott Long { "DFON", 0x80, 0x80 } 37*50b464aaSScott Long }; 38*50b464aaSScott Long 39*50b464aaSScott Long int 40*50b464aaSScott Long ahc_sxfrctl0_print(u_int regvalue, u_int *cur_col, u_int wrap) 41*50b464aaSScott Long { 42*50b464aaSScott Long return (ahc_print_register(SXFRCTL0_parse_table, 7, "SXFRCTL0", 43*50b464aaSScott Long 0x01, regvalue, cur_col, wrap)); 44*50b464aaSScott Long } 45*50b464aaSScott Long 46*50b464aaSScott Long static ahc_reg_parse_entry_t SXFRCTL1_parse_table[] = { 47*50b464aaSScott Long { "STPWEN", 0x01, 0x01 }, 48*50b464aaSScott Long { "ACTNEGEN", 0x02, 0x02 }, 49*50b464aaSScott Long { "ENSTIMER", 0x04, 0x04 }, 50*50b464aaSScott Long { "ENSPCHK", 0x20, 0x20 }, 51*50b464aaSScott Long { "SWRAPEN", 0x40, 0x40 }, 52*50b464aaSScott Long { "BITBUCKET", 0x80, 0x80 }, 53*50b464aaSScott Long { "STIMESEL", 0x18, 0x18 } 54*50b464aaSScott Long }; 55*50b464aaSScott Long 56*50b464aaSScott Long int 57*50b464aaSScott Long ahc_sxfrctl1_print(u_int regvalue, u_int *cur_col, u_int wrap) 58*50b464aaSScott Long { 59*50b464aaSScott Long return (ahc_print_register(SXFRCTL1_parse_table, 7, "SXFRCTL1", 60*50b464aaSScott Long 0x02, regvalue, cur_col, wrap)); 61*50b464aaSScott Long } 62*50b464aaSScott Long 63*50b464aaSScott Long static ahc_reg_parse_entry_t SCSISIGI_parse_table[] = { 64*50b464aaSScott Long { "ACKI", 0x01, 0x01 }, 65*50b464aaSScott Long { "REQI", 0x02, 0x02 }, 66*50b464aaSScott Long { "BSYI", 0x04, 0x04 }, 67*50b464aaSScott Long { "SELI", 0x08, 0x08 }, 68*50b464aaSScott Long { "ATNI", 0x10, 0x10 }, 69*50b464aaSScott Long { "MSGI", 0x20, 0x20 }, 70*50b464aaSScott Long { "IOI", 0x40, 0x40 }, 71*50b464aaSScott Long { "CDI", 0x80, 0x80 }, 72*50b464aaSScott Long { "P_DATAOUT", 0x00, 0x00 }, 73*50b464aaSScott Long { "P_DATAOUT_DT", 0x20, 0x20 }, 74*50b464aaSScott Long { "P_DATAIN", 0x40, 0x40 }, 75*50b464aaSScott Long { "P_DATAIN_DT", 0x60, 0x60 }, 76*50b464aaSScott Long { "P_COMMAND", 0x80, 0x80 }, 77*50b464aaSScott Long { "P_MESGOUT", 0xa0, 0xa0 }, 78*50b464aaSScott Long { "P_STATUS", 0xc0, 0xc0 }, 79*50b464aaSScott Long { "PHASE_MASK", 0xe0, 0xe0 }, 80*50b464aaSScott Long { "P_MESGIN", 0xe0, 0xe0 } 81*50b464aaSScott Long }; 82*50b464aaSScott Long 83*50b464aaSScott Long int 84*50b464aaSScott Long ahc_scsisigi_print(u_int regvalue, u_int *cur_col, u_int wrap) 85*50b464aaSScott Long { 86*50b464aaSScott Long return (ahc_print_register(SCSISIGI_parse_table, 17, "SCSISIGI", 87*50b464aaSScott Long 0x03, regvalue, cur_col, wrap)); 88*50b464aaSScott Long } 89*50b464aaSScott Long 90*50b464aaSScott Long static ahc_reg_parse_entry_t SCSISIGO_parse_table[] = { 91*50b464aaSScott Long { "ACKO", 0x01, 0x01 }, 92*50b464aaSScott Long { "REQO", 0x02, 0x02 }, 93*50b464aaSScott Long { "BSYO", 0x04, 0x04 }, 94*50b464aaSScott Long { "SELO", 0x08, 0x08 }, 95*50b464aaSScott Long { "ATNO", 0x10, 0x10 }, 96*50b464aaSScott Long { "MSGO", 0x20, 0x20 }, 97*50b464aaSScott Long { "IOO", 0x40, 0x40 }, 98*50b464aaSScott Long { "CDO", 0x80, 0x80 }, 99*50b464aaSScott Long { "P_DATAOUT", 0x00, 0x00 }, 100*50b464aaSScott Long { "P_DATAIN", 0x40, 0x40 }, 101*50b464aaSScott Long { "P_COMMAND", 0x80, 0x80 }, 102*50b464aaSScott Long { "P_MESGOUT", 0xa0, 0xa0 }, 103*50b464aaSScott Long { "P_STATUS", 0xc0, 0xc0 }, 104*50b464aaSScott Long { "PHASE_MASK", 0xe0, 0xe0 }, 105*50b464aaSScott Long { "P_MESGIN", 0xe0, 0xe0 } 106*50b464aaSScott Long }; 107*50b464aaSScott Long 108*50b464aaSScott Long int 109*50b464aaSScott Long ahc_scsisigo_print(u_int regvalue, u_int *cur_col, u_int wrap) 110*50b464aaSScott Long { 111*50b464aaSScott Long return (ahc_print_register(SCSISIGO_parse_table, 15, "SCSISIGO", 112*50b464aaSScott Long 0x03, regvalue, cur_col, wrap)); 113*50b464aaSScott Long } 114*50b464aaSScott Long 115*50b464aaSScott Long static ahc_reg_parse_entry_t SCSIRATE_parse_table[] = { 116*50b464aaSScott Long { "SINGLE_EDGE", 0x10, 0x10 }, 117*50b464aaSScott Long { "ENABLE_CRC", 0x40, 0x40 }, 118*50b464aaSScott Long { "WIDEXFER", 0x80, 0x80 }, 119*50b464aaSScott Long { "SXFR_ULTRA2", 0x0f, 0x0f }, 120*50b464aaSScott Long { "SOFS", 0x0f, 0x0f }, 121*50b464aaSScott Long { "SXFR", 0x70, 0x70 } 122*50b464aaSScott Long }; 123*50b464aaSScott Long 124*50b464aaSScott Long int 125*50b464aaSScott Long ahc_scsirate_print(u_int regvalue, u_int *cur_col, u_int wrap) 126*50b464aaSScott Long { 127*50b464aaSScott Long return (ahc_print_register(SCSIRATE_parse_table, 6, "SCSIRATE", 128*50b464aaSScott Long 0x04, regvalue, cur_col, wrap)); 129*50b464aaSScott Long } 130*50b464aaSScott Long 131*50b464aaSScott Long static ahc_reg_parse_entry_t SCSIID_parse_table[] = { 132*50b464aaSScott Long { "TWIN_CHNLB", 0x80, 0x80 }, 133*50b464aaSScott Long { "OID", 0x0f, 0x0f }, 134*50b464aaSScott Long { "TWIN_TID", 0x70, 0x70 }, 135*50b464aaSScott Long { "SOFS_ULTRA2", 0x7f, 0x7f }, 136*50b464aaSScott Long { "TID", 0xf0, 0xf0 } 137*50b464aaSScott Long }; 138*50b464aaSScott Long 139*50b464aaSScott Long int 140*50b464aaSScott Long ahc_scsiid_print(u_int regvalue, u_int *cur_col, u_int wrap) 141*50b464aaSScott Long { 142*50b464aaSScott Long return (ahc_print_register(SCSIID_parse_table, 5, "SCSIID", 143*50b464aaSScott Long 0x05, regvalue, cur_col, wrap)); 144*50b464aaSScott Long } 145*50b464aaSScott Long 146*50b464aaSScott Long int 147*50b464aaSScott Long ahc_scsidatl_print(u_int regvalue, u_int *cur_col, u_int wrap) 148*50b464aaSScott Long { 149*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SCSIDATL", 150*50b464aaSScott Long 0x06, regvalue, cur_col, wrap)); 151*50b464aaSScott Long } 152*50b464aaSScott Long 153*50b464aaSScott Long int 154*50b464aaSScott Long ahc_scsidath_print(u_int regvalue, u_int *cur_col, u_int wrap) 155*50b464aaSScott Long { 156*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SCSIDATH", 157*50b464aaSScott Long 0x07, regvalue, cur_col, wrap)); 158*50b464aaSScott Long } 159*50b464aaSScott Long 160*50b464aaSScott Long static ahc_reg_parse_entry_t OPTIONMODE_parse_table[] = { 161*50b464aaSScott Long { "DIS_MSGIN_DUALEDGE", 0x01, 0x01 }, 162*50b464aaSScott Long { "AUTO_MSGOUT_DE", 0x02, 0x02 }, 163*50b464aaSScott Long { "SCSIDATL_IMGEN", 0x04, 0x04 }, 164*50b464aaSScott Long { "EXPPHASEDIS", 0x08, 0x08 }, 165*50b464aaSScott Long { "BUSFREEREV", 0x10, 0x10 }, 166*50b464aaSScott Long { "ATNMGMNTEN", 0x20, 0x20 }, 167*50b464aaSScott Long { "AUTOACKEN", 0x40, 0x40 }, 168*50b464aaSScott Long { "AUTORATEEN", 0x80, 0x80 }, 169*50b464aaSScott Long { "OPTIONMODE_DEFAULTS",0x03, 0x03 } 170*50b464aaSScott Long }; 171*50b464aaSScott Long 172*50b464aaSScott Long int 173*50b464aaSScott Long ahc_optionmode_print(u_int regvalue, u_int *cur_col, u_int wrap) 174*50b464aaSScott Long { 175*50b464aaSScott Long return (ahc_print_register(OPTIONMODE_parse_table, 9, "OPTIONMODE", 176*50b464aaSScott Long 0x08, regvalue, cur_col, wrap)); 177*50b464aaSScott Long } 178*50b464aaSScott Long 179*50b464aaSScott Long int 180*50b464aaSScott Long ahc_stcnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 181*50b464aaSScott Long { 182*50b464aaSScott Long return (ahc_print_register(NULL, 0, "STCNT", 183*50b464aaSScott Long 0x08, regvalue, cur_col, wrap)); 184*50b464aaSScott Long } 185*50b464aaSScott Long 186*50b464aaSScott Long int 187*50b464aaSScott Long ahc_targcrccnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 188*50b464aaSScott Long { 189*50b464aaSScott Long return (ahc_print_register(NULL, 0, "TARGCRCCNT", 190*50b464aaSScott Long 0x0a, regvalue, cur_col, wrap)); 191*50b464aaSScott Long } 192*50b464aaSScott Long 193*50b464aaSScott Long static ahc_reg_parse_entry_t CLRSINT0_parse_table[] = { 194*50b464aaSScott Long { "CLRSPIORDY", 0x02, 0x02 }, 195*50b464aaSScott Long { "CLRSWRAP", 0x08, 0x08 }, 196*50b464aaSScott Long { "CLRIOERR", 0x08, 0x08 }, 197*50b464aaSScott Long { "CLRSELINGO", 0x10, 0x10 }, 198*50b464aaSScott Long { "CLRSELDI", 0x20, 0x20 }, 199*50b464aaSScott Long { "CLRSELDO", 0x40, 0x40 } 200*50b464aaSScott Long }; 201*50b464aaSScott Long 202*50b464aaSScott Long int 203*50b464aaSScott Long ahc_clrsint0_print(u_int regvalue, u_int *cur_col, u_int wrap) 204*50b464aaSScott Long { 205*50b464aaSScott Long return (ahc_print_register(CLRSINT0_parse_table, 6, "CLRSINT0", 206*50b464aaSScott Long 0x0b, regvalue, cur_col, wrap)); 207*50b464aaSScott Long } 208*50b464aaSScott Long 209*50b464aaSScott Long static ahc_reg_parse_entry_t SSTAT0_parse_table[] = { 210*50b464aaSScott Long { "DMADONE", 0x01, 0x01 }, 211*50b464aaSScott Long { "SPIORDY", 0x02, 0x02 }, 212*50b464aaSScott Long { "SDONE", 0x04, 0x04 }, 213*50b464aaSScott Long { "SWRAP", 0x08, 0x08 }, 214*50b464aaSScott Long { "IOERR", 0x08, 0x08 }, 215*50b464aaSScott Long { "SELINGO", 0x10, 0x10 }, 216*50b464aaSScott Long { "SELDI", 0x20, 0x20 }, 217*50b464aaSScott Long { "SELDO", 0x40, 0x40 }, 218*50b464aaSScott Long { "TARGET", 0x80, 0x80 } 219*50b464aaSScott Long }; 220*50b464aaSScott Long 221*50b464aaSScott Long int 222*50b464aaSScott Long ahc_sstat0_print(u_int regvalue, u_int *cur_col, u_int wrap) 223*50b464aaSScott Long { 224*50b464aaSScott Long return (ahc_print_register(SSTAT0_parse_table, 9, "SSTAT0", 225*50b464aaSScott Long 0x0b, regvalue, cur_col, wrap)); 226*50b464aaSScott Long } 227*50b464aaSScott Long 228*50b464aaSScott Long static ahc_reg_parse_entry_t CLRSINT1_parse_table[] = { 229*50b464aaSScott Long { "CLRREQINIT", 0x01, 0x01 }, 230*50b464aaSScott Long { "CLRPHASECHG", 0x02, 0x02 }, 231*50b464aaSScott Long { "CLRSCSIPERR", 0x04, 0x04 }, 232*50b464aaSScott Long { "CLRBUSFREE", 0x08, 0x08 }, 233*50b464aaSScott Long { "CLRSCSIRSTI", 0x20, 0x20 }, 234*50b464aaSScott Long { "CLRATNO", 0x40, 0x40 }, 235*50b464aaSScott Long { "CLRSELTIMEO", 0x80, 0x80 } 236*50b464aaSScott Long }; 237*50b464aaSScott Long 238*50b464aaSScott Long int 239*50b464aaSScott Long ahc_clrsint1_print(u_int regvalue, u_int *cur_col, u_int wrap) 240*50b464aaSScott Long { 241*50b464aaSScott Long return (ahc_print_register(CLRSINT1_parse_table, 7, "CLRSINT1", 242*50b464aaSScott Long 0x0c, regvalue, cur_col, wrap)); 243*50b464aaSScott Long } 244*50b464aaSScott Long 245*50b464aaSScott Long static ahc_reg_parse_entry_t SSTAT1_parse_table[] = { 246*50b464aaSScott Long { "REQINIT", 0x01, 0x01 }, 247*50b464aaSScott Long { "PHASECHG", 0x02, 0x02 }, 248*50b464aaSScott Long { "SCSIPERR", 0x04, 0x04 }, 249*50b464aaSScott Long { "BUSFREE", 0x08, 0x08 }, 250*50b464aaSScott Long { "PHASEMIS", 0x10, 0x10 }, 251*50b464aaSScott Long { "SCSIRSTI", 0x20, 0x20 }, 252*50b464aaSScott Long { "ATNTARG", 0x40, 0x40 }, 253*50b464aaSScott Long { "SELTO", 0x80, 0x80 } 254*50b464aaSScott Long }; 255*50b464aaSScott Long 256*50b464aaSScott Long int 257*50b464aaSScott Long ahc_sstat1_print(u_int regvalue, u_int *cur_col, u_int wrap) 258*50b464aaSScott Long { 259*50b464aaSScott Long return (ahc_print_register(SSTAT1_parse_table, 8, "SSTAT1", 260*50b464aaSScott Long 0x0c, regvalue, cur_col, wrap)); 261*50b464aaSScott Long } 262*50b464aaSScott Long 263*50b464aaSScott Long static ahc_reg_parse_entry_t SSTAT2_parse_table[] = { 264*50b464aaSScott Long { "DUAL_EDGE_ERR", 0x01, 0x01 }, 265*50b464aaSScott Long { "CRCREQERR", 0x02, 0x02 }, 266*50b464aaSScott Long { "CRCENDERR", 0x04, 0x04 }, 267*50b464aaSScott Long { "CRCVALERR", 0x08, 0x08 }, 268*50b464aaSScott Long { "EXP_ACTIVE", 0x10, 0x10 }, 269*50b464aaSScott Long { "SHVALID", 0x40, 0x40 }, 270*50b464aaSScott Long { "OVERRUN", 0x80, 0x80 }, 271*50b464aaSScott Long { "SFCNT", 0x1f, 0x1f } 272*50b464aaSScott Long }; 273*50b464aaSScott Long 274*50b464aaSScott Long int 275*50b464aaSScott Long ahc_sstat2_print(u_int regvalue, u_int *cur_col, u_int wrap) 276*50b464aaSScott Long { 277*50b464aaSScott Long return (ahc_print_register(SSTAT2_parse_table, 8, "SSTAT2", 278*50b464aaSScott Long 0x0d, regvalue, cur_col, wrap)); 279*50b464aaSScott Long } 280*50b464aaSScott Long 281*50b464aaSScott Long static ahc_reg_parse_entry_t SSTAT3_parse_table[] = { 282*50b464aaSScott Long { "OFFCNT", 0x0f, 0x0f }, 283*50b464aaSScott Long { "U2OFFCNT", 0x7f, 0x7f }, 284*50b464aaSScott Long { "SCSICNT", 0xf0, 0xf0 } 285*50b464aaSScott Long }; 286*50b464aaSScott Long 287*50b464aaSScott Long int 288*50b464aaSScott Long ahc_sstat3_print(u_int regvalue, u_int *cur_col, u_int wrap) 289*50b464aaSScott Long { 290*50b464aaSScott Long return (ahc_print_register(SSTAT3_parse_table, 3, "SSTAT3", 291*50b464aaSScott Long 0x0e, regvalue, cur_col, wrap)); 292*50b464aaSScott Long } 293*50b464aaSScott Long 294*50b464aaSScott Long static ahc_reg_parse_entry_t SCSIID_ULTRA2_parse_table[] = { 295*50b464aaSScott Long { "OID", 0x0f, 0x0f }, 296*50b464aaSScott Long { "TID", 0xf0, 0xf0 } 297*50b464aaSScott Long }; 298*50b464aaSScott Long 299*50b464aaSScott Long int 300*50b464aaSScott Long ahc_scsiid_ultra2_print(u_int regvalue, u_int *cur_col, u_int wrap) 301*50b464aaSScott Long { 302*50b464aaSScott Long return (ahc_print_register(SCSIID_ULTRA2_parse_table, 2, "SCSIID_ULTRA2", 303*50b464aaSScott Long 0x0f, regvalue, cur_col, wrap)); 304*50b464aaSScott Long } 305*50b464aaSScott Long 306*50b464aaSScott Long static ahc_reg_parse_entry_t SIMODE0_parse_table[] = { 307*50b464aaSScott Long { "ENDMADONE", 0x01, 0x01 }, 308*50b464aaSScott Long { "ENSPIORDY", 0x02, 0x02 }, 309*50b464aaSScott Long { "ENSDONE", 0x04, 0x04 }, 310*50b464aaSScott Long { "ENSWRAP", 0x08, 0x08 }, 311*50b464aaSScott Long { "ENIOERR", 0x08, 0x08 }, 312*50b464aaSScott Long { "ENSELINGO", 0x10, 0x10 }, 313*50b464aaSScott Long { "ENSELDI", 0x20, 0x20 }, 314*50b464aaSScott Long { "ENSELDO", 0x40, 0x40 } 315*50b464aaSScott Long }; 316*50b464aaSScott Long 317*50b464aaSScott Long int 318*50b464aaSScott Long ahc_simode0_print(u_int regvalue, u_int *cur_col, u_int wrap) 319*50b464aaSScott Long { 320*50b464aaSScott Long return (ahc_print_register(SIMODE0_parse_table, 8, "SIMODE0", 321*50b464aaSScott Long 0x10, regvalue, cur_col, wrap)); 322*50b464aaSScott Long } 323*50b464aaSScott Long 324*50b464aaSScott Long static ahc_reg_parse_entry_t SIMODE1_parse_table[] = { 325*50b464aaSScott Long { "ENREQINIT", 0x01, 0x01 }, 326*50b464aaSScott Long { "ENPHASECHG", 0x02, 0x02 }, 327*50b464aaSScott Long { "ENSCSIPERR", 0x04, 0x04 }, 328*50b464aaSScott Long { "ENBUSFREE", 0x08, 0x08 }, 329*50b464aaSScott Long { "ENPHASEMIS", 0x10, 0x10 }, 330*50b464aaSScott Long { "ENSCSIRST", 0x20, 0x20 }, 331*50b464aaSScott Long { "ENATNTARG", 0x40, 0x40 }, 332*50b464aaSScott Long { "ENSELTIMO", 0x80, 0x80 } 333*50b464aaSScott Long }; 334*50b464aaSScott Long 335*50b464aaSScott Long int 336*50b464aaSScott Long ahc_simode1_print(u_int regvalue, u_int *cur_col, u_int wrap) 337*50b464aaSScott Long { 338*50b464aaSScott Long return (ahc_print_register(SIMODE1_parse_table, 8, "SIMODE1", 339*50b464aaSScott Long 0x11, regvalue, cur_col, wrap)); 340*50b464aaSScott Long } 341*50b464aaSScott Long 342*50b464aaSScott Long int 343*50b464aaSScott Long ahc_scsibusl_print(u_int regvalue, u_int *cur_col, u_int wrap) 344*50b464aaSScott Long { 345*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SCSIBUSL", 346*50b464aaSScott Long 0x12, regvalue, cur_col, wrap)); 347*50b464aaSScott Long } 348*50b464aaSScott Long 349*50b464aaSScott Long static ahc_reg_parse_entry_t SXFRCTL2_parse_table[] = { 350*50b464aaSScott Long { "CMDDMAEN", 0x08, 0x08 }, 351*50b464aaSScott Long { "AUTORSTDIS", 0x10, 0x10 }, 352*50b464aaSScott Long { "ASYNC_SETUP", 0x07, 0x07 } 353*50b464aaSScott Long }; 354*50b464aaSScott Long 355*50b464aaSScott Long int 356*50b464aaSScott Long ahc_sxfrctl2_print(u_int regvalue, u_int *cur_col, u_int wrap) 357*50b464aaSScott Long { 358*50b464aaSScott Long return (ahc_print_register(SXFRCTL2_parse_table, 3, "SXFRCTL2", 359*50b464aaSScott Long 0x13, regvalue, cur_col, wrap)); 360*50b464aaSScott Long } 361*50b464aaSScott Long 362*50b464aaSScott Long int 363*50b464aaSScott Long ahc_scsibush_print(u_int regvalue, u_int *cur_col, u_int wrap) 364*50b464aaSScott Long { 365*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SCSIBUSH", 366*50b464aaSScott Long 0x13, regvalue, cur_col, wrap)); 367*50b464aaSScott Long } 368*50b464aaSScott Long 369*50b464aaSScott Long int 370*50b464aaSScott Long ahc_shaddr_print(u_int regvalue, u_int *cur_col, u_int wrap) 371*50b464aaSScott Long { 372*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SHADDR", 373*50b464aaSScott Long 0x14, regvalue, cur_col, wrap)); 374*50b464aaSScott Long } 375*50b464aaSScott Long 376*50b464aaSScott Long static ahc_reg_parse_entry_t SELTIMER_parse_table[] = { 377*50b464aaSScott Long { "STAGE1", 0x01, 0x01 }, 378*50b464aaSScott Long { "STAGE2", 0x02, 0x02 }, 379*50b464aaSScott Long { "STAGE3", 0x04, 0x04 }, 380*50b464aaSScott Long { "STAGE4", 0x08, 0x08 }, 381*50b464aaSScott Long { "STAGE5", 0x10, 0x10 }, 382*50b464aaSScott Long { "STAGE6", 0x20, 0x20 } 383*50b464aaSScott Long }; 384*50b464aaSScott Long 385*50b464aaSScott Long int 386*50b464aaSScott Long ahc_seltimer_print(u_int regvalue, u_int *cur_col, u_int wrap) 387*50b464aaSScott Long { 388*50b464aaSScott Long return (ahc_print_register(SELTIMER_parse_table, 6, "SELTIMER", 389*50b464aaSScott Long 0x18, regvalue, cur_col, wrap)); 390*50b464aaSScott Long } 391*50b464aaSScott Long 392*50b464aaSScott Long static ahc_reg_parse_entry_t SELID_parse_table[] = { 393*50b464aaSScott Long { "ONEBIT", 0x08, 0x08 }, 394*50b464aaSScott Long { "SELID_MASK", 0xf0, 0xf0 } 395*50b464aaSScott Long }; 396*50b464aaSScott Long 397*50b464aaSScott Long int 398*50b464aaSScott Long ahc_selid_print(u_int regvalue, u_int *cur_col, u_int wrap) 399*50b464aaSScott Long { 400*50b464aaSScott Long return (ahc_print_register(SELID_parse_table, 2, "SELID", 401*50b464aaSScott Long 0x19, regvalue, cur_col, wrap)); 402*50b464aaSScott Long } 403*50b464aaSScott Long 404*50b464aaSScott Long static ahc_reg_parse_entry_t SCAMCTL_parse_table[] = { 405*50b464aaSScott Long { "DFLTTID", 0x10, 0x10 }, 406*50b464aaSScott Long { "ALTSTIM", 0x20, 0x20 }, 407*50b464aaSScott Long { "CLRSCAMSELID", 0x40, 0x40 }, 408*50b464aaSScott Long { "ENSCAMSELO", 0x80, 0x80 }, 409*50b464aaSScott Long { "SCAMLVL", 0x03, 0x03 } 410*50b464aaSScott Long }; 411*50b464aaSScott Long 412*50b464aaSScott Long int 413*50b464aaSScott Long ahc_scamctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 414*50b464aaSScott Long { 415*50b464aaSScott Long return (ahc_print_register(SCAMCTL_parse_table, 5, "SCAMCTL", 416*50b464aaSScott Long 0x1a, regvalue, cur_col, wrap)); 417*50b464aaSScott Long } 418*50b464aaSScott Long 419*50b464aaSScott Long int 420*50b464aaSScott Long ahc_targid_print(u_int regvalue, u_int *cur_col, u_int wrap) 421*50b464aaSScott Long { 422*50b464aaSScott Long return (ahc_print_register(NULL, 0, "TARGID", 423*50b464aaSScott Long 0x1b, regvalue, cur_col, wrap)); 424*50b464aaSScott Long } 425*50b464aaSScott Long 426*50b464aaSScott Long static ahc_reg_parse_entry_t SPIOCAP_parse_table[] = { 427*50b464aaSScott Long { "SSPIOCPS", 0x01, 0x01 }, 428*50b464aaSScott Long { "ROM", 0x02, 0x02 }, 429*50b464aaSScott Long { "EEPROM", 0x04, 0x04 }, 430*50b464aaSScott Long { "SEEPROM", 0x08, 0x08 }, 431*50b464aaSScott Long { "EXT_BRDCTL", 0x10, 0x10 }, 432*50b464aaSScott Long { "SOFTCMDEN", 0x20, 0x20 }, 433*50b464aaSScott Long { "SOFT0", 0x40, 0x40 }, 434*50b464aaSScott Long { "SOFT1", 0x80, 0x80 } 435*50b464aaSScott Long }; 436*50b464aaSScott Long 437*50b464aaSScott Long int 438*50b464aaSScott Long ahc_spiocap_print(u_int regvalue, u_int *cur_col, u_int wrap) 439*50b464aaSScott Long { 440*50b464aaSScott Long return (ahc_print_register(SPIOCAP_parse_table, 8, "SPIOCAP", 441*50b464aaSScott Long 0x1b, regvalue, cur_col, wrap)); 442*50b464aaSScott Long } 443*50b464aaSScott Long 444*50b464aaSScott Long static ahc_reg_parse_entry_t BRDCTL_parse_table[] = { 445*50b464aaSScott Long { "BRDCTL0", 0x01, 0x01 }, 446*50b464aaSScott Long { "BRDSTB_ULTRA2", 0x01, 0x01 }, 447*50b464aaSScott Long { "BRDCTL1", 0x02, 0x02 }, 448*50b464aaSScott Long { "BRDRW_ULTRA2", 0x02, 0x02 }, 449*50b464aaSScott Long { "BRDRW", 0x04, 0x04 }, 450*50b464aaSScott Long { "BRDDAT2", 0x04, 0x04 }, 451*50b464aaSScott Long { "BRDCS", 0x08, 0x08 }, 452*50b464aaSScott Long { "BRDDAT3", 0x08, 0x08 }, 453*50b464aaSScott Long { "BRDSTB", 0x10, 0x10 }, 454*50b464aaSScott Long { "BRDDAT4", 0x10, 0x10 }, 455*50b464aaSScott Long { "BRDDAT5", 0x20, 0x20 }, 456*50b464aaSScott Long { "BRDDAT6", 0x40, 0x40 }, 457*50b464aaSScott Long { "BRDDAT7", 0x80, 0x80 } 458*50b464aaSScott Long }; 459*50b464aaSScott Long 460*50b464aaSScott Long int 461*50b464aaSScott Long ahc_brdctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 462*50b464aaSScott Long { 463*50b464aaSScott Long return (ahc_print_register(BRDCTL_parse_table, 13, "BRDCTL", 464*50b464aaSScott Long 0x1d, regvalue, cur_col, wrap)); 465*50b464aaSScott Long } 466*50b464aaSScott Long 467*50b464aaSScott Long static ahc_reg_parse_entry_t SEECTL_parse_table[] = { 468*50b464aaSScott Long { "SEEDI", 0x01, 0x01 }, 469*50b464aaSScott Long { "SEEDO", 0x02, 0x02 }, 470*50b464aaSScott Long { "SEECK", 0x04, 0x04 }, 471*50b464aaSScott Long { "SEECS", 0x08, 0x08 }, 472*50b464aaSScott Long { "SEERDY", 0x10, 0x10 }, 473*50b464aaSScott Long { "SEEMS", 0x20, 0x20 }, 474*50b464aaSScott Long { "EXTARBREQ", 0x40, 0x40 }, 475*50b464aaSScott Long { "EXTARBACK", 0x80, 0x80 } 476*50b464aaSScott Long }; 477*50b464aaSScott Long 478*50b464aaSScott Long int 479*50b464aaSScott Long ahc_seectl_print(u_int regvalue, u_int *cur_col, u_int wrap) 480*50b464aaSScott Long { 481*50b464aaSScott Long return (ahc_print_register(SEECTL_parse_table, 8, "SEECTL", 482*50b464aaSScott Long 0x1e, regvalue, cur_col, wrap)); 483*50b464aaSScott Long } 484*50b464aaSScott Long 485*50b464aaSScott Long static ahc_reg_parse_entry_t SBLKCTL_parse_table[] = { 486*50b464aaSScott Long { "XCVR", 0x01, 0x01 }, 487*50b464aaSScott Long { "SELWIDE", 0x02, 0x02 }, 488*50b464aaSScott Long { "ENAB20", 0x04, 0x04 }, 489*50b464aaSScott Long { "SELBUSB", 0x08, 0x08 }, 490*50b464aaSScott Long { "ENAB40", 0x08, 0x08 }, 491*50b464aaSScott Long { "AUTOFLUSHDIS", 0x20, 0x20 }, 492*50b464aaSScott Long { "DIAGLEDON", 0x40, 0x40 }, 493*50b464aaSScott Long { "DIAGLEDEN", 0x80, 0x80 } 494*50b464aaSScott Long }; 495*50b464aaSScott Long 496*50b464aaSScott Long int 497*50b464aaSScott Long ahc_sblkctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 498*50b464aaSScott Long { 499*50b464aaSScott Long return (ahc_print_register(SBLKCTL_parse_table, 8, "SBLKCTL", 500*50b464aaSScott Long 0x1f, regvalue, cur_col, wrap)); 501*50b464aaSScott Long } 502*50b464aaSScott Long 503*50b464aaSScott Long int 504*50b464aaSScott Long ahc_busy_targets_print(u_int regvalue, u_int *cur_col, u_int wrap) 505*50b464aaSScott Long { 506*50b464aaSScott Long return (ahc_print_register(NULL, 0, "BUSY_TARGETS", 507*50b464aaSScott Long 0x20, regvalue, cur_col, wrap)); 508*50b464aaSScott Long } 509*50b464aaSScott Long 510*50b464aaSScott Long int 511*50b464aaSScott Long ahc_ultra_enb_print(u_int regvalue, u_int *cur_col, u_int wrap) 512*50b464aaSScott Long { 513*50b464aaSScott Long return (ahc_print_register(NULL, 0, "ULTRA_ENB", 514*50b464aaSScott Long 0x30, regvalue, cur_col, wrap)); 515*50b464aaSScott Long } 516*50b464aaSScott Long 517*50b464aaSScott Long int 518*50b464aaSScott Long ahc_disc_dsb_print(u_int regvalue, u_int *cur_col, u_int wrap) 519*50b464aaSScott Long { 520*50b464aaSScott Long return (ahc_print_register(NULL, 0, "DISC_DSB", 521*50b464aaSScott Long 0x32, regvalue, cur_col, wrap)); 522*50b464aaSScott Long } 523*50b464aaSScott Long 524*50b464aaSScott Long int 525*50b464aaSScott Long ahc_cmdsize_table_tail_print(u_int regvalue, u_int *cur_col, u_int wrap) 526*50b464aaSScott Long { 527*50b464aaSScott Long return (ahc_print_register(NULL, 0, "CMDSIZE_TABLE_TAIL", 528*50b464aaSScott Long 0x34, regvalue, cur_col, wrap)); 529*50b464aaSScott Long } 530*50b464aaSScott Long 531*50b464aaSScott Long int 532*50b464aaSScott Long ahc_mwi_residual_print(u_int regvalue, u_int *cur_col, u_int wrap) 533*50b464aaSScott Long { 534*50b464aaSScott Long return (ahc_print_register(NULL, 0, "MWI_RESIDUAL", 535*50b464aaSScott Long 0x38, regvalue, cur_col, wrap)); 536*50b464aaSScott Long } 537*50b464aaSScott Long 538*50b464aaSScott Long int 539*50b464aaSScott Long ahc_next_queued_scb_print(u_int regvalue, u_int *cur_col, u_int wrap) 540*50b464aaSScott Long { 541*50b464aaSScott Long return (ahc_print_register(NULL, 0, "NEXT_QUEUED_SCB", 542*50b464aaSScott Long 0x39, regvalue, cur_col, wrap)); 543*50b464aaSScott Long } 544*50b464aaSScott Long 545*50b464aaSScott Long int 546*50b464aaSScott Long ahc_msg_out_print(u_int regvalue, u_int *cur_col, u_int wrap) 547*50b464aaSScott Long { 548*50b464aaSScott Long return (ahc_print_register(NULL, 0, "MSG_OUT", 549*50b464aaSScott Long 0x3a, regvalue, cur_col, wrap)); 550*50b464aaSScott Long } 551*50b464aaSScott Long 552*50b464aaSScott Long static ahc_reg_parse_entry_t DMAPARAMS_parse_table[] = { 553*50b464aaSScott Long { "FIFORESET", 0x01, 0x01 }, 554*50b464aaSScott Long { "FIFOFLUSH", 0x02, 0x02 }, 555*50b464aaSScott Long { "DIRECTION", 0x04, 0x04 }, 556*50b464aaSScott Long { "HDMAEN", 0x08, 0x08 }, 557*50b464aaSScott Long { "HDMAENACK", 0x08, 0x08 }, 558*50b464aaSScott Long { "SDMAEN", 0x10, 0x10 }, 559*50b464aaSScott Long { "SDMAENACK", 0x10, 0x10 }, 560*50b464aaSScott Long { "SCSIEN", 0x20, 0x20 }, 561*50b464aaSScott Long { "WIDEODD", 0x40, 0x40 }, 562*50b464aaSScott Long { "PRELOADEN", 0x80, 0x80 } 563*50b464aaSScott Long }; 564*50b464aaSScott Long 565*50b464aaSScott Long int 566*50b464aaSScott Long ahc_dmaparams_print(u_int regvalue, u_int *cur_col, u_int wrap) 567*50b464aaSScott Long { 568*50b464aaSScott Long return (ahc_print_register(DMAPARAMS_parse_table, 10, "DMAPARAMS", 569*50b464aaSScott Long 0x3b, regvalue, cur_col, wrap)); 570*50b464aaSScott Long } 571*50b464aaSScott Long 572*50b464aaSScott Long static ahc_reg_parse_entry_t SEQ_FLAGS_parse_table[] = { 573*50b464aaSScott Long { "NO_DISCONNECT", 0x01, 0x01 }, 574*50b464aaSScott Long { "SPHASE_PENDING", 0x02, 0x02 }, 575*50b464aaSScott Long { "DPHASE_PENDING", 0x04, 0x04 }, 576*50b464aaSScott Long { "CMDPHASE_PENDING", 0x08, 0x08 }, 577*50b464aaSScott Long { "TARG_CMD_PENDING", 0x10, 0x10 }, 578*50b464aaSScott Long { "DPHASE", 0x20, 0x20 }, 579*50b464aaSScott Long { "NO_CDB_SENT", 0x40, 0x40 }, 580*50b464aaSScott Long { "TARGET_CMD_IS_TAGGED",0x40, 0x40 }, 581*50b464aaSScott Long { "NOT_IDENTIFIED", 0x80, 0x80 } 582*50b464aaSScott Long }; 583*50b464aaSScott Long 584*50b464aaSScott Long int 585*50b464aaSScott Long ahc_seq_flags_print(u_int regvalue, u_int *cur_col, u_int wrap) 586*50b464aaSScott Long { 587*50b464aaSScott Long return (ahc_print_register(SEQ_FLAGS_parse_table, 9, "SEQ_FLAGS", 588*50b464aaSScott Long 0x3c, regvalue, cur_col, wrap)); 589*50b464aaSScott Long } 590*50b464aaSScott Long 591*50b464aaSScott Long int 592*50b464aaSScott Long ahc_saved_scsiid_print(u_int regvalue, u_int *cur_col, u_int wrap) 593*50b464aaSScott Long { 594*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SAVED_SCSIID", 595*50b464aaSScott Long 0x3d, regvalue, cur_col, wrap)); 596*50b464aaSScott Long } 597*50b464aaSScott Long 598*50b464aaSScott Long int 599*50b464aaSScott Long ahc_saved_lun_print(u_int regvalue, u_int *cur_col, u_int wrap) 600*50b464aaSScott Long { 601*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SAVED_LUN", 602*50b464aaSScott Long 0x3e, regvalue, cur_col, wrap)); 603*50b464aaSScott Long } 604*50b464aaSScott Long 605*50b464aaSScott Long static ahc_reg_parse_entry_t LASTPHASE_parse_table[] = { 606*50b464aaSScott Long { "MSGI", 0x20, 0x20 }, 607*50b464aaSScott Long { "IOI", 0x40, 0x40 }, 608*50b464aaSScott Long { "CDI", 0x80, 0x80 }, 609*50b464aaSScott Long { "P_DATAOUT", 0x00, 0x00 }, 610*50b464aaSScott Long { "P_BUSFREE", 0x01, 0x01 }, 611*50b464aaSScott Long { "P_DATAIN", 0x40, 0x40 }, 612*50b464aaSScott Long { "P_COMMAND", 0x80, 0x80 }, 613*50b464aaSScott Long { "P_MESGOUT", 0xa0, 0xa0 }, 614*50b464aaSScott Long { "P_STATUS", 0xc0, 0xc0 }, 615*50b464aaSScott Long { "PHASE_MASK", 0xe0, 0xe0 }, 616*50b464aaSScott Long { "P_MESGIN", 0xe0, 0xe0 } 617*50b464aaSScott Long }; 618*50b464aaSScott Long 619*50b464aaSScott Long int 620*50b464aaSScott Long ahc_lastphase_print(u_int regvalue, u_int *cur_col, u_int wrap) 621*50b464aaSScott Long { 622*50b464aaSScott Long return (ahc_print_register(LASTPHASE_parse_table, 11, "LASTPHASE", 623*50b464aaSScott Long 0x3f, regvalue, cur_col, wrap)); 624*50b464aaSScott Long } 625*50b464aaSScott Long 626*50b464aaSScott Long int 627*50b464aaSScott Long ahc_waiting_scbh_print(u_int regvalue, u_int *cur_col, u_int wrap) 628*50b464aaSScott Long { 629*50b464aaSScott Long return (ahc_print_register(NULL, 0, "WAITING_SCBH", 630*50b464aaSScott Long 0x40, regvalue, cur_col, wrap)); 631*50b464aaSScott Long } 632*50b464aaSScott Long 633*50b464aaSScott Long int 634*50b464aaSScott Long ahc_disconnected_scbh_print(u_int regvalue, u_int *cur_col, u_int wrap) 635*50b464aaSScott Long { 636*50b464aaSScott Long return (ahc_print_register(NULL, 0, "DISCONNECTED_SCBH", 637*50b464aaSScott Long 0x41, regvalue, cur_col, wrap)); 638*50b464aaSScott Long } 639*50b464aaSScott Long 640*50b464aaSScott Long int 641*50b464aaSScott Long ahc_free_scbh_print(u_int regvalue, u_int *cur_col, u_int wrap) 642*50b464aaSScott Long { 643*50b464aaSScott Long return (ahc_print_register(NULL, 0, "FREE_SCBH", 644*50b464aaSScott Long 0x42, regvalue, cur_col, wrap)); 645*50b464aaSScott Long } 646*50b464aaSScott Long 647*50b464aaSScott Long int 648*50b464aaSScott Long ahc_complete_scbh_print(u_int regvalue, u_int *cur_col, u_int wrap) 649*50b464aaSScott Long { 650*50b464aaSScott Long return (ahc_print_register(NULL, 0, "COMPLETE_SCBH", 651*50b464aaSScott Long 0x43, regvalue, cur_col, wrap)); 652*50b464aaSScott Long } 653*50b464aaSScott Long 654*50b464aaSScott Long int 655*50b464aaSScott Long ahc_hscb_addr_print(u_int regvalue, u_int *cur_col, u_int wrap) 656*50b464aaSScott Long { 657*50b464aaSScott Long return (ahc_print_register(NULL, 0, "HSCB_ADDR", 658*50b464aaSScott Long 0x44, regvalue, cur_col, wrap)); 659*50b464aaSScott Long } 660*50b464aaSScott Long 661*50b464aaSScott Long int 662*50b464aaSScott Long ahc_shared_data_addr_print(u_int regvalue, u_int *cur_col, u_int wrap) 663*50b464aaSScott Long { 664*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SHARED_DATA_ADDR", 665*50b464aaSScott Long 0x48, regvalue, cur_col, wrap)); 666*50b464aaSScott Long } 667*50b464aaSScott Long 668*50b464aaSScott Long int 669*50b464aaSScott Long ahc_kernel_qinpos_print(u_int regvalue, u_int *cur_col, u_int wrap) 670*50b464aaSScott Long { 671*50b464aaSScott Long return (ahc_print_register(NULL, 0, "KERNEL_QINPOS", 672*50b464aaSScott Long 0x4c, regvalue, cur_col, wrap)); 673*50b464aaSScott Long } 674*50b464aaSScott Long 675*50b464aaSScott Long int 676*50b464aaSScott Long ahc_qinpos_print(u_int regvalue, u_int *cur_col, u_int wrap) 677*50b464aaSScott Long { 678*50b464aaSScott Long return (ahc_print_register(NULL, 0, "QINPOS", 679*50b464aaSScott Long 0x4d, regvalue, cur_col, wrap)); 680*50b464aaSScott Long } 681*50b464aaSScott Long 682*50b464aaSScott Long int 683*50b464aaSScott Long ahc_qoutpos_print(u_int regvalue, u_int *cur_col, u_int wrap) 684*50b464aaSScott Long { 685*50b464aaSScott Long return (ahc_print_register(NULL, 0, "QOUTPOS", 686*50b464aaSScott Long 0x4e, regvalue, cur_col, wrap)); 687*50b464aaSScott Long } 688*50b464aaSScott Long 689*50b464aaSScott Long int 690*50b464aaSScott Long ahc_kernel_tqinpos_print(u_int regvalue, u_int *cur_col, u_int wrap) 691*50b464aaSScott Long { 692*50b464aaSScott Long return (ahc_print_register(NULL, 0, "KERNEL_TQINPOS", 693*50b464aaSScott Long 0x4f, regvalue, cur_col, wrap)); 694*50b464aaSScott Long } 695*50b464aaSScott Long 696*50b464aaSScott Long int 697*50b464aaSScott Long ahc_tqinpos_print(u_int regvalue, u_int *cur_col, u_int wrap) 698*50b464aaSScott Long { 699*50b464aaSScott Long return (ahc_print_register(NULL, 0, "TQINPOS", 700*50b464aaSScott Long 0x50, regvalue, cur_col, wrap)); 701*50b464aaSScott Long } 702*50b464aaSScott Long 703*50b464aaSScott Long static ahc_reg_parse_entry_t ARG_1_parse_table[] = { 704*50b464aaSScott Long { "SPARE", 0x01, 0x01 }, 705*50b464aaSScott Long { "CONT_TARG_SESSION", 0x02, 0x02 }, 706*50b464aaSScott Long { "CONT_MSG_LOOP", 0x04, 0x04 }, 707*50b464aaSScott Long { "EXIT_MSG_LOOP", 0x08, 0x08 }, 708*50b464aaSScott Long { "MSGOUT_PHASEMIS", 0x10, 0x10 }, 709*50b464aaSScott Long { "SEND_REJ", 0x20, 0x20 }, 710*50b464aaSScott Long { "SEND_SENSE", 0x40, 0x40 }, 711*50b464aaSScott Long { "SEND_MSG", 0x80, 0x80 } 712*50b464aaSScott Long }; 713*50b464aaSScott Long 714*50b464aaSScott Long int 715*50b464aaSScott Long ahc_arg_1_print(u_int regvalue, u_int *cur_col, u_int wrap) 716*50b464aaSScott Long { 717*50b464aaSScott Long return (ahc_print_register(ARG_1_parse_table, 8, "ARG_1", 718*50b464aaSScott Long 0x51, regvalue, cur_col, wrap)); 719*50b464aaSScott Long } 720*50b464aaSScott Long 721*50b464aaSScott Long int 722*50b464aaSScott Long ahc_arg_2_print(u_int regvalue, u_int *cur_col, u_int wrap) 723*50b464aaSScott Long { 724*50b464aaSScott Long return (ahc_print_register(NULL, 0, "ARG_2", 725*50b464aaSScott Long 0x52, regvalue, cur_col, wrap)); 726*50b464aaSScott Long } 727*50b464aaSScott Long 728*50b464aaSScott Long int 729*50b464aaSScott Long ahc_last_msg_print(u_int regvalue, u_int *cur_col, u_int wrap) 730*50b464aaSScott Long { 731*50b464aaSScott Long return (ahc_print_register(NULL, 0, "LAST_MSG", 732*50b464aaSScott Long 0x53, regvalue, cur_col, wrap)); 733*50b464aaSScott Long } 734*50b464aaSScott Long 735*50b464aaSScott Long static ahc_reg_parse_entry_t SCSISEQ_TEMPLATE_parse_table[] = { 736*50b464aaSScott Long { "ENAUTOATNP", 0x02, 0x02 }, 737*50b464aaSScott Long { "ENAUTOATNI", 0x04, 0x04 }, 738*50b464aaSScott Long { "ENAUTOATNO", 0x08, 0x08 }, 739*50b464aaSScott Long { "ENRSELI", 0x10, 0x10 }, 740*50b464aaSScott Long { "ENSELI", 0x20, 0x20 }, 741*50b464aaSScott Long { "ENSELO", 0x40, 0x40 } 742*50b464aaSScott Long }; 743*50b464aaSScott Long 744*50b464aaSScott Long int 745*50b464aaSScott Long ahc_scsiseq_template_print(u_int regvalue, u_int *cur_col, u_int wrap) 746*50b464aaSScott Long { 747*50b464aaSScott Long return (ahc_print_register(SCSISEQ_TEMPLATE_parse_table, 6, "SCSISEQ_TEMPLATE", 748*50b464aaSScott Long 0x54, regvalue, cur_col, wrap)); 749*50b464aaSScott Long } 750*50b464aaSScott Long 751*50b464aaSScott Long static ahc_reg_parse_entry_t HA_274_BIOSGLOBAL_parse_table[] = { 752*50b464aaSScott Long { "HA_274_EXTENDED_TRANS",0x01, 0x01 } 753*50b464aaSScott Long }; 754*50b464aaSScott Long 755*50b464aaSScott Long int 756*50b464aaSScott Long ahc_ha_274_biosglobal_print(u_int regvalue, u_int *cur_col, u_int wrap) 757*50b464aaSScott Long { 758*50b464aaSScott Long return (ahc_print_register(HA_274_BIOSGLOBAL_parse_table, 1, "HA_274_BIOSGLOBAL", 759*50b464aaSScott Long 0x56, regvalue, cur_col, wrap)); 760*50b464aaSScott Long } 761*50b464aaSScott Long 762*50b464aaSScott Long static ahc_reg_parse_entry_t SEQ_FLAGS2_parse_table[] = { 763*50b464aaSScott Long { "SCB_DMA", 0x01, 0x01 }, 764*50b464aaSScott Long { "TARGET_MSG_PENDING", 0x02, 0x02 } 765*50b464aaSScott Long }; 766*50b464aaSScott Long 767*50b464aaSScott Long int 768*50b464aaSScott Long ahc_seq_flags2_print(u_int regvalue, u_int *cur_col, u_int wrap) 769*50b464aaSScott Long { 770*50b464aaSScott Long return (ahc_print_register(SEQ_FLAGS2_parse_table, 2, "SEQ_FLAGS2", 771*50b464aaSScott Long 0x57, regvalue, cur_col, wrap)); 772*50b464aaSScott Long } 773*50b464aaSScott Long 774*50b464aaSScott Long static ahc_reg_parse_entry_t SCSICONF_parse_table[] = { 775*50b464aaSScott Long { "ENSPCHK", 0x20, 0x20 }, 776*50b464aaSScott Long { "RESET_SCSI", 0x40, 0x40 }, 777*50b464aaSScott Long { "TERM_ENB", 0x80, 0x80 }, 778*50b464aaSScott Long { "HSCSIID", 0x07, 0x07 }, 779*50b464aaSScott Long { "HWSCSIID", 0x0f, 0x0f } 780*50b464aaSScott Long }; 781*50b464aaSScott Long 782*50b464aaSScott Long int 783*50b464aaSScott Long ahc_scsiconf_print(u_int regvalue, u_int *cur_col, u_int wrap) 784*50b464aaSScott Long { 785*50b464aaSScott Long return (ahc_print_register(SCSICONF_parse_table, 5, "SCSICONF", 786*50b464aaSScott Long 0x5a, regvalue, cur_col, wrap)); 787*50b464aaSScott Long } 788*50b464aaSScott Long 789*50b464aaSScott Long static ahc_reg_parse_entry_t INTDEF_parse_table[] = { 790*50b464aaSScott Long { "EDGE_TRIG", 0x80, 0x80 }, 791*50b464aaSScott Long { "VECTOR", 0x0f, 0x0f } 792*50b464aaSScott Long }; 793*50b464aaSScott Long 794*50b464aaSScott Long int 795*50b464aaSScott Long ahc_intdef_print(u_int regvalue, u_int *cur_col, u_int wrap) 796*50b464aaSScott Long { 797*50b464aaSScott Long return (ahc_print_register(INTDEF_parse_table, 2, "INTDEF", 798*50b464aaSScott Long 0x5c, regvalue, cur_col, wrap)); 799*50b464aaSScott Long } 800*50b464aaSScott Long 801*50b464aaSScott Long int 802*50b464aaSScott Long ahc_hostconf_print(u_int regvalue, u_int *cur_col, u_int wrap) 803*50b464aaSScott Long { 804*50b464aaSScott Long return (ahc_print_register(NULL, 0, "HOSTCONF", 805*50b464aaSScott Long 0x5d, regvalue, cur_col, wrap)); 806*50b464aaSScott Long } 807*50b464aaSScott Long 808*50b464aaSScott Long static ahc_reg_parse_entry_t HA_274_BIOSCTRL_parse_table[] = { 809*50b464aaSScott Long { "CHANNEL_B_PRIMARY", 0x08, 0x08 }, 810*50b464aaSScott Long { "BIOSMODE", 0x30, 0x30 }, 811*50b464aaSScott Long { "BIOSDISABLED", 0x30, 0x30 } 812*50b464aaSScott Long }; 813*50b464aaSScott Long 814*50b464aaSScott Long int 815*50b464aaSScott Long ahc_ha_274_biosctrl_print(u_int regvalue, u_int *cur_col, u_int wrap) 816*50b464aaSScott Long { 817*50b464aaSScott Long return (ahc_print_register(HA_274_BIOSCTRL_parse_table, 3, "HA_274_BIOSCTRL", 818*50b464aaSScott Long 0x5f, regvalue, cur_col, wrap)); 819*50b464aaSScott Long } 820*50b464aaSScott Long 821*50b464aaSScott Long static ahc_reg_parse_entry_t SEQCTL_parse_table[] = { 822*50b464aaSScott Long { "LOADRAM", 0x01, 0x01 }, 823*50b464aaSScott Long { "SEQRESET", 0x02, 0x02 }, 824*50b464aaSScott Long { "STEP", 0x04, 0x04 }, 825*50b464aaSScott Long { "BRKADRINTEN", 0x08, 0x08 }, 826*50b464aaSScott Long { "FASTMODE", 0x10, 0x10 }, 827*50b464aaSScott Long { "FAILDIS", 0x20, 0x20 }, 828*50b464aaSScott Long { "PAUSEDIS", 0x40, 0x40 }, 829*50b464aaSScott Long { "PERRORDIS", 0x80, 0x80 } 830*50b464aaSScott Long }; 831*50b464aaSScott Long 832*50b464aaSScott Long int 833*50b464aaSScott Long ahc_seqctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 834*50b464aaSScott Long { 835*50b464aaSScott Long return (ahc_print_register(SEQCTL_parse_table, 8, "SEQCTL", 836*50b464aaSScott Long 0x60, regvalue, cur_col, wrap)); 837*50b464aaSScott Long } 838*50b464aaSScott Long 839*50b464aaSScott Long int 840*50b464aaSScott Long ahc_seqram_print(u_int regvalue, u_int *cur_col, u_int wrap) 841*50b464aaSScott Long { 842*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SEQRAM", 843*50b464aaSScott Long 0x61, regvalue, cur_col, wrap)); 844*50b464aaSScott Long } 845*50b464aaSScott Long 846*50b464aaSScott Long int 847*50b464aaSScott Long ahc_seqaddr0_print(u_int regvalue, u_int *cur_col, u_int wrap) 848*50b464aaSScott Long { 849*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SEQADDR0", 850*50b464aaSScott Long 0x62, regvalue, cur_col, wrap)); 851*50b464aaSScott Long } 852*50b464aaSScott Long 853*50b464aaSScott Long static ahc_reg_parse_entry_t SEQADDR1_parse_table[] = { 854*50b464aaSScott Long { "SEQADDR1_MASK", 0x01, 0x01 } 855*50b464aaSScott Long }; 856*50b464aaSScott Long 857*50b464aaSScott Long int 858*50b464aaSScott Long ahc_seqaddr1_print(u_int regvalue, u_int *cur_col, u_int wrap) 859*50b464aaSScott Long { 860*50b464aaSScott Long return (ahc_print_register(SEQADDR1_parse_table, 1, "SEQADDR1", 861*50b464aaSScott Long 0x63, regvalue, cur_col, wrap)); 862*50b464aaSScott Long } 863*50b464aaSScott Long 864*50b464aaSScott Long int 865*50b464aaSScott Long ahc_accum_print(u_int regvalue, u_int *cur_col, u_int wrap) 866*50b464aaSScott Long { 867*50b464aaSScott Long return (ahc_print_register(NULL, 0, "ACCUM", 868*50b464aaSScott Long 0x64, regvalue, cur_col, wrap)); 869*50b464aaSScott Long } 870*50b464aaSScott Long 871*50b464aaSScott Long int 872*50b464aaSScott Long ahc_sindex_print(u_int regvalue, u_int *cur_col, u_int wrap) 873*50b464aaSScott Long { 874*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SINDEX", 875*50b464aaSScott Long 0x65, regvalue, cur_col, wrap)); 876*50b464aaSScott Long } 877*50b464aaSScott Long 878*50b464aaSScott Long int 879*50b464aaSScott Long ahc_dindex_print(u_int regvalue, u_int *cur_col, u_int wrap) 880*50b464aaSScott Long { 881*50b464aaSScott Long return (ahc_print_register(NULL, 0, "DINDEX", 882*50b464aaSScott Long 0x66, regvalue, cur_col, wrap)); 883*50b464aaSScott Long } 884*50b464aaSScott Long 885*50b464aaSScott Long int 886*50b464aaSScott Long ahc_allones_print(u_int regvalue, u_int *cur_col, u_int wrap) 887*50b464aaSScott Long { 888*50b464aaSScott Long return (ahc_print_register(NULL, 0, "ALLONES", 889*50b464aaSScott Long 0x69, regvalue, cur_col, wrap)); 890*50b464aaSScott Long } 891*50b464aaSScott Long 892*50b464aaSScott Long int 893*50b464aaSScott Long ahc_none_print(u_int regvalue, u_int *cur_col, u_int wrap) 894*50b464aaSScott Long { 895*50b464aaSScott Long return (ahc_print_register(NULL, 0, "NONE", 896*50b464aaSScott Long 0x6a, regvalue, cur_col, wrap)); 897*50b464aaSScott Long } 898*50b464aaSScott Long 899*50b464aaSScott Long int 900*50b464aaSScott Long ahc_allzeros_print(u_int regvalue, u_int *cur_col, u_int wrap) 901*50b464aaSScott Long { 902*50b464aaSScott Long return (ahc_print_register(NULL, 0, "ALLZEROS", 903*50b464aaSScott Long 0x6a, regvalue, cur_col, wrap)); 904*50b464aaSScott Long } 905*50b464aaSScott Long 906*50b464aaSScott Long static ahc_reg_parse_entry_t FLAGS_parse_table[] = { 907*50b464aaSScott Long { "CARRY", 0x01, 0x01 }, 908*50b464aaSScott Long { "ZERO", 0x02, 0x02 } 909*50b464aaSScott Long }; 910*50b464aaSScott Long 911*50b464aaSScott Long int 912*50b464aaSScott Long ahc_flags_print(u_int regvalue, u_int *cur_col, u_int wrap) 913*50b464aaSScott Long { 914*50b464aaSScott Long return (ahc_print_register(FLAGS_parse_table, 2, "FLAGS", 915*50b464aaSScott Long 0x6b, regvalue, cur_col, wrap)); 916*50b464aaSScott Long } 917*50b464aaSScott Long 918*50b464aaSScott Long int 919*50b464aaSScott Long ahc_sindir_print(u_int regvalue, u_int *cur_col, u_int wrap) 920*50b464aaSScott Long { 921*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SINDIR", 922*50b464aaSScott Long 0x6c, regvalue, cur_col, wrap)); 923*50b464aaSScott Long } 924*50b464aaSScott Long 925*50b464aaSScott Long int 926*50b464aaSScott Long ahc_dindir_print(u_int regvalue, u_int *cur_col, u_int wrap) 927*50b464aaSScott Long { 928*50b464aaSScott Long return (ahc_print_register(NULL, 0, "DINDIR", 929*50b464aaSScott Long 0x6d, regvalue, cur_col, wrap)); 930*50b464aaSScott Long } 931*50b464aaSScott Long 932*50b464aaSScott Long int 933*50b464aaSScott Long ahc_function1_print(u_int regvalue, u_int *cur_col, u_int wrap) 934*50b464aaSScott Long { 935*50b464aaSScott Long return (ahc_print_register(NULL, 0, "FUNCTION1", 936*50b464aaSScott Long 0x6e, regvalue, cur_col, wrap)); 937*50b464aaSScott Long } 938*50b464aaSScott Long 939*50b464aaSScott Long int 940*50b464aaSScott Long ahc_stack_print(u_int regvalue, u_int *cur_col, u_int wrap) 941*50b464aaSScott Long { 942*50b464aaSScott Long return (ahc_print_register(NULL, 0, "STACK", 943*50b464aaSScott Long 0x6f, regvalue, cur_col, wrap)); 944*50b464aaSScott Long } 945*50b464aaSScott Long 946*50b464aaSScott Long int 947*50b464aaSScott Long ahc_targ_offset_print(u_int regvalue, u_int *cur_col, u_int wrap) 948*50b464aaSScott Long { 949*50b464aaSScott Long return (ahc_print_register(NULL, 0, "TARG_OFFSET", 950*50b464aaSScott Long 0x70, regvalue, cur_col, wrap)); 951*50b464aaSScott Long } 952*50b464aaSScott Long 953*50b464aaSScott Long int 954*50b464aaSScott Long ahc_sram_base_print(u_int regvalue, u_int *cur_col, u_int wrap) 955*50b464aaSScott Long { 956*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SRAM_BASE", 957*50b464aaSScott Long 0x70, regvalue, cur_col, wrap)); 958*50b464aaSScott Long } 959*50b464aaSScott Long 960*50b464aaSScott Long static ahc_reg_parse_entry_t DSCOMMAND0_parse_table[] = { 961*50b464aaSScott Long { "CIOPARCKEN", 0x01, 0x01 }, 962*50b464aaSScott Long { "USCBSIZE32", 0x02, 0x02 }, 963*50b464aaSScott Long { "RAMPS", 0x04, 0x04 }, 964*50b464aaSScott Long { "INTSCBRAMSEL", 0x08, 0x08 }, 965*50b464aaSScott Long { "EXTREQLCK", 0x10, 0x10 }, 966*50b464aaSScott Long { "MPARCKEN", 0x20, 0x20 }, 967*50b464aaSScott Long { "DPARCKEN", 0x40, 0x40 }, 968*50b464aaSScott Long { "CACHETHEN", 0x80, 0x80 } 969*50b464aaSScott Long }; 970*50b464aaSScott Long 971*50b464aaSScott Long int 972*50b464aaSScott Long ahc_dscommand0_print(u_int regvalue, u_int *cur_col, u_int wrap) 973*50b464aaSScott Long { 974*50b464aaSScott Long return (ahc_print_register(DSCOMMAND0_parse_table, 8, "DSCOMMAND0", 975*50b464aaSScott Long 0x84, regvalue, cur_col, wrap)); 976*50b464aaSScott Long } 977*50b464aaSScott Long 978*50b464aaSScott Long static ahc_reg_parse_entry_t BCTL_parse_table[] = { 979*50b464aaSScott Long { "ENABLE", 0x01, 0x01 }, 980*50b464aaSScott Long { "ACE", 0x08, 0x08 } 981*50b464aaSScott Long }; 982*50b464aaSScott Long 983*50b464aaSScott Long int 984*50b464aaSScott Long ahc_bctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 985*50b464aaSScott Long { 986*50b464aaSScott Long return (ahc_print_register(BCTL_parse_table, 2, "BCTL", 987*50b464aaSScott Long 0x84, regvalue, cur_col, wrap)); 988*50b464aaSScott Long } 989*50b464aaSScott Long 990*50b464aaSScott Long static ahc_reg_parse_entry_t BUSTIME_parse_table[] = { 991*50b464aaSScott Long { "BON", 0x0f, 0x0f }, 992*50b464aaSScott Long { "BOFF", 0xf0, 0xf0 } 993*50b464aaSScott Long }; 994*50b464aaSScott Long 995*50b464aaSScott Long int 996*50b464aaSScott Long ahc_bustime_print(u_int regvalue, u_int *cur_col, u_int wrap) 997*50b464aaSScott Long { 998*50b464aaSScott Long return (ahc_print_register(BUSTIME_parse_table, 2, "BUSTIME", 999*50b464aaSScott Long 0x85, regvalue, cur_col, wrap)); 1000*50b464aaSScott Long } 1001*50b464aaSScott Long 1002*50b464aaSScott Long static ahc_reg_parse_entry_t DSCOMMAND1_parse_table[] = { 1003*50b464aaSScott Long { "HADDLDSEL0", 0x01, 0x01 }, 1004*50b464aaSScott Long { "HADDLDSEL1", 0x02, 0x02 }, 1005*50b464aaSScott Long { "DSLATT", 0xfc, 0xfc } 1006*50b464aaSScott Long }; 1007*50b464aaSScott Long 1008*50b464aaSScott Long int 1009*50b464aaSScott Long ahc_dscommand1_print(u_int regvalue, u_int *cur_col, u_int wrap) 1010*50b464aaSScott Long { 1011*50b464aaSScott Long return (ahc_print_register(DSCOMMAND1_parse_table, 3, "DSCOMMAND1", 1012*50b464aaSScott Long 0x85, regvalue, cur_col, wrap)); 1013*50b464aaSScott Long } 1014*50b464aaSScott Long 1015*50b464aaSScott Long static ahc_reg_parse_entry_t BUSSPD_parse_table[] = { 1016*50b464aaSScott Long { "STBON", 0x07, 0x07 }, 1017*50b464aaSScott Long { "STBOFF", 0x38, 0x38 }, 1018*50b464aaSScott Long { "DFTHRSH_75", 0x80, 0x80 }, 1019*50b464aaSScott Long { "DFTHRSH", 0xc0, 0xc0 }, 1020*50b464aaSScott Long { "DFTHRSH_100", 0xc0, 0xc0 } 1021*50b464aaSScott Long }; 1022*50b464aaSScott Long 1023*50b464aaSScott Long int 1024*50b464aaSScott Long ahc_busspd_print(u_int regvalue, u_int *cur_col, u_int wrap) 1025*50b464aaSScott Long { 1026*50b464aaSScott Long return (ahc_print_register(BUSSPD_parse_table, 5, "BUSSPD", 1027*50b464aaSScott Long 0x86, regvalue, cur_col, wrap)); 1028*50b464aaSScott Long } 1029*50b464aaSScott Long 1030*50b464aaSScott Long static ahc_reg_parse_entry_t HS_MAILBOX_parse_table[] = { 1031*50b464aaSScott Long { "SEQ_MAILBOX", 0x0f, 0x0f }, 1032*50b464aaSScott Long { "HOST_TQINPOS", 0x80, 0x80 }, 1033*50b464aaSScott Long { "HOST_MAILBOX", 0xf0, 0xf0 } 1034*50b464aaSScott Long }; 1035*50b464aaSScott Long 1036*50b464aaSScott Long int 1037*50b464aaSScott Long ahc_hs_mailbox_print(u_int regvalue, u_int *cur_col, u_int wrap) 1038*50b464aaSScott Long { 1039*50b464aaSScott Long return (ahc_print_register(HS_MAILBOX_parse_table, 3, "HS_MAILBOX", 1040*50b464aaSScott Long 0x86, regvalue, cur_col, wrap)); 1041*50b464aaSScott Long } 1042*50b464aaSScott Long 1043*50b464aaSScott Long static ahc_reg_parse_entry_t DSPCISTATUS_parse_table[] = { 1044*50b464aaSScott Long { "DFTHRSH_100", 0xc0, 0xc0 } 1045*50b464aaSScott Long }; 1046*50b464aaSScott Long 1047*50b464aaSScott Long int 1048*50b464aaSScott Long ahc_dspcistatus_print(u_int regvalue, u_int *cur_col, u_int wrap) 1049*50b464aaSScott Long { 1050*50b464aaSScott Long return (ahc_print_register(DSPCISTATUS_parse_table, 1, "DSPCISTATUS", 1051*50b464aaSScott Long 0x86, regvalue, cur_col, wrap)); 1052*50b464aaSScott Long } 1053*50b464aaSScott Long 1054*50b464aaSScott Long static ahc_reg_parse_entry_t HCNTRL_parse_table[] = { 1055*50b464aaSScott Long { "CHIPRST", 0x01, 0x01 }, 1056*50b464aaSScott Long { "CHIPRSTACK", 0x01, 0x01 }, 1057*50b464aaSScott Long { "INTEN", 0x02, 0x02 }, 1058*50b464aaSScott Long { "PAUSE", 0x04, 0x04 }, 1059*50b464aaSScott Long { "IRQMS", 0x08, 0x08 }, 1060*50b464aaSScott Long { "SWINT", 0x10, 0x10 }, 1061*50b464aaSScott Long { "POWRDN", 0x40, 0x40 } 1062*50b464aaSScott Long }; 1063*50b464aaSScott Long 1064*50b464aaSScott Long int 1065*50b464aaSScott Long ahc_hcntrl_print(u_int regvalue, u_int *cur_col, u_int wrap) 1066*50b464aaSScott Long { 1067*50b464aaSScott Long return (ahc_print_register(HCNTRL_parse_table, 7, "HCNTRL", 1068*50b464aaSScott Long 0x87, regvalue, cur_col, wrap)); 1069*50b464aaSScott Long } 1070*50b464aaSScott Long 1071*50b464aaSScott Long int 1072*50b464aaSScott Long ahc_haddr_print(u_int regvalue, u_int *cur_col, u_int wrap) 1073*50b464aaSScott Long { 1074*50b464aaSScott Long return (ahc_print_register(NULL, 0, "HADDR", 1075*50b464aaSScott Long 0x88, regvalue, cur_col, wrap)); 1076*50b464aaSScott Long } 1077*50b464aaSScott Long 1078*50b464aaSScott Long int 1079*50b464aaSScott Long ahc_hcnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 1080*50b464aaSScott Long { 1081*50b464aaSScott Long return (ahc_print_register(NULL, 0, "HCNT", 1082*50b464aaSScott Long 0x8c, regvalue, cur_col, wrap)); 1083*50b464aaSScott Long } 1084*50b464aaSScott Long 1085*50b464aaSScott Long int 1086*50b464aaSScott Long ahc_scbptr_print(u_int regvalue, u_int *cur_col, u_int wrap) 1087*50b464aaSScott Long { 1088*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SCBPTR", 1089*50b464aaSScott Long 0x90, regvalue, cur_col, wrap)); 1090*50b464aaSScott Long } 1091*50b464aaSScott Long 1092*50b464aaSScott Long static ahc_reg_parse_entry_t INTSTAT_parse_table[] = { 1093*50b464aaSScott Long { "SEQINT", 0x01, 0x01 }, 1094*50b464aaSScott Long { "CMDCMPLT", 0x02, 0x02 }, 1095*50b464aaSScott Long { "SCSIINT", 0x04, 0x04 }, 1096*50b464aaSScott Long { "BRKADRINT", 0x08, 0x08 }, 1097*50b464aaSScott Long { "BAD_PHASE", 0x01, 0x01 }, 1098*50b464aaSScott Long { "INT_PEND", 0x0f, 0x0f }, 1099*50b464aaSScott Long { "SEND_REJECT", 0x11, 0x11 }, 1100*50b464aaSScott Long { "PROTO_VIOLATION", 0x21, 0x21 }, 1101*50b464aaSScott Long { "NO_MATCH", 0x31, 0x31 }, 1102*50b464aaSScott Long { "IGN_WIDE_RES", 0x41, 0x41 }, 1103*50b464aaSScott Long { "PDATA_REINIT", 0x51, 0x51 }, 1104*50b464aaSScott Long { "HOST_MSG_LOOP", 0x61, 0x61 }, 1105*50b464aaSScott Long { "BAD_STATUS", 0x71, 0x71 }, 1106*50b464aaSScott Long { "PERR_DETECTED", 0x81, 0x81 }, 1107*50b464aaSScott Long { "DATA_OVERRUN", 0x91, 0x91 }, 1108*50b464aaSScott Long { "MKMSG_FAILED", 0xa1, 0xa1 }, 1109*50b464aaSScott Long { "MISSED_BUSFREE", 0xb1, 0xb1 }, 1110*50b464aaSScott Long { "SCB_MISMATCH", 0xc1, 0xc1 }, 1111*50b464aaSScott Long { "NO_FREE_SCB", 0xd1, 0xd1 }, 1112*50b464aaSScott Long { "OUT_OF_RANGE", 0xe1, 0xe1 }, 1113*50b464aaSScott Long { "SEQINT_MASK", 0xf1, 0xf1 } 1114*50b464aaSScott Long }; 1115*50b464aaSScott Long 1116*50b464aaSScott Long int 1117*50b464aaSScott Long ahc_intstat_print(u_int regvalue, u_int *cur_col, u_int wrap) 1118*50b464aaSScott Long { 1119*50b464aaSScott Long return (ahc_print_register(INTSTAT_parse_table, 21, "INTSTAT", 1120*50b464aaSScott Long 0x91, regvalue, cur_col, wrap)); 1121*50b464aaSScott Long } 1122*50b464aaSScott Long 1123*50b464aaSScott Long static ahc_reg_parse_entry_t ERROR_parse_table[] = { 1124*50b464aaSScott Long { "ILLHADDR", 0x01, 0x01 }, 1125*50b464aaSScott Long { "ILLSADDR", 0x02, 0x02 }, 1126*50b464aaSScott Long { "ILLOPCODE", 0x04, 0x04 }, 1127*50b464aaSScott Long { "SQPARERR", 0x08, 0x08 }, 1128*50b464aaSScott Long { "DPARERR", 0x10, 0x10 }, 1129*50b464aaSScott Long { "MPARERR", 0x20, 0x20 }, 1130*50b464aaSScott Long { "PCIERRSTAT", 0x40, 0x40 }, 1131*50b464aaSScott Long { "CIOPARERR", 0x80, 0x80 } 1132*50b464aaSScott Long }; 1133*50b464aaSScott Long 1134*50b464aaSScott Long int 1135*50b464aaSScott Long ahc_error_print(u_int regvalue, u_int *cur_col, u_int wrap) 1136*50b464aaSScott Long { 1137*50b464aaSScott Long return (ahc_print_register(ERROR_parse_table, 8, "ERROR", 1138*50b464aaSScott Long 0x92, regvalue, cur_col, wrap)); 1139*50b464aaSScott Long } 1140*50b464aaSScott Long 1141*50b464aaSScott Long static ahc_reg_parse_entry_t CLRINT_parse_table[] = { 1142*50b464aaSScott Long { "CLRSEQINT", 0x01, 0x01 }, 1143*50b464aaSScott Long { "CLRCMDINT", 0x02, 0x02 }, 1144*50b464aaSScott Long { "CLRSCSIINT", 0x04, 0x04 }, 1145*50b464aaSScott Long { "CLRBRKADRINT", 0x08, 0x08 }, 1146*50b464aaSScott Long { "CLRPARERR", 0x10, 0x10 } 1147*50b464aaSScott Long }; 1148*50b464aaSScott Long 1149*50b464aaSScott Long int 1150*50b464aaSScott Long ahc_clrint_print(u_int regvalue, u_int *cur_col, u_int wrap) 1151*50b464aaSScott Long { 1152*50b464aaSScott Long return (ahc_print_register(CLRINT_parse_table, 5, "CLRINT", 1153*50b464aaSScott Long 0x92, regvalue, cur_col, wrap)); 1154*50b464aaSScott Long } 1155*50b464aaSScott Long 1156*50b464aaSScott Long static ahc_reg_parse_entry_t DFCNTRL_parse_table[] = { 1157*50b464aaSScott Long { "FIFORESET", 0x01, 0x01 }, 1158*50b464aaSScott Long { "FIFOFLUSH", 0x02, 0x02 }, 1159*50b464aaSScott Long { "DIRECTION", 0x04, 0x04 }, 1160*50b464aaSScott Long { "HDMAEN", 0x08, 0x08 }, 1161*50b464aaSScott Long { "HDMAENACK", 0x08, 0x08 }, 1162*50b464aaSScott Long { "SDMAEN", 0x10, 0x10 }, 1163*50b464aaSScott Long { "SDMAENACK", 0x10, 0x10 }, 1164*50b464aaSScott Long { "SCSIEN", 0x20, 0x20 }, 1165*50b464aaSScott Long { "WIDEODD", 0x40, 0x40 }, 1166*50b464aaSScott Long { "PRELOADEN", 0x80, 0x80 } 1167*50b464aaSScott Long }; 1168*50b464aaSScott Long 1169*50b464aaSScott Long int 1170*50b464aaSScott Long ahc_dfcntrl_print(u_int regvalue, u_int *cur_col, u_int wrap) 1171*50b464aaSScott Long { 1172*50b464aaSScott Long return (ahc_print_register(DFCNTRL_parse_table, 10, "DFCNTRL", 1173*50b464aaSScott Long 0x93, regvalue, cur_col, wrap)); 1174*50b464aaSScott Long } 1175*50b464aaSScott Long 1176*50b464aaSScott Long static ahc_reg_parse_entry_t DFSTATUS_parse_table[] = { 1177*50b464aaSScott Long { "FIFOEMP", 0x01, 0x01 }, 1178*50b464aaSScott Long { "FIFOFULL", 0x02, 0x02 }, 1179*50b464aaSScott Long { "DFTHRESH", 0x04, 0x04 }, 1180*50b464aaSScott Long { "HDONE", 0x08, 0x08 }, 1181*50b464aaSScott Long { "MREQPEND", 0x10, 0x10 }, 1182*50b464aaSScott Long { "FIFOQWDEMP", 0x20, 0x20 }, 1183*50b464aaSScott Long { "DFCACHETH", 0x40, 0x40 }, 1184*50b464aaSScott Long { "PRELOAD_AVAIL", 0x80, 0x80 } 1185*50b464aaSScott Long }; 1186*50b464aaSScott Long 1187*50b464aaSScott Long int 1188*50b464aaSScott Long ahc_dfstatus_print(u_int regvalue, u_int *cur_col, u_int wrap) 1189*50b464aaSScott Long { 1190*50b464aaSScott Long return (ahc_print_register(DFSTATUS_parse_table, 8, "DFSTATUS", 1191*50b464aaSScott Long 0x94, regvalue, cur_col, wrap)); 1192*50b464aaSScott Long } 1193*50b464aaSScott Long 1194*50b464aaSScott Long int 1195*50b464aaSScott Long ahc_dfwaddr_print(u_int regvalue, u_int *cur_col, u_int wrap) 1196*50b464aaSScott Long { 1197*50b464aaSScott Long return (ahc_print_register(NULL, 0, "DFWADDR", 1198*50b464aaSScott Long 0x95, regvalue, cur_col, wrap)); 1199*50b464aaSScott Long } 1200*50b464aaSScott Long 1201*50b464aaSScott Long int 1202*50b464aaSScott Long ahc_dfraddr_print(u_int regvalue, u_int *cur_col, u_int wrap) 1203*50b464aaSScott Long { 1204*50b464aaSScott Long return (ahc_print_register(NULL, 0, "DFRADDR", 1205*50b464aaSScott Long 0x97, regvalue, cur_col, wrap)); 1206*50b464aaSScott Long } 1207*50b464aaSScott Long 1208*50b464aaSScott Long int 1209*50b464aaSScott Long ahc_dfdat_print(u_int regvalue, u_int *cur_col, u_int wrap) 1210*50b464aaSScott Long { 1211*50b464aaSScott Long return (ahc_print_register(NULL, 0, "DFDAT", 1212*50b464aaSScott Long 0x99, regvalue, cur_col, wrap)); 1213*50b464aaSScott Long } 1214*50b464aaSScott Long 1215*50b464aaSScott Long static ahc_reg_parse_entry_t SCBCNT_parse_table[] = { 1216*50b464aaSScott Long { "SCBAUTO", 0x80, 0x80 }, 1217*50b464aaSScott Long { "SCBCNT_MASK", 0x1f, 0x1f } 1218*50b464aaSScott Long }; 1219*50b464aaSScott Long 1220*50b464aaSScott Long int 1221*50b464aaSScott Long ahc_scbcnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 1222*50b464aaSScott Long { 1223*50b464aaSScott Long return (ahc_print_register(SCBCNT_parse_table, 2, "SCBCNT", 1224*50b464aaSScott Long 0x9a, regvalue, cur_col, wrap)); 1225*50b464aaSScott Long } 1226*50b464aaSScott Long 1227*50b464aaSScott Long int 1228*50b464aaSScott Long ahc_qinfifo_print(u_int regvalue, u_int *cur_col, u_int wrap) 1229*50b464aaSScott Long { 1230*50b464aaSScott Long return (ahc_print_register(NULL, 0, "QINFIFO", 1231*50b464aaSScott Long 0x9b, regvalue, cur_col, wrap)); 1232*50b464aaSScott Long } 1233*50b464aaSScott Long 1234*50b464aaSScott Long int 1235*50b464aaSScott Long ahc_qincnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 1236*50b464aaSScott Long { 1237*50b464aaSScott Long return (ahc_print_register(NULL, 0, "QINCNT", 1238*50b464aaSScott Long 0x9c, regvalue, cur_col, wrap)); 1239*50b464aaSScott Long } 1240*50b464aaSScott Long 1241*50b464aaSScott Long static ahc_reg_parse_entry_t CRCCONTROL1_parse_table[] = { 1242*50b464aaSScott Long { "TARGCRCCNTEN", 0x04, 0x04 }, 1243*50b464aaSScott Long { "TARGCRCENDEN", 0x08, 0x08 }, 1244*50b464aaSScott Long { "CRCREQCHKEN", 0x10, 0x10 }, 1245*50b464aaSScott Long { "CRCENDCHKEN", 0x20, 0x20 }, 1246*50b464aaSScott Long { "CRCVALCHKEN", 0x40, 0x40 }, 1247*50b464aaSScott Long { "CRCONSEEN", 0x80, 0x80 } 1248*50b464aaSScott Long }; 1249*50b464aaSScott Long 1250*50b464aaSScott Long int 1251*50b464aaSScott Long ahc_crccontrol1_print(u_int regvalue, u_int *cur_col, u_int wrap) 1252*50b464aaSScott Long { 1253*50b464aaSScott Long return (ahc_print_register(CRCCONTROL1_parse_table, 6, "CRCCONTROL1", 1254*50b464aaSScott Long 0x9d, regvalue, cur_col, wrap)); 1255*50b464aaSScott Long } 1256*50b464aaSScott Long 1257*50b464aaSScott Long int 1258*50b464aaSScott Long ahc_qoutfifo_print(u_int regvalue, u_int *cur_col, u_int wrap) 1259*50b464aaSScott Long { 1260*50b464aaSScott Long return (ahc_print_register(NULL, 0, "QOUTFIFO", 1261*50b464aaSScott Long 0x9d, regvalue, cur_col, wrap)); 1262*50b464aaSScott Long } 1263*50b464aaSScott Long 1264*50b464aaSScott Long int 1265*50b464aaSScott Long ahc_qoutcnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 1266*50b464aaSScott Long { 1267*50b464aaSScott Long return (ahc_print_register(NULL, 0, "QOUTCNT", 1268*50b464aaSScott Long 0x9e, regvalue, cur_col, wrap)); 1269*50b464aaSScott Long } 1270*50b464aaSScott Long 1271*50b464aaSScott Long static ahc_reg_parse_entry_t SCSIPHASE_parse_table[] = { 1272*50b464aaSScott Long { "DATA_OUT_PHASE", 0x01, 0x01 }, 1273*50b464aaSScott Long { "DATA_IN_PHASE", 0x02, 0x02 }, 1274*50b464aaSScott Long { "MSG_OUT_PHASE", 0x04, 0x04 }, 1275*50b464aaSScott Long { "MSG_IN_PHASE", 0x08, 0x08 }, 1276*50b464aaSScott Long { "COMMAND_PHASE", 0x10, 0x10 }, 1277*50b464aaSScott Long { "STATUS_PHASE", 0x20, 0x20 }, 1278*50b464aaSScott Long { "DATA_PHASE_MASK", 0x03, 0x03 } 1279*50b464aaSScott Long }; 1280*50b464aaSScott Long 1281*50b464aaSScott Long int 1282*50b464aaSScott Long ahc_scsiphase_print(u_int regvalue, u_int *cur_col, u_int wrap) 1283*50b464aaSScott Long { 1284*50b464aaSScott Long return (ahc_print_register(SCSIPHASE_parse_table, 7, "SCSIPHASE", 1285*50b464aaSScott Long 0x9e, regvalue, cur_col, wrap)); 1286*50b464aaSScott Long } 1287*50b464aaSScott Long 1288*50b464aaSScott Long static ahc_reg_parse_entry_t SFUNCT_parse_table[] = { 1289*50b464aaSScott Long { "ALT_MODE", 0x80, 0x80 } 1290*50b464aaSScott Long }; 1291*50b464aaSScott Long 1292*50b464aaSScott Long int 1293*50b464aaSScott Long ahc_sfunct_print(u_int regvalue, u_int *cur_col, u_int wrap) 1294*50b464aaSScott Long { 1295*50b464aaSScott Long return (ahc_print_register(SFUNCT_parse_table, 1, "SFUNCT", 1296*50b464aaSScott Long 0x9f, regvalue, cur_col, wrap)); 1297*50b464aaSScott Long } 1298*50b464aaSScott Long 1299*50b464aaSScott Long int 1300*50b464aaSScott Long ahc_scb_base_print(u_int regvalue, u_int *cur_col, u_int wrap) 1301*50b464aaSScott Long { 1302*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SCB_BASE", 1303*50b464aaSScott Long 0xa0, regvalue, cur_col, wrap)); 1304*50b464aaSScott Long } 1305*50b464aaSScott Long 1306*50b464aaSScott Long int 1307*50b464aaSScott Long ahc_scb_cdb_ptr_print(u_int regvalue, u_int *cur_col, u_int wrap) 1308*50b464aaSScott Long { 1309*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SCB_CDB_PTR", 1310*50b464aaSScott Long 0xa0, regvalue, cur_col, wrap)); 1311*50b464aaSScott Long } 1312*50b464aaSScott Long 1313*50b464aaSScott Long int 1314*50b464aaSScott Long ahc_scb_residual_sgptr_print(u_int regvalue, u_int *cur_col, u_int wrap) 1315*50b464aaSScott Long { 1316*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SCB_RESIDUAL_SGPTR", 1317*50b464aaSScott Long 0xa4, regvalue, cur_col, wrap)); 1318*50b464aaSScott Long } 1319*50b464aaSScott Long 1320*50b464aaSScott Long int 1321*50b464aaSScott Long ahc_scb_scsi_status_print(u_int regvalue, u_int *cur_col, u_int wrap) 1322*50b464aaSScott Long { 1323*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SCB_SCSI_STATUS", 1324*50b464aaSScott Long 0xa8, regvalue, cur_col, wrap)); 1325*50b464aaSScott Long } 1326*50b464aaSScott Long 1327*50b464aaSScott Long int 1328*50b464aaSScott Long ahc_scb_target_phases_print(u_int regvalue, u_int *cur_col, u_int wrap) 1329*50b464aaSScott Long { 1330*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SCB_TARGET_PHASES", 1331*50b464aaSScott Long 0xa9, regvalue, cur_col, wrap)); 1332*50b464aaSScott Long } 1333*50b464aaSScott Long 1334*50b464aaSScott Long int 1335*50b464aaSScott Long ahc_scb_target_data_dir_print(u_int regvalue, u_int *cur_col, u_int wrap) 1336*50b464aaSScott Long { 1337*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SCB_TARGET_DATA_DIR", 1338*50b464aaSScott Long 0xaa, regvalue, cur_col, wrap)); 1339*50b464aaSScott Long } 1340*50b464aaSScott Long 1341*50b464aaSScott Long int 1342*50b464aaSScott Long ahc_scb_target_itag_print(u_int regvalue, u_int *cur_col, u_int wrap) 1343*50b464aaSScott Long { 1344*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SCB_TARGET_ITAG", 1345*50b464aaSScott Long 0xab, regvalue, cur_col, wrap)); 1346*50b464aaSScott Long } 1347*50b464aaSScott Long 1348*50b464aaSScott Long int 1349*50b464aaSScott Long ahc_scb_dataptr_print(u_int regvalue, u_int *cur_col, u_int wrap) 1350*50b464aaSScott Long { 1351*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SCB_DATAPTR", 1352*50b464aaSScott Long 0xac, regvalue, cur_col, wrap)); 1353*50b464aaSScott Long } 1354*50b464aaSScott Long 1355*50b464aaSScott Long static ahc_reg_parse_entry_t SCB_DATACNT_parse_table[] = { 1356*50b464aaSScott Long { "SG_LAST_SEG", 0x80, 0x80 }, 1357*50b464aaSScott Long { "SG_HIGH_ADDR_BITS", 0x7f, 0x7f } 1358*50b464aaSScott Long }; 1359*50b464aaSScott Long 1360*50b464aaSScott Long int 1361*50b464aaSScott Long ahc_scb_datacnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 1362*50b464aaSScott Long { 1363*50b464aaSScott Long return (ahc_print_register(SCB_DATACNT_parse_table, 2, "SCB_DATACNT", 1364*50b464aaSScott Long 0xb0, regvalue, cur_col, wrap)); 1365*50b464aaSScott Long } 1366*50b464aaSScott Long 1367*50b464aaSScott Long static ahc_reg_parse_entry_t SCB_SGPTR_parse_table[] = { 1368*50b464aaSScott Long { "SG_LIST_NULL", 0x01, 0x01 }, 1369*50b464aaSScott Long { "SG_FULL_RESID", 0x02, 0x02 }, 1370*50b464aaSScott Long { "SG_RESID_VALID", 0x04, 0x04 } 1371*50b464aaSScott Long }; 1372*50b464aaSScott Long 1373*50b464aaSScott Long int 1374*50b464aaSScott Long ahc_scb_sgptr_print(u_int regvalue, u_int *cur_col, u_int wrap) 1375*50b464aaSScott Long { 1376*50b464aaSScott Long return (ahc_print_register(SCB_SGPTR_parse_table, 3, "SCB_SGPTR", 1377*50b464aaSScott Long 0xb4, regvalue, cur_col, wrap)); 1378*50b464aaSScott Long } 1379*50b464aaSScott Long 1380*50b464aaSScott Long static ahc_reg_parse_entry_t SCB_CONTROL_parse_table[] = { 1381*50b464aaSScott Long { "DISCONNECTED", 0x04, 0x04 }, 1382*50b464aaSScott Long { "ULTRAENB", 0x08, 0x08 }, 1383*50b464aaSScott Long { "MK_MESSAGE", 0x10, 0x10 }, 1384*50b464aaSScott Long { "TAG_ENB", 0x20, 0x20 }, 1385*50b464aaSScott Long { "DISCENB", 0x40, 0x40 }, 1386*50b464aaSScott Long { "TARGET_SCB", 0x80, 0x80 }, 1387*50b464aaSScott Long { "STATUS_RCVD", 0x80, 0x80 }, 1388*50b464aaSScott Long { "SCB_TAG_TYPE", 0x03, 0x03 } 1389*50b464aaSScott Long }; 1390*50b464aaSScott Long 1391*50b464aaSScott Long int 1392*50b464aaSScott Long ahc_scb_control_print(u_int regvalue, u_int *cur_col, u_int wrap) 1393*50b464aaSScott Long { 1394*50b464aaSScott Long return (ahc_print_register(SCB_CONTROL_parse_table, 8, "SCB_CONTROL", 1395*50b464aaSScott Long 0xb8, regvalue, cur_col, wrap)); 1396*50b464aaSScott Long } 1397*50b464aaSScott Long 1398*50b464aaSScott Long static ahc_reg_parse_entry_t SCB_SCSIID_parse_table[] = { 1399*50b464aaSScott Long { "TWIN_CHNLB", 0x80, 0x80 }, 1400*50b464aaSScott Long { "OID", 0x0f, 0x0f }, 1401*50b464aaSScott Long { "TWIN_TID", 0x70, 0x70 }, 1402*50b464aaSScott Long { "TID", 0xf0, 0xf0 } 1403*50b464aaSScott Long }; 1404*50b464aaSScott Long 1405*50b464aaSScott Long int 1406*50b464aaSScott Long ahc_scb_scsiid_print(u_int regvalue, u_int *cur_col, u_int wrap) 1407*50b464aaSScott Long { 1408*50b464aaSScott Long return (ahc_print_register(SCB_SCSIID_parse_table, 4, "SCB_SCSIID", 1409*50b464aaSScott Long 0xb9, regvalue, cur_col, wrap)); 1410*50b464aaSScott Long } 1411*50b464aaSScott Long 1412*50b464aaSScott Long static ahc_reg_parse_entry_t SCB_LUN_parse_table[] = { 1413*50b464aaSScott Long { "SCB_XFERLEN_ODD", 0x80, 0x80 }, 1414*50b464aaSScott Long { "LID", 0x3f, 0x3f } 1415*50b464aaSScott Long }; 1416*50b464aaSScott Long 1417*50b464aaSScott Long int 1418*50b464aaSScott Long ahc_scb_lun_print(u_int regvalue, u_int *cur_col, u_int wrap) 1419*50b464aaSScott Long { 1420*50b464aaSScott Long return (ahc_print_register(SCB_LUN_parse_table, 2, "SCB_LUN", 1421*50b464aaSScott Long 0xba, regvalue, cur_col, wrap)); 1422*50b464aaSScott Long } 1423*50b464aaSScott Long 1424*50b464aaSScott Long int 1425*50b464aaSScott Long ahc_scb_tag_print(u_int regvalue, u_int *cur_col, u_int wrap) 1426*50b464aaSScott Long { 1427*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SCB_TAG", 1428*50b464aaSScott Long 0xbb, regvalue, cur_col, wrap)); 1429*50b464aaSScott Long } 1430*50b464aaSScott Long 1431*50b464aaSScott Long int 1432*50b464aaSScott Long ahc_scb_cdb_len_print(u_int regvalue, u_int *cur_col, u_int wrap) 1433*50b464aaSScott Long { 1434*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SCB_CDB_LEN", 1435*50b464aaSScott Long 0xbc, regvalue, cur_col, wrap)); 1436*50b464aaSScott Long } 1437*50b464aaSScott Long 1438*50b464aaSScott Long int 1439*50b464aaSScott Long ahc_scb_scsirate_print(u_int regvalue, u_int *cur_col, u_int wrap) 1440*50b464aaSScott Long { 1441*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SCB_SCSIRATE", 1442*50b464aaSScott Long 0xbd, regvalue, cur_col, wrap)); 1443*50b464aaSScott Long } 1444*50b464aaSScott Long 1445*50b464aaSScott Long int 1446*50b464aaSScott Long ahc_scb_scsioffset_print(u_int regvalue, u_int *cur_col, u_int wrap) 1447*50b464aaSScott Long { 1448*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SCB_SCSIOFFSET", 1449*50b464aaSScott Long 0xbe, regvalue, cur_col, wrap)); 1450*50b464aaSScott Long } 1451*50b464aaSScott Long 1452*50b464aaSScott Long int 1453*50b464aaSScott Long ahc_scb_next_print(u_int regvalue, u_int *cur_col, u_int wrap) 1454*50b464aaSScott Long { 1455*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SCB_NEXT", 1456*50b464aaSScott Long 0xbf, regvalue, cur_col, wrap)); 1457*50b464aaSScott Long } 1458*50b464aaSScott Long 1459*50b464aaSScott Long int 1460*50b464aaSScott Long ahc_scb_64_spare_print(u_int regvalue, u_int *cur_col, u_int wrap) 1461*50b464aaSScott Long { 1462*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SCB_64_SPARE", 1463*50b464aaSScott Long 0xc0, regvalue, cur_col, wrap)); 1464*50b464aaSScott Long } 1465*50b464aaSScott Long 1466*50b464aaSScott Long static ahc_reg_parse_entry_t SEECTL_2840_parse_table[] = { 1467*50b464aaSScott Long { "DO_2840", 0x01, 0x01 }, 1468*50b464aaSScott Long { "CK_2840", 0x02, 0x02 }, 1469*50b464aaSScott Long { "CS_2840", 0x04, 0x04 } 1470*50b464aaSScott Long }; 1471*50b464aaSScott Long 1472*50b464aaSScott Long int 1473*50b464aaSScott Long ahc_seectl_2840_print(u_int regvalue, u_int *cur_col, u_int wrap) 1474*50b464aaSScott Long { 1475*50b464aaSScott Long return (ahc_print_register(SEECTL_2840_parse_table, 3, "SEECTL_2840", 1476*50b464aaSScott Long 0xc0, regvalue, cur_col, wrap)); 1477*50b464aaSScott Long } 1478*50b464aaSScott Long 1479*50b464aaSScott Long static ahc_reg_parse_entry_t STATUS_2840_parse_table[] = { 1480*50b464aaSScott Long { "DI_2840", 0x01, 0x01 }, 1481*50b464aaSScott Long { "EEPROM_TF", 0x80, 0x80 }, 1482*50b464aaSScott Long { "ADSEL", 0x1e, 0x1e }, 1483*50b464aaSScott Long { "BIOS_SEL", 0x60, 0x60 } 1484*50b464aaSScott Long }; 1485*50b464aaSScott Long 1486*50b464aaSScott Long int 1487*50b464aaSScott Long ahc_status_2840_print(u_int regvalue, u_int *cur_col, u_int wrap) 1488*50b464aaSScott Long { 1489*50b464aaSScott Long return (ahc_print_register(STATUS_2840_parse_table, 4, "STATUS_2840", 1490*50b464aaSScott Long 0xc1, regvalue, cur_col, wrap)); 1491*50b464aaSScott Long } 1492*50b464aaSScott Long 1493*50b464aaSScott Long int 1494*50b464aaSScott Long ahc_scb_64_btt_print(u_int regvalue, u_int *cur_col, u_int wrap) 1495*50b464aaSScott Long { 1496*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SCB_64_BTT", 1497*50b464aaSScott Long 0xd0, regvalue, cur_col, wrap)); 1498*50b464aaSScott Long } 1499*50b464aaSScott Long 1500*50b464aaSScott Long int 1501*50b464aaSScott Long ahc_cchaddr_print(u_int regvalue, u_int *cur_col, u_int wrap) 1502*50b464aaSScott Long { 1503*50b464aaSScott Long return (ahc_print_register(NULL, 0, "CCHADDR", 1504*50b464aaSScott Long 0xe0, regvalue, cur_col, wrap)); 1505*50b464aaSScott Long } 1506*50b464aaSScott Long 1507*50b464aaSScott Long int 1508*50b464aaSScott Long ahc_cchcnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 1509*50b464aaSScott Long { 1510*50b464aaSScott Long return (ahc_print_register(NULL, 0, "CCHCNT", 1511*50b464aaSScott Long 0xe8, regvalue, cur_col, wrap)); 1512*50b464aaSScott Long } 1513*50b464aaSScott Long 1514*50b464aaSScott Long int 1515*50b464aaSScott Long ahc_ccsgram_print(u_int regvalue, u_int *cur_col, u_int wrap) 1516*50b464aaSScott Long { 1517*50b464aaSScott Long return (ahc_print_register(NULL, 0, "CCSGRAM", 1518*50b464aaSScott Long 0xe9, regvalue, cur_col, wrap)); 1519*50b464aaSScott Long } 1520*50b464aaSScott Long 1521*50b464aaSScott Long int 1522*50b464aaSScott Long ahc_ccsgaddr_print(u_int regvalue, u_int *cur_col, u_int wrap) 1523*50b464aaSScott Long { 1524*50b464aaSScott Long return (ahc_print_register(NULL, 0, "CCSGADDR", 1525*50b464aaSScott Long 0xea, regvalue, cur_col, wrap)); 1526*50b464aaSScott Long } 1527*50b464aaSScott Long 1528*50b464aaSScott Long static ahc_reg_parse_entry_t CCSGCTL_parse_table[] = { 1529*50b464aaSScott Long { "CCSGRESET", 0x01, 0x01 }, 1530*50b464aaSScott Long { "SG_FETCH_NEEDED", 0x02, 0x02 }, 1531*50b464aaSScott Long { "CCSGEN", 0x08, 0x08 }, 1532*50b464aaSScott Long { "CCSGDONE", 0x80, 0x80 } 1533*50b464aaSScott Long }; 1534*50b464aaSScott Long 1535*50b464aaSScott Long int 1536*50b464aaSScott Long ahc_ccsgctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 1537*50b464aaSScott Long { 1538*50b464aaSScott Long return (ahc_print_register(CCSGCTL_parse_table, 4, "CCSGCTL", 1539*50b464aaSScott Long 0xeb, regvalue, cur_col, wrap)); 1540*50b464aaSScott Long } 1541*50b464aaSScott Long 1542*50b464aaSScott Long int 1543*50b464aaSScott Long ahc_ccscbram_print(u_int regvalue, u_int *cur_col, u_int wrap) 1544*50b464aaSScott Long { 1545*50b464aaSScott Long return (ahc_print_register(NULL, 0, "CCSCBRAM", 1546*50b464aaSScott Long 0xec, regvalue, cur_col, wrap)); 1547*50b464aaSScott Long } 1548*50b464aaSScott Long 1549*50b464aaSScott Long int 1550*50b464aaSScott Long ahc_ccscbaddr_print(u_int regvalue, u_int *cur_col, u_int wrap) 1551*50b464aaSScott Long { 1552*50b464aaSScott Long return (ahc_print_register(NULL, 0, "CCSCBADDR", 1553*50b464aaSScott Long 0xed, regvalue, cur_col, wrap)); 1554*50b464aaSScott Long } 1555*50b464aaSScott Long 1556*50b464aaSScott Long static ahc_reg_parse_entry_t CCSCBCTL_parse_table[] = { 1557*50b464aaSScott Long { "CCSCBRESET", 0x01, 0x01 }, 1558*50b464aaSScott Long { "CCSCBDIR", 0x04, 0x04 }, 1559*50b464aaSScott Long { "CCSCBEN", 0x08, 0x08 }, 1560*50b464aaSScott Long { "CCARREN", 0x10, 0x10 }, 1561*50b464aaSScott Long { "ARRDONE", 0x40, 0x40 }, 1562*50b464aaSScott Long { "CCSCBDONE", 0x80, 0x80 } 1563*50b464aaSScott Long }; 1564*50b464aaSScott Long 1565*50b464aaSScott Long int 1566*50b464aaSScott Long ahc_ccscbctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 1567*50b464aaSScott Long { 1568*50b464aaSScott Long return (ahc_print_register(CCSCBCTL_parse_table, 6, "CCSCBCTL", 1569*50b464aaSScott Long 0xee, regvalue, cur_col, wrap)); 1570*50b464aaSScott Long } 1571*50b464aaSScott Long 1572*50b464aaSScott Long int 1573*50b464aaSScott Long ahc_ccscbcnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 1574*50b464aaSScott Long { 1575*50b464aaSScott Long return (ahc_print_register(NULL, 0, "CCSCBCNT", 1576*50b464aaSScott Long 0xef, regvalue, cur_col, wrap)); 1577*50b464aaSScott Long } 1578*50b464aaSScott Long 1579*50b464aaSScott Long int 1580*50b464aaSScott Long ahc_scbbaddr_print(u_int regvalue, u_int *cur_col, u_int wrap) 1581*50b464aaSScott Long { 1582*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SCBBADDR", 1583*50b464aaSScott Long 0xf0, regvalue, cur_col, wrap)); 1584*50b464aaSScott Long } 1585*50b464aaSScott Long 1586*50b464aaSScott Long int 1587*50b464aaSScott Long ahc_ccscbptr_print(u_int regvalue, u_int *cur_col, u_int wrap) 1588*50b464aaSScott Long { 1589*50b464aaSScott Long return (ahc_print_register(NULL, 0, "CCSCBPTR", 1590*50b464aaSScott Long 0xf1, regvalue, cur_col, wrap)); 1591*50b464aaSScott Long } 1592*50b464aaSScott Long 1593*50b464aaSScott Long int 1594*50b464aaSScott Long ahc_hnscb_qoff_print(u_int regvalue, u_int *cur_col, u_int wrap) 1595*50b464aaSScott Long { 1596*50b464aaSScott Long return (ahc_print_register(NULL, 0, "HNSCB_QOFF", 1597*50b464aaSScott Long 0xf4, regvalue, cur_col, wrap)); 1598*50b464aaSScott Long } 1599*50b464aaSScott Long 1600*50b464aaSScott Long int 1601*50b464aaSScott Long ahc_snscb_qoff_print(u_int regvalue, u_int *cur_col, u_int wrap) 1602*50b464aaSScott Long { 1603*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SNSCB_QOFF", 1604*50b464aaSScott Long 0xf6, regvalue, cur_col, wrap)); 1605*50b464aaSScott Long } 1606*50b464aaSScott Long 1607*50b464aaSScott Long int 1608*50b464aaSScott Long ahc_sdscb_qoff_print(u_int regvalue, u_int *cur_col, u_int wrap) 1609*50b464aaSScott Long { 1610*50b464aaSScott Long return (ahc_print_register(NULL, 0, "SDSCB_QOFF", 1611*50b464aaSScott Long 0xf8, regvalue, cur_col, wrap)); 1612*50b464aaSScott Long } 1613*50b464aaSScott Long 1614*50b464aaSScott Long static ahc_reg_parse_entry_t QOFF_CTLSTA_parse_table[] = { 1615*50b464aaSScott Long { "SDSCB_ROLLOVER", 0x10, 0x10 }, 1616*50b464aaSScott Long { "SNSCB_ROLLOVER", 0x20, 0x20 }, 1617*50b464aaSScott Long { "SCB_AVAIL", 0x40, 0x40 }, 1618*50b464aaSScott Long { "SCB_QSIZE_256", 0x06, 0x06 }, 1619*50b464aaSScott Long { "SCB_QSIZE", 0x07, 0x07 } 1620*50b464aaSScott Long }; 1621*50b464aaSScott Long 1622*50b464aaSScott Long int 1623*50b464aaSScott Long ahc_qoff_ctlsta_print(u_int regvalue, u_int *cur_col, u_int wrap) 1624*50b464aaSScott Long { 1625*50b464aaSScott Long return (ahc_print_register(QOFF_CTLSTA_parse_table, 5, "QOFF_CTLSTA", 1626*50b464aaSScott Long 0xfa, regvalue, cur_col, wrap)); 1627*50b464aaSScott Long } 1628*50b464aaSScott Long 1629*50b464aaSScott Long static ahc_reg_parse_entry_t DFF_THRSH_parse_table[] = { 1630*50b464aaSScott Long { "RD_DFTHRSH_MIN", 0x00, 0x00 }, 1631*50b464aaSScott Long { "WR_DFTHRSH_MIN", 0x00, 0x00 }, 1632*50b464aaSScott Long { "RD_DFTHRSH_25", 0x01, 0x01 }, 1633*50b464aaSScott Long { "RD_DFTHRSH_50", 0x02, 0x02 }, 1634*50b464aaSScott Long { "RD_DFTHRSH_63", 0x03, 0x03 }, 1635*50b464aaSScott Long { "RD_DFTHRSH_75", 0x04, 0x04 }, 1636*50b464aaSScott Long { "RD_DFTHRSH_85", 0x05, 0x05 }, 1637*50b464aaSScott Long { "RD_DFTHRSH_90", 0x06, 0x06 }, 1638*50b464aaSScott Long { "RD_DFTHRSH", 0x07, 0x07 }, 1639*50b464aaSScott Long { "RD_DFTHRSH_MAX", 0x07, 0x07 }, 1640*50b464aaSScott Long { "WR_DFTHRSH_25", 0x10, 0x10 }, 1641*50b464aaSScott Long { "WR_DFTHRSH_50", 0x20, 0x20 }, 1642*50b464aaSScott Long { "WR_DFTHRSH_63", 0x30, 0x30 }, 1643*50b464aaSScott Long { "WR_DFTHRSH_75", 0x40, 0x40 }, 1644*50b464aaSScott Long { "WR_DFTHRSH_85", 0x50, 0x50 }, 1645*50b464aaSScott Long { "WR_DFTHRSH_90", 0x60, 0x60 }, 1646*50b464aaSScott Long { "WR_DFTHRSH", 0x70, 0x70 }, 1647*50b464aaSScott Long { "WR_DFTHRSH_MAX", 0x70, 0x70 } 1648*50b464aaSScott Long }; 1649*50b464aaSScott Long 1650*50b464aaSScott Long int 1651*50b464aaSScott Long ahc_dff_thrsh_print(u_int regvalue, u_int *cur_col, u_int wrap) 1652*50b464aaSScott Long { 1653*50b464aaSScott Long return (ahc_print_register(DFF_THRSH_parse_table, 18, "DFF_THRSH", 1654*50b464aaSScott Long 0xfb, regvalue, cur_col, wrap)); 1655*50b464aaSScott Long } 1656*50b464aaSScott Long 1657*50b464aaSScott Long static ahc_reg_parse_entry_t SG_CACHE_SHADOW_parse_table[] = { 1658*50b464aaSScott Long { "LAST_SEG_DONE", 0x01, 0x01 }, 1659*50b464aaSScott Long { "LAST_SEG", 0x02, 0x02 }, 1660*50b464aaSScott Long { "SG_ADDR_MASK", 0xf8, 0xf8 } 1661*50b464aaSScott Long }; 1662*50b464aaSScott Long 1663*50b464aaSScott Long int 1664*50b464aaSScott Long ahc_sg_cache_shadow_print(u_int regvalue, u_int *cur_col, u_int wrap) 1665*50b464aaSScott Long { 1666*50b464aaSScott Long return (ahc_print_register(SG_CACHE_SHADOW_parse_table, 3, "SG_CACHE_SHADOW", 1667*50b464aaSScott Long 0xfc, regvalue, cur_col, wrap)); 1668*50b464aaSScott Long } 1669*50b464aaSScott Long 1670*50b464aaSScott Long static ahc_reg_parse_entry_t SG_CACHE_PRE_parse_table[] = { 1671*50b464aaSScott Long { "LAST_SEG_DONE", 0x01, 0x01 }, 1672*50b464aaSScott Long { "LAST_SEG", 0x02, 0x02 }, 1673*50b464aaSScott Long { "SG_ADDR_MASK", 0xf8, 0xf8 } 1674*50b464aaSScott Long }; 1675*50b464aaSScott Long 1676*50b464aaSScott Long int 1677*50b464aaSScott Long ahc_sg_cache_pre_print(u_int regvalue, u_int *cur_col, u_int wrap) 1678*50b464aaSScott Long { 1679*50b464aaSScott Long return (ahc_print_register(SG_CACHE_PRE_parse_table, 3, "SG_CACHE_PRE", 1680*50b464aaSScott Long 0xfc, regvalue, cur_col, wrap)); 1681*50b464aaSScott Long } 1682