11da177e4SLinus Torvalds/* 21da177e4SLinus Torvalds * DO NOT EDIT - This file is automatically generated 31da177e4SLinus Torvalds * from the following source files: 41da177e4SLinus Torvalds * 553467e63SHannes Reinecke * $Id: //depot/aic7xxx/aic7xxx/aic79xx.seq#120 $ 653467e63SHannes Reinecke * $Id: //depot/aic7xxx/aic7xxx/aic79xx.reg#77 $ 71da177e4SLinus Torvalds */ 81da177e4SLinus Torvalds 91da177e4SLinus Torvalds#include "aic79xx_osm.h" 101da177e4SLinus Torvalds 11d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t INTSTAT_parse_table[] = { 121da177e4SLinus Torvalds { "SPLTINT", 0x01, 0x01 }, 131da177e4SLinus Torvalds { "CMDCMPLT", 0x02, 0x02 }, 141da177e4SLinus Torvalds { "SEQINT", 0x04, 0x04 }, 151da177e4SLinus Torvalds { "SCSIINT", 0x08, 0x08 }, 161da177e4SLinus Torvalds { "PCIINT", 0x10, 0x10 }, 171da177e4SLinus Torvalds { "SWTMINT", 0x20, 0x20 }, 181da177e4SLinus Torvalds { "BRKADRINT", 0x40, 0x40 }, 191da177e4SLinus Torvalds { "HWERRINT", 0x80, 0x80 }, 201da177e4SLinus Torvalds { "INT_PEND", 0xff, 0xff } 211da177e4SLinus Torvalds}; 221da177e4SLinus Torvalds 231da177e4SLinus Torvaldsint 241da177e4SLinus Torvaldsahd_intstat_print(u_int regvalue, u_int *cur_col, u_int wrap) 251da177e4SLinus Torvalds{ 261da177e4SLinus Torvalds return (ahd_print_register(INTSTAT_parse_table, 9, "INTSTAT", 271da177e4SLinus Torvalds 0x01, regvalue, cur_col, wrap)); 281da177e4SLinus Torvalds} 291da177e4SLinus Torvalds 30d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t HS_MAILBOX_parse_table[] = { 311da177e4SLinus Torvalds { "ENINT_COALESCE", 0x40, 0x40 }, 321da177e4SLinus Torvalds { "HOST_TQINPOS", 0x80, 0x80 } 331da177e4SLinus Torvalds}; 341da177e4SLinus Torvalds 351da177e4SLinus Torvaldsint 361da177e4SLinus Torvaldsahd_hs_mailbox_print(u_int regvalue, u_int *cur_col, u_int wrap) 371da177e4SLinus Torvalds{ 381da177e4SLinus Torvalds return (ahd_print_register(HS_MAILBOX_parse_table, 2, "HS_MAILBOX", 391da177e4SLinus Torvalds 0x0b, regvalue, cur_col, wrap)); 401da177e4SLinus Torvalds} 411da177e4SLinus Torvalds 42d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t SEQINTSTAT_parse_table[] = { 431da177e4SLinus Torvalds { "SEQ_SPLTINT", 0x01, 0x01 }, 441da177e4SLinus Torvalds { "SEQ_PCIINT", 0x02, 0x02 }, 451da177e4SLinus Torvalds { "SEQ_SCSIINT", 0x04, 0x04 }, 461da177e4SLinus Torvalds { "SEQ_SEQINT", 0x08, 0x08 }, 471da177e4SLinus Torvalds { "SEQ_SWTMRTO", 0x10, 0x10 } 481da177e4SLinus Torvalds}; 491da177e4SLinus Torvalds 501da177e4SLinus Torvaldsint 511da177e4SLinus Torvaldsahd_seqintstat_print(u_int regvalue, u_int *cur_col, u_int wrap) 521da177e4SLinus Torvalds{ 531da177e4SLinus Torvalds return (ahd_print_register(SEQINTSTAT_parse_table, 5, "SEQINTSTAT", 541da177e4SLinus Torvalds 0x0c, regvalue, cur_col, wrap)); 551da177e4SLinus Torvalds} 561da177e4SLinus Torvalds 57d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t INTCTL_parse_table[] = { 581da177e4SLinus Torvalds { "SPLTINTEN", 0x01, 0x01 }, 591da177e4SLinus Torvalds { "SEQINTEN", 0x02, 0x02 }, 601da177e4SLinus Torvalds { "SCSIINTEN", 0x04, 0x04 }, 611da177e4SLinus Torvalds { "PCIINTEN", 0x08, 0x08 }, 621da177e4SLinus Torvalds { "AUTOCLRCMDINT", 0x10, 0x10 }, 631da177e4SLinus Torvalds { "SWTIMER_START", 0x20, 0x20 }, 641da177e4SLinus Torvalds { "SWTMINTEN", 0x40, 0x40 }, 651da177e4SLinus Torvalds { "SWTMINTMASK", 0x80, 0x80 } 661da177e4SLinus Torvalds}; 671da177e4SLinus Torvalds 681da177e4SLinus Torvaldsint 691da177e4SLinus Torvaldsahd_intctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 701da177e4SLinus Torvalds{ 711da177e4SLinus Torvalds return (ahd_print_register(INTCTL_parse_table, 8, "INTCTL", 721da177e4SLinus Torvalds 0x18, regvalue, cur_col, wrap)); 731da177e4SLinus Torvalds} 741da177e4SLinus Torvalds 75d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t DFCNTRL_parse_table[] = { 761da177e4SLinus Torvalds { "DIRECTIONEN", 0x01, 0x01 }, 771da177e4SLinus Torvalds { "FIFOFLUSH", 0x02, 0x02 }, 781da177e4SLinus Torvalds { "FIFOFLUSHACK", 0x02, 0x02 }, 791da177e4SLinus Torvalds { "DIRECTION", 0x04, 0x04 }, 801da177e4SLinus Torvalds { "DIRECTIONACK", 0x04, 0x04 }, 811da177e4SLinus Torvalds { "HDMAEN", 0x08, 0x08 }, 821da177e4SLinus Torvalds { "HDMAENACK", 0x08, 0x08 }, 831da177e4SLinus Torvalds { "SCSIEN", 0x20, 0x20 }, 841da177e4SLinus Torvalds { "SCSIENACK", 0x20, 0x20 }, 851da177e4SLinus Torvalds { "SCSIENWRDIS", 0x40, 0x40 }, 861da177e4SLinus Torvalds { "PRELOADEN", 0x80, 0x80 } 871da177e4SLinus Torvalds}; 881da177e4SLinus Torvalds 891da177e4SLinus Torvaldsint 901da177e4SLinus Torvaldsahd_dfcntrl_print(u_int regvalue, u_int *cur_col, u_int wrap) 911da177e4SLinus Torvalds{ 921da177e4SLinus Torvalds return (ahd_print_register(DFCNTRL_parse_table, 11, "DFCNTRL", 931da177e4SLinus Torvalds 0x19, regvalue, cur_col, wrap)); 941da177e4SLinus Torvalds} 951da177e4SLinus Torvalds 96d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t DFSTATUS_parse_table[] = { 971da177e4SLinus Torvalds { "FIFOEMP", 0x01, 0x01 }, 981da177e4SLinus Torvalds { "FIFOFULL", 0x02, 0x02 }, 991da177e4SLinus Torvalds { "DFTHRESH", 0x04, 0x04 }, 1001da177e4SLinus Torvalds { "HDONE", 0x08, 0x08 }, 1011da177e4SLinus Torvalds { "MREQPEND", 0x10, 0x10 }, 1021da177e4SLinus Torvalds { "PKT_PRELOAD_AVAIL", 0x40, 0x40 }, 1031da177e4SLinus Torvalds { "PRELOAD_AVAIL", 0x80, 0x80 } 1041da177e4SLinus Torvalds}; 1051da177e4SLinus Torvalds 1061da177e4SLinus Torvaldsint 1071da177e4SLinus Torvaldsahd_dfstatus_print(u_int regvalue, u_int *cur_col, u_int wrap) 1081da177e4SLinus Torvalds{ 1091da177e4SLinus Torvalds return (ahd_print_register(DFSTATUS_parse_table, 7, "DFSTATUS", 1101da177e4SLinus Torvalds 0x1a, regvalue, cur_col, wrap)); 1111da177e4SLinus Torvalds} 1121da177e4SLinus Torvalds 113d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t SG_CACHE_SHADOW_parse_table[] = { 1141da177e4SLinus Torvalds { "LAST_SEG_DONE", 0x01, 0x01 }, 1151da177e4SLinus Torvalds { "LAST_SEG", 0x02, 0x02 }, 1161da177e4SLinus Torvalds { "ODD_SEG", 0x04, 0x04 }, 1171da177e4SLinus Torvalds { "SG_ADDR_MASK", 0xf8, 0xf8 } 1181da177e4SLinus Torvalds}; 1191da177e4SLinus Torvalds 1201da177e4SLinus Torvaldsint 1211da177e4SLinus Torvaldsahd_sg_cache_shadow_print(u_int regvalue, u_int *cur_col, u_int wrap) 1221da177e4SLinus Torvalds{ 1231da177e4SLinus Torvalds return (ahd_print_register(SG_CACHE_SHADOW_parse_table, 4, "SG_CACHE_SHADOW", 1241da177e4SLinus Torvalds 0x1b, regvalue, cur_col, wrap)); 1251da177e4SLinus Torvalds} 1261da177e4SLinus Torvalds 127d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t SCSISEQ0_parse_table[] = { 1281da177e4SLinus Torvalds { "SCSIRSTO", 0x01, 0x01 }, 1291da177e4SLinus Torvalds { "FORCEBUSFREE", 0x10, 0x10 }, 1301da177e4SLinus Torvalds { "ENARBO", 0x20, 0x20 }, 1311da177e4SLinus Torvalds { "ENSELO", 0x40, 0x40 }, 1321da177e4SLinus Torvalds { "TEMODEO", 0x80, 0x80 } 1331da177e4SLinus Torvalds}; 1341da177e4SLinus Torvalds 1351da177e4SLinus Torvaldsint 1361da177e4SLinus Torvaldsahd_scsiseq0_print(u_int regvalue, u_int *cur_col, u_int wrap) 1371da177e4SLinus Torvalds{ 1381da177e4SLinus Torvalds return (ahd_print_register(SCSISEQ0_parse_table, 5, "SCSISEQ0", 1391da177e4SLinus Torvalds 0x3a, regvalue, cur_col, wrap)); 1401da177e4SLinus Torvalds} 1411da177e4SLinus Torvalds 142d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t SCSISEQ1_parse_table[] = { 1431da177e4SLinus Torvalds { "ALTSTIM", 0x01, 0x01 }, 1441da177e4SLinus Torvalds { "ENAUTOATNP", 0x02, 0x02 }, 1451da177e4SLinus Torvalds { "MANUALP", 0x0c, 0x0c }, 1461da177e4SLinus Torvalds { "ENRSELI", 0x10, 0x10 }, 1471da177e4SLinus Torvalds { "ENSELI", 0x20, 0x20 }, 1481da177e4SLinus Torvalds { "MANUALCTL", 0x40, 0x40 } 1491da177e4SLinus Torvalds}; 1501da177e4SLinus Torvalds 1511da177e4SLinus Torvaldsint 1521da177e4SLinus Torvaldsahd_scsiseq1_print(u_int regvalue, u_int *cur_col, u_int wrap) 1531da177e4SLinus Torvalds{ 1541da177e4SLinus Torvalds return (ahd_print_register(SCSISEQ1_parse_table, 6, "SCSISEQ1", 1551da177e4SLinus Torvalds 0x3b, regvalue, cur_col, wrap)); 1561da177e4SLinus Torvalds} 1571da177e4SLinus Torvalds 158d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t DFFSTAT_parse_table[] = { 1591da177e4SLinus Torvalds { "CURRFIFO_0", 0x00, 0x03 }, 1601da177e4SLinus Torvalds { "CURRFIFO_1", 0x01, 0x03 }, 1611da177e4SLinus Torvalds { "CURRFIFO_NONE", 0x03, 0x03 }, 1621da177e4SLinus Torvalds { "FIFO0FREE", 0x10, 0x10 }, 1631da177e4SLinus Torvalds { "FIFO1FREE", 0x20, 0x20 }, 1641da177e4SLinus Torvalds { "CURRFIFO", 0x03, 0x03 } 1651da177e4SLinus Torvalds}; 1661da177e4SLinus Torvalds 1671da177e4SLinus Torvaldsint 1681da177e4SLinus Torvaldsahd_dffstat_print(u_int regvalue, u_int *cur_col, u_int wrap) 1691da177e4SLinus Torvalds{ 1701da177e4SLinus Torvalds return (ahd_print_register(DFFSTAT_parse_table, 6, "DFFSTAT", 1711da177e4SLinus Torvalds 0x3f, regvalue, cur_col, wrap)); 1721da177e4SLinus Torvalds} 1731da177e4SLinus Torvalds 174d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t SCSISIGI_parse_table[] = { 1751da177e4SLinus Torvalds { "P_DATAOUT", 0x00, 0xe0 }, 1761da177e4SLinus Torvalds { "P_DATAOUT_DT", 0x20, 0xe0 }, 1771da177e4SLinus Torvalds { "P_DATAIN", 0x40, 0xe0 }, 1781da177e4SLinus Torvalds { "P_DATAIN_DT", 0x60, 0xe0 }, 1791da177e4SLinus Torvalds { "P_COMMAND", 0x80, 0xe0 }, 1801da177e4SLinus Torvalds { "P_MESGOUT", 0xa0, 0xe0 }, 1811da177e4SLinus Torvalds { "P_STATUS", 0xc0, 0xe0 }, 1821da177e4SLinus Torvalds { "P_MESGIN", 0xe0, 0xe0 }, 1831da177e4SLinus Torvalds { "ACKI", 0x01, 0x01 }, 1841da177e4SLinus Torvalds { "REQI", 0x02, 0x02 }, 1851da177e4SLinus Torvalds { "BSYI", 0x04, 0x04 }, 1861da177e4SLinus Torvalds { "SELI", 0x08, 0x08 }, 1871da177e4SLinus Torvalds { "ATNI", 0x10, 0x10 }, 1881da177e4SLinus Torvalds { "MSGI", 0x20, 0x20 }, 1891da177e4SLinus Torvalds { "IOI", 0x40, 0x40 }, 1901da177e4SLinus Torvalds { "CDI", 0x80, 0x80 }, 1911da177e4SLinus Torvalds { "PHASE_MASK", 0xe0, 0xe0 } 1921da177e4SLinus Torvalds}; 1931da177e4SLinus Torvalds 1941da177e4SLinus Torvaldsint 1951da177e4SLinus Torvaldsahd_scsisigi_print(u_int regvalue, u_int *cur_col, u_int wrap) 1961da177e4SLinus Torvalds{ 1971da177e4SLinus Torvalds return (ahd_print_register(SCSISIGI_parse_table, 17, "SCSISIGI", 1981da177e4SLinus Torvalds 0x41, regvalue, cur_col, wrap)); 1991da177e4SLinus Torvalds} 2001da177e4SLinus Torvalds 201d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t SCSIPHASE_parse_table[] = { 2021da177e4SLinus Torvalds { "DATA_OUT_PHASE", 0x01, 0x03 }, 2031da177e4SLinus Torvalds { "DATA_IN_PHASE", 0x02, 0x03 }, 2041da177e4SLinus Torvalds { "DATA_PHASE_MASK", 0x03, 0x03 }, 2051da177e4SLinus Torvalds { "MSG_OUT_PHASE", 0x04, 0x04 }, 2061da177e4SLinus Torvalds { "MSG_IN_PHASE", 0x08, 0x08 }, 2071da177e4SLinus Torvalds { "COMMAND_PHASE", 0x10, 0x10 }, 2081da177e4SLinus Torvalds { "STATUS_PHASE", 0x20, 0x20 } 2091da177e4SLinus Torvalds}; 2101da177e4SLinus Torvalds 2111da177e4SLinus Torvaldsint 2121da177e4SLinus Torvaldsahd_scsiphase_print(u_int regvalue, u_int *cur_col, u_int wrap) 2131da177e4SLinus Torvalds{ 2141da177e4SLinus Torvalds return (ahd_print_register(SCSIPHASE_parse_table, 7, "SCSIPHASE", 2151da177e4SLinus Torvalds 0x42, regvalue, cur_col, wrap)); 2161da177e4SLinus Torvalds} 2171da177e4SLinus Torvalds 2181da177e4SLinus Torvaldsint 2191da177e4SLinus Torvaldsahd_scsibus_print(u_int regvalue, u_int *cur_col, u_int wrap) 2201da177e4SLinus Torvalds{ 2211da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SCSIBUS", 2221da177e4SLinus Torvalds 0x46, regvalue, cur_col, wrap)); 2231da177e4SLinus Torvalds} 2241da177e4SLinus Torvalds 225d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t SELID_parse_table[] = { 2261da177e4SLinus Torvalds { "ONEBIT", 0x08, 0x08 }, 2271da177e4SLinus Torvalds { "SELID_MASK", 0xf0, 0xf0 } 2281da177e4SLinus Torvalds}; 2291da177e4SLinus Torvalds 2301da177e4SLinus Torvaldsint 2311da177e4SLinus Torvaldsahd_selid_print(u_int regvalue, u_int *cur_col, u_int wrap) 2321da177e4SLinus Torvalds{ 2331da177e4SLinus Torvalds return (ahd_print_register(SELID_parse_table, 2, "SELID", 2341da177e4SLinus Torvalds 0x49, regvalue, cur_col, wrap)); 2351da177e4SLinus Torvalds} 2361da177e4SLinus Torvalds 237*2ae203faSMichał Mirosławstatic const ahd_reg_parse_entry_t SIMODE0_parse_table[] = { 238*2ae203faSMichał Mirosław { "ENARBDO", 0x01, 0x01 }, 239*2ae203faSMichał Mirosław { "ENSPIORDY", 0x02, 0x02 }, 240*2ae203faSMichał Mirosław { "ENOVERRUN", 0x04, 0x04 }, 241*2ae203faSMichał Mirosław { "ENIOERR", 0x08, 0x08 }, 242*2ae203faSMichał Mirosław { "ENSELINGO", 0x10, 0x10 }, 243*2ae203faSMichał Mirosław { "ENSELDI", 0x20, 0x20 }, 244*2ae203faSMichał Mirosław { "ENSELDO", 0x40, 0x40 } 245*2ae203faSMichał Mirosław}; 246*2ae203faSMichał Mirosław 247*2ae203faSMichał Mirosławint 248*2ae203faSMichał Mirosławahd_simode0_print(u_int regvalue, u_int *cur_col, u_int wrap) 249*2ae203faSMichał Mirosław{ 250*2ae203faSMichał Mirosław return (ahd_print_register(SIMODE0_parse_table, 7, "SIMODE0", 251*2ae203faSMichał Mirosław 0x4b, regvalue, cur_col, wrap)); 252*2ae203faSMichał Mirosław} 253*2ae203faSMichał Mirosław 254d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t SSTAT0_parse_table[] = { 25511668bb6SHannes Reinecke { "ARBDO", 0x01, 0x01 }, 25611668bb6SHannes Reinecke { "SPIORDY", 0x02, 0x02 }, 25711668bb6SHannes Reinecke { "OVERRUN", 0x04, 0x04 }, 25811668bb6SHannes Reinecke { "IOERR", 0x08, 0x08 }, 25911668bb6SHannes Reinecke { "SELINGO", 0x10, 0x10 }, 26011668bb6SHannes Reinecke { "SELDI", 0x20, 0x20 }, 26111668bb6SHannes Reinecke { "SELDO", 0x40, 0x40 }, 26211668bb6SHannes Reinecke { "TARGET", 0x80, 0x80 } 26311668bb6SHannes Reinecke}; 26411668bb6SHannes Reinecke 26511668bb6SHannes Reineckeint 26611668bb6SHannes Reineckeahd_sstat0_print(u_int regvalue, u_int *cur_col, u_int wrap) 26711668bb6SHannes Reinecke{ 26811668bb6SHannes Reinecke return (ahd_print_register(SSTAT0_parse_table, 8, "SSTAT0", 26911668bb6SHannes Reinecke 0x4b, regvalue, cur_col, wrap)); 27011668bb6SHannes Reinecke} 27111668bb6SHannes Reinecke 272d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t SSTAT1_parse_table[] = { 2731da177e4SLinus Torvalds { "REQINIT", 0x01, 0x01 }, 2741da177e4SLinus Torvalds { "STRB2FAST", 0x02, 0x02 }, 2751da177e4SLinus Torvalds { "SCSIPERR", 0x04, 0x04 }, 2761da177e4SLinus Torvalds { "BUSFREE", 0x08, 0x08 }, 2771da177e4SLinus Torvalds { "PHASEMIS", 0x10, 0x10 }, 2781da177e4SLinus Torvalds { "SCSIRSTI", 0x20, 0x20 }, 2791da177e4SLinus Torvalds { "ATNTARG", 0x40, 0x40 }, 2801da177e4SLinus Torvalds { "SELTO", 0x80, 0x80 } 2811da177e4SLinus Torvalds}; 2821da177e4SLinus Torvalds 2831da177e4SLinus Torvaldsint 2841da177e4SLinus Torvaldsahd_sstat1_print(u_int regvalue, u_int *cur_col, u_int wrap) 2851da177e4SLinus Torvalds{ 2861da177e4SLinus Torvalds return (ahd_print_register(SSTAT1_parse_table, 8, "SSTAT1", 2871da177e4SLinus Torvalds 0x4c, regvalue, cur_col, wrap)); 2881da177e4SLinus Torvalds} 2891da177e4SLinus Torvalds 290d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t SSTAT2_parse_table[] = { 2911da177e4SLinus Torvalds { "BUSFREE_LQO", 0x40, 0xc0 }, 2921da177e4SLinus Torvalds { "BUSFREE_DFF0", 0x80, 0xc0 }, 2931da177e4SLinus Torvalds { "BUSFREE_DFF1", 0xc0, 0xc0 }, 2941da177e4SLinus Torvalds { "DMADONE", 0x01, 0x01 }, 2951da177e4SLinus Torvalds { "SDONE", 0x02, 0x02 }, 2961da177e4SLinus Torvalds { "WIDE_RES", 0x04, 0x04 }, 2971da177e4SLinus Torvalds { "BSYX", 0x08, 0x08 }, 2981da177e4SLinus Torvalds { "EXP_ACTIVE", 0x10, 0x10 }, 2991da177e4SLinus Torvalds { "NONPACKREQ", 0x20, 0x20 }, 3001da177e4SLinus Torvalds { "BUSFREETIME", 0xc0, 0xc0 } 3011da177e4SLinus Torvalds}; 3021da177e4SLinus Torvalds 3031da177e4SLinus Torvaldsint 3041da177e4SLinus Torvaldsahd_sstat2_print(u_int regvalue, u_int *cur_col, u_int wrap) 3051da177e4SLinus Torvalds{ 3061da177e4SLinus Torvalds return (ahd_print_register(SSTAT2_parse_table, 10, "SSTAT2", 3071da177e4SLinus Torvalds 0x4d, regvalue, cur_col, wrap)); 3081da177e4SLinus Torvalds} 3091da177e4SLinus Torvalds 310d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t PERRDIAG_parse_table[] = { 3111da177e4SLinus Torvalds { "DTERR", 0x01, 0x01 }, 3121da177e4SLinus Torvalds { "DGFORMERR", 0x02, 0x02 }, 3131da177e4SLinus Torvalds { "CRCERR", 0x04, 0x04 }, 3141da177e4SLinus Torvalds { "AIPERR", 0x08, 0x08 }, 3151da177e4SLinus Torvalds { "PARITYERR", 0x10, 0x10 }, 3161da177e4SLinus Torvalds { "PREVPHASE", 0x20, 0x20 }, 3171da177e4SLinus Torvalds { "HIPERR", 0x40, 0x40 }, 3181da177e4SLinus Torvalds { "HIZERO", 0x80, 0x80 } 3191da177e4SLinus Torvalds}; 3201da177e4SLinus Torvalds 3211da177e4SLinus Torvaldsint 3221da177e4SLinus Torvaldsahd_perrdiag_print(u_int regvalue, u_int *cur_col, u_int wrap) 3231da177e4SLinus Torvalds{ 3241da177e4SLinus Torvalds return (ahd_print_register(PERRDIAG_parse_table, 8, "PERRDIAG", 3251da177e4SLinus Torvalds 0x4e, regvalue, cur_col, wrap)); 3261da177e4SLinus Torvalds} 3271da177e4SLinus Torvalds 3281da177e4SLinus Torvaldsint 3291da177e4SLinus Torvaldsahd_soffcnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 3301da177e4SLinus Torvalds{ 3311da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SOFFCNT", 3321da177e4SLinus Torvalds 0x4f, regvalue, cur_col, wrap)); 3331da177e4SLinus Torvalds} 3341da177e4SLinus Torvalds 335d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t LQISTAT0_parse_table[] = { 3361da177e4SLinus Torvalds { "LQIATNCMD", 0x01, 0x01 }, 3371da177e4SLinus Torvalds { "LQIATNLQ", 0x02, 0x02 }, 3381da177e4SLinus Torvalds { "LQIBADLQT", 0x04, 0x04 }, 3391da177e4SLinus Torvalds { "LQICRCT2", 0x08, 0x08 }, 3401da177e4SLinus Torvalds { "LQICRCT1", 0x10, 0x10 }, 3411da177e4SLinus Torvalds { "LQIATNQAS", 0x20, 0x20 } 3421da177e4SLinus Torvalds}; 3431da177e4SLinus Torvalds 3441da177e4SLinus Torvaldsint 3451da177e4SLinus Torvaldsahd_lqistat0_print(u_int regvalue, u_int *cur_col, u_int wrap) 3461da177e4SLinus Torvalds{ 3471da177e4SLinus Torvalds return (ahd_print_register(LQISTAT0_parse_table, 6, "LQISTAT0", 3481da177e4SLinus Torvalds 0x50, regvalue, cur_col, wrap)); 3491da177e4SLinus Torvalds} 3501da177e4SLinus Torvalds 351d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t LQISTAT1_parse_table[] = { 3521da177e4SLinus Torvalds { "LQIOVERI_NLQ", 0x01, 0x01 }, 3531da177e4SLinus Torvalds { "LQIOVERI_LQ", 0x02, 0x02 }, 3541da177e4SLinus Torvalds { "LQIBADLQI", 0x04, 0x04 }, 3551da177e4SLinus Torvalds { "LQICRCI_NLQ", 0x08, 0x08 }, 3561da177e4SLinus Torvalds { "LQICRCI_LQ", 0x10, 0x10 }, 3571da177e4SLinus Torvalds { "LQIABORT", 0x20, 0x20 }, 3581da177e4SLinus Torvalds { "LQIPHASE_NLQ", 0x40, 0x40 }, 3591da177e4SLinus Torvalds { "LQIPHASE_LQ", 0x80, 0x80 } 3601da177e4SLinus Torvalds}; 3611da177e4SLinus Torvalds 3621da177e4SLinus Torvaldsint 3631da177e4SLinus Torvaldsahd_lqistat1_print(u_int regvalue, u_int *cur_col, u_int wrap) 3641da177e4SLinus Torvalds{ 3651da177e4SLinus Torvalds return (ahd_print_register(LQISTAT1_parse_table, 8, "LQISTAT1", 3661da177e4SLinus Torvalds 0x51, regvalue, cur_col, wrap)); 3671da177e4SLinus Torvalds} 3681da177e4SLinus Torvalds 369d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t LQISTAT2_parse_table[] = { 3701da177e4SLinus Torvalds { "LQIGSAVAIL", 0x01, 0x01 }, 3711da177e4SLinus Torvalds { "LQISTOPCMD", 0x02, 0x02 }, 3721da177e4SLinus Torvalds { "LQISTOPLQ", 0x04, 0x04 }, 3731da177e4SLinus Torvalds { "LQISTOPPKT", 0x08, 0x08 }, 3741da177e4SLinus Torvalds { "LQIWAITFIFO", 0x10, 0x10 }, 3751da177e4SLinus Torvalds { "LQIWORKONLQ", 0x20, 0x20 }, 3761da177e4SLinus Torvalds { "LQIPHASE_OUTPKT", 0x40, 0x40 }, 3771da177e4SLinus Torvalds { "PACKETIZED", 0x80, 0x80 } 3781da177e4SLinus Torvalds}; 3791da177e4SLinus Torvalds 3801da177e4SLinus Torvaldsint 3811da177e4SLinus Torvaldsahd_lqistat2_print(u_int regvalue, u_int *cur_col, u_int wrap) 3821da177e4SLinus Torvalds{ 3831da177e4SLinus Torvalds return (ahd_print_register(LQISTAT2_parse_table, 8, "LQISTAT2", 3841da177e4SLinus Torvalds 0x52, regvalue, cur_col, wrap)); 3851da177e4SLinus Torvalds} 3861da177e4SLinus Torvalds 387d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t SSTAT3_parse_table[] = { 3881da177e4SLinus Torvalds { "OSRAMPERR", 0x01, 0x01 }, 3891da177e4SLinus Torvalds { "NTRAMPERR", 0x02, 0x02 } 3901da177e4SLinus Torvalds}; 3911da177e4SLinus Torvalds 3921da177e4SLinus Torvaldsint 3931da177e4SLinus Torvaldsahd_sstat3_print(u_int regvalue, u_int *cur_col, u_int wrap) 3941da177e4SLinus Torvalds{ 3951da177e4SLinus Torvalds return (ahd_print_register(SSTAT3_parse_table, 2, "SSTAT3", 3961da177e4SLinus Torvalds 0x53, regvalue, cur_col, wrap)); 3971da177e4SLinus Torvalds} 3981da177e4SLinus Torvalds 399d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t LQOSTAT0_parse_table[] = { 4001da177e4SLinus Torvalds { "LQOTCRC", 0x01, 0x01 }, 4011da177e4SLinus Torvalds { "LQOATNPKT", 0x02, 0x02 }, 4021da177e4SLinus Torvalds { "LQOATNLQ", 0x04, 0x04 }, 4031da177e4SLinus Torvalds { "LQOSTOPT2", 0x08, 0x08 }, 4041da177e4SLinus Torvalds { "LQOTARGSCBPERR", 0x10, 0x10 } 4051da177e4SLinus Torvalds}; 4061da177e4SLinus Torvalds 4071da177e4SLinus Torvaldsint 4081da177e4SLinus Torvaldsahd_lqostat0_print(u_int regvalue, u_int *cur_col, u_int wrap) 4091da177e4SLinus Torvalds{ 4101da177e4SLinus Torvalds return (ahd_print_register(LQOSTAT0_parse_table, 5, "LQOSTAT0", 4111da177e4SLinus Torvalds 0x54, regvalue, cur_col, wrap)); 4121da177e4SLinus Torvalds} 4131da177e4SLinus Torvalds 414d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t LQOSTAT1_parse_table[] = { 4151da177e4SLinus Torvalds { "LQOPHACHGINPKT", 0x01, 0x01 }, 4161da177e4SLinus Torvalds { "LQOBUSFREE", 0x02, 0x02 }, 4171da177e4SLinus Torvalds { "LQOBADQAS", 0x04, 0x04 }, 4181da177e4SLinus Torvalds { "LQOSTOPI2", 0x08, 0x08 }, 4191da177e4SLinus Torvalds { "LQOINITSCBPERR", 0x10, 0x10 } 4201da177e4SLinus Torvalds}; 4211da177e4SLinus Torvalds 4221da177e4SLinus Torvaldsint 4231da177e4SLinus Torvaldsahd_lqostat1_print(u_int regvalue, u_int *cur_col, u_int wrap) 4241da177e4SLinus Torvalds{ 4251da177e4SLinus Torvalds return (ahd_print_register(LQOSTAT1_parse_table, 5, "LQOSTAT1", 4261da177e4SLinus Torvalds 0x55, regvalue, cur_col, wrap)); 4271da177e4SLinus Torvalds} 4281da177e4SLinus Torvalds 429d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t LQOSTAT2_parse_table[] = { 4301da177e4SLinus Torvalds { "LQOSTOP0", 0x01, 0x01 }, 4311da177e4SLinus Torvalds { "LQOPHACHGOUTPKT", 0x02, 0x02 }, 4321da177e4SLinus Torvalds { "LQOWAITFIFO", 0x10, 0x10 }, 4331da177e4SLinus Torvalds { "LQOPKT", 0xe0, 0xe0 } 4341da177e4SLinus Torvalds}; 4351da177e4SLinus Torvalds 4361da177e4SLinus Torvaldsint 4371da177e4SLinus Torvaldsahd_lqostat2_print(u_int regvalue, u_int *cur_col, u_int wrap) 4381da177e4SLinus Torvalds{ 4391da177e4SLinus Torvalds return (ahd_print_register(LQOSTAT2_parse_table, 4, "LQOSTAT2", 4401da177e4SLinus Torvalds 0x56, regvalue, cur_col, wrap)); 4411da177e4SLinus Torvalds} 4421da177e4SLinus Torvalds 443d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t SIMODE1_parse_table[] = { 4441da177e4SLinus Torvalds { "ENREQINIT", 0x01, 0x01 }, 4451da177e4SLinus Torvalds { "ENSTRB2FAST", 0x02, 0x02 }, 4461da177e4SLinus Torvalds { "ENSCSIPERR", 0x04, 0x04 }, 4471da177e4SLinus Torvalds { "ENBUSFREE", 0x08, 0x08 }, 4481da177e4SLinus Torvalds { "ENPHASEMIS", 0x10, 0x10 }, 4491da177e4SLinus Torvalds { "ENSCSIRST", 0x20, 0x20 }, 4501da177e4SLinus Torvalds { "ENATNTARG", 0x40, 0x40 }, 4511da177e4SLinus Torvalds { "ENSELTIMO", 0x80, 0x80 } 4521da177e4SLinus Torvalds}; 4531da177e4SLinus Torvalds 4541da177e4SLinus Torvaldsint 4551da177e4SLinus Torvaldsahd_simode1_print(u_int regvalue, u_int *cur_col, u_int wrap) 4561da177e4SLinus Torvalds{ 4571da177e4SLinus Torvalds return (ahd_print_register(SIMODE1_parse_table, 8, "SIMODE1", 4581da177e4SLinus Torvalds 0x57, regvalue, cur_col, wrap)); 4591da177e4SLinus Torvalds} 4601da177e4SLinus Torvalds 461d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t DFFSXFRCTL_parse_table[] = { 4621da177e4SLinus Torvalds { "RSTCHN", 0x01, 0x01 }, 4631da177e4SLinus Torvalds { "CLRCHN", 0x02, 0x02 }, 4641da177e4SLinus Torvalds { "CLRSHCNT", 0x04, 0x04 }, 4651da177e4SLinus Torvalds { "DFFBITBUCKET", 0x08, 0x08 } 4661da177e4SLinus Torvalds}; 4671da177e4SLinus Torvalds 4681da177e4SLinus Torvaldsint 4691da177e4SLinus Torvaldsahd_dffsxfrctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 4701da177e4SLinus Torvalds{ 4711da177e4SLinus Torvalds return (ahd_print_register(DFFSXFRCTL_parse_table, 4, "DFFSXFRCTL", 4721da177e4SLinus Torvalds 0x5a, regvalue, cur_col, wrap)); 4731da177e4SLinus Torvalds} 4741da177e4SLinus Torvalds 475d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t SEQINTSRC_parse_table[] = { 4761da177e4SLinus Torvalds { "CFG4TCMD", 0x01, 0x01 }, 4771da177e4SLinus Torvalds { "CFG4ICMD", 0x02, 0x02 }, 4781da177e4SLinus Torvalds { "CFG4TSTAT", 0x04, 0x04 }, 4791da177e4SLinus Torvalds { "CFG4ISTAT", 0x08, 0x08 }, 4801da177e4SLinus Torvalds { "CFG4DATA", 0x10, 0x10 }, 4811da177e4SLinus Torvalds { "SAVEPTRS", 0x20, 0x20 }, 4821da177e4SLinus Torvalds { "CTXTDONE", 0x40, 0x40 } 4831da177e4SLinus Torvalds}; 4841da177e4SLinus Torvalds 4851da177e4SLinus Torvaldsint 4861da177e4SLinus Torvaldsahd_seqintsrc_print(u_int regvalue, u_int *cur_col, u_int wrap) 4871da177e4SLinus Torvalds{ 4881da177e4SLinus Torvalds return (ahd_print_register(SEQINTSRC_parse_table, 7, "SEQINTSRC", 4891da177e4SLinus Torvalds 0x5b, regvalue, cur_col, wrap)); 4901da177e4SLinus Torvalds} 4911da177e4SLinus Torvalds 492d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t SEQIMODE_parse_table[] = { 4931da177e4SLinus Torvalds { "ENCFG4TCMD", 0x01, 0x01 }, 4941da177e4SLinus Torvalds { "ENCFG4ICMD", 0x02, 0x02 }, 4951da177e4SLinus Torvalds { "ENCFG4TSTAT", 0x04, 0x04 }, 4961da177e4SLinus Torvalds { "ENCFG4ISTAT", 0x08, 0x08 }, 4971da177e4SLinus Torvalds { "ENCFG4DATA", 0x10, 0x10 }, 4981da177e4SLinus Torvalds { "ENSAVEPTRS", 0x20, 0x20 }, 4991da177e4SLinus Torvalds { "ENCTXTDONE", 0x40, 0x40 } 5001da177e4SLinus Torvalds}; 5011da177e4SLinus Torvalds 5021da177e4SLinus Torvaldsint 5031da177e4SLinus Torvaldsahd_seqimode_print(u_int regvalue, u_int *cur_col, u_int wrap) 5041da177e4SLinus Torvalds{ 5051da177e4SLinus Torvalds return (ahd_print_register(SEQIMODE_parse_table, 7, "SEQIMODE", 5061da177e4SLinus Torvalds 0x5c, regvalue, cur_col, wrap)); 5071da177e4SLinus Torvalds} 5081da177e4SLinus Torvalds 509d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t MDFFSTAT_parse_table[] = { 5101da177e4SLinus Torvalds { "FIFOFREE", 0x01, 0x01 }, 5111da177e4SLinus Torvalds { "DATAINFIFO", 0x02, 0x02 }, 5121da177e4SLinus Torvalds { "DLZERO", 0x04, 0x04 }, 5131da177e4SLinus Torvalds { "SHVALID", 0x08, 0x08 }, 5141da177e4SLinus Torvalds { "LASTSDONE", 0x10, 0x10 }, 5151da177e4SLinus Torvalds { "SHCNTMINUS1", 0x20, 0x20 }, 5161da177e4SLinus Torvalds { "SHCNTNEGATIVE", 0x40, 0x40 } 5171da177e4SLinus Torvalds}; 5181da177e4SLinus Torvalds 5191da177e4SLinus Torvaldsint 5201da177e4SLinus Torvaldsahd_mdffstat_print(u_int regvalue, u_int *cur_col, u_int wrap) 5211da177e4SLinus Torvalds{ 5221da177e4SLinus Torvalds return (ahd_print_register(MDFFSTAT_parse_table, 7, "MDFFSTAT", 5231da177e4SLinus Torvalds 0x5d, regvalue, cur_col, wrap)); 5241da177e4SLinus Torvalds} 5251da177e4SLinus Torvalds 5261da177e4SLinus Torvaldsint 5271da177e4SLinus Torvaldsahd_seloid_print(u_int regvalue, u_int *cur_col, u_int wrap) 5281da177e4SLinus Torvalds{ 5291da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SELOID", 5301da177e4SLinus Torvalds 0x6b, regvalue, cur_col, wrap)); 5311da177e4SLinus Torvalds} 5321da177e4SLinus Torvalds 533d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t SG_STATE_parse_table[] = { 5341da177e4SLinus Torvalds { "SEGS_AVAIL", 0x01, 0x01 }, 5351da177e4SLinus Torvalds { "LOADING_NEEDED", 0x02, 0x02 }, 5361da177e4SLinus Torvalds { "FETCH_INPROG", 0x04, 0x04 } 5371da177e4SLinus Torvalds}; 5381da177e4SLinus Torvalds 5391da177e4SLinus Torvaldsint 5401da177e4SLinus Torvaldsahd_sg_state_print(u_int regvalue, u_int *cur_col, u_int wrap) 5411da177e4SLinus Torvalds{ 5421da177e4SLinus Torvalds return (ahd_print_register(SG_STATE_parse_table, 3, "SG_STATE", 5431da177e4SLinus Torvalds 0xa6, regvalue, cur_col, wrap)); 5441da177e4SLinus Torvalds} 5451da177e4SLinus Torvalds 546d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t CCSCBCTL_parse_table[] = { 5471da177e4SLinus Torvalds { "CCSCBRESET", 0x01, 0x01 }, 5481da177e4SLinus Torvalds { "CCSCBDIR", 0x04, 0x04 }, 5491da177e4SLinus Torvalds { "CCSCBEN", 0x08, 0x08 }, 5501da177e4SLinus Torvalds { "CCARREN", 0x10, 0x10 }, 5511da177e4SLinus Torvalds { "ARRDONE", 0x40, 0x40 }, 5521da177e4SLinus Torvalds { "CCSCBDONE", 0x80, 0x80 } 5531da177e4SLinus Torvalds}; 5541da177e4SLinus Torvalds 5551da177e4SLinus Torvaldsint 5561da177e4SLinus Torvaldsahd_ccscbctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 5571da177e4SLinus Torvalds{ 5581da177e4SLinus Torvalds return (ahd_print_register(CCSCBCTL_parse_table, 6, "CCSCBCTL", 5591da177e4SLinus Torvalds 0xad, regvalue, cur_col, wrap)); 5601da177e4SLinus Torvalds} 5611da177e4SLinus Torvalds 562d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t CCSGCTL_parse_table[] = { 56311668bb6SHannes Reinecke { "CCSGRESET", 0x01, 0x01 }, 56411668bb6SHannes Reinecke { "SG_FETCH_REQ", 0x02, 0x02 }, 56511668bb6SHannes Reinecke { "CCSGENACK", 0x08, 0x08 }, 56611668bb6SHannes Reinecke { "SG_CACHE_AVAIL", 0x10, 0x10 }, 56711668bb6SHannes Reinecke { "CCSGDONE", 0x80, 0x80 }, 56811668bb6SHannes Reinecke { "CCSGEN", 0x0c, 0x0c } 56911668bb6SHannes Reinecke}; 57011668bb6SHannes Reinecke 57111668bb6SHannes Reineckeint 57211668bb6SHannes Reineckeahd_ccsgctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 57311668bb6SHannes Reinecke{ 57411668bb6SHannes Reinecke return (ahd_print_register(CCSGCTL_parse_table, 6, "CCSGCTL", 57511668bb6SHannes Reinecke 0xad, regvalue, cur_col, wrap)); 57611668bb6SHannes Reinecke} 57711668bb6SHannes Reinecke 578d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t SEQCTL0_parse_table[] = { 5791da177e4SLinus Torvalds { "LOADRAM", 0x01, 0x01 }, 5801da177e4SLinus Torvalds { "SEQRESET", 0x02, 0x02 }, 5811da177e4SLinus Torvalds { "STEP", 0x04, 0x04 }, 5821da177e4SLinus Torvalds { "BRKADRINTEN", 0x08, 0x08 }, 5831da177e4SLinus Torvalds { "FASTMODE", 0x10, 0x10 }, 5841da177e4SLinus Torvalds { "FAILDIS", 0x20, 0x20 }, 5851da177e4SLinus Torvalds { "PAUSEDIS", 0x40, 0x40 }, 5861da177e4SLinus Torvalds { "PERRORDIS", 0x80, 0x80 } 5871da177e4SLinus Torvalds}; 5881da177e4SLinus Torvalds 5891da177e4SLinus Torvaldsint 5901da177e4SLinus Torvaldsahd_seqctl0_print(u_int regvalue, u_int *cur_col, u_int wrap) 5911da177e4SLinus Torvalds{ 5921da177e4SLinus Torvalds return (ahd_print_register(SEQCTL0_parse_table, 8, "SEQCTL0", 5931da177e4SLinus Torvalds 0xd6, regvalue, cur_col, wrap)); 5941da177e4SLinus Torvalds} 5951da177e4SLinus Torvalds 596d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t SEQINTCTL_parse_table[] = { 5971da177e4SLinus Torvalds { "IRET", 0x01, 0x01 }, 5981da177e4SLinus Torvalds { "INTMASK1", 0x02, 0x02 }, 5991da177e4SLinus Torvalds { "INTMASK2", 0x04, 0x04 }, 6001da177e4SLinus Torvalds { "SCS_SEQ_INT1M0", 0x08, 0x08 }, 6011da177e4SLinus Torvalds { "SCS_SEQ_INT1M1", 0x10, 0x10 }, 6021da177e4SLinus Torvalds { "INT1_CONTEXT", 0x20, 0x20 }, 6031da177e4SLinus Torvalds { "INTVEC1DSL", 0x80, 0x80 } 6041da177e4SLinus Torvalds}; 6051da177e4SLinus Torvalds 6061da177e4SLinus Torvaldsint 6071da177e4SLinus Torvaldsahd_seqintctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 6081da177e4SLinus Torvalds{ 6091da177e4SLinus Torvalds return (ahd_print_register(SEQINTCTL_parse_table, 7, "SEQINTCTL", 6101da177e4SLinus Torvalds 0xd9, regvalue, cur_col, wrap)); 6111da177e4SLinus Torvalds} 6121da177e4SLinus Torvalds 6131da177e4SLinus Torvaldsint 6141da177e4SLinus Torvaldsahd_sram_base_print(u_int regvalue, u_int *cur_col, u_int wrap) 6151da177e4SLinus Torvalds{ 6161da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SRAM_BASE", 6171da177e4SLinus Torvalds 0x100, regvalue, cur_col, wrap)); 6181da177e4SLinus Torvalds} 6191da177e4SLinus Torvalds 6201da177e4SLinus Torvaldsint 6211da177e4SLinus Torvaldsahd_qfreeze_count_print(u_int regvalue, u_int *cur_col, u_int wrap) 6221da177e4SLinus Torvalds{ 6231da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "QFREEZE_COUNT", 62411668bb6SHannes Reinecke 0x132, regvalue, cur_col, wrap)); 62511668bb6SHannes Reinecke} 62611668bb6SHannes Reinecke 62711668bb6SHannes Reineckeint 62811668bb6SHannes Reineckeahd_kernel_qfreeze_count_print(u_int regvalue, u_int *cur_col, u_int wrap) 62911668bb6SHannes Reinecke{ 63011668bb6SHannes Reinecke return (ahd_print_register(NULL, 0, "KERNEL_QFREEZE_COUNT", 63111668bb6SHannes Reinecke 0x134, regvalue, cur_col, wrap)); 6321da177e4SLinus Torvalds} 6331da177e4SLinus Torvalds 6341da177e4SLinus Torvaldsint 6351da177e4SLinus Torvaldsahd_saved_mode_print(u_int regvalue, u_int *cur_col, u_int wrap) 6361da177e4SLinus Torvalds{ 6371da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SAVED_MODE", 63811668bb6SHannes Reinecke 0x136, regvalue, cur_col, wrap)); 6391da177e4SLinus Torvalds} 6401da177e4SLinus Torvalds 641d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t SEQ_FLAGS_parse_table[] = { 6421da177e4SLinus Torvalds { "NO_DISCONNECT", 0x01, 0x01 }, 6431da177e4SLinus Torvalds { "SPHASE_PENDING", 0x02, 0x02 }, 6441da177e4SLinus Torvalds { "DPHASE_PENDING", 0x04, 0x04 }, 6451da177e4SLinus Torvalds { "CMDPHASE_PENDING", 0x08, 0x08 }, 6461da177e4SLinus Torvalds { "TARG_CMD_PENDING", 0x10, 0x10 }, 6471da177e4SLinus Torvalds { "DPHASE", 0x20, 0x20 }, 6481da177e4SLinus Torvalds { "NO_CDB_SENT", 0x40, 0x40 }, 6491da177e4SLinus Torvalds { "TARGET_CMD_IS_TAGGED",0x40, 0x40 }, 6501da177e4SLinus Torvalds { "NOT_IDENTIFIED", 0x80, 0x80 } 6511da177e4SLinus Torvalds}; 6521da177e4SLinus Torvalds 6531da177e4SLinus Torvaldsint 6541da177e4SLinus Torvaldsahd_seq_flags_print(u_int regvalue, u_int *cur_col, u_int wrap) 6551da177e4SLinus Torvalds{ 6561da177e4SLinus Torvalds return (ahd_print_register(SEQ_FLAGS_parse_table, 9, "SEQ_FLAGS", 65711668bb6SHannes Reinecke 0x139, regvalue, cur_col, wrap)); 6581da177e4SLinus Torvalds} 6591da177e4SLinus Torvalds 660d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t LASTPHASE_parse_table[] = { 6611da177e4SLinus Torvalds { "P_DATAOUT", 0x00, 0xe0 }, 6621da177e4SLinus Torvalds { "P_DATAOUT_DT", 0x20, 0xe0 }, 6631da177e4SLinus Torvalds { "P_DATAIN", 0x40, 0xe0 }, 6641da177e4SLinus Torvalds { "P_DATAIN_DT", 0x60, 0xe0 }, 6651da177e4SLinus Torvalds { "P_COMMAND", 0x80, 0xe0 }, 6661da177e4SLinus Torvalds { "P_MESGOUT", 0xa0, 0xe0 }, 6671da177e4SLinus Torvalds { "P_STATUS", 0xc0, 0xe0 }, 6681da177e4SLinus Torvalds { "P_MESGIN", 0xe0, 0xe0 }, 6691da177e4SLinus Torvalds { "P_BUSFREE", 0x01, 0x01 }, 6701da177e4SLinus Torvalds { "MSGI", 0x20, 0x20 }, 6711da177e4SLinus Torvalds { "IOI", 0x40, 0x40 }, 6721da177e4SLinus Torvalds { "CDI", 0x80, 0x80 }, 6731da177e4SLinus Torvalds { "PHASE_MASK", 0xe0, 0xe0 } 6741da177e4SLinus Torvalds}; 6751da177e4SLinus Torvalds 6761da177e4SLinus Torvaldsint 6771da177e4SLinus Torvaldsahd_lastphase_print(u_int regvalue, u_int *cur_col, u_int wrap) 6781da177e4SLinus Torvalds{ 6791da177e4SLinus Torvalds return (ahd_print_register(LASTPHASE_parse_table, 13, "LASTPHASE", 68011668bb6SHannes Reinecke 0x13c, regvalue, cur_col, wrap)); 6811da177e4SLinus Torvalds} 6821da177e4SLinus Torvalds 683d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t SEQ_FLAGS2_parse_table[] = { 68453467e63SHannes Reinecke { "PENDING_MK_MESSAGE", 0x01, 0x01 }, 6851da177e4SLinus Torvalds { "TARGET_MSG_PENDING", 0x02, 0x02 }, 6861da177e4SLinus Torvalds { "SELECTOUT_QFROZEN", 0x04, 0x04 } 6871da177e4SLinus Torvalds}; 6881da177e4SLinus Torvalds 6891da177e4SLinus Torvaldsint 6901da177e4SLinus Torvaldsahd_seq_flags2_print(u_int regvalue, u_int *cur_col, u_int wrap) 6911da177e4SLinus Torvalds{ 69253467e63SHannes Reinecke return (ahd_print_register(SEQ_FLAGS2_parse_table, 3, "SEQ_FLAGS2", 69311668bb6SHannes Reinecke 0x14d, regvalue, cur_col, wrap)); 6941da177e4SLinus Torvalds} 6951da177e4SLinus Torvalds 6961da177e4SLinus Torvaldsint 69753467e63SHannes Reineckeahd_mk_message_scb_print(u_int regvalue, u_int *cur_col, u_int wrap) 69853467e63SHannes Reinecke{ 69953467e63SHannes Reinecke return (ahd_print_register(NULL, 0, "MK_MESSAGE_SCB", 70053467e63SHannes Reinecke 0x160, regvalue, cur_col, wrap)); 70153467e63SHannes Reinecke} 70253467e63SHannes Reinecke 70353467e63SHannes Reineckeint 70453467e63SHannes Reineckeahd_mk_message_scsiid_print(u_int regvalue, u_int *cur_col, u_int wrap) 70553467e63SHannes Reinecke{ 70653467e63SHannes Reinecke return (ahd_print_register(NULL, 0, "MK_MESSAGE_SCSIID", 70753467e63SHannes Reinecke 0x162, regvalue, cur_col, wrap)); 70853467e63SHannes Reinecke} 70953467e63SHannes Reinecke 71053467e63SHannes Reineckeint 711d10c2e46SHannes Reineckeahd_scb_base_print(u_int regvalue, u_int *cur_col, u_int wrap) 712d10c2e46SHannes Reinecke{ 713d10c2e46SHannes Reinecke return (ahd_print_register(NULL, 0, "SCB_BASE", 714d10c2e46SHannes Reinecke 0x180, regvalue, cur_col, wrap)); 715d10c2e46SHannes Reinecke} 716d10c2e46SHannes Reinecke 717d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t SCB_CONTROL_parse_table[] = { 7181da177e4SLinus Torvalds { "SCB_TAG_TYPE", 0x03, 0x03 }, 7191da177e4SLinus Torvalds { "DISCONNECTED", 0x04, 0x04 }, 7201da177e4SLinus Torvalds { "STATUS_RCVD", 0x08, 0x08 }, 7211da177e4SLinus Torvalds { "MK_MESSAGE", 0x10, 0x10 }, 7221da177e4SLinus Torvalds { "TAG_ENB", 0x20, 0x20 }, 7231da177e4SLinus Torvalds { "DISCENB", 0x40, 0x40 }, 7241da177e4SLinus Torvalds { "TARGET_SCB", 0x80, 0x80 } 7251da177e4SLinus Torvalds}; 7261da177e4SLinus Torvalds 7271da177e4SLinus Torvaldsint 7281da177e4SLinus Torvaldsahd_scb_control_print(u_int regvalue, u_int *cur_col, u_int wrap) 7291da177e4SLinus Torvalds{ 7301da177e4SLinus Torvalds return (ahd_print_register(SCB_CONTROL_parse_table, 7, "SCB_CONTROL", 7311da177e4SLinus Torvalds 0x192, regvalue, cur_col, wrap)); 7321da177e4SLinus Torvalds} 7331da177e4SLinus Torvalds 734d10c2e46SHannes Reineckestatic const ahd_reg_parse_entry_t SCB_SCSIID_parse_table[] = { 7351da177e4SLinus Torvalds { "OID", 0x0f, 0x0f }, 7361da177e4SLinus Torvalds { "TID", 0xf0, 0xf0 } 7371da177e4SLinus Torvalds}; 7381da177e4SLinus Torvalds 7391da177e4SLinus Torvaldsint 7401da177e4SLinus Torvaldsahd_scb_scsiid_print(u_int regvalue, u_int *cur_col, u_int wrap) 7411da177e4SLinus Torvalds{ 7421da177e4SLinus Torvalds return (ahd_print_register(SCB_SCSIID_parse_table, 2, "SCB_SCSIID", 7431da177e4SLinus Torvalds 0x193, regvalue, cur_col, wrap)); 7441da177e4SLinus Torvalds} 7451da177e4SLinus Torvalds 746