11da177e4SLinus Torvalds/* 21da177e4SLinus Torvalds * DO NOT EDIT - This file is automatically generated 31da177e4SLinus Torvalds * from the following source files: 41da177e4SLinus Torvalds * 5*53467e63SHannes Reinecke * $Id: //depot/aic7xxx/aic7xxx/aic79xx.seq#120 $ 6*53467e63SHannes Reinecke * $Id: //depot/aic7xxx/aic7xxx/aic79xx.reg#77 $ 71da177e4SLinus Torvalds */ 81da177e4SLinus Torvalds 91da177e4SLinus Torvalds#include "aic79xx_osm.h" 101da177e4SLinus Torvalds 111da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t MODE_PTR_parse_table[] = { 121da177e4SLinus Torvalds { "SRC_MODE", 0x07, 0x07 }, 131da177e4SLinus Torvalds { "DST_MODE", 0x70, 0x70 } 141da177e4SLinus Torvalds}; 151da177e4SLinus Torvalds 161da177e4SLinus Torvaldsint 171da177e4SLinus Torvaldsahd_mode_ptr_print(u_int regvalue, u_int *cur_col, u_int wrap) 181da177e4SLinus Torvalds{ 191da177e4SLinus Torvalds return (ahd_print_register(MODE_PTR_parse_table, 2, "MODE_PTR", 201da177e4SLinus Torvalds 0x00, regvalue, cur_col, wrap)); 211da177e4SLinus Torvalds} 221da177e4SLinus Torvalds 231da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t INTSTAT_parse_table[] = { 241da177e4SLinus Torvalds { "SPLTINT", 0x01, 0x01 }, 251da177e4SLinus Torvalds { "CMDCMPLT", 0x02, 0x02 }, 261da177e4SLinus Torvalds { "SEQINT", 0x04, 0x04 }, 271da177e4SLinus Torvalds { "SCSIINT", 0x08, 0x08 }, 281da177e4SLinus Torvalds { "PCIINT", 0x10, 0x10 }, 291da177e4SLinus Torvalds { "SWTMINT", 0x20, 0x20 }, 301da177e4SLinus Torvalds { "BRKADRINT", 0x40, 0x40 }, 311da177e4SLinus Torvalds { "HWERRINT", 0x80, 0x80 }, 321da177e4SLinus Torvalds { "INT_PEND", 0xff, 0xff } 331da177e4SLinus Torvalds}; 341da177e4SLinus Torvalds 351da177e4SLinus Torvaldsint 361da177e4SLinus Torvaldsahd_intstat_print(u_int regvalue, u_int *cur_col, u_int wrap) 371da177e4SLinus Torvalds{ 381da177e4SLinus Torvalds return (ahd_print_register(INTSTAT_parse_table, 9, "INTSTAT", 391da177e4SLinus Torvalds 0x01, regvalue, cur_col, wrap)); 401da177e4SLinus Torvalds} 411da177e4SLinus Torvalds 421da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SEQINTCODE_parse_table[] = { 431da177e4SLinus Torvalds { "NO_SEQINT", 0x00, 0xff }, 441da177e4SLinus Torvalds { "BAD_PHASE", 0x01, 0xff }, 451da177e4SLinus Torvalds { "SEND_REJECT", 0x02, 0xff }, 461da177e4SLinus Torvalds { "PROTO_VIOLATION", 0x03, 0xff }, 471da177e4SLinus Torvalds { "NO_MATCH", 0x04, 0xff }, 481da177e4SLinus Torvalds { "IGN_WIDE_RES", 0x05, 0xff }, 491da177e4SLinus Torvalds { "PDATA_REINIT", 0x06, 0xff }, 501da177e4SLinus Torvalds { "HOST_MSG_LOOP", 0x07, 0xff }, 511da177e4SLinus Torvalds { "BAD_STATUS", 0x08, 0xff }, 521da177e4SLinus Torvalds { "DATA_OVERRUN", 0x09, 0xff }, 531da177e4SLinus Torvalds { "MKMSG_FAILED", 0x0a, 0xff }, 541da177e4SLinus Torvalds { "MISSED_BUSFREE", 0x0b, 0xff }, 551da177e4SLinus Torvalds { "DUMP_CARD_STATE", 0x0c, 0xff }, 561da177e4SLinus Torvalds { "ILLEGAL_PHASE", 0x0d, 0xff }, 571da177e4SLinus Torvalds { "INVALID_SEQINT", 0x0e, 0xff }, 581da177e4SLinus Torvalds { "CFG4ISTAT_INTR", 0x0f, 0xff }, 591da177e4SLinus Torvalds { "STATUS_OVERRUN", 0x10, 0xff }, 601da177e4SLinus Torvalds { "CFG4OVERRUN", 0x11, 0xff }, 611da177e4SLinus Torvalds { "ENTERING_NONPACK", 0x12, 0xff }, 621da177e4SLinus Torvalds { "TASKMGMT_FUNC_COMPLETE",0x13, 0xff }, 631da177e4SLinus Torvalds { "TASKMGMT_CMD_CMPLT_OKAY",0x14, 0xff }, 641da177e4SLinus Torvalds { "TRACEPOINT0", 0x15, 0xff }, 651da177e4SLinus Torvalds { "TRACEPOINT1", 0x16, 0xff }, 661da177e4SLinus Torvalds { "TRACEPOINT2", 0x17, 0xff }, 671da177e4SLinus Torvalds { "TRACEPOINT3", 0x18, 0xff }, 681da177e4SLinus Torvalds { "SAW_HWERR", 0x19, 0xff }, 691da177e4SLinus Torvalds { "BAD_SCB_STATUS", 0x1a, 0xff } 701da177e4SLinus Torvalds}; 711da177e4SLinus Torvalds 721da177e4SLinus Torvaldsint 731da177e4SLinus Torvaldsahd_seqintcode_print(u_int regvalue, u_int *cur_col, u_int wrap) 741da177e4SLinus Torvalds{ 751da177e4SLinus Torvalds return (ahd_print_register(SEQINTCODE_parse_table, 27, "SEQINTCODE", 761da177e4SLinus Torvalds 0x02, regvalue, cur_col, wrap)); 771da177e4SLinus Torvalds} 781da177e4SLinus Torvalds 791da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t CLRINT_parse_table[] = { 801da177e4SLinus Torvalds { "CLRSPLTINT", 0x01, 0x01 }, 811da177e4SLinus Torvalds { "CLRCMDINT", 0x02, 0x02 }, 821da177e4SLinus Torvalds { "CLRSEQINT", 0x04, 0x04 }, 831da177e4SLinus Torvalds { "CLRSCSIINT", 0x08, 0x08 }, 841da177e4SLinus Torvalds { "CLRPCIINT", 0x10, 0x10 }, 851da177e4SLinus Torvalds { "CLRSWTMINT", 0x20, 0x20 }, 861da177e4SLinus Torvalds { "CLRBRKADRINT", 0x40, 0x40 }, 871da177e4SLinus Torvalds { "CLRHWERRINT", 0x80, 0x80 } 881da177e4SLinus Torvalds}; 891da177e4SLinus Torvalds 901da177e4SLinus Torvaldsint 911da177e4SLinus Torvaldsahd_clrint_print(u_int regvalue, u_int *cur_col, u_int wrap) 921da177e4SLinus Torvalds{ 931da177e4SLinus Torvalds return (ahd_print_register(CLRINT_parse_table, 8, "CLRINT", 941da177e4SLinus Torvalds 0x03, regvalue, cur_col, wrap)); 951da177e4SLinus Torvalds} 961da177e4SLinus Torvalds 971da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t ERROR_parse_table[] = { 981da177e4SLinus Torvalds { "DSCTMOUT", 0x02, 0x02 }, 991da177e4SLinus Torvalds { "ILLOPCODE", 0x04, 0x04 }, 1001da177e4SLinus Torvalds { "SQPARERR", 0x08, 0x08 }, 1011da177e4SLinus Torvalds { "DPARERR", 0x10, 0x10 }, 1021da177e4SLinus Torvalds { "MPARERR", 0x20, 0x20 }, 1031da177e4SLinus Torvalds { "CIOACCESFAIL", 0x40, 0x40 }, 1041da177e4SLinus Torvalds { "CIOPARERR", 0x80, 0x80 } 1051da177e4SLinus Torvalds}; 1061da177e4SLinus Torvalds 1071da177e4SLinus Torvaldsint 1081da177e4SLinus Torvaldsahd_error_print(u_int regvalue, u_int *cur_col, u_int wrap) 1091da177e4SLinus Torvalds{ 1101da177e4SLinus Torvalds return (ahd_print_register(ERROR_parse_table, 7, "ERROR", 1111da177e4SLinus Torvalds 0x04, regvalue, cur_col, wrap)); 1121da177e4SLinus Torvalds} 1131da177e4SLinus Torvalds 1141da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t CLRERR_parse_table[] = { 1151da177e4SLinus Torvalds { "CLRDSCTMOUT", 0x02, 0x02 }, 1161da177e4SLinus Torvalds { "CLRILLOPCODE", 0x04, 0x04 }, 1171da177e4SLinus Torvalds { "CLRSQPARERR", 0x08, 0x08 }, 1181da177e4SLinus Torvalds { "CLRDPARERR", 0x10, 0x10 }, 1191da177e4SLinus Torvalds { "CLRMPARERR", 0x20, 0x20 }, 1201da177e4SLinus Torvalds { "CLRCIOACCESFAIL", 0x40, 0x40 }, 1211da177e4SLinus Torvalds { "CLRCIOPARERR", 0x80, 0x80 } 1221da177e4SLinus Torvalds}; 1231da177e4SLinus Torvalds 1241da177e4SLinus Torvaldsint 1251da177e4SLinus Torvaldsahd_clrerr_print(u_int regvalue, u_int *cur_col, u_int wrap) 1261da177e4SLinus Torvalds{ 1271da177e4SLinus Torvalds return (ahd_print_register(CLRERR_parse_table, 7, "CLRERR", 1281da177e4SLinus Torvalds 0x04, regvalue, cur_col, wrap)); 1291da177e4SLinus Torvalds} 1301da177e4SLinus Torvalds 1311da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t HCNTRL_parse_table[] = { 1321da177e4SLinus Torvalds { "CHIPRST", 0x01, 0x01 }, 1331da177e4SLinus Torvalds { "CHIPRSTACK", 0x01, 0x01 }, 1341da177e4SLinus Torvalds { "INTEN", 0x02, 0x02 }, 1351da177e4SLinus Torvalds { "PAUSE", 0x04, 0x04 }, 1361da177e4SLinus Torvalds { "SWTIMER_START_B", 0x08, 0x08 }, 1371da177e4SLinus Torvalds { "SWINT", 0x10, 0x10 }, 1381da177e4SLinus Torvalds { "POWRDN", 0x40, 0x40 }, 1391da177e4SLinus Torvalds { "SEQ_RESET", 0x80, 0x80 } 1401da177e4SLinus Torvalds}; 1411da177e4SLinus Torvalds 1421da177e4SLinus Torvaldsint 1431da177e4SLinus Torvaldsahd_hcntrl_print(u_int regvalue, u_int *cur_col, u_int wrap) 1441da177e4SLinus Torvalds{ 1451da177e4SLinus Torvalds return (ahd_print_register(HCNTRL_parse_table, 8, "HCNTRL", 1461da177e4SLinus Torvalds 0x05, regvalue, cur_col, wrap)); 1471da177e4SLinus Torvalds} 1481da177e4SLinus Torvalds 1491da177e4SLinus Torvaldsint 1501da177e4SLinus Torvaldsahd_hnscb_qoff_print(u_int regvalue, u_int *cur_col, u_int wrap) 1511da177e4SLinus Torvalds{ 1521da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "HNSCB_QOFF", 1531da177e4SLinus Torvalds 0x06, regvalue, cur_col, wrap)); 1541da177e4SLinus Torvalds} 1551da177e4SLinus Torvalds 1561da177e4SLinus Torvaldsint 1571da177e4SLinus Torvaldsahd_hescb_qoff_print(u_int regvalue, u_int *cur_col, u_int wrap) 1581da177e4SLinus Torvalds{ 1591da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "HESCB_QOFF", 1601da177e4SLinus Torvalds 0x08, regvalue, cur_col, wrap)); 1611da177e4SLinus Torvalds} 1621da177e4SLinus Torvalds 1631da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t HS_MAILBOX_parse_table[] = { 1641da177e4SLinus Torvalds { "ENINT_COALESCE", 0x40, 0x40 }, 1651da177e4SLinus Torvalds { "HOST_TQINPOS", 0x80, 0x80 } 1661da177e4SLinus Torvalds}; 1671da177e4SLinus Torvalds 1681da177e4SLinus Torvaldsint 1691da177e4SLinus Torvaldsahd_hs_mailbox_print(u_int regvalue, u_int *cur_col, u_int wrap) 1701da177e4SLinus Torvalds{ 1711da177e4SLinus Torvalds return (ahd_print_register(HS_MAILBOX_parse_table, 2, "HS_MAILBOX", 1721da177e4SLinus Torvalds 0x0b, regvalue, cur_col, wrap)); 1731da177e4SLinus Torvalds} 1741da177e4SLinus Torvalds 1751da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SEQINTSTAT_parse_table[] = { 1761da177e4SLinus Torvalds { "SEQ_SPLTINT", 0x01, 0x01 }, 1771da177e4SLinus Torvalds { "SEQ_PCIINT", 0x02, 0x02 }, 1781da177e4SLinus Torvalds { "SEQ_SCSIINT", 0x04, 0x04 }, 1791da177e4SLinus Torvalds { "SEQ_SEQINT", 0x08, 0x08 }, 1801da177e4SLinus Torvalds { "SEQ_SWTMRTO", 0x10, 0x10 } 1811da177e4SLinus Torvalds}; 1821da177e4SLinus Torvalds 1831da177e4SLinus Torvaldsint 1841da177e4SLinus Torvaldsahd_seqintstat_print(u_int regvalue, u_int *cur_col, u_int wrap) 1851da177e4SLinus Torvalds{ 1861da177e4SLinus Torvalds return (ahd_print_register(SEQINTSTAT_parse_table, 5, "SEQINTSTAT", 1871da177e4SLinus Torvalds 0x0c, regvalue, cur_col, wrap)); 1881da177e4SLinus Torvalds} 1891da177e4SLinus Torvalds 19011668bb6SHannes Reineckestatic ahd_reg_parse_entry_t CLRSEQINTSTAT_parse_table[] = { 19111668bb6SHannes Reinecke { "CLRSEQ_SPLTINT", 0x01, 0x01 }, 19211668bb6SHannes Reinecke { "CLRSEQ_PCIINT", 0x02, 0x02 }, 19311668bb6SHannes Reinecke { "CLRSEQ_SCSIINT", 0x04, 0x04 }, 19411668bb6SHannes Reinecke { "CLRSEQ_SEQINT", 0x08, 0x08 }, 19511668bb6SHannes Reinecke { "CLRSEQ_SWTMRTO", 0x10, 0x10 } 19611668bb6SHannes Reinecke}; 19711668bb6SHannes Reinecke 19811668bb6SHannes Reineckeint 19911668bb6SHannes Reineckeahd_clrseqintstat_print(u_int regvalue, u_int *cur_col, u_int wrap) 20011668bb6SHannes Reinecke{ 20111668bb6SHannes Reinecke return (ahd_print_register(CLRSEQINTSTAT_parse_table, 5, "CLRSEQINTSTAT", 20211668bb6SHannes Reinecke 0x0c, regvalue, cur_col, wrap)); 20311668bb6SHannes Reinecke} 20411668bb6SHannes Reinecke 2051da177e4SLinus Torvaldsint 2061da177e4SLinus Torvaldsahd_swtimer_print(u_int regvalue, u_int *cur_col, u_int wrap) 2071da177e4SLinus Torvalds{ 2081da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SWTIMER", 2091da177e4SLinus Torvalds 0x0e, regvalue, cur_col, wrap)); 2101da177e4SLinus Torvalds} 2111da177e4SLinus Torvalds 2121da177e4SLinus Torvaldsint 2131da177e4SLinus Torvaldsahd_snscb_qoff_print(u_int regvalue, u_int *cur_col, u_int wrap) 2141da177e4SLinus Torvalds{ 2151da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SNSCB_QOFF", 2161da177e4SLinus Torvalds 0x10, regvalue, cur_col, wrap)); 2171da177e4SLinus Torvalds} 2181da177e4SLinus Torvalds 2191da177e4SLinus Torvaldsint 2201da177e4SLinus Torvaldsahd_sescb_qoff_print(u_int regvalue, u_int *cur_col, u_int wrap) 2211da177e4SLinus Torvalds{ 2221da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SESCB_QOFF", 2231da177e4SLinus Torvalds 0x12, regvalue, cur_col, wrap)); 2241da177e4SLinus Torvalds} 2251da177e4SLinus Torvalds 2261da177e4SLinus Torvaldsint 2271da177e4SLinus Torvaldsahd_sdscb_qoff_print(u_int regvalue, u_int *cur_col, u_int wrap) 2281da177e4SLinus Torvalds{ 2291da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SDSCB_QOFF", 2301da177e4SLinus Torvalds 0x14, regvalue, cur_col, wrap)); 2311da177e4SLinus Torvalds} 2321da177e4SLinus Torvalds 2331da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t QOFF_CTLSTA_parse_table[] = { 2341da177e4SLinus Torvalds { "SCB_QSIZE_4", 0x00, 0x0f }, 2351da177e4SLinus Torvalds { "SCB_QSIZE_8", 0x01, 0x0f }, 2361da177e4SLinus Torvalds { "SCB_QSIZE_16", 0x02, 0x0f }, 2371da177e4SLinus Torvalds { "SCB_QSIZE_32", 0x03, 0x0f }, 2381da177e4SLinus Torvalds { "SCB_QSIZE_64", 0x04, 0x0f }, 2391da177e4SLinus Torvalds { "SCB_QSIZE_128", 0x05, 0x0f }, 2401da177e4SLinus Torvalds { "SCB_QSIZE_256", 0x06, 0x0f }, 2411da177e4SLinus Torvalds { "SCB_QSIZE_512", 0x07, 0x0f }, 2421da177e4SLinus Torvalds { "SCB_QSIZE_1024", 0x08, 0x0f }, 2431da177e4SLinus Torvalds { "SCB_QSIZE_2048", 0x09, 0x0f }, 2441da177e4SLinus Torvalds { "SCB_QSIZE_4096", 0x0a, 0x0f }, 2451da177e4SLinus Torvalds { "SCB_QSIZE_8192", 0x0b, 0x0f }, 2461da177e4SLinus Torvalds { "SCB_QSIZE_16384", 0x0c, 0x0f }, 2471da177e4SLinus Torvalds { "SCB_QSIZE", 0x0f, 0x0f }, 2481da177e4SLinus Torvalds { "HS_MAILBOX_ACT", 0x10, 0x10 }, 2491da177e4SLinus Torvalds { "SDSCB_ROLLOVR", 0x20, 0x20 }, 2501da177e4SLinus Torvalds { "NEW_SCB_AVAIL", 0x40, 0x40 }, 2511da177e4SLinus Torvalds { "EMPTY_SCB_AVAIL", 0x80, 0x80 } 2521da177e4SLinus Torvalds}; 2531da177e4SLinus Torvalds 2541da177e4SLinus Torvaldsint 2551da177e4SLinus Torvaldsahd_qoff_ctlsta_print(u_int regvalue, u_int *cur_col, u_int wrap) 2561da177e4SLinus Torvalds{ 2571da177e4SLinus Torvalds return (ahd_print_register(QOFF_CTLSTA_parse_table, 18, "QOFF_CTLSTA", 2581da177e4SLinus Torvalds 0x16, regvalue, cur_col, wrap)); 2591da177e4SLinus Torvalds} 2601da177e4SLinus Torvalds 2611da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t INTCTL_parse_table[] = { 2621da177e4SLinus Torvalds { "SPLTINTEN", 0x01, 0x01 }, 2631da177e4SLinus Torvalds { "SEQINTEN", 0x02, 0x02 }, 2641da177e4SLinus Torvalds { "SCSIINTEN", 0x04, 0x04 }, 2651da177e4SLinus Torvalds { "PCIINTEN", 0x08, 0x08 }, 2661da177e4SLinus Torvalds { "AUTOCLRCMDINT", 0x10, 0x10 }, 2671da177e4SLinus Torvalds { "SWTIMER_START", 0x20, 0x20 }, 2681da177e4SLinus Torvalds { "SWTMINTEN", 0x40, 0x40 }, 2691da177e4SLinus Torvalds { "SWTMINTMASK", 0x80, 0x80 } 2701da177e4SLinus Torvalds}; 2711da177e4SLinus Torvalds 2721da177e4SLinus Torvaldsint 2731da177e4SLinus Torvaldsahd_intctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 2741da177e4SLinus Torvalds{ 2751da177e4SLinus Torvalds return (ahd_print_register(INTCTL_parse_table, 8, "INTCTL", 2761da177e4SLinus Torvalds 0x18, regvalue, cur_col, wrap)); 2771da177e4SLinus Torvalds} 2781da177e4SLinus Torvalds 2791da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t DFCNTRL_parse_table[] = { 2801da177e4SLinus Torvalds { "DIRECTIONEN", 0x01, 0x01 }, 2811da177e4SLinus Torvalds { "FIFOFLUSH", 0x02, 0x02 }, 2821da177e4SLinus Torvalds { "FIFOFLUSHACK", 0x02, 0x02 }, 2831da177e4SLinus Torvalds { "DIRECTION", 0x04, 0x04 }, 2841da177e4SLinus Torvalds { "DIRECTIONACK", 0x04, 0x04 }, 2851da177e4SLinus Torvalds { "HDMAEN", 0x08, 0x08 }, 2861da177e4SLinus Torvalds { "HDMAENACK", 0x08, 0x08 }, 2871da177e4SLinus Torvalds { "SCSIEN", 0x20, 0x20 }, 2881da177e4SLinus Torvalds { "SCSIENACK", 0x20, 0x20 }, 2891da177e4SLinus Torvalds { "SCSIENWRDIS", 0x40, 0x40 }, 2901da177e4SLinus Torvalds { "PRELOADEN", 0x80, 0x80 } 2911da177e4SLinus Torvalds}; 2921da177e4SLinus Torvalds 2931da177e4SLinus Torvaldsint 2941da177e4SLinus Torvaldsahd_dfcntrl_print(u_int regvalue, u_int *cur_col, u_int wrap) 2951da177e4SLinus Torvalds{ 2961da177e4SLinus Torvalds return (ahd_print_register(DFCNTRL_parse_table, 11, "DFCNTRL", 2971da177e4SLinus Torvalds 0x19, regvalue, cur_col, wrap)); 2981da177e4SLinus Torvalds} 2991da177e4SLinus Torvalds 3001da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t DSCOMMAND0_parse_table[] = { 3011da177e4SLinus Torvalds { "CIOPARCKEN", 0x01, 0x01 }, 3021da177e4SLinus Torvalds { "DISABLE_TWATE", 0x02, 0x02 }, 3031da177e4SLinus Torvalds { "EXTREQLCK", 0x10, 0x10 }, 3041da177e4SLinus Torvalds { "MPARCKEN", 0x20, 0x20 }, 3051da177e4SLinus Torvalds { "DPARCKEN", 0x40, 0x40 }, 3061da177e4SLinus Torvalds { "CACHETHEN", 0x80, 0x80 } 3071da177e4SLinus Torvalds}; 3081da177e4SLinus Torvalds 3091da177e4SLinus Torvaldsint 3101da177e4SLinus Torvaldsahd_dscommand0_print(u_int regvalue, u_int *cur_col, u_int wrap) 3111da177e4SLinus Torvalds{ 3121da177e4SLinus Torvalds return (ahd_print_register(DSCOMMAND0_parse_table, 6, "DSCOMMAND0", 3131da177e4SLinus Torvalds 0x19, regvalue, cur_col, wrap)); 3141da177e4SLinus Torvalds} 3151da177e4SLinus Torvalds 3161da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t DFSTATUS_parse_table[] = { 3171da177e4SLinus Torvalds { "FIFOEMP", 0x01, 0x01 }, 3181da177e4SLinus Torvalds { "FIFOFULL", 0x02, 0x02 }, 3191da177e4SLinus Torvalds { "DFTHRESH", 0x04, 0x04 }, 3201da177e4SLinus Torvalds { "HDONE", 0x08, 0x08 }, 3211da177e4SLinus Torvalds { "MREQPEND", 0x10, 0x10 }, 3221da177e4SLinus Torvalds { "PKT_PRELOAD_AVAIL", 0x40, 0x40 }, 3231da177e4SLinus Torvalds { "PRELOAD_AVAIL", 0x80, 0x80 } 3241da177e4SLinus Torvalds}; 3251da177e4SLinus Torvalds 3261da177e4SLinus Torvaldsint 3271da177e4SLinus Torvaldsahd_dfstatus_print(u_int regvalue, u_int *cur_col, u_int wrap) 3281da177e4SLinus Torvalds{ 3291da177e4SLinus Torvalds return (ahd_print_register(DFSTATUS_parse_table, 7, "DFSTATUS", 3301da177e4SLinus Torvalds 0x1a, regvalue, cur_col, wrap)); 3311da177e4SLinus Torvalds} 3321da177e4SLinus Torvalds 3331da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SG_CACHE_SHADOW_parse_table[] = { 3341da177e4SLinus Torvalds { "LAST_SEG_DONE", 0x01, 0x01 }, 3351da177e4SLinus Torvalds { "LAST_SEG", 0x02, 0x02 }, 3361da177e4SLinus Torvalds { "ODD_SEG", 0x04, 0x04 }, 3371da177e4SLinus Torvalds { "SG_ADDR_MASK", 0xf8, 0xf8 } 3381da177e4SLinus Torvalds}; 3391da177e4SLinus Torvalds 3401da177e4SLinus Torvaldsint 3411da177e4SLinus Torvaldsahd_sg_cache_shadow_print(u_int regvalue, u_int *cur_col, u_int wrap) 3421da177e4SLinus Torvalds{ 3431da177e4SLinus Torvalds return (ahd_print_register(SG_CACHE_SHADOW_parse_table, 4, "SG_CACHE_SHADOW", 3441da177e4SLinus Torvalds 0x1b, regvalue, cur_col, wrap)); 3451da177e4SLinus Torvalds} 3461da177e4SLinus Torvalds 3471da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t ARBCTL_parse_table[] = { 3481da177e4SLinus Torvalds { "USE_TIME", 0x07, 0x07 }, 3491da177e4SLinus Torvalds { "RETRY_SWEN", 0x08, 0x08 }, 3501da177e4SLinus Torvalds { "RESET_HARB", 0x80, 0x80 } 3511da177e4SLinus Torvalds}; 3521da177e4SLinus Torvalds 3531da177e4SLinus Torvaldsint 3541da177e4SLinus Torvaldsahd_arbctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 3551da177e4SLinus Torvalds{ 3561da177e4SLinus Torvalds return (ahd_print_register(ARBCTL_parse_table, 3, "ARBCTL", 3571da177e4SLinus Torvalds 0x1b, regvalue, cur_col, wrap)); 3581da177e4SLinus Torvalds} 3591da177e4SLinus Torvalds 3601da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SG_CACHE_PRE_parse_table[] = { 3611da177e4SLinus Torvalds { "LAST_SEG", 0x02, 0x02 }, 3621da177e4SLinus Torvalds { "ODD_SEG", 0x04, 0x04 }, 3631da177e4SLinus Torvalds { "SG_ADDR_MASK", 0xf8, 0xf8 } 3641da177e4SLinus Torvalds}; 3651da177e4SLinus Torvalds 3661da177e4SLinus Torvaldsint 3671da177e4SLinus Torvaldsahd_sg_cache_pre_print(u_int regvalue, u_int *cur_col, u_int wrap) 3681da177e4SLinus Torvalds{ 3691da177e4SLinus Torvalds return (ahd_print_register(SG_CACHE_PRE_parse_table, 3, "SG_CACHE_PRE", 3701da177e4SLinus Torvalds 0x1b, regvalue, cur_col, wrap)); 3711da177e4SLinus Torvalds} 3721da177e4SLinus Torvalds 3731da177e4SLinus Torvaldsint 3741da177e4SLinus Torvaldsahd_lqin_print(u_int regvalue, u_int *cur_col, u_int wrap) 3751da177e4SLinus Torvalds{ 3761da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "LQIN", 3771da177e4SLinus Torvalds 0x20, regvalue, cur_col, wrap)); 3781da177e4SLinus Torvalds} 3791da177e4SLinus Torvalds 3801da177e4SLinus Torvaldsint 3811da177e4SLinus Torvaldsahd_typeptr_print(u_int regvalue, u_int *cur_col, u_int wrap) 3821da177e4SLinus Torvalds{ 3831da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "TYPEPTR", 3841da177e4SLinus Torvalds 0x20, regvalue, cur_col, wrap)); 3851da177e4SLinus Torvalds} 3861da177e4SLinus Torvalds 3871da177e4SLinus Torvaldsint 3881da177e4SLinus Torvaldsahd_tagptr_print(u_int regvalue, u_int *cur_col, u_int wrap) 3891da177e4SLinus Torvalds{ 3901da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "TAGPTR", 3911da177e4SLinus Torvalds 0x21, regvalue, cur_col, wrap)); 3921da177e4SLinus Torvalds} 3931da177e4SLinus Torvalds 3941da177e4SLinus Torvaldsint 3951da177e4SLinus Torvaldsahd_lunptr_print(u_int regvalue, u_int *cur_col, u_int wrap) 3961da177e4SLinus Torvalds{ 3971da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "LUNPTR", 3981da177e4SLinus Torvalds 0x22, regvalue, cur_col, wrap)); 3991da177e4SLinus Torvalds} 4001da177e4SLinus Torvalds 4011da177e4SLinus Torvaldsint 4021da177e4SLinus Torvaldsahd_datalenptr_print(u_int regvalue, u_int *cur_col, u_int wrap) 4031da177e4SLinus Torvalds{ 4041da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "DATALENPTR", 4051da177e4SLinus Torvalds 0x23, regvalue, cur_col, wrap)); 4061da177e4SLinus Torvalds} 4071da177e4SLinus Torvalds 4081da177e4SLinus Torvaldsint 4091da177e4SLinus Torvaldsahd_statlenptr_print(u_int regvalue, u_int *cur_col, u_int wrap) 4101da177e4SLinus Torvalds{ 4111da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "STATLENPTR", 4121da177e4SLinus Torvalds 0x24, regvalue, cur_col, wrap)); 4131da177e4SLinus Torvalds} 4141da177e4SLinus Torvalds 4151da177e4SLinus Torvaldsint 4161da177e4SLinus Torvaldsahd_cmdlenptr_print(u_int regvalue, u_int *cur_col, u_int wrap) 4171da177e4SLinus Torvalds{ 4181da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "CMDLENPTR", 4191da177e4SLinus Torvalds 0x25, regvalue, cur_col, wrap)); 4201da177e4SLinus Torvalds} 4211da177e4SLinus Torvalds 4221da177e4SLinus Torvaldsint 4231da177e4SLinus Torvaldsahd_attrptr_print(u_int regvalue, u_int *cur_col, u_int wrap) 4241da177e4SLinus Torvalds{ 4251da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "ATTRPTR", 4261da177e4SLinus Torvalds 0x26, regvalue, cur_col, wrap)); 4271da177e4SLinus Torvalds} 4281da177e4SLinus Torvalds 4291da177e4SLinus Torvaldsint 4301da177e4SLinus Torvaldsahd_flagptr_print(u_int regvalue, u_int *cur_col, u_int wrap) 4311da177e4SLinus Torvalds{ 4321da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "FLAGPTR", 4331da177e4SLinus Torvalds 0x27, regvalue, cur_col, wrap)); 4341da177e4SLinus Torvalds} 4351da177e4SLinus Torvalds 4361da177e4SLinus Torvaldsint 4371da177e4SLinus Torvaldsahd_cmdptr_print(u_int regvalue, u_int *cur_col, u_int wrap) 4381da177e4SLinus Torvalds{ 4391da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "CMDPTR", 4401da177e4SLinus Torvalds 0x28, regvalue, cur_col, wrap)); 4411da177e4SLinus Torvalds} 4421da177e4SLinus Torvalds 4431da177e4SLinus Torvaldsint 4441da177e4SLinus Torvaldsahd_qnextptr_print(u_int regvalue, u_int *cur_col, u_int wrap) 4451da177e4SLinus Torvalds{ 4461da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "QNEXTPTR", 4471da177e4SLinus Torvalds 0x29, regvalue, cur_col, wrap)); 4481da177e4SLinus Torvalds} 4491da177e4SLinus Torvalds 4501da177e4SLinus Torvaldsint 4511da177e4SLinus Torvaldsahd_idptr_print(u_int regvalue, u_int *cur_col, u_int wrap) 4521da177e4SLinus Torvalds{ 4531da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "IDPTR", 4541da177e4SLinus Torvalds 0x2a, regvalue, cur_col, wrap)); 4551da177e4SLinus Torvalds} 4561da177e4SLinus Torvalds 4571da177e4SLinus Torvaldsint 4581da177e4SLinus Torvaldsahd_abrtbyteptr_print(u_int regvalue, u_int *cur_col, u_int wrap) 4591da177e4SLinus Torvalds{ 4601da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "ABRTBYTEPTR", 4611da177e4SLinus Torvalds 0x2b, regvalue, cur_col, wrap)); 4621da177e4SLinus Torvalds} 4631da177e4SLinus Torvalds 4641da177e4SLinus Torvaldsint 4651da177e4SLinus Torvaldsahd_abrtbitptr_print(u_int regvalue, u_int *cur_col, u_int wrap) 4661da177e4SLinus Torvalds{ 4671da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "ABRTBITPTR", 4681da177e4SLinus Torvalds 0x2c, regvalue, cur_col, wrap)); 4691da177e4SLinus Torvalds} 4701da177e4SLinus Torvalds 4711da177e4SLinus Torvaldsint 4721da177e4SLinus Torvaldsahd_maxcmdbytes_print(u_int regvalue, u_int *cur_col, u_int wrap) 4731da177e4SLinus Torvalds{ 4741da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "MAXCMDBYTES", 4751da177e4SLinus Torvalds 0x2d, regvalue, cur_col, wrap)); 4761da177e4SLinus Torvalds} 4771da177e4SLinus Torvalds 4781da177e4SLinus Torvaldsint 4791da177e4SLinus Torvaldsahd_maxcmd2rcv_print(u_int regvalue, u_int *cur_col, u_int wrap) 4801da177e4SLinus Torvalds{ 4811da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "MAXCMD2RCV", 4821da177e4SLinus Torvalds 0x2e, regvalue, cur_col, wrap)); 4831da177e4SLinus Torvalds} 4841da177e4SLinus Torvalds 4851da177e4SLinus Torvaldsint 4861da177e4SLinus Torvaldsahd_shortthresh_print(u_int regvalue, u_int *cur_col, u_int wrap) 4871da177e4SLinus Torvalds{ 4881da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SHORTTHRESH", 4891da177e4SLinus Torvalds 0x2f, regvalue, cur_col, wrap)); 4901da177e4SLinus Torvalds} 4911da177e4SLinus Torvalds 4921da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t LUNLEN_parse_table[] = { 4931da177e4SLinus Torvalds { "ILUNLEN", 0x0f, 0x0f }, 4941da177e4SLinus Torvalds { "TLUNLEN", 0xf0, 0xf0 } 4951da177e4SLinus Torvalds}; 4961da177e4SLinus Torvalds 4971da177e4SLinus Torvaldsint 4981da177e4SLinus Torvaldsahd_lunlen_print(u_int regvalue, u_int *cur_col, u_int wrap) 4991da177e4SLinus Torvalds{ 5001da177e4SLinus Torvalds return (ahd_print_register(LUNLEN_parse_table, 2, "LUNLEN", 5011da177e4SLinus Torvalds 0x30, regvalue, cur_col, wrap)); 5021da177e4SLinus Torvalds} 5031da177e4SLinus Torvalds 5041da177e4SLinus Torvaldsint 5051da177e4SLinus Torvaldsahd_cdblimit_print(u_int regvalue, u_int *cur_col, u_int wrap) 5061da177e4SLinus Torvalds{ 5071da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "CDBLIMIT", 5081da177e4SLinus Torvalds 0x31, regvalue, cur_col, wrap)); 5091da177e4SLinus Torvalds} 5101da177e4SLinus Torvalds 5111da177e4SLinus Torvaldsint 5121da177e4SLinus Torvaldsahd_maxcmd_print(u_int regvalue, u_int *cur_col, u_int wrap) 5131da177e4SLinus Torvalds{ 5141da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "MAXCMD", 5151da177e4SLinus Torvalds 0x32, regvalue, cur_col, wrap)); 5161da177e4SLinus Torvalds} 5171da177e4SLinus Torvalds 5181da177e4SLinus Torvaldsint 5191da177e4SLinus Torvaldsahd_maxcmdcnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 5201da177e4SLinus Torvalds{ 5211da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "MAXCMDCNT", 5221da177e4SLinus Torvalds 0x33, regvalue, cur_col, wrap)); 5231da177e4SLinus Torvalds} 5241da177e4SLinus Torvalds 5251da177e4SLinus Torvaldsint 5261da177e4SLinus Torvaldsahd_lqrsvd01_print(u_int regvalue, u_int *cur_col, u_int wrap) 5271da177e4SLinus Torvalds{ 5281da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "LQRSVD01", 5291da177e4SLinus Torvalds 0x34, regvalue, cur_col, wrap)); 5301da177e4SLinus Torvalds} 5311da177e4SLinus Torvalds 5321da177e4SLinus Torvaldsint 5331da177e4SLinus Torvaldsahd_lqrsvd16_print(u_int regvalue, u_int *cur_col, u_int wrap) 5341da177e4SLinus Torvalds{ 5351da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "LQRSVD16", 5361da177e4SLinus Torvalds 0x35, regvalue, cur_col, wrap)); 5371da177e4SLinus Torvalds} 5381da177e4SLinus Torvalds 5391da177e4SLinus Torvaldsint 5401da177e4SLinus Torvaldsahd_lqrsvd17_print(u_int regvalue, u_int *cur_col, u_int wrap) 5411da177e4SLinus Torvalds{ 5421da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "LQRSVD17", 5431da177e4SLinus Torvalds 0x36, regvalue, cur_col, wrap)); 5441da177e4SLinus Torvalds} 5451da177e4SLinus Torvalds 5461da177e4SLinus Torvaldsint 5471da177e4SLinus Torvaldsahd_cmdrsvd0_print(u_int regvalue, u_int *cur_col, u_int wrap) 5481da177e4SLinus Torvalds{ 5491da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "CMDRSVD0", 5501da177e4SLinus Torvalds 0x37, regvalue, cur_col, wrap)); 5511da177e4SLinus Torvalds} 5521da177e4SLinus Torvalds 5531da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t LQCTL0_parse_table[] = { 5541da177e4SLinus Torvalds { "LQ0INITGCLT", 0x03, 0x03 }, 5551da177e4SLinus Torvalds { "LQ0TARGCLT", 0x0c, 0x0c }, 5561da177e4SLinus Torvalds { "LQIINITGCLT", 0x30, 0x30 }, 5571da177e4SLinus Torvalds { "LQITARGCLT", 0xc0, 0xc0 } 5581da177e4SLinus Torvalds}; 5591da177e4SLinus Torvalds 5601da177e4SLinus Torvaldsint 5611da177e4SLinus Torvaldsahd_lqctl0_print(u_int regvalue, u_int *cur_col, u_int wrap) 5621da177e4SLinus Torvalds{ 5631da177e4SLinus Torvalds return (ahd_print_register(LQCTL0_parse_table, 4, "LQCTL0", 5641da177e4SLinus Torvalds 0x38, regvalue, cur_col, wrap)); 5651da177e4SLinus Torvalds} 5661da177e4SLinus Torvalds 5671da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t LQCTL1_parse_table[] = { 5681da177e4SLinus Torvalds { "ABORTPENDING", 0x01, 0x01 }, 5691da177e4SLinus Torvalds { "SINGLECMD", 0x02, 0x02 }, 5701da177e4SLinus Torvalds { "PCI2PCI", 0x04, 0x04 } 5711da177e4SLinus Torvalds}; 5721da177e4SLinus Torvalds 5731da177e4SLinus Torvaldsint 5741da177e4SLinus Torvaldsahd_lqctl1_print(u_int regvalue, u_int *cur_col, u_int wrap) 5751da177e4SLinus Torvalds{ 5761da177e4SLinus Torvalds return (ahd_print_register(LQCTL1_parse_table, 3, "LQCTL1", 5771da177e4SLinus Torvalds 0x38, regvalue, cur_col, wrap)); 5781da177e4SLinus Torvalds} 5791da177e4SLinus Torvalds 5801da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SCSBIST0_parse_table[] = { 5811da177e4SLinus Torvalds { "OSBISTRUN", 0x01, 0x01 }, 5821da177e4SLinus Torvalds { "OSBISTDONE", 0x02, 0x02 }, 5831da177e4SLinus Torvalds { "OSBISTERR", 0x04, 0x04 }, 5841da177e4SLinus Torvalds { "GSBISTRUN", 0x10, 0x10 }, 5851da177e4SLinus Torvalds { "GSBISTDONE", 0x20, 0x20 }, 5861da177e4SLinus Torvalds { "GSBISTERR", 0x40, 0x40 } 5871da177e4SLinus Torvalds}; 5881da177e4SLinus Torvalds 5891da177e4SLinus Torvaldsint 5901da177e4SLinus Torvaldsahd_scsbist0_print(u_int regvalue, u_int *cur_col, u_int wrap) 5911da177e4SLinus Torvalds{ 5921da177e4SLinus Torvalds return (ahd_print_register(SCSBIST0_parse_table, 6, "SCSBIST0", 5931da177e4SLinus Torvalds 0x39, regvalue, cur_col, wrap)); 5941da177e4SLinus Torvalds} 5951da177e4SLinus Torvalds 5961da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t LQCTL2_parse_table[] = { 5971da177e4SLinus Torvalds { "LQOPAUSE", 0x01, 0x01 }, 5981da177e4SLinus Torvalds { "LQOTOIDLE", 0x02, 0x02 }, 5991da177e4SLinus Torvalds { "LQOCONTINUE", 0x04, 0x04 }, 6001da177e4SLinus Torvalds { "LQORETRY", 0x08, 0x08 }, 6011da177e4SLinus Torvalds { "LQIPAUSE", 0x10, 0x10 }, 6021da177e4SLinus Torvalds { "LQITOIDLE", 0x20, 0x20 }, 6031da177e4SLinus Torvalds { "LQICONTINUE", 0x40, 0x40 }, 6041da177e4SLinus Torvalds { "LQIRETRY", 0x80, 0x80 } 6051da177e4SLinus Torvalds}; 6061da177e4SLinus Torvalds 6071da177e4SLinus Torvaldsint 6081da177e4SLinus Torvaldsahd_lqctl2_print(u_int regvalue, u_int *cur_col, u_int wrap) 6091da177e4SLinus Torvalds{ 6101da177e4SLinus Torvalds return (ahd_print_register(LQCTL2_parse_table, 8, "LQCTL2", 6111da177e4SLinus Torvalds 0x39, regvalue, cur_col, wrap)); 6121da177e4SLinus Torvalds} 6131da177e4SLinus Torvalds 6141da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SCSBIST1_parse_table[] = { 6151da177e4SLinus Torvalds { "NTBISTRUN", 0x01, 0x01 }, 6161da177e4SLinus Torvalds { "NTBISTDONE", 0x02, 0x02 }, 6171da177e4SLinus Torvalds { "NTBISTERR", 0x04, 0x04 } 6181da177e4SLinus Torvalds}; 6191da177e4SLinus Torvalds 6201da177e4SLinus Torvaldsint 6211da177e4SLinus Torvaldsahd_scsbist1_print(u_int regvalue, u_int *cur_col, u_int wrap) 6221da177e4SLinus Torvalds{ 6231da177e4SLinus Torvalds return (ahd_print_register(SCSBIST1_parse_table, 3, "SCSBIST1", 6241da177e4SLinus Torvalds 0x3a, regvalue, cur_col, wrap)); 6251da177e4SLinus Torvalds} 6261da177e4SLinus Torvalds 6271da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SCSISEQ0_parse_table[] = { 6281da177e4SLinus Torvalds { "SCSIRSTO", 0x01, 0x01 }, 6291da177e4SLinus Torvalds { "FORCEBUSFREE", 0x10, 0x10 }, 6301da177e4SLinus Torvalds { "ENARBO", 0x20, 0x20 }, 6311da177e4SLinus Torvalds { "ENSELO", 0x40, 0x40 }, 6321da177e4SLinus Torvalds { "TEMODEO", 0x80, 0x80 } 6331da177e4SLinus Torvalds}; 6341da177e4SLinus Torvalds 6351da177e4SLinus Torvaldsint 6361da177e4SLinus Torvaldsahd_scsiseq0_print(u_int regvalue, u_int *cur_col, u_int wrap) 6371da177e4SLinus Torvalds{ 6381da177e4SLinus Torvalds return (ahd_print_register(SCSISEQ0_parse_table, 5, "SCSISEQ0", 6391da177e4SLinus Torvalds 0x3a, regvalue, cur_col, wrap)); 6401da177e4SLinus Torvalds} 6411da177e4SLinus Torvalds 6421da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SCSISEQ1_parse_table[] = { 6431da177e4SLinus Torvalds { "ALTSTIM", 0x01, 0x01 }, 6441da177e4SLinus Torvalds { "ENAUTOATNP", 0x02, 0x02 }, 6451da177e4SLinus Torvalds { "MANUALP", 0x0c, 0x0c }, 6461da177e4SLinus Torvalds { "ENRSELI", 0x10, 0x10 }, 6471da177e4SLinus Torvalds { "ENSELI", 0x20, 0x20 }, 6481da177e4SLinus Torvalds { "MANUALCTL", 0x40, 0x40 } 6491da177e4SLinus Torvalds}; 6501da177e4SLinus Torvalds 6511da177e4SLinus Torvaldsint 6521da177e4SLinus Torvaldsahd_scsiseq1_print(u_int regvalue, u_int *cur_col, u_int wrap) 6531da177e4SLinus Torvalds{ 6541da177e4SLinus Torvalds return (ahd_print_register(SCSISEQ1_parse_table, 6, "SCSISEQ1", 6551da177e4SLinus Torvalds 0x3b, regvalue, cur_col, wrap)); 6561da177e4SLinus Torvalds} 6571da177e4SLinus Torvalds 6581da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SXFRCTL0_parse_table[] = { 6591da177e4SLinus Torvalds { "SPIOEN", 0x08, 0x08 }, 6601da177e4SLinus Torvalds { "BIOSCANCELEN", 0x10, 0x10 }, 6611da177e4SLinus Torvalds { "DFPEXP", 0x40, 0x40 }, 6621da177e4SLinus Torvalds { "DFON", 0x80, 0x80 } 6631da177e4SLinus Torvalds}; 6641da177e4SLinus Torvalds 6651da177e4SLinus Torvaldsint 6661da177e4SLinus Torvaldsahd_sxfrctl0_print(u_int regvalue, u_int *cur_col, u_int wrap) 6671da177e4SLinus Torvalds{ 6681da177e4SLinus Torvalds return (ahd_print_register(SXFRCTL0_parse_table, 4, "SXFRCTL0", 6691da177e4SLinus Torvalds 0x3c, regvalue, cur_col, wrap)); 6701da177e4SLinus Torvalds} 6711da177e4SLinus Torvalds 6721da177e4SLinus Torvaldsint 67311668bb6SHannes Reineckeahd_dlcount_print(u_int regvalue, u_int *cur_col, u_int wrap) 6741da177e4SLinus Torvalds{ 67511668bb6SHannes Reinecke return (ahd_print_register(NULL, 0, "DLCOUNT", 6761da177e4SLinus Torvalds 0x3c, regvalue, cur_col, wrap)); 6771da177e4SLinus Torvalds} 6781da177e4SLinus Torvalds 6791da177e4SLinus Torvaldsint 68011668bb6SHannes Reineckeahd_businitid_print(u_int regvalue, u_int *cur_col, u_int wrap) 6811da177e4SLinus Torvalds{ 68211668bb6SHannes Reinecke return (ahd_print_register(NULL, 0, "BUSINITID", 6831da177e4SLinus Torvalds 0x3c, regvalue, cur_col, wrap)); 6841da177e4SLinus Torvalds} 6851da177e4SLinus Torvalds 6861da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SXFRCTL1_parse_table[] = { 6871da177e4SLinus Torvalds { "STPWEN", 0x01, 0x01 }, 6881da177e4SLinus Torvalds { "ACTNEGEN", 0x02, 0x02 }, 6891da177e4SLinus Torvalds { "ENSTIMER", 0x04, 0x04 }, 6901da177e4SLinus Torvalds { "STIMESEL", 0x18, 0x18 }, 6911da177e4SLinus Torvalds { "ENSPCHK", 0x20, 0x20 }, 6921da177e4SLinus Torvalds { "ENSACHK", 0x40, 0x40 }, 6931da177e4SLinus Torvalds { "BITBUCKET", 0x80, 0x80 } 6941da177e4SLinus Torvalds}; 6951da177e4SLinus Torvalds 6961da177e4SLinus Torvaldsint 6971da177e4SLinus Torvaldsahd_sxfrctl1_print(u_int regvalue, u_int *cur_col, u_int wrap) 6981da177e4SLinus Torvalds{ 6991da177e4SLinus Torvalds return (ahd_print_register(SXFRCTL1_parse_table, 7, "SXFRCTL1", 7001da177e4SLinus Torvalds 0x3d, regvalue, cur_col, wrap)); 7011da177e4SLinus Torvalds} 7021da177e4SLinus Torvalds 7031da177e4SLinus Torvaldsint 7041da177e4SLinus Torvaldsahd_bustargid_print(u_int regvalue, u_int *cur_col, u_int wrap) 7051da177e4SLinus Torvalds{ 7061da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "BUSTARGID", 7071da177e4SLinus Torvalds 0x3e, regvalue, cur_col, wrap)); 7081da177e4SLinus Torvalds} 7091da177e4SLinus Torvalds 7101da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SXFRCTL2_parse_table[] = { 7111da177e4SLinus Torvalds { "ASU", 0x07, 0x07 }, 7121da177e4SLinus Torvalds { "CMDDMAEN", 0x08, 0x08 }, 7131da177e4SLinus Torvalds { "AUTORSTDIS", 0x10, 0x10 } 7141da177e4SLinus Torvalds}; 7151da177e4SLinus Torvalds 7161da177e4SLinus Torvaldsint 7171da177e4SLinus Torvaldsahd_sxfrctl2_print(u_int regvalue, u_int *cur_col, u_int wrap) 7181da177e4SLinus Torvalds{ 7191da177e4SLinus Torvalds return (ahd_print_register(SXFRCTL2_parse_table, 3, "SXFRCTL2", 7201da177e4SLinus Torvalds 0x3e, regvalue, cur_col, wrap)); 7211da177e4SLinus Torvalds} 7221da177e4SLinus Torvalds 7231da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t DFFSTAT_parse_table[] = { 7241da177e4SLinus Torvalds { "CURRFIFO_0", 0x00, 0x03 }, 7251da177e4SLinus Torvalds { "CURRFIFO_1", 0x01, 0x03 }, 7261da177e4SLinus Torvalds { "CURRFIFO_NONE", 0x03, 0x03 }, 7271da177e4SLinus Torvalds { "FIFO0FREE", 0x10, 0x10 }, 7281da177e4SLinus Torvalds { "FIFO1FREE", 0x20, 0x20 }, 7291da177e4SLinus Torvalds { "CURRFIFO", 0x03, 0x03 } 7301da177e4SLinus Torvalds}; 7311da177e4SLinus Torvalds 7321da177e4SLinus Torvaldsint 7331da177e4SLinus Torvaldsahd_dffstat_print(u_int regvalue, u_int *cur_col, u_int wrap) 7341da177e4SLinus Torvalds{ 7351da177e4SLinus Torvalds return (ahd_print_register(DFFSTAT_parse_table, 6, "DFFSTAT", 7361da177e4SLinus Torvalds 0x3f, regvalue, cur_col, wrap)); 7371da177e4SLinus Torvalds} 7381da177e4SLinus Torvalds 7391da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SCSISIGO_parse_table[] = { 7401da177e4SLinus Torvalds { "P_DATAOUT", 0x00, 0xe0 }, 7411da177e4SLinus Torvalds { "P_DATAOUT_DT", 0x20, 0xe0 }, 7421da177e4SLinus Torvalds { "P_DATAIN", 0x40, 0xe0 }, 7431da177e4SLinus Torvalds { "P_DATAIN_DT", 0x60, 0xe0 }, 7441da177e4SLinus Torvalds { "P_COMMAND", 0x80, 0xe0 }, 7451da177e4SLinus Torvalds { "P_MESGOUT", 0xa0, 0xe0 }, 7461da177e4SLinus Torvalds { "P_STATUS", 0xc0, 0xe0 }, 7471da177e4SLinus Torvalds { "P_MESGIN", 0xe0, 0xe0 }, 7481da177e4SLinus Torvalds { "ACKO", 0x01, 0x01 }, 7491da177e4SLinus Torvalds { "REQO", 0x02, 0x02 }, 7501da177e4SLinus Torvalds { "BSYO", 0x04, 0x04 }, 7511da177e4SLinus Torvalds { "SELO", 0x08, 0x08 }, 7521da177e4SLinus Torvalds { "ATNO", 0x10, 0x10 }, 7531da177e4SLinus Torvalds { "MSGO", 0x20, 0x20 }, 7541da177e4SLinus Torvalds { "IOO", 0x40, 0x40 }, 7551da177e4SLinus Torvalds { "CDO", 0x80, 0x80 }, 7561da177e4SLinus Torvalds { "PHASE_MASK", 0xe0, 0xe0 } 7571da177e4SLinus Torvalds}; 7581da177e4SLinus Torvalds 7591da177e4SLinus Torvaldsint 7601da177e4SLinus Torvaldsahd_scsisigo_print(u_int regvalue, u_int *cur_col, u_int wrap) 7611da177e4SLinus Torvalds{ 7621da177e4SLinus Torvalds return (ahd_print_register(SCSISIGO_parse_table, 17, "SCSISIGO", 7631da177e4SLinus Torvalds 0x40, regvalue, cur_col, wrap)); 7641da177e4SLinus Torvalds} 7651da177e4SLinus Torvalds 7661da177e4SLinus Torvaldsint 7671da177e4SLinus Torvaldsahd_multargid_print(u_int regvalue, u_int *cur_col, u_int wrap) 7681da177e4SLinus Torvalds{ 7691da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "MULTARGID", 7701da177e4SLinus Torvalds 0x40, regvalue, cur_col, wrap)); 7711da177e4SLinus Torvalds} 7721da177e4SLinus Torvalds 7731da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SCSISIGI_parse_table[] = { 7741da177e4SLinus Torvalds { "P_DATAOUT", 0x00, 0xe0 }, 7751da177e4SLinus Torvalds { "P_DATAOUT_DT", 0x20, 0xe0 }, 7761da177e4SLinus Torvalds { "P_DATAIN", 0x40, 0xe0 }, 7771da177e4SLinus Torvalds { "P_DATAIN_DT", 0x60, 0xe0 }, 7781da177e4SLinus Torvalds { "P_COMMAND", 0x80, 0xe0 }, 7791da177e4SLinus Torvalds { "P_MESGOUT", 0xa0, 0xe0 }, 7801da177e4SLinus Torvalds { "P_STATUS", 0xc0, 0xe0 }, 7811da177e4SLinus Torvalds { "P_MESGIN", 0xe0, 0xe0 }, 7821da177e4SLinus Torvalds { "ACKI", 0x01, 0x01 }, 7831da177e4SLinus Torvalds { "REQI", 0x02, 0x02 }, 7841da177e4SLinus Torvalds { "BSYI", 0x04, 0x04 }, 7851da177e4SLinus Torvalds { "SELI", 0x08, 0x08 }, 7861da177e4SLinus Torvalds { "ATNI", 0x10, 0x10 }, 7871da177e4SLinus Torvalds { "MSGI", 0x20, 0x20 }, 7881da177e4SLinus Torvalds { "IOI", 0x40, 0x40 }, 7891da177e4SLinus Torvalds { "CDI", 0x80, 0x80 }, 7901da177e4SLinus Torvalds { "PHASE_MASK", 0xe0, 0xe0 } 7911da177e4SLinus Torvalds}; 7921da177e4SLinus Torvalds 7931da177e4SLinus Torvaldsint 7941da177e4SLinus Torvaldsahd_scsisigi_print(u_int regvalue, u_int *cur_col, u_int wrap) 7951da177e4SLinus Torvalds{ 7961da177e4SLinus Torvalds return (ahd_print_register(SCSISIGI_parse_table, 17, "SCSISIGI", 7971da177e4SLinus Torvalds 0x41, regvalue, cur_col, wrap)); 7981da177e4SLinus Torvalds} 7991da177e4SLinus Torvalds 8001da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SCSIPHASE_parse_table[] = { 8011da177e4SLinus Torvalds { "DATA_OUT_PHASE", 0x01, 0x03 }, 8021da177e4SLinus Torvalds { "DATA_IN_PHASE", 0x02, 0x03 }, 8031da177e4SLinus Torvalds { "DATA_PHASE_MASK", 0x03, 0x03 }, 8041da177e4SLinus Torvalds { "MSG_OUT_PHASE", 0x04, 0x04 }, 8051da177e4SLinus Torvalds { "MSG_IN_PHASE", 0x08, 0x08 }, 8061da177e4SLinus Torvalds { "COMMAND_PHASE", 0x10, 0x10 }, 8071da177e4SLinus Torvalds { "STATUS_PHASE", 0x20, 0x20 } 8081da177e4SLinus Torvalds}; 8091da177e4SLinus Torvalds 8101da177e4SLinus Torvaldsint 8111da177e4SLinus Torvaldsahd_scsiphase_print(u_int regvalue, u_int *cur_col, u_int wrap) 8121da177e4SLinus Torvalds{ 8131da177e4SLinus Torvalds return (ahd_print_register(SCSIPHASE_parse_table, 7, "SCSIPHASE", 8141da177e4SLinus Torvalds 0x42, regvalue, cur_col, wrap)); 8151da177e4SLinus Torvalds} 8161da177e4SLinus Torvalds 8171da177e4SLinus Torvaldsint 8181da177e4SLinus Torvaldsahd_scsidat0_img_print(u_int regvalue, u_int *cur_col, u_int wrap) 8191da177e4SLinus Torvalds{ 8201da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SCSIDAT0_IMG", 8211da177e4SLinus Torvalds 0x43, regvalue, cur_col, wrap)); 8221da177e4SLinus Torvalds} 8231da177e4SLinus Torvalds 8241da177e4SLinus Torvaldsint 8251da177e4SLinus Torvaldsahd_scsidat_print(u_int regvalue, u_int *cur_col, u_int wrap) 8261da177e4SLinus Torvalds{ 8271da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SCSIDAT", 8281da177e4SLinus Torvalds 0x44, regvalue, cur_col, wrap)); 8291da177e4SLinus Torvalds} 8301da177e4SLinus Torvalds 8311da177e4SLinus Torvaldsint 8321da177e4SLinus Torvaldsahd_scsibus_print(u_int regvalue, u_int *cur_col, u_int wrap) 8331da177e4SLinus Torvalds{ 8341da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SCSIBUS", 8351da177e4SLinus Torvalds 0x46, regvalue, cur_col, wrap)); 8361da177e4SLinus Torvalds} 8371da177e4SLinus Torvalds 8381da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t TARGIDIN_parse_table[] = { 8391da177e4SLinus Torvalds { "TARGID", 0x0f, 0x0f }, 8401da177e4SLinus Torvalds { "CLKOUT", 0x80, 0x80 } 8411da177e4SLinus Torvalds}; 8421da177e4SLinus Torvalds 8431da177e4SLinus Torvaldsint 8441da177e4SLinus Torvaldsahd_targidin_print(u_int regvalue, u_int *cur_col, u_int wrap) 8451da177e4SLinus Torvalds{ 8461da177e4SLinus Torvalds return (ahd_print_register(TARGIDIN_parse_table, 2, "TARGIDIN", 8471da177e4SLinus Torvalds 0x48, regvalue, cur_col, wrap)); 8481da177e4SLinus Torvalds} 8491da177e4SLinus Torvalds 8501da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SELID_parse_table[] = { 8511da177e4SLinus Torvalds { "ONEBIT", 0x08, 0x08 }, 8521da177e4SLinus Torvalds { "SELID_MASK", 0xf0, 0xf0 } 8531da177e4SLinus Torvalds}; 8541da177e4SLinus Torvalds 8551da177e4SLinus Torvaldsint 8561da177e4SLinus Torvaldsahd_selid_print(u_int regvalue, u_int *cur_col, u_int wrap) 8571da177e4SLinus Torvalds{ 8581da177e4SLinus Torvalds return (ahd_print_register(SELID_parse_table, 2, "SELID", 8591da177e4SLinus Torvalds 0x49, regvalue, cur_col, wrap)); 8601da177e4SLinus Torvalds} 8611da177e4SLinus Torvalds 8621da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t OPTIONMODE_parse_table[] = { 8631da177e4SLinus Torvalds { "AUTO_MSGOUT_DE", 0x02, 0x02 }, 8641da177e4SLinus Torvalds { "ENDGFORMCHK", 0x04, 0x04 }, 8651da177e4SLinus Torvalds { "BUSFREEREV", 0x10, 0x10 }, 8661da177e4SLinus Torvalds { "BIASCANCTL", 0x20, 0x20 }, 8671da177e4SLinus Torvalds { "AUTOACKEN", 0x40, 0x40 }, 8681da177e4SLinus Torvalds { "BIOSCANCTL", 0x80, 0x80 }, 8691da177e4SLinus Torvalds { "OPTIONMODE_DEFAULTS",0x02, 0x02 } 8701da177e4SLinus Torvalds}; 8711da177e4SLinus Torvalds 8721da177e4SLinus Torvaldsint 8731da177e4SLinus Torvaldsahd_optionmode_print(u_int regvalue, u_int *cur_col, u_int wrap) 8741da177e4SLinus Torvalds{ 8751da177e4SLinus Torvalds return (ahd_print_register(OPTIONMODE_parse_table, 7, "OPTIONMODE", 8761da177e4SLinus Torvalds 0x4a, regvalue, cur_col, wrap)); 8771da177e4SLinus Torvalds} 8781da177e4SLinus Torvalds 87911668bb6SHannes Reineckestatic ahd_reg_parse_entry_t SBLKCTL_parse_table[] = { 88011668bb6SHannes Reinecke { "SELWIDE", 0x02, 0x02 }, 88111668bb6SHannes Reinecke { "ENAB20", 0x04, 0x04 }, 88211668bb6SHannes Reinecke { "ENAB40", 0x08, 0x08 }, 88311668bb6SHannes Reinecke { "DIAGLEDON", 0x40, 0x40 }, 88411668bb6SHannes Reinecke { "DIAGLEDEN", 0x80, 0x80 } 8851da177e4SLinus Torvalds}; 8861da177e4SLinus Torvalds 8871da177e4SLinus Torvaldsint 88811668bb6SHannes Reineckeahd_sblkctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 8891da177e4SLinus Torvalds{ 89011668bb6SHannes Reinecke return (ahd_print_register(SBLKCTL_parse_table, 5, "SBLKCTL", 89111668bb6SHannes Reinecke 0x4a, regvalue, cur_col, wrap)); 8921da177e4SLinus Torvalds} 8931da177e4SLinus Torvalds 8941da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t CLRSINT0_parse_table[] = { 8951da177e4SLinus Torvalds { "CLRARBDO", 0x01, 0x01 }, 8961da177e4SLinus Torvalds { "CLRSPIORDY", 0x02, 0x02 }, 8971da177e4SLinus Torvalds { "CLROVERRUN", 0x04, 0x04 }, 8981da177e4SLinus Torvalds { "CLRIOERR", 0x08, 0x08 }, 8991da177e4SLinus Torvalds { "CLRSELINGO", 0x10, 0x10 }, 9001da177e4SLinus Torvalds { "CLRSELDI", 0x20, 0x20 }, 9011da177e4SLinus Torvalds { "CLRSELDO", 0x40, 0x40 } 9021da177e4SLinus Torvalds}; 9031da177e4SLinus Torvalds 9041da177e4SLinus Torvaldsint 9051da177e4SLinus Torvaldsahd_clrsint0_print(u_int regvalue, u_int *cur_col, u_int wrap) 9061da177e4SLinus Torvalds{ 9071da177e4SLinus Torvalds return (ahd_print_register(CLRSINT0_parse_table, 7, "CLRSINT0", 9081da177e4SLinus Torvalds 0x4b, regvalue, cur_col, wrap)); 9091da177e4SLinus Torvalds} 9101da177e4SLinus Torvalds 91111668bb6SHannes Reineckestatic ahd_reg_parse_entry_t SSTAT0_parse_table[] = { 91211668bb6SHannes Reinecke { "ARBDO", 0x01, 0x01 }, 91311668bb6SHannes Reinecke { "SPIORDY", 0x02, 0x02 }, 91411668bb6SHannes Reinecke { "OVERRUN", 0x04, 0x04 }, 91511668bb6SHannes Reinecke { "IOERR", 0x08, 0x08 }, 91611668bb6SHannes Reinecke { "SELINGO", 0x10, 0x10 }, 91711668bb6SHannes Reinecke { "SELDI", 0x20, 0x20 }, 91811668bb6SHannes Reinecke { "SELDO", 0x40, 0x40 }, 91911668bb6SHannes Reinecke { "TARGET", 0x80, 0x80 } 92011668bb6SHannes Reinecke}; 92111668bb6SHannes Reinecke 92211668bb6SHannes Reineckeint 92311668bb6SHannes Reineckeahd_sstat0_print(u_int regvalue, u_int *cur_col, u_int wrap) 92411668bb6SHannes Reinecke{ 92511668bb6SHannes Reinecke return (ahd_print_register(SSTAT0_parse_table, 8, "SSTAT0", 92611668bb6SHannes Reinecke 0x4b, regvalue, cur_col, wrap)); 92711668bb6SHannes Reinecke} 92811668bb6SHannes Reinecke 9291da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SIMODE0_parse_table[] = { 9301da177e4SLinus Torvalds { "ENARBDO", 0x01, 0x01 }, 9311da177e4SLinus Torvalds { "ENSPIORDY", 0x02, 0x02 }, 9321da177e4SLinus Torvalds { "ENOVERRUN", 0x04, 0x04 }, 9331da177e4SLinus Torvalds { "ENIOERR", 0x08, 0x08 }, 9341da177e4SLinus Torvalds { "ENSELINGO", 0x10, 0x10 }, 9351da177e4SLinus Torvalds { "ENSELDI", 0x20, 0x20 }, 9361da177e4SLinus Torvalds { "ENSELDO", 0x40, 0x40 } 9371da177e4SLinus Torvalds}; 9381da177e4SLinus Torvalds 9391da177e4SLinus Torvaldsint 9401da177e4SLinus Torvaldsahd_simode0_print(u_int regvalue, u_int *cur_col, u_int wrap) 9411da177e4SLinus Torvalds{ 9421da177e4SLinus Torvalds return (ahd_print_register(SIMODE0_parse_table, 7, "SIMODE0", 9431da177e4SLinus Torvalds 0x4b, regvalue, cur_col, wrap)); 9441da177e4SLinus Torvalds} 9451da177e4SLinus Torvalds 9461da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t CLRSINT1_parse_table[] = { 9471da177e4SLinus Torvalds { "CLRREQINIT", 0x01, 0x01 }, 9481da177e4SLinus Torvalds { "CLRSTRB2FAST", 0x02, 0x02 }, 9491da177e4SLinus Torvalds { "CLRSCSIPERR", 0x04, 0x04 }, 9501da177e4SLinus Torvalds { "CLRBUSFREE", 0x08, 0x08 }, 9511da177e4SLinus Torvalds { "CLRSCSIRSTI", 0x20, 0x20 }, 9521da177e4SLinus Torvalds { "CLRATNO", 0x40, 0x40 }, 9531da177e4SLinus Torvalds { "CLRSELTIMEO", 0x80, 0x80 } 9541da177e4SLinus Torvalds}; 9551da177e4SLinus Torvalds 9561da177e4SLinus Torvaldsint 9571da177e4SLinus Torvaldsahd_clrsint1_print(u_int regvalue, u_int *cur_col, u_int wrap) 9581da177e4SLinus Torvalds{ 9591da177e4SLinus Torvalds return (ahd_print_register(CLRSINT1_parse_table, 7, "CLRSINT1", 9601da177e4SLinus Torvalds 0x4c, regvalue, cur_col, wrap)); 9611da177e4SLinus Torvalds} 9621da177e4SLinus Torvalds 9631da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SSTAT1_parse_table[] = { 9641da177e4SLinus Torvalds { "REQINIT", 0x01, 0x01 }, 9651da177e4SLinus Torvalds { "STRB2FAST", 0x02, 0x02 }, 9661da177e4SLinus Torvalds { "SCSIPERR", 0x04, 0x04 }, 9671da177e4SLinus Torvalds { "BUSFREE", 0x08, 0x08 }, 9681da177e4SLinus Torvalds { "PHASEMIS", 0x10, 0x10 }, 9691da177e4SLinus Torvalds { "SCSIRSTI", 0x20, 0x20 }, 9701da177e4SLinus Torvalds { "ATNTARG", 0x40, 0x40 }, 9711da177e4SLinus Torvalds { "SELTO", 0x80, 0x80 } 9721da177e4SLinus Torvalds}; 9731da177e4SLinus Torvalds 9741da177e4SLinus Torvaldsint 9751da177e4SLinus Torvaldsahd_sstat1_print(u_int regvalue, u_int *cur_col, u_int wrap) 9761da177e4SLinus Torvalds{ 9771da177e4SLinus Torvalds return (ahd_print_register(SSTAT1_parse_table, 8, "SSTAT1", 9781da177e4SLinus Torvalds 0x4c, regvalue, cur_col, wrap)); 9791da177e4SLinus Torvalds} 9801da177e4SLinus Torvalds 9811da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SSTAT2_parse_table[] = { 9821da177e4SLinus Torvalds { "BUSFREE_LQO", 0x40, 0xc0 }, 9831da177e4SLinus Torvalds { "BUSFREE_DFF0", 0x80, 0xc0 }, 9841da177e4SLinus Torvalds { "BUSFREE_DFF1", 0xc0, 0xc0 }, 9851da177e4SLinus Torvalds { "DMADONE", 0x01, 0x01 }, 9861da177e4SLinus Torvalds { "SDONE", 0x02, 0x02 }, 9871da177e4SLinus Torvalds { "WIDE_RES", 0x04, 0x04 }, 9881da177e4SLinus Torvalds { "BSYX", 0x08, 0x08 }, 9891da177e4SLinus Torvalds { "EXP_ACTIVE", 0x10, 0x10 }, 9901da177e4SLinus Torvalds { "NONPACKREQ", 0x20, 0x20 }, 9911da177e4SLinus Torvalds { "BUSFREETIME", 0xc0, 0xc0 } 9921da177e4SLinus Torvalds}; 9931da177e4SLinus Torvalds 9941da177e4SLinus Torvaldsint 9951da177e4SLinus Torvaldsahd_sstat2_print(u_int regvalue, u_int *cur_col, u_int wrap) 9961da177e4SLinus Torvalds{ 9971da177e4SLinus Torvalds return (ahd_print_register(SSTAT2_parse_table, 10, "SSTAT2", 9981da177e4SLinus Torvalds 0x4d, regvalue, cur_col, wrap)); 9991da177e4SLinus Torvalds} 10001da177e4SLinus Torvalds 100111668bb6SHannes Reineckestatic ahd_reg_parse_entry_t SIMODE2_parse_table[] = { 100211668bb6SHannes Reinecke { "ENDMADONE", 0x01, 0x01 }, 100311668bb6SHannes Reinecke { "ENSDONE", 0x02, 0x02 }, 100411668bb6SHannes Reinecke { "ENWIDE_RES", 0x04, 0x04 } 100511668bb6SHannes Reinecke}; 100611668bb6SHannes Reinecke 100711668bb6SHannes Reineckeint 100811668bb6SHannes Reineckeahd_simode2_print(u_int regvalue, u_int *cur_col, u_int wrap) 100911668bb6SHannes Reinecke{ 101011668bb6SHannes Reinecke return (ahd_print_register(SIMODE2_parse_table, 3, "SIMODE2", 101111668bb6SHannes Reinecke 0x4d, regvalue, cur_col, wrap)); 101211668bb6SHannes Reinecke} 101311668bb6SHannes Reinecke 10141da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t CLRSINT2_parse_table[] = { 10151da177e4SLinus Torvalds { "CLRDMADONE", 0x01, 0x01 }, 10161da177e4SLinus Torvalds { "CLRSDONE", 0x02, 0x02 }, 10171da177e4SLinus Torvalds { "CLRWIDE_RES", 0x04, 0x04 }, 10181da177e4SLinus Torvalds { "CLRNONPACKREQ", 0x20, 0x20 } 10191da177e4SLinus Torvalds}; 10201da177e4SLinus Torvalds 10211da177e4SLinus Torvaldsint 10221da177e4SLinus Torvaldsahd_clrsint2_print(u_int regvalue, u_int *cur_col, u_int wrap) 10231da177e4SLinus Torvalds{ 10241da177e4SLinus Torvalds return (ahd_print_register(CLRSINT2_parse_table, 4, "CLRSINT2", 10251da177e4SLinus Torvalds 0x4d, regvalue, cur_col, wrap)); 10261da177e4SLinus Torvalds} 10271da177e4SLinus Torvalds 10281da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t PERRDIAG_parse_table[] = { 10291da177e4SLinus Torvalds { "DTERR", 0x01, 0x01 }, 10301da177e4SLinus Torvalds { "DGFORMERR", 0x02, 0x02 }, 10311da177e4SLinus Torvalds { "CRCERR", 0x04, 0x04 }, 10321da177e4SLinus Torvalds { "AIPERR", 0x08, 0x08 }, 10331da177e4SLinus Torvalds { "PARITYERR", 0x10, 0x10 }, 10341da177e4SLinus Torvalds { "PREVPHASE", 0x20, 0x20 }, 10351da177e4SLinus Torvalds { "HIPERR", 0x40, 0x40 }, 10361da177e4SLinus Torvalds { "HIZERO", 0x80, 0x80 } 10371da177e4SLinus Torvalds}; 10381da177e4SLinus Torvalds 10391da177e4SLinus Torvaldsint 10401da177e4SLinus Torvaldsahd_perrdiag_print(u_int regvalue, u_int *cur_col, u_int wrap) 10411da177e4SLinus Torvalds{ 10421da177e4SLinus Torvalds return (ahd_print_register(PERRDIAG_parse_table, 8, "PERRDIAG", 10431da177e4SLinus Torvalds 0x4e, regvalue, cur_col, wrap)); 10441da177e4SLinus Torvalds} 10451da177e4SLinus Torvalds 10461da177e4SLinus Torvaldsint 10471da177e4SLinus Torvaldsahd_lqistate_print(u_int regvalue, u_int *cur_col, u_int wrap) 10481da177e4SLinus Torvalds{ 10491da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "LQISTATE", 10501da177e4SLinus Torvalds 0x4e, regvalue, cur_col, wrap)); 10511da177e4SLinus Torvalds} 10521da177e4SLinus Torvalds 10531da177e4SLinus Torvaldsint 10541da177e4SLinus Torvaldsahd_soffcnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 10551da177e4SLinus Torvalds{ 10561da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SOFFCNT", 10571da177e4SLinus Torvalds 0x4f, regvalue, cur_col, wrap)); 10581da177e4SLinus Torvalds} 10591da177e4SLinus Torvalds 10601da177e4SLinus Torvaldsint 10611da177e4SLinus Torvaldsahd_lqostate_print(u_int regvalue, u_int *cur_col, u_int wrap) 10621da177e4SLinus Torvalds{ 10631da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "LQOSTATE", 10641da177e4SLinus Torvalds 0x4f, regvalue, cur_col, wrap)); 10651da177e4SLinus Torvalds} 10661da177e4SLinus Torvalds 10671da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t LQISTAT0_parse_table[] = { 10681da177e4SLinus Torvalds { "LQIATNCMD", 0x01, 0x01 }, 10691da177e4SLinus Torvalds { "LQIATNLQ", 0x02, 0x02 }, 10701da177e4SLinus Torvalds { "LQIBADLQT", 0x04, 0x04 }, 10711da177e4SLinus Torvalds { "LQICRCT2", 0x08, 0x08 }, 10721da177e4SLinus Torvalds { "LQICRCT1", 0x10, 0x10 }, 10731da177e4SLinus Torvalds { "LQIATNQAS", 0x20, 0x20 } 10741da177e4SLinus Torvalds}; 10751da177e4SLinus Torvalds 10761da177e4SLinus Torvaldsint 10771da177e4SLinus Torvaldsahd_lqistat0_print(u_int regvalue, u_int *cur_col, u_int wrap) 10781da177e4SLinus Torvalds{ 10791da177e4SLinus Torvalds return (ahd_print_register(LQISTAT0_parse_table, 6, "LQISTAT0", 10801da177e4SLinus Torvalds 0x50, regvalue, cur_col, wrap)); 10811da177e4SLinus Torvalds} 10821da177e4SLinus Torvalds 10831da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t CLRLQIINT0_parse_table[] = { 10841da177e4SLinus Torvalds { "CLRLQIATNCMD", 0x01, 0x01 }, 10851da177e4SLinus Torvalds { "CLRLQIATNLQ", 0x02, 0x02 }, 10861da177e4SLinus Torvalds { "CLRLQIBADLQT", 0x04, 0x04 }, 10871da177e4SLinus Torvalds { "CLRLQICRCT2", 0x08, 0x08 }, 10881da177e4SLinus Torvalds { "CLRLQICRCT1", 0x10, 0x10 }, 10891da177e4SLinus Torvalds { "CLRLQIATNQAS", 0x20, 0x20 } 10901da177e4SLinus Torvalds}; 10911da177e4SLinus Torvalds 10921da177e4SLinus Torvaldsint 10931da177e4SLinus Torvaldsahd_clrlqiint0_print(u_int regvalue, u_int *cur_col, u_int wrap) 10941da177e4SLinus Torvalds{ 10951da177e4SLinus Torvalds return (ahd_print_register(CLRLQIINT0_parse_table, 6, "CLRLQIINT0", 10961da177e4SLinus Torvalds 0x50, regvalue, cur_col, wrap)); 10971da177e4SLinus Torvalds} 10981da177e4SLinus Torvalds 10991da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t LQIMODE0_parse_table[] = { 11001da177e4SLinus Torvalds { "ENLQIATNCMD", 0x01, 0x01 }, 11011da177e4SLinus Torvalds { "ENLQIATNLQ", 0x02, 0x02 }, 11021da177e4SLinus Torvalds { "ENLQIBADLQT", 0x04, 0x04 }, 11031da177e4SLinus Torvalds { "ENLQICRCT2", 0x08, 0x08 }, 11041da177e4SLinus Torvalds { "ENLQICRCT1", 0x10, 0x10 }, 11051da177e4SLinus Torvalds { "ENLQIATNQASK", 0x20, 0x20 } 11061da177e4SLinus Torvalds}; 11071da177e4SLinus Torvalds 11081da177e4SLinus Torvaldsint 11091da177e4SLinus Torvaldsahd_lqimode0_print(u_int regvalue, u_int *cur_col, u_int wrap) 11101da177e4SLinus Torvalds{ 11111da177e4SLinus Torvalds return (ahd_print_register(LQIMODE0_parse_table, 6, "LQIMODE0", 11121da177e4SLinus Torvalds 0x50, regvalue, cur_col, wrap)); 11131da177e4SLinus Torvalds} 11141da177e4SLinus Torvalds 11151da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t LQIMODE1_parse_table[] = { 11161da177e4SLinus Torvalds { "ENLQIOVERI_NLQ", 0x01, 0x01 }, 11171da177e4SLinus Torvalds { "ENLQIOVERI_LQ", 0x02, 0x02 }, 11181da177e4SLinus Torvalds { "ENLQIBADLQI", 0x04, 0x04 }, 11191da177e4SLinus Torvalds { "ENLQICRCI_NLQ", 0x08, 0x08 }, 11201da177e4SLinus Torvalds { "ENLQICRCI_LQ", 0x10, 0x10 }, 11211da177e4SLinus Torvalds { "ENLIQABORT", 0x20, 0x20 }, 11221da177e4SLinus Torvalds { "ENLQIPHASE_NLQ", 0x40, 0x40 }, 11231da177e4SLinus Torvalds { "ENLQIPHASE_LQ", 0x80, 0x80 } 11241da177e4SLinus Torvalds}; 11251da177e4SLinus Torvalds 11261da177e4SLinus Torvaldsint 11271da177e4SLinus Torvaldsahd_lqimode1_print(u_int regvalue, u_int *cur_col, u_int wrap) 11281da177e4SLinus Torvalds{ 11291da177e4SLinus Torvalds return (ahd_print_register(LQIMODE1_parse_table, 8, "LQIMODE1", 11301da177e4SLinus Torvalds 0x51, regvalue, cur_col, wrap)); 11311da177e4SLinus Torvalds} 11321da177e4SLinus Torvalds 11331da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t LQISTAT1_parse_table[] = { 11341da177e4SLinus Torvalds { "LQIOVERI_NLQ", 0x01, 0x01 }, 11351da177e4SLinus Torvalds { "LQIOVERI_LQ", 0x02, 0x02 }, 11361da177e4SLinus Torvalds { "LQIBADLQI", 0x04, 0x04 }, 11371da177e4SLinus Torvalds { "LQICRCI_NLQ", 0x08, 0x08 }, 11381da177e4SLinus Torvalds { "LQICRCI_LQ", 0x10, 0x10 }, 11391da177e4SLinus Torvalds { "LQIABORT", 0x20, 0x20 }, 11401da177e4SLinus Torvalds { "LQIPHASE_NLQ", 0x40, 0x40 }, 11411da177e4SLinus Torvalds { "LQIPHASE_LQ", 0x80, 0x80 } 11421da177e4SLinus Torvalds}; 11431da177e4SLinus Torvalds 11441da177e4SLinus Torvaldsint 11451da177e4SLinus Torvaldsahd_lqistat1_print(u_int regvalue, u_int *cur_col, u_int wrap) 11461da177e4SLinus Torvalds{ 11471da177e4SLinus Torvalds return (ahd_print_register(LQISTAT1_parse_table, 8, "LQISTAT1", 11481da177e4SLinus Torvalds 0x51, regvalue, cur_col, wrap)); 11491da177e4SLinus Torvalds} 11501da177e4SLinus Torvalds 11511da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t CLRLQIINT1_parse_table[] = { 11521da177e4SLinus Torvalds { "CLRLQIOVERI_NLQ", 0x01, 0x01 }, 11531da177e4SLinus Torvalds { "CLRLQIOVERI_LQ", 0x02, 0x02 }, 11541da177e4SLinus Torvalds { "CLRLQIBADLQI", 0x04, 0x04 }, 11551da177e4SLinus Torvalds { "CLRLQICRCI_NLQ", 0x08, 0x08 }, 11561da177e4SLinus Torvalds { "CLRLQICRCI_LQ", 0x10, 0x10 }, 11571da177e4SLinus Torvalds { "CLRLIQABORT", 0x20, 0x20 }, 11581da177e4SLinus Torvalds { "CLRLQIPHASE_NLQ", 0x40, 0x40 }, 11591da177e4SLinus Torvalds { "CLRLQIPHASE_LQ", 0x80, 0x80 } 11601da177e4SLinus Torvalds}; 11611da177e4SLinus Torvalds 11621da177e4SLinus Torvaldsint 11631da177e4SLinus Torvaldsahd_clrlqiint1_print(u_int regvalue, u_int *cur_col, u_int wrap) 11641da177e4SLinus Torvalds{ 11651da177e4SLinus Torvalds return (ahd_print_register(CLRLQIINT1_parse_table, 8, "CLRLQIINT1", 11661da177e4SLinus Torvalds 0x51, regvalue, cur_col, wrap)); 11671da177e4SLinus Torvalds} 11681da177e4SLinus Torvalds 11691da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t LQISTAT2_parse_table[] = { 11701da177e4SLinus Torvalds { "LQIGSAVAIL", 0x01, 0x01 }, 11711da177e4SLinus Torvalds { "LQISTOPCMD", 0x02, 0x02 }, 11721da177e4SLinus Torvalds { "LQISTOPLQ", 0x04, 0x04 }, 11731da177e4SLinus Torvalds { "LQISTOPPKT", 0x08, 0x08 }, 11741da177e4SLinus Torvalds { "LQIWAITFIFO", 0x10, 0x10 }, 11751da177e4SLinus Torvalds { "LQIWORKONLQ", 0x20, 0x20 }, 11761da177e4SLinus Torvalds { "LQIPHASE_OUTPKT", 0x40, 0x40 }, 11771da177e4SLinus Torvalds { "PACKETIZED", 0x80, 0x80 } 11781da177e4SLinus Torvalds}; 11791da177e4SLinus Torvalds 11801da177e4SLinus Torvaldsint 11811da177e4SLinus Torvaldsahd_lqistat2_print(u_int regvalue, u_int *cur_col, u_int wrap) 11821da177e4SLinus Torvalds{ 11831da177e4SLinus Torvalds return (ahd_print_register(LQISTAT2_parse_table, 8, "LQISTAT2", 11841da177e4SLinus Torvalds 0x52, regvalue, cur_col, wrap)); 11851da177e4SLinus Torvalds} 11861da177e4SLinus Torvalds 11871da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SSTAT3_parse_table[] = { 11881da177e4SLinus Torvalds { "OSRAMPERR", 0x01, 0x01 }, 11891da177e4SLinus Torvalds { "NTRAMPERR", 0x02, 0x02 } 11901da177e4SLinus Torvalds}; 11911da177e4SLinus Torvalds 11921da177e4SLinus Torvaldsint 11931da177e4SLinus Torvaldsahd_sstat3_print(u_int regvalue, u_int *cur_col, u_int wrap) 11941da177e4SLinus Torvalds{ 11951da177e4SLinus Torvalds return (ahd_print_register(SSTAT3_parse_table, 2, "SSTAT3", 11961da177e4SLinus Torvalds 0x53, regvalue, cur_col, wrap)); 11971da177e4SLinus Torvalds} 11981da177e4SLinus Torvalds 11991da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SIMODE3_parse_table[] = { 12001da177e4SLinus Torvalds { "ENOSRAMPERR", 0x01, 0x01 }, 12011da177e4SLinus Torvalds { "ENNTRAMPERR", 0x02, 0x02 } 12021da177e4SLinus Torvalds}; 12031da177e4SLinus Torvalds 12041da177e4SLinus Torvaldsint 12051da177e4SLinus Torvaldsahd_simode3_print(u_int regvalue, u_int *cur_col, u_int wrap) 12061da177e4SLinus Torvalds{ 12071da177e4SLinus Torvalds return (ahd_print_register(SIMODE3_parse_table, 2, "SIMODE3", 12081da177e4SLinus Torvalds 0x53, regvalue, cur_col, wrap)); 12091da177e4SLinus Torvalds} 12101da177e4SLinus Torvalds 12111da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t CLRSINT3_parse_table[] = { 12121da177e4SLinus Torvalds { "CLROSRAMPERR", 0x01, 0x01 }, 12131da177e4SLinus Torvalds { "CLRNTRAMPERR", 0x02, 0x02 } 12141da177e4SLinus Torvalds}; 12151da177e4SLinus Torvalds 12161da177e4SLinus Torvaldsint 12171da177e4SLinus Torvaldsahd_clrsint3_print(u_int regvalue, u_int *cur_col, u_int wrap) 12181da177e4SLinus Torvalds{ 12191da177e4SLinus Torvalds return (ahd_print_register(CLRSINT3_parse_table, 2, "CLRSINT3", 12201da177e4SLinus Torvalds 0x53, regvalue, cur_col, wrap)); 12211da177e4SLinus Torvalds} 12221da177e4SLinus Torvalds 12231da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t LQOSTAT0_parse_table[] = { 12241da177e4SLinus Torvalds { "LQOTCRC", 0x01, 0x01 }, 12251da177e4SLinus Torvalds { "LQOATNPKT", 0x02, 0x02 }, 12261da177e4SLinus Torvalds { "LQOATNLQ", 0x04, 0x04 }, 12271da177e4SLinus Torvalds { "LQOSTOPT2", 0x08, 0x08 }, 12281da177e4SLinus Torvalds { "LQOTARGSCBPERR", 0x10, 0x10 } 12291da177e4SLinus Torvalds}; 12301da177e4SLinus Torvalds 12311da177e4SLinus Torvaldsint 12321da177e4SLinus Torvaldsahd_lqostat0_print(u_int regvalue, u_int *cur_col, u_int wrap) 12331da177e4SLinus Torvalds{ 12341da177e4SLinus Torvalds return (ahd_print_register(LQOSTAT0_parse_table, 5, "LQOSTAT0", 12351da177e4SLinus Torvalds 0x54, regvalue, cur_col, wrap)); 12361da177e4SLinus Torvalds} 12371da177e4SLinus Torvalds 12381da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t CLRLQOINT0_parse_table[] = { 12391da177e4SLinus Torvalds { "CLRLQOTCRC", 0x01, 0x01 }, 12401da177e4SLinus Torvalds { "CLRLQOATNPKT", 0x02, 0x02 }, 12411da177e4SLinus Torvalds { "CLRLQOATNLQ", 0x04, 0x04 }, 12421da177e4SLinus Torvalds { "CLRLQOSTOPT2", 0x08, 0x08 }, 12431da177e4SLinus Torvalds { "CLRLQOTARGSCBPERR", 0x10, 0x10 } 12441da177e4SLinus Torvalds}; 12451da177e4SLinus Torvalds 12461da177e4SLinus Torvaldsint 12471da177e4SLinus Torvaldsahd_clrlqoint0_print(u_int regvalue, u_int *cur_col, u_int wrap) 12481da177e4SLinus Torvalds{ 12491da177e4SLinus Torvalds return (ahd_print_register(CLRLQOINT0_parse_table, 5, "CLRLQOINT0", 12501da177e4SLinus Torvalds 0x54, regvalue, cur_col, wrap)); 12511da177e4SLinus Torvalds} 12521da177e4SLinus Torvalds 125311668bb6SHannes Reineckestatic ahd_reg_parse_entry_t LQOMODE0_parse_table[] = { 125411668bb6SHannes Reinecke { "ENLQOTCRC", 0x01, 0x01 }, 125511668bb6SHannes Reinecke { "ENLQOATNPKT", 0x02, 0x02 }, 125611668bb6SHannes Reinecke { "ENLQOATNLQ", 0x04, 0x04 }, 125711668bb6SHannes Reinecke { "ENLQOSTOPT2", 0x08, 0x08 }, 125811668bb6SHannes Reinecke { "ENLQOTARGSCBPERR", 0x10, 0x10 } 125911668bb6SHannes Reinecke}; 126011668bb6SHannes Reinecke 126111668bb6SHannes Reineckeint 126211668bb6SHannes Reineckeahd_lqomode0_print(u_int regvalue, u_int *cur_col, u_int wrap) 126311668bb6SHannes Reinecke{ 126411668bb6SHannes Reinecke return (ahd_print_register(LQOMODE0_parse_table, 5, "LQOMODE0", 126511668bb6SHannes Reinecke 0x54, regvalue, cur_col, wrap)); 126611668bb6SHannes Reinecke} 126711668bb6SHannes Reinecke 126811668bb6SHannes Reineckestatic ahd_reg_parse_entry_t LQOMODE1_parse_table[] = { 126911668bb6SHannes Reinecke { "ENLQOPHACHGINPKT", 0x01, 0x01 }, 127011668bb6SHannes Reinecke { "ENLQOBUSFREE", 0x02, 0x02 }, 127111668bb6SHannes Reinecke { "ENLQOBADQAS", 0x04, 0x04 }, 127211668bb6SHannes Reinecke { "ENLQOSTOPI2", 0x08, 0x08 }, 127311668bb6SHannes Reinecke { "ENLQOINITSCBPERR", 0x10, 0x10 } 127411668bb6SHannes Reinecke}; 127511668bb6SHannes Reinecke 127611668bb6SHannes Reineckeint 127711668bb6SHannes Reineckeahd_lqomode1_print(u_int regvalue, u_int *cur_col, u_int wrap) 127811668bb6SHannes Reinecke{ 127911668bb6SHannes Reinecke return (ahd_print_register(LQOMODE1_parse_table, 5, "LQOMODE1", 128011668bb6SHannes Reinecke 0x55, regvalue, cur_col, wrap)); 128111668bb6SHannes Reinecke} 128211668bb6SHannes Reinecke 12831da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t LQOSTAT1_parse_table[] = { 12841da177e4SLinus Torvalds { "LQOPHACHGINPKT", 0x01, 0x01 }, 12851da177e4SLinus Torvalds { "LQOBUSFREE", 0x02, 0x02 }, 12861da177e4SLinus Torvalds { "LQOBADQAS", 0x04, 0x04 }, 12871da177e4SLinus Torvalds { "LQOSTOPI2", 0x08, 0x08 }, 12881da177e4SLinus Torvalds { "LQOINITSCBPERR", 0x10, 0x10 } 12891da177e4SLinus Torvalds}; 12901da177e4SLinus Torvalds 12911da177e4SLinus Torvaldsint 12921da177e4SLinus Torvaldsahd_lqostat1_print(u_int regvalue, u_int *cur_col, u_int wrap) 12931da177e4SLinus Torvalds{ 12941da177e4SLinus Torvalds return (ahd_print_register(LQOSTAT1_parse_table, 5, "LQOSTAT1", 12951da177e4SLinus Torvalds 0x55, regvalue, cur_col, wrap)); 12961da177e4SLinus Torvalds} 12971da177e4SLinus Torvalds 12981da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t CLRLQOINT1_parse_table[] = { 12991da177e4SLinus Torvalds { "CLRLQOPHACHGINPKT", 0x01, 0x01 }, 13001da177e4SLinus Torvalds { "CLRLQOBUSFREE", 0x02, 0x02 }, 13011da177e4SLinus Torvalds { "CLRLQOBADQAS", 0x04, 0x04 }, 13021da177e4SLinus Torvalds { "CLRLQOSTOPI2", 0x08, 0x08 }, 13031da177e4SLinus Torvalds { "CLRLQOINITSCBPERR", 0x10, 0x10 } 13041da177e4SLinus Torvalds}; 13051da177e4SLinus Torvalds 13061da177e4SLinus Torvaldsint 13071da177e4SLinus Torvaldsahd_clrlqoint1_print(u_int regvalue, u_int *cur_col, u_int wrap) 13081da177e4SLinus Torvalds{ 13091da177e4SLinus Torvalds return (ahd_print_register(CLRLQOINT1_parse_table, 5, "CLRLQOINT1", 13101da177e4SLinus Torvalds 0x55, regvalue, cur_col, wrap)); 13111da177e4SLinus Torvalds} 13121da177e4SLinus Torvalds 13131da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t LQOSTAT2_parse_table[] = { 13141da177e4SLinus Torvalds { "LQOSTOP0", 0x01, 0x01 }, 13151da177e4SLinus Torvalds { "LQOPHACHGOUTPKT", 0x02, 0x02 }, 13161da177e4SLinus Torvalds { "LQOWAITFIFO", 0x10, 0x10 }, 13171da177e4SLinus Torvalds { "LQOPKT", 0xe0, 0xe0 } 13181da177e4SLinus Torvalds}; 13191da177e4SLinus Torvalds 13201da177e4SLinus Torvaldsint 13211da177e4SLinus Torvaldsahd_lqostat2_print(u_int regvalue, u_int *cur_col, u_int wrap) 13221da177e4SLinus Torvalds{ 13231da177e4SLinus Torvalds return (ahd_print_register(LQOSTAT2_parse_table, 4, "LQOSTAT2", 13241da177e4SLinus Torvalds 0x56, regvalue, cur_col, wrap)); 13251da177e4SLinus Torvalds} 13261da177e4SLinus Torvalds 13271da177e4SLinus Torvaldsint 13281da177e4SLinus Torvaldsahd_os_space_cnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 13291da177e4SLinus Torvalds{ 13301da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "OS_SPACE_CNT", 13311da177e4SLinus Torvalds 0x56, regvalue, cur_col, wrap)); 13321da177e4SLinus Torvalds} 13331da177e4SLinus Torvalds 13341da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SIMODE1_parse_table[] = { 13351da177e4SLinus Torvalds { "ENREQINIT", 0x01, 0x01 }, 13361da177e4SLinus Torvalds { "ENSTRB2FAST", 0x02, 0x02 }, 13371da177e4SLinus Torvalds { "ENSCSIPERR", 0x04, 0x04 }, 13381da177e4SLinus Torvalds { "ENBUSFREE", 0x08, 0x08 }, 13391da177e4SLinus Torvalds { "ENPHASEMIS", 0x10, 0x10 }, 13401da177e4SLinus Torvalds { "ENSCSIRST", 0x20, 0x20 }, 13411da177e4SLinus Torvalds { "ENATNTARG", 0x40, 0x40 }, 13421da177e4SLinus Torvalds { "ENSELTIMO", 0x80, 0x80 } 13431da177e4SLinus Torvalds}; 13441da177e4SLinus Torvalds 13451da177e4SLinus Torvaldsint 13461da177e4SLinus Torvaldsahd_simode1_print(u_int regvalue, u_int *cur_col, u_int wrap) 13471da177e4SLinus Torvalds{ 13481da177e4SLinus Torvalds return (ahd_print_register(SIMODE1_parse_table, 8, "SIMODE1", 13491da177e4SLinus Torvalds 0x57, regvalue, cur_col, wrap)); 13501da177e4SLinus Torvalds} 13511da177e4SLinus Torvalds 13521da177e4SLinus Torvaldsint 13531da177e4SLinus Torvaldsahd_gsfifo_print(u_int regvalue, u_int *cur_col, u_int wrap) 13541da177e4SLinus Torvalds{ 13551da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "GSFIFO", 13561da177e4SLinus Torvalds 0x58, regvalue, cur_col, wrap)); 13571da177e4SLinus Torvalds} 13581da177e4SLinus Torvalds 13591da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t DFFSXFRCTL_parse_table[] = { 13601da177e4SLinus Torvalds { "RSTCHN", 0x01, 0x01 }, 13611da177e4SLinus Torvalds { "CLRCHN", 0x02, 0x02 }, 13621da177e4SLinus Torvalds { "CLRSHCNT", 0x04, 0x04 }, 13631da177e4SLinus Torvalds { "DFFBITBUCKET", 0x08, 0x08 } 13641da177e4SLinus Torvalds}; 13651da177e4SLinus Torvalds 13661da177e4SLinus Torvaldsint 13671da177e4SLinus Torvaldsahd_dffsxfrctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 13681da177e4SLinus Torvalds{ 13691da177e4SLinus Torvalds return (ahd_print_register(DFFSXFRCTL_parse_table, 4, "DFFSXFRCTL", 13701da177e4SLinus Torvalds 0x5a, regvalue, cur_col, wrap)); 13711da177e4SLinus Torvalds} 13721da177e4SLinus Torvalds 13731da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t LQOSCSCTL_parse_table[] = { 13741da177e4SLinus Torvalds { "LQONOCHKOVER", 0x01, 0x01 }, 13751da177e4SLinus Torvalds { "LQOH2A_VERSION", 0x80, 0x80 } 13761da177e4SLinus Torvalds}; 13771da177e4SLinus Torvalds 13781da177e4SLinus Torvaldsint 13791da177e4SLinus Torvaldsahd_lqoscsctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 13801da177e4SLinus Torvalds{ 13811da177e4SLinus Torvalds return (ahd_print_register(LQOSCSCTL_parse_table, 2, "LQOSCSCTL", 13821da177e4SLinus Torvalds 0x5a, regvalue, cur_col, wrap)); 13831da177e4SLinus Torvalds} 13841da177e4SLinus Torvalds 13851da177e4SLinus Torvaldsint 13861da177e4SLinus Torvaldsahd_nextscb_print(u_int regvalue, u_int *cur_col, u_int wrap) 13871da177e4SLinus Torvalds{ 13881da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "NEXTSCB", 13891da177e4SLinus Torvalds 0x5a, regvalue, cur_col, wrap)); 13901da177e4SLinus Torvalds} 13911da177e4SLinus Torvalds 13921da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t CLRSEQINTSRC_parse_table[] = { 13931da177e4SLinus Torvalds { "CLRCFG4TCMD", 0x01, 0x01 }, 13941da177e4SLinus Torvalds { "CLRCFG4ICMD", 0x02, 0x02 }, 13951da177e4SLinus Torvalds { "CLRCFG4TSTAT", 0x04, 0x04 }, 13961da177e4SLinus Torvalds { "CLRCFG4ISTAT", 0x08, 0x08 }, 13971da177e4SLinus Torvalds { "CLRCFG4DATA", 0x10, 0x10 }, 13981da177e4SLinus Torvalds { "CLRSAVEPTRS", 0x20, 0x20 }, 13991da177e4SLinus Torvalds { "CLRCTXTDONE", 0x40, 0x40 } 14001da177e4SLinus Torvalds}; 14011da177e4SLinus Torvalds 14021da177e4SLinus Torvaldsint 14031da177e4SLinus Torvaldsahd_clrseqintsrc_print(u_int regvalue, u_int *cur_col, u_int wrap) 14041da177e4SLinus Torvalds{ 14051da177e4SLinus Torvalds return (ahd_print_register(CLRSEQINTSRC_parse_table, 7, "CLRSEQINTSRC", 14061da177e4SLinus Torvalds 0x5b, regvalue, cur_col, wrap)); 14071da177e4SLinus Torvalds} 14081da177e4SLinus Torvalds 14091da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SEQINTSRC_parse_table[] = { 14101da177e4SLinus Torvalds { "CFG4TCMD", 0x01, 0x01 }, 14111da177e4SLinus Torvalds { "CFG4ICMD", 0x02, 0x02 }, 14121da177e4SLinus Torvalds { "CFG4TSTAT", 0x04, 0x04 }, 14131da177e4SLinus Torvalds { "CFG4ISTAT", 0x08, 0x08 }, 14141da177e4SLinus Torvalds { "CFG4DATA", 0x10, 0x10 }, 14151da177e4SLinus Torvalds { "SAVEPTRS", 0x20, 0x20 }, 14161da177e4SLinus Torvalds { "CTXTDONE", 0x40, 0x40 } 14171da177e4SLinus Torvalds}; 14181da177e4SLinus Torvalds 14191da177e4SLinus Torvaldsint 14201da177e4SLinus Torvaldsahd_seqintsrc_print(u_int regvalue, u_int *cur_col, u_int wrap) 14211da177e4SLinus Torvalds{ 14221da177e4SLinus Torvalds return (ahd_print_register(SEQINTSRC_parse_table, 7, "SEQINTSRC", 14231da177e4SLinus Torvalds 0x5b, regvalue, cur_col, wrap)); 14241da177e4SLinus Torvalds} 14251da177e4SLinus Torvalds 14261da177e4SLinus Torvaldsint 14271da177e4SLinus Torvaldsahd_currscb_print(u_int regvalue, u_int *cur_col, u_int wrap) 14281da177e4SLinus Torvalds{ 14291da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "CURRSCB", 14301da177e4SLinus Torvalds 0x5c, regvalue, cur_col, wrap)); 14311da177e4SLinus Torvalds} 14321da177e4SLinus Torvalds 14331da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SEQIMODE_parse_table[] = { 14341da177e4SLinus Torvalds { "ENCFG4TCMD", 0x01, 0x01 }, 14351da177e4SLinus Torvalds { "ENCFG4ICMD", 0x02, 0x02 }, 14361da177e4SLinus Torvalds { "ENCFG4TSTAT", 0x04, 0x04 }, 14371da177e4SLinus Torvalds { "ENCFG4ISTAT", 0x08, 0x08 }, 14381da177e4SLinus Torvalds { "ENCFG4DATA", 0x10, 0x10 }, 14391da177e4SLinus Torvalds { "ENSAVEPTRS", 0x20, 0x20 }, 14401da177e4SLinus Torvalds { "ENCTXTDONE", 0x40, 0x40 } 14411da177e4SLinus Torvalds}; 14421da177e4SLinus Torvalds 14431da177e4SLinus Torvaldsint 14441da177e4SLinus Torvaldsahd_seqimode_print(u_int regvalue, u_int *cur_col, u_int wrap) 14451da177e4SLinus Torvalds{ 14461da177e4SLinus Torvalds return (ahd_print_register(SEQIMODE_parse_table, 7, "SEQIMODE", 14471da177e4SLinus Torvalds 0x5c, regvalue, cur_col, wrap)); 14481da177e4SLinus Torvalds} 14491da177e4SLinus Torvalds 14501da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t MDFFSTAT_parse_table[] = { 14511da177e4SLinus Torvalds { "FIFOFREE", 0x01, 0x01 }, 14521da177e4SLinus Torvalds { "DATAINFIFO", 0x02, 0x02 }, 14531da177e4SLinus Torvalds { "DLZERO", 0x04, 0x04 }, 14541da177e4SLinus Torvalds { "SHVALID", 0x08, 0x08 }, 14551da177e4SLinus Torvalds { "LASTSDONE", 0x10, 0x10 }, 14561da177e4SLinus Torvalds { "SHCNTMINUS1", 0x20, 0x20 }, 14571da177e4SLinus Torvalds { "SHCNTNEGATIVE", 0x40, 0x40 } 14581da177e4SLinus Torvalds}; 14591da177e4SLinus Torvalds 14601da177e4SLinus Torvaldsint 14611da177e4SLinus Torvaldsahd_mdffstat_print(u_int regvalue, u_int *cur_col, u_int wrap) 14621da177e4SLinus Torvalds{ 14631da177e4SLinus Torvalds return (ahd_print_register(MDFFSTAT_parse_table, 7, "MDFFSTAT", 14641da177e4SLinus Torvalds 0x5d, regvalue, cur_col, wrap)); 14651da177e4SLinus Torvalds} 14661da177e4SLinus Torvalds 14671da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t CRCCONTROL_parse_table[] = { 14681da177e4SLinus Torvalds { "CRCVALCHKEN", 0x40, 0x40 } 14691da177e4SLinus Torvalds}; 14701da177e4SLinus Torvalds 14711da177e4SLinus Torvaldsint 14721da177e4SLinus Torvaldsahd_crccontrol_print(u_int regvalue, u_int *cur_col, u_int wrap) 14731da177e4SLinus Torvalds{ 14741da177e4SLinus Torvalds return (ahd_print_register(CRCCONTROL_parse_table, 1, "CRCCONTROL", 14751da177e4SLinus Torvalds 0x5d, regvalue, cur_col, wrap)); 14761da177e4SLinus Torvalds} 14771da177e4SLinus Torvalds 14781da177e4SLinus Torvaldsint 14791da177e4SLinus Torvaldsahd_dfftag_print(u_int regvalue, u_int *cur_col, u_int wrap) 14801da177e4SLinus Torvalds{ 14811da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "DFFTAG", 14821da177e4SLinus Torvalds 0x5e, regvalue, cur_col, wrap)); 14831da177e4SLinus Torvalds} 14841da177e4SLinus Torvalds 14851da177e4SLinus Torvaldsint 14861da177e4SLinus Torvaldsahd_lastscb_print(u_int regvalue, u_int *cur_col, u_int wrap) 14871da177e4SLinus Torvalds{ 14881da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "LASTSCB", 14891da177e4SLinus Torvalds 0x5e, regvalue, cur_col, wrap)); 14901da177e4SLinus Torvalds} 14911da177e4SLinus Torvalds 14921da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SCSITEST_parse_table[] = { 14931da177e4SLinus Torvalds { "SEL_TXPLL_DEBUG", 0x04, 0x04 }, 14941da177e4SLinus Torvalds { "CNTRTEST", 0x08, 0x08 } 14951da177e4SLinus Torvalds}; 14961da177e4SLinus Torvalds 14971da177e4SLinus Torvaldsint 14981da177e4SLinus Torvaldsahd_scsitest_print(u_int regvalue, u_int *cur_col, u_int wrap) 14991da177e4SLinus Torvalds{ 15001da177e4SLinus Torvalds return (ahd_print_register(SCSITEST_parse_table, 2, "SCSITEST", 15011da177e4SLinus Torvalds 0x5e, regvalue, cur_col, wrap)); 15021da177e4SLinus Torvalds} 15031da177e4SLinus Torvalds 15041da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t IOPDNCTL_parse_table[] = { 15051da177e4SLinus Torvalds { "PDN_DIFFSENSE", 0x01, 0x01 }, 15061da177e4SLinus Torvalds { "PDN_IDIST", 0x04, 0x04 }, 15071da177e4SLinus Torvalds { "DISABLE_OE", 0x80, 0x80 } 15081da177e4SLinus Torvalds}; 15091da177e4SLinus Torvalds 15101da177e4SLinus Torvaldsint 15111da177e4SLinus Torvaldsahd_iopdnctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 15121da177e4SLinus Torvalds{ 15131da177e4SLinus Torvalds return (ahd_print_register(IOPDNCTL_parse_table, 3, "IOPDNCTL", 15141da177e4SLinus Torvalds 0x5f, regvalue, cur_col, wrap)); 15151da177e4SLinus Torvalds} 15161da177e4SLinus Torvalds 15171da177e4SLinus Torvaldsint 15181da177e4SLinus Torvaldsahd_shaddr_print(u_int regvalue, u_int *cur_col, u_int wrap) 15191da177e4SLinus Torvalds{ 15201da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SHADDR", 15211da177e4SLinus Torvalds 0x60, regvalue, cur_col, wrap)); 15221da177e4SLinus Torvalds} 15231da177e4SLinus Torvalds 15241da177e4SLinus Torvaldsint 15251da177e4SLinus Torvaldsahd_negoaddr_print(u_int regvalue, u_int *cur_col, u_int wrap) 15261da177e4SLinus Torvalds{ 15271da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "NEGOADDR", 15281da177e4SLinus Torvalds 0x60, regvalue, cur_col, wrap)); 15291da177e4SLinus Torvalds} 15301da177e4SLinus Torvalds 15311da177e4SLinus Torvaldsint 15321da177e4SLinus Torvaldsahd_dgrpcrci_print(u_int regvalue, u_int *cur_col, u_int wrap) 15331da177e4SLinus Torvalds{ 15341da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "DGRPCRCI", 15351da177e4SLinus Torvalds 0x60, regvalue, cur_col, wrap)); 15361da177e4SLinus Torvalds} 15371da177e4SLinus Torvalds 15381da177e4SLinus Torvaldsint 15391da177e4SLinus Torvaldsahd_negperiod_print(u_int regvalue, u_int *cur_col, u_int wrap) 15401da177e4SLinus Torvalds{ 15411da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "NEGPERIOD", 15421da177e4SLinus Torvalds 0x61, regvalue, cur_col, wrap)); 15431da177e4SLinus Torvalds} 15441da177e4SLinus Torvalds 15451da177e4SLinus Torvaldsint 15461da177e4SLinus Torvaldsahd_packcrci_print(u_int regvalue, u_int *cur_col, u_int wrap) 15471da177e4SLinus Torvalds{ 15481da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "PACKCRCI", 15491da177e4SLinus Torvalds 0x62, regvalue, cur_col, wrap)); 15501da177e4SLinus Torvalds} 15511da177e4SLinus Torvalds 15521da177e4SLinus Torvaldsint 15531da177e4SLinus Torvaldsahd_negoffset_print(u_int regvalue, u_int *cur_col, u_int wrap) 15541da177e4SLinus Torvalds{ 15551da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "NEGOFFSET", 15561da177e4SLinus Torvalds 0x62, regvalue, cur_col, wrap)); 15571da177e4SLinus Torvalds} 15581da177e4SLinus Torvalds 15591da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t NEGPPROPTS_parse_table[] = { 15601da177e4SLinus Torvalds { "PPROPT_IUT", 0x01, 0x01 }, 15611da177e4SLinus Torvalds { "PPROPT_DT", 0x02, 0x02 }, 15621da177e4SLinus Torvalds { "PPROPT_QAS", 0x04, 0x04 }, 15631da177e4SLinus Torvalds { "PPROPT_PACE", 0x08, 0x08 } 15641da177e4SLinus Torvalds}; 15651da177e4SLinus Torvalds 15661da177e4SLinus Torvaldsint 15671da177e4SLinus Torvaldsahd_negppropts_print(u_int regvalue, u_int *cur_col, u_int wrap) 15681da177e4SLinus Torvalds{ 15691da177e4SLinus Torvalds return (ahd_print_register(NEGPPROPTS_parse_table, 4, "NEGPPROPTS", 15701da177e4SLinus Torvalds 0x63, regvalue, cur_col, wrap)); 15711da177e4SLinus Torvalds} 15721da177e4SLinus Torvalds 15731da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t NEGCONOPTS_parse_table[] = { 15741da177e4SLinus Torvalds { "WIDEXFER", 0x01, 0x01 }, 15751da177e4SLinus Torvalds { "ENAUTOATNO", 0x02, 0x02 }, 15761da177e4SLinus Torvalds { "ENAUTOATNI", 0x04, 0x04 }, 15771da177e4SLinus Torvalds { "ENSLOWCRC", 0x08, 0x08 }, 15781da177e4SLinus Torvalds { "RTI_OVRDTRN", 0x10, 0x10 }, 15791da177e4SLinus Torvalds { "RTI_WRTDIS", 0x20, 0x20 }, 15801da177e4SLinus Torvalds { "ENSNAPSHOT", 0x40, 0x40 } 15811da177e4SLinus Torvalds}; 15821da177e4SLinus Torvalds 15831da177e4SLinus Torvaldsint 15841da177e4SLinus Torvaldsahd_negconopts_print(u_int regvalue, u_int *cur_col, u_int wrap) 15851da177e4SLinus Torvalds{ 15861da177e4SLinus Torvalds return (ahd_print_register(NEGCONOPTS_parse_table, 7, "NEGCONOPTS", 15871da177e4SLinus Torvalds 0x64, regvalue, cur_col, wrap)); 15881da177e4SLinus Torvalds} 15891da177e4SLinus Torvalds 15901da177e4SLinus Torvaldsint 15911da177e4SLinus Torvaldsahd_annexcol_print(u_int regvalue, u_int *cur_col, u_int wrap) 15921da177e4SLinus Torvalds{ 15931da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "ANNEXCOL", 15941da177e4SLinus Torvalds 0x65, regvalue, cur_col, wrap)); 15951da177e4SLinus Torvalds} 15961da177e4SLinus Torvalds 159711668bb6SHannes Reineckeint 159811668bb6SHannes Reineckeahd_annexdat_print(u_int regvalue, u_int *cur_col, u_int wrap) 159911668bb6SHannes Reinecke{ 160011668bb6SHannes Reinecke return (ahd_print_register(NULL, 0, "ANNEXDAT", 160111668bb6SHannes Reinecke 0x66, regvalue, cur_col, wrap)); 160211668bb6SHannes Reinecke} 160311668bb6SHannes Reinecke 16041da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SCSCHKN_parse_table[] = { 16051da177e4SLinus Torvalds { "LSTSGCLRDIS", 0x01, 0x01 }, 16061da177e4SLinus Torvalds { "SHVALIDSTDIS", 0x02, 0x02 }, 16071da177e4SLinus Torvalds { "DFFACTCLR", 0x04, 0x04 }, 16081da177e4SLinus Torvalds { "SDONEMSKDIS", 0x08, 0x08 }, 16091da177e4SLinus Torvalds { "WIDERESEN", 0x10, 0x10 }, 16101da177e4SLinus Torvalds { "CURRFIFODEF", 0x20, 0x20 }, 16111da177e4SLinus Torvalds { "STSELSKIDDIS", 0x40, 0x40 } 16121da177e4SLinus Torvalds}; 16131da177e4SLinus Torvalds 16141da177e4SLinus Torvaldsint 16151da177e4SLinus Torvaldsahd_scschkn_print(u_int regvalue, u_int *cur_col, u_int wrap) 16161da177e4SLinus Torvalds{ 16171da177e4SLinus Torvalds return (ahd_print_register(SCSCHKN_parse_table, 7, "SCSCHKN", 16181da177e4SLinus Torvalds 0x66, regvalue, cur_col, wrap)); 16191da177e4SLinus Torvalds} 16201da177e4SLinus Torvalds 16211da177e4SLinus Torvaldsint 16221da177e4SLinus Torvaldsahd_iownid_print(u_int regvalue, u_int *cur_col, u_int wrap) 16231da177e4SLinus Torvalds{ 16241da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "IOWNID", 16251da177e4SLinus Torvalds 0x67, regvalue, cur_col, wrap)); 16261da177e4SLinus Torvalds} 16271da177e4SLinus Torvalds 16281da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t PLL960CTL0_parse_table[] = { 16291da177e4SLinus Torvalds { "PLL_ENFBM", 0x01, 0x01 }, 16301da177e4SLinus Torvalds { "PLL_DLPF", 0x02, 0x02 }, 16311da177e4SLinus Torvalds { "PLL_ENLPF", 0x04, 0x04 }, 16321da177e4SLinus Torvalds { "PLL_ENLUD", 0x08, 0x08 }, 16331da177e4SLinus Torvalds { "PLL_NS", 0x30, 0x30 }, 16341da177e4SLinus Torvalds { "PLL_PWDN", 0x40, 0x40 }, 16351da177e4SLinus Torvalds { "PLL_VCOSEL", 0x80, 0x80 } 16361da177e4SLinus Torvalds}; 16371da177e4SLinus Torvalds 16381da177e4SLinus Torvaldsint 16391da177e4SLinus Torvaldsahd_pll960ctl0_print(u_int regvalue, u_int *cur_col, u_int wrap) 16401da177e4SLinus Torvalds{ 16411da177e4SLinus Torvalds return (ahd_print_register(PLL960CTL0_parse_table, 7, "PLL960CTL0", 16421da177e4SLinus Torvalds 0x68, regvalue, cur_col, wrap)); 16431da177e4SLinus Torvalds} 16441da177e4SLinus Torvalds 16451da177e4SLinus Torvaldsint 16461da177e4SLinus Torvaldsahd_shcnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 16471da177e4SLinus Torvalds{ 16481da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SHCNT", 16491da177e4SLinus Torvalds 0x68, regvalue, cur_col, wrap)); 16501da177e4SLinus Torvalds} 16511da177e4SLinus Torvalds 16521da177e4SLinus Torvaldsint 16531da177e4SLinus Torvaldsahd_townid_print(u_int regvalue, u_int *cur_col, u_int wrap) 16541da177e4SLinus Torvalds{ 16551da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "TOWNID", 16561da177e4SLinus Torvalds 0x69, regvalue, cur_col, wrap)); 16571da177e4SLinus Torvalds} 16581da177e4SLinus Torvalds 16591da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t PLL960CTL1_parse_table[] = { 16601da177e4SLinus Torvalds { "PLL_RST", 0x01, 0x01 }, 16611da177e4SLinus Torvalds { "PLL_CNTCLR", 0x40, 0x40 }, 16621da177e4SLinus Torvalds { "PLL_CNTEN", 0x80, 0x80 } 16631da177e4SLinus Torvalds}; 16641da177e4SLinus Torvalds 16651da177e4SLinus Torvaldsint 16661da177e4SLinus Torvaldsahd_pll960ctl1_print(u_int regvalue, u_int *cur_col, u_int wrap) 16671da177e4SLinus Torvalds{ 16681da177e4SLinus Torvalds return (ahd_print_register(PLL960CTL1_parse_table, 3, "PLL960CTL1", 16691da177e4SLinus Torvalds 0x69, regvalue, cur_col, wrap)); 16701da177e4SLinus Torvalds} 16711da177e4SLinus Torvalds 16721da177e4SLinus Torvaldsint 16731da177e4SLinus Torvaldsahd_pll960cnt0_print(u_int regvalue, u_int *cur_col, u_int wrap) 16741da177e4SLinus Torvalds{ 16751da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "PLL960CNT0", 16761da177e4SLinus Torvalds 0x6a, regvalue, cur_col, wrap)); 16771da177e4SLinus Torvalds} 16781da177e4SLinus Torvalds 16791da177e4SLinus Torvaldsint 16801da177e4SLinus Torvaldsahd_xsig_print(u_int regvalue, u_int *cur_col, u_int wrap) 16811da177e4SLinus Torvalds{ 16821da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "XSIG", 16831da177e4SLinus Torvalds 0x6a, regvalue, cur_col, wrap)); 16841da177e4SLinus Torvalds} 16851da177e4SLinus Torvalds 16861da177e4SLinus Torvaldsint 16871da177e4SLinus Torvaldsahd_seloid_print(u_int regvalue, u_int *cur_col, u_int wrap) 16881da177e4SLinus Torvalds{ 16891da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SELOID", 16901da177e4SLinus Torvalds 0x6b, regvalue, cur_col, wrap)); 16911da177e4SLinus Torvalds} 16921da177e4SLinus Torvalds 16931da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t PLL400CTL0_parse_table[] = { 16941da177e4SLinus Torvalds { "PLL_ENFBM", 0x01, 0x01 }, 16951da177e4SLinus Torvalds { "PLL_DLPF", 0x02, 0x02 }, 16961da177e4SLinus Torvalds { "PLL_ENLPF", 0x04, 0x04 }, 16971da177e4SLinus Torvalds { "PLL_ENLUD", 0x08, 0x08 }, 16981da177e4SLinus Torvalds { "PLL_NS", 0x30, 0x30 }, 16991da177e4SLinus Torvalds { "PLL_PWDN", 0x40, 0x40 }, 17001da177e4SLinus Torvalds { "PLL_VCOSEL", 0x80, 0x80 } 17011da177e4SLinus Torvalds}; 17021da177e4SLinus Torvalds 17031da177e4SLinus Torvaldsint 17041da177e4SLinus Torvaldsahd_pll400ctl0_print(u_int regvalue, u_int *cur_col, u_int wrap) 17051da177e4SLinus Torvalds{ 17061da177e4SLinus Torvalds return (ahd_print_register(PLL400CTL0_parse_table, 7, "PLL400CTL0", 17071da177e4SLinus Torvalds 0x6c, regvalue, cur_col, wrap)); 17081da177e4SLinus Torvalds} 17091da177e4SLinus Torvalds 17101da177e4SLinus Torvaldsint 17111da177e4SLinus Torvaldsahd_fairness_print(u_int regvalue, u_int *cur_col, u_int wrap) 17121da177e4SLinus Torvalds{ 17131da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "FAIRNESS", 17141da177e4SLinus Torvalds 0x6c, regvalue, cur_col, wrap)); 17151da177e4SLinus Torvalds} 17161da177e4SLinus Torvalds 17171da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t PLL400CTL1_parse_table[] = { 17181da177e4SLinus Torvalds { "PLL_RST", 0x01, 0x01 }, 17191da177e4SLinus Torvalds { "PLL_CNTCLR", 0x40, 0x40 }, 17201da177e4SLinus Torvalds { "PLL_CNTEN", 0x80, 0x80 } 17211da177e4SLinus Torvalds}; 17221da177e4SLinus Torvalds 17231da177e4SLinus Torvaldsint 17241da177e4SLinus Torvaldsahd_pll400ctl1_print(u_int regvalue, u_int *cur_col, u_int wrap) 17251da177e4SLinus Torvalds{ 17261da177e4SLinus Torvalds return (ahd_print_register(PLL400CTL1_parse_table, 3, "PLL400CTL1", 17271da177e4SLinus Torvalds 0x6d, regvalue, cur_col, wrap)); 17281da177e4SLinus Torvalds} 17291da177e4SLinus Torvalds 17301da177e4SLinus Torvaldsint 173111668bb6SHannes Reineckeahd_unfairness_print(u_int regvalue, u_int *cur_col, u_int wrap) 17321da177e4SLinus Torvalds{ 173311668bb6SHannes Reinecke return (ahd_print_register(NULL, 0, "UNFAIRNESS", 17341da177e4SLinus Torvalds 0x6e, regvalue, cur_col, wrap)); 17351da177e4SLinus Torvalds} 17361da177e4SLinus Torvalds 17371da177e4SLinus Torvaldsint 173811668bb6SHannes Reineckeahd_pll400cnt0_print(u_int regvalue, u_int *cur_col, u_int wrap) 17391da177e4SLinus Torvalds{ 174011668bb6SHannes Reinecke return (ahd_print_register(NULL, 0, "PLL400CNT0", 17411da177e4SLinus Torvalds 0x6e, regvalue, cur_col, wrap)); 17421da177e4SLinus Torvalds} 17431da177e4SLinus Torvalds 17441da177e4SLinus Torvaldsint 17451da177e4SLinus Torvaldsahd_haddr_print(u_int regvalue, u_int *cur_col, u_int wrap) 17461da177e4SLinus Torvalds{ 17471da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "HADDR", 17481da177e4SLinus Torvalds 0x70, regvalue, cur_col, wrap)); 17491da177e4SLinus Torvalds} 17501da177e4SLinus Torvalds 17511da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t PLLDELAY_parse_table[] = { 17521da177e4SLinus Torvalds { "SPLIT_DROP_REQ", 0x80, 0x80 } 17531da177e4SLinus Torvalds}; 17541da177e4SLinus Torvalds 17551da177e4SLinus Torvaldsint 17561da177e4SLinus Torvaldsahd_plldelay_print(u_int regvalue, u_int *cur_col, u_int wrap) 17571da177e4SLinus Torvalds{ 17581da177e4SLinus Torvalds return (ahd_print_register(PLLDELAY_parse_table, 1, "PLLDELAY", 17591da177e4SLinus Torvalds 0x70, regvalue, cur_col, wrap)); 17601da177e4SLinus Torvalds} 17611da177e4SLinus Torvalds 17621da177e4SLinus Torvaldsint 17631da177e4SLinus Torvaldsahd_hodmaadr_print(u_int regvalue, u_int *cur_col, u_int wrap) 17641da177e4SLinus Torvalds{ 17651da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "HODMAADR", 17661da177e4SLinus Torvalds 0x70, regvalue, cur_col, wrap)); 17671da177e4SLinus Torvalds} 17681da177e4SLinus Torvalds 17691da177e4SLinus Torvaldsint 17701da177e4SLinus Torvaldsahd_hodmacnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 17711da177e4SLinus Torvalds{ 17721da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "HODMACNT", 17731da177e4SLinus Torvalds 0x78, regvalue, cur_col, wrap)); 17741da177e4SLinus Torvalds} 17751da177e4SLinus Torvalds 17761da177e4SLinus Torvaldsint 17771da177e4SLinus Torvaldsahd_hcnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 17781da177e4SLinus Torvalds{ 17791da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "HCNT", 17801da177e4SLinus Torvalds 0x78, regvalue, cur_col, wrap)); 17811da177e4SLinus Torvalds} 17821da177e4SLinus Torvalds 17831da177e4SLinus Torvaldsint 17841da177e4SLinus Torvaldsahd_hodmaen_print(u_int regvalue, u_int *cur_col, u_int wrap) 17851da177e4SLinus Torvalds{ 17861da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "HODMAEN", 17871da177e4SLinus Torvalds 0x7a, regvalue, cur_col, wrap)); 17881da177e4SLinus Torvalds} 17891da177e4SLinus Torvalds 17901da177e4SLinus Torvaldsint 17911da177e4SLinus Torvaldsahd_scbhaddr_print(u_int regvalue, u_int *cur_col, u_int wrap) 17921da177e4SLinus Torvalds{ 17931da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SCBHADDR", 17941da177e4SLinus Torvalds 0x7c, regvalue, cur_col, wrap)); 17951da177e4SLinus Torvalds} 17961da177e4SLinus Torvalds 17971da177e4SLinus Torvaldsint 179811668bb6SHannes Reineckeahd_sghaddr_print(u_int regvalue, u_int *cur_col, u_int wrap) 17991da177e4SLinus Torvalds{ 180011668bb6SHannes Reinecke return (ahd_print_register(NULL, 0, "SGHADDR", 180111668bb6SHannes Reinecke 0x7c, regvalue, cur_col, wrap)); 18021da177e4SLinus Torvalds} 18031da177e4SLinus Torvalds 18041da177e4SLinus Torvaldsint 18051da177e4SLinus Torvaldsahd_scbhcnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 18061da177e4SLinus Torvalds{ 18071da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SCBHCNT", 18081da177e4SLinus Torvalds 0x84, regvalue, cur_col, wrap)); 18091da177e4SLinus Torvalds} 18101da177e4SLinus Torvalds 181111668bb6SHannes Reineckeint 181211668bb6SHannes Reineckeahd_sghcnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 181311668bb6SHannes Reinecke{ 181411668bb6SHannes Reinecke return (ahd_print_register(NULL, 0, "SGHCNT", 181511668bb6SHannes Reinecke 0x84, regvalue, cur_col, wrap)); 181611668bb6SHannes Reinecke} 181711668bb6SHannes Reinecke 18181da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t DFF_THRSH_parse_table[] = { 18191da177e4SLinus Torvalds { "WR_DFTHRSH_MIN", 0x00, 0x70 }, 18201da177e4SLinus Torvalds { "RD_DFTHRSH_MIN", 0x00, 0x07 }, 18211da177e4SLinus Torvalds { "RD_DFTHRSH_25", 0x01, 0x07 }, 18221da177e4SLinus Torvalds { "RD_DFTHRSH_50", 0x02, 0x07 }, 18231da177e4SLinus Torvalds { "RD_DFTHRSH_63", 0x03, 0x07 }, 18241da177e4SLinus Torvalds { "RD_DFTHRSH_75", 0x04, 0x07 }, 18251da177e4SLinus Torvalds { "RD_DFTHRSH_85", 0x05, 0x07 }, 18261da177e4SLinus Torvalds { "RD_DFTHRSH_90", 0x06, 0x07 }, 18271da177e4SLinus Torvalds { "RD_DFTHRSH_MAX", 0x07, 0x07 }, 18281da177e4SLinus Torvalds { "WR_DFTHRSH_25", 0x10, 0x70 }, 18291da177e4SLinus Torvalds { "WR_DFTHRSH_50", 0x20, 0x70 }, 18301da177e4SLinus Torvalds { "WR_DFTHRSH_63", 0x30, 0x70 }, 18311da177e4SLinus Torvalds { "WR_DFTHRSH_75", 0x40, 0x70 }, 18321da177e4SLinus Torvalds { "WR_DFTHRSH_85", 0x50, 0x70 }, 18331da177e4SLinus Torvalds { "WR_DFTHRSH_90", 0x60, 0x70 }, 18341da177e4SLinus Torvalds { "WR_DFTHRSH_MAX", 0x70, 0x70 }, 18351da177e4SLinus Torvalds { "RD_DFTHRSH", 0x07, 0x07 }, 18361da177e4SLinus Torvalds { "WR_DFTHRSH", 0x70, 0x70 } 18371da177e4SLinus Torvalds}; 18381da177e4SLinus Torvalds 18391da177e4SLinus Torvaldsint 18401da177e4SLinus Torvaldsahd_dff_thrsh_print(u_int regvalue, u_int *cur_col, u_int wrap) 18411da177e4SLinus Torvalds{ 18421da177e4SLinus Torvalds return (ahd_print_register(DFF_THRSH_parse_table, 18, "DFF_THRSH", 18431da177e4SLinus Torvalds 0x88, regvalue, cur_col, wrap)); 18441da177e4SLinus Torvalds} 18451da177e4SLinus Torvalds 18461da177e4SLinus Torvaldsint 18471da177e4SLinus Torvaldsahd_romaddr_print(u_int regvalue, u_int *cur_col, u_int wrap) 18481da177e4SLinus Torvalds{ 18491da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "ROMADDR", 18501da177e4SLinus Torvalds 0x8a, regvalue, cur_col, wrap)); 18511da177e4SLinus Torvalds} 18521da177e4SLinus Torvalds 18531da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t ROMCNTRL_parse_table[] = { 18541da177e4SLinus Torvalds { "RDY", 0x01, 0x01 }, 18551da177e4SLinus Torvalds { "REPEAT", 0x02, 0x02 }, 18561da177e4SLinus Torvalds { "ROMSPD", 0x18, 0x18 }, 18571da177e4SLinus Torvalds { "ROMOP", 0xe0, 0xe0 } 18581da177e4SLinus Torvalds}; 18591da177e4SLinus Torvalds 18601da177e4SLinus Torvaldsint 18611da177e4SLinus Torvaldsahd_romcntrl_print(u_int regvalue, u_int *cur_col, u_int wrap) 18621da177e4SLinus Torvalds{ 18631da177e4SLinus Torvalds return (ahd_print_register(ROMCNTRL_parse_table, 4, "ROMCNTRL", 18641da177e4SLinus Torvalds 0x8d, regvalue, cur_col, wrap)); 18651da177e4SLinus Torvalds} 18661da177e4SLinus Torvalds 18671da177e4SLinus Torvaldsint 18681da177e4SLinus Torvaldsahd_romdata_print(u_int regvalue, u_int *cur_col, u_int wrap) 18691da177e4SLinus Torvalds{ 18701da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "ROMDATA", 18711da177e4SLinus Torvalds 0x8e, regvalue, cur_col, wrap)); 18721da177e4SLinus Torvalds} 18731da177e4SLinus Torvalds 18741da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t CMCRXMSG0_parse_table[] = { 18751da177e4SLinus Torvalds { "CFNUM", 0x07, 0x07 }, 18761da177e4SLinus Torvalds { "CDNUM", 0xf8, 0xf8 } 18771da177e4SLinus Torvalds}; 18781da177e4SLinus Torvalds 18791da177e4SLinus Torvaldsint 18801da177e4SLinus Torvaldsahd_cmcrxmsg0_print(u_int regvalue, u_int *cur_col, u_int wrap) 18811da177e4SLinus Torvalds{ 18821da177e4SLinus Torvalds return (ahd_print_register(CMCRXMSG0_parse_table, 2, "CMCRXMSG0", 18831da177e4SLinus Torvalds 0x90, regvalue, cur_col, wrap)); 18841da177e4SLinus Torvalds} 18851da177e4SLinus Torvalds 18861da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t ROENABLE_parse_table[] = { 18871da177e4SLinus Torvalds { "DCH0ROEN", 0x01, 0x01 }, 18881da177e4SLinus Torvalds { "DCH1ROEN", 0x02, 0x02 }, 18891da177e4SLinus Torvalds { "SGROEN", 0x04, 0x04 }, 18901da177e4SLinus Torvalds { "CMCROEN", 0x08, 0x08 }, 18911da177e4SLinus Torvalds { "OVLYROEN", 0x10, 0x10 }, 18921da177e4SLinus Torvalds { "MSIROEN", 0x20, 0x20 } 18931da177e4SLinus Torvalds}; 18941da177e4SLinus Torvalds 18951da177e4SLinus Torvaldsint 18961da177e4SLinus Torvaldsahd_roenable_print(u_int regvalue, u_int *cur_col, u_int wrap) 18971da177e4SLinus Torvalds{ 18981da177e4SLinus Torvalds return (ahd_print_register(ROENABLE_parse_table, 6, "ROENABLE", 18991da177e4SLinus Torvalds 0x90, regvalue, cur_col, wrap)); 19001da177e4SLinus Torvalds} 19011da177e4SLinus Torvalds 19021da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t OVLYRXMSG0_parse_table[] = { 19031da177e4SLinus Torvalds { "CFNUM", 0x07, 0x07 }, 19041da177e4SLinus Torvalds { "CDNUM", 0xf8, 0xf8 } 19051da177e4SLinus Torvalds}; 19061da177e4SLinus Torvalds 19071da177e4SLinus Torvaldsint 19081da177e4SLinus Torvaldsahd_ovlyrxmsg0_print(u_int regvalue, u_int *cur_col, u_int wrap) 19091da177e4SLinus Torvalds{ 19101da177e4SLinus Torvalds return (ahd_print_register(OVLYRXMSG0_parse_table, 2, "OVLYRXMSG0", 19111da177e4SLinus Torvalds 0x90, regvalue, cur_col, wrap)); 19121da177e4SLinus Torvalds} 19131da177e4SLinus Torvalds 19141da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t DCHRXMSG0_parse_table[] = { 19151da177e4SLinus Torvalds { "CFNUM", 0x07, 0x07 }, 19161da177e4SLinus Torvalds { "CDNUM", 0xf8, 0xf8 } 19171da177e4SLinus Torvalds}; 19181da177e4SLinus Torvalds 19191da177e4SLinus Torvaldsint 19201da177e4SLinus Torvaldsahd_dchrxmsg0_print(u_int regvalue, u_int *cur_col, u_int wrap) 19211da177e4SLinus Torvalds{ 19221da177e4SLinus Torvalds return (ahd_print_register(DCHRXMSG0_parse_table, 2, "DCHRXMSG0", 19231da177e4SLinus Torvalds 0x90, regvalue, cur_col, wrap)); 19241da177e4SLinus Torvalds} 19251da177e4SLinus Torvalds 19261da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t OVLYRXMSG1_parse_table[] = { 19271da177e4SLinus Torvalds { "CBNUM", 0xff, 0xff } 19281da177e4SLinus Torvalds}; 19291da177e4SLinus Torvalds 19301da177e4SLinus Torvaldsint 19311da177e4SLinus Torvaldsahd_ovlyrxmsg1_print(u_int regvalue, u_int *cur_col, u_int wrap) 19321da177e4SLinus Torvalds{ 19331da177e4SLinus Torvalds return (ahd_print_register(OVLYRXMSG1_parse_table, 1, "OVLYRXMSG1", 19341da177e4SLinus Torvalds 0x91, regvalue, cur_col, wrap)); 19351da177e4SLinus Torvalds} 19361da177e4SLinus Torvalds 19371da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t NSENABLE_parse_table[] = { 19381da177e4SLinus Torvalds { "DCH0NSEN", 0x01, 0x01 }, 19391da177e4SLinus Torvalds { "DCH1NSEN", 0x02, 0x02 }, 19401da177e4SLinus Torvalds { "SGNSEN", 0x04, 0x04 }, 19411da177e4SLinus Torvalds { "CMCNSEN", 0x08, 0x08 }, 19421da177e4SLinus Torvalds { "OVLYNSEN", 0x10, 0x10 }, 19431da177e4SLinus Torvalds { "MSINSEN", 0x20, 0x20 } 19441da177e4SLinus Torvalds}; 19451da177e4SLinus Torvalds 19461da177e4SLinus Torvaldsint 19471da177e4SLinus Torvaldsahd_nsenable_print(u_int regvalue, u_int *cur_col, u_int wrap) 19481da177e4SLinus Torvalds{ 19491da177e4SLinus Torvalds return (ahd_print_register(NSENABLE_parse_table, 6, "NSENABLE", 19501da177e4SLinus Torvalds 0x91, regvalue, cur_col, wrap)); 19511da177e4SLinus Torvalds} 19521da177e4SLinus Torvalds 19531da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t CMCRXMSG1_parse_table[] = { 19541da177e4SLinus Torvalds { "CBNUM", 0xff, 0xff } 19551da177e4SLinus Torvalds}; 19561da177e4SLinus Torvalds 19571da177e4SLinus Torvaldsint 19581da177e4SLinus Torvaldsahd_cmcrxmsg1_print(u_int regvalue, u_int *cur_col, u_int wrap) 19591da177e4SLinus Torvalds{ 19601da177e4SLinus Torvalds return (ahd_print_register(CMCRXMSG1_parse_table, 1, "CMCRXMSG1", 19611da177e4SLinus Torvalds 0x91, regvalue, cur_col, wrap)); 19621da177e4SLinus Torvalds} 19631da177e4SLinus Torvalds 196411668bb6SHannes Reineckestatic ahd_reg_parse_entry_t DCHRXMSG1_parse_table[] = { 196511668bb6SHannes Reinecke { "CBNUM", 0xff, 0xff } 196611668bb6SHannes Reinecke}; 196711668bb6SHannes Reinecke 196811668bb6SHannes Reineckeint 196911668bb6SHannes Reineckeahd_dchrxmsg1_print(u_int regvalue, u_int *cur_col, u_int wrap) 197011668bb6SHannes Reinecke{ 197111668bb6SHannes Reinecke return (ahd_print_register(DCHRXMSG1_parse_table, 1, "DCHRXMSG1", 197211668bb6SHannes Reinecke 0x91, regvalue, cur_col, wrap)); 197311668bb6SHannes Reinecke} 197411668bb6SHannes Reinecke 19751da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t DCHRXMSG2_parse_table[] = { 19761da177e4SLinus Torvalds { "MINDEX", 0xff, 0xff } 19771da177e4SLinus Torvalds}; 19781da177e4SLinus Torvalds 19791da177e4SLinus Torvaldsint 19801da177e4SLinus Torvaldsahd_dchrxmsg2_print(u_int regvalue, u_int *cur_col, u_int wrap) 19811da177e4SLinus Torvalds{ 19821da177e4SLinus Torvalds return (ahd_print_register(DCHRXMSG2_parse_table, 1, "DCHRXMSG2", 19831da177e4SLinus Torvalds 0x92, regvalue, cur_col, wrap)); 19841da177e4SLinus Torvalds} 19851da177e4SLinus Torvalds 19861da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t CMCRXMSG2_parse_table[] = { 19871da177e4SLinus Torvalds { "MINDEX", 0xff, 0xff } 19881da177e4SLinus Torvalds}; 19891da177e4SLinus Torvalds 19901da177e4SLinus Torvaldsint 19911da177e4SLinus Torvaldsahd_cmcrxmsg2_print(u_int regvalue, u_int *cur_col, u_int wrap) 19921da177e4SLinus Torvalds{ 19931da177e4SLinus Torvalds return (ahd_print_register(CMCRXMSG2_parse_table, 1, "CMCRXMSG2", 19941da177e4SLinus Torvalds 0x92, regvalue, cur_col, wrap)); 19951da177e4SLinus Torvalds} 19961da177e4SLinus Torvalds 19971da177e4SLinus Torvaldsint 19981da177e4SLinus Torvaldsahd_ost_print(u_int regvalue, u_int *cur_col, u_int wrap) 19991da177e4SLinus Torvalds{ 20001da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "OST", 20011da177e4SLinus Torvalds 0x92, regvalue, cur_col, wrap)); 20021da177e4SLinus Torvalds} 20031da177e4SLinus Torvalds 200411668bb6SHannes Reineckestatic ahd_reg_parse_entry_t OVLYRXMSG2_parse_table[] = { 200511668bb6SHannes Reinecke { "MINDEX", 0xff, 0xff } 200611668bb6SHannes Reinecke}; 200711668bb6SHannes Reinecke 200811668bb6SHannes Reineckeint 200911668bb6SHannes Reineckeahd_ovlyrxmsg2_print(u_int regvalue, u_int *cur_col, u_int wrap) 201011668bb6SHannes Reinecke{ 201111668bb6SHannes Reinecke return (ahd_print_register(OVLYRXMSG2_parse_table, 1, "OVLYRXMSG2", 201211668bb6SHannes Reinecke 0x92, regvalue, cur_col, wrap)); 201311668bb6SHannes Reinecke} 201411668bb6SHannes Reinecke 20151da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t DCHRXMSG3_parse_table[] = { 20161da177e4SLinus Torvalds { "MCLASS", 0x0f, 0x0f } 20171da177e4SLinus Torvalds}; 20181da177e4SLinus Torvalds 20191da177e4SLinus Torvaldsint 20201da177e4SLinus Torvaldsahd_dchrxmsg3_print(u_int regvalue, u_int *cur_col, u_int wrap) 20211da177e4SLinus Torvalds{ 20221da177e4SLinus Torvalds return (ahd_print_register(DCHRXMSG3_parse_table, 1, "DCHRXMSG3", 20231da177e4SLinus Torvalds 0x93, regvalue, cur_col, wrap)); 20241da177e4SLinus Torvalds} 20251da177e4SLinus Torvalds 202611668bb6SHannes Reineckestatic ahd_reg_parse_entry_t OVLYRXMSG3_parse_table[] = { 202711668bb6SHannes Reinecke { "MCLASS", 0x0f, 0x0f } 202811668bb6SHannes Reinecke}; 202911668bb6SHannes Reinecke 203011668bb6SHannes Reineckeint 203111668bb6SHannes Reineckeahd_ovlyrxmsg3_print(u_int regvalue, u_int *cur_col, u_int wrap) 203211668bb6SHannes Reinecke{ 203311668bb6SHannes Reinecke return (ahd_print_register(OVLYRXMSG3_parse_table, 1, "OVLYRXMSG3", 203411668bb6SHannes Reinecke 0x93, regvalue, cur_col, wrap)); 203511668bb6SHannes Reinecke} 203611668bb6SHannes Reinecke 20371da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t CMCRXMSG3_parse_table[] = { 20381da177e4SLinus Torvalds { "MCLASS", 0x0f, 0x0f } 20391da177e4SLinus Torvalds}; 20401da177e4SLinus Torvalds 20411da177e4SLinus Torvaldsint 20421da177e4SLinus Torvaldsahd_cmcrxmsg3_print(u_int regvalue, u_int *cur_col, u_int wrap) 20431da177e4SLinus Torvalds{ 20441da177e4SLinus Torvalds return (ahd_print_register(CMCRXMSG3_parse_table, 1, "CMCRXMSG3", 20451da177e4SLinus Torvalds 0x93, regvalue, cur_col, wrap)); 20461da177e4SLinus Torvalds} 20471da177e4SLinus Torvalds 20481da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t PCIXCTL_parse_table[] = { 20491da177e4SLinus Torvalds { "CMPABCDIS", 0x01, 0x01 }, 20501da177e4SLinus Torvalds { "TSCSERREN", 0x02, 0x02 }, 20511da177e4SLinus Torvalds { "SRSPDPEEN", 0x04, 0x04 }, 20521da177e4SLinus Torvalds { "SPLTSTADIS", 0x08, 0x08 }, 20531da177e4SLinus Torvalds { "SPLTSMADIS", 0x10, 0x10 }, 20541da177e4SLinus Torvalds { "UNEXPSCIEN", 0x20, 0x20 }, 20551da177e4SLinus Torvalds { "SERRPULSE", 0x80, 0x80 } 20561da177e4SLinus Torvalds}; 20571da177e4SLinus Torvalds 20581da177e4SLinus Torvaldsint 20591da177e4SLinus Torvaldsahd_pcixctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 20601da177e4SLinus Torvalds{ 20611da177e4SLinus Torvalds return (ahd_print_register(PCIXCTL_parse_table, 7, "PCIXCTL", 20621da177e4SLinus Torvalds 0x93, regvalue, cur_col, wrap)); 20631da177e4SLinus Torvalds} 20641da177e4SLinus Torvalds 20651da177e4SLinus Torvaldsint 20661da177e4SLinus Torvaldsahd_ovlyseqbcnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 20671da177e4SLinus Torvalds{ 20681da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "OVLYSEQBCNT", 20691da177e4SLinus Torvalds 0x94, regvalue, cur_col, wrap)); 20701da177e4SLinus Torvalds} 20711da177e4SLinus Torvalds 20721da177e4SLinus Torvaldsint 207311668bb6SHannes Reineckeahd_dchseqbcnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 20741da177e4SLinus Torvalds{ 207511668bb6SHannes Reinecke return (ahd_print_register(NULL, 0, "DCHSEQBCNT", 20761da177e4SLinus Torvalds 0x94, regvalue, cur_col, wrap)); 20771da177e4SLinus Torvalds} 20781da177e4SLinus Torvalds 20791da177e4SLinus Torvaldsint 208011668bb6SHannes Reineckeahd_cmcseqbcnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 20811da177e4SLinus Torvalds{ 208211668bb6SHannes Reinecke return (ahd_print_register(NULL, 0, "CMCSEQBCNT", 20831da177e4SLinus Torvalds 0x94, regvalue, cur_col, wrap)); 20841da177e4SLinus Torvalds} 20851da177e4SLinus Torvalds 20861da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t CMCSPLTSTAT0_parse_table[] = { 20871da177e4SLinus Torvalds { "RXSPLTRSP", 0x01, 0x01 }, 20881da177e4SLinus Torvalds { "RXSCEMSG", 0x02, 0x02 }, 20891da177e4SLinus Torvalds { "RXOVRUN", 0x04, 0x04 }, 20901da177e4SLinus Torvalds { "CNTNOTCMPLT", 0x08, 0x08 }, 20911da177e4SLinus Torvalds { "SCDATBUCKET", 0x10, 0x10 }, 20921da177e4SLinus Torvalds { "SCADERR", 0x20, 0x20 }, 20931da177e4SLinus Torvalds { "SCBCERR", 0x40, 0x40 }, 20941da177e4SLinus Torvalds { "STAETERM", 0x80, 0x80 } 20951da177e4SLinus Torvalds}; 20961da177e4SLinus Torvalds 20971da177e4SLinus Torvaldsint 20981da177e4SLinus Torvaldsahd_cmcspltstat0_print(u_int regvalue, u_int *cur_col, u_int wrap) 20991da177e4SLinus Torvalds{ 21001da177e4SLinus Torvalds return (ahd_print_register(CMCSPLTSTAT0_parse_table, 8, "CMCSPLTSTAT0", 21011da177e4SLinus Torvalds 0x96, regvalue, cur_col, wrap)); 21021da177e4SLinus Torvalds} 21031da177e4SLinus Torvalds 21041da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t DCHSPLTSTAT0_parse_table[] = { 21051da177e4SLinus Torvalds { "RXSPLTRSP", 0x01, 0x01 }, 21061da177e4SLinus Torvalds { "RXSCEMSG", 0x02, 0x02 }, 21071da177e4SLinus Torvalds { "RXOVRUN", 0x04, 0x04 }, 21081da177e4SLinus Torvalds { "CNTNOTCMPLT", 0x08, 0x08 }, 21091da177e4SLinus Torvalds { "SCDATBUCKET", 0x10, 0x10 }, 21101da177e4SLinus Torvalds { "SCADERR", 0x20, 0x20 }, 21111da177e4SLinus Torvalds { "SCBCERR", 0x40, 0x40 }, 21121da177e4SLinus Torvalds { "STAETERM", 0x80, 0x80 } 21131da177e4SLinus Torvalds}; 21141da177e4SLinus Torvalds 21151da177e4SLinus Torvaldsint 21161da177e4SLinus Torvaldsahd_dchspltstat0_print(u_int regvalue, u_int *cur_col, u_int wrap) 21171da177e4SLinus Torvalds{ 21181da177e4SLinus Torvalds return (ahd_print_register(DCHSPLTSTAT0_parse_table, 8, "DCHSPLTSTAT0", 21191da177e4SLinus Torvalds 0x96, regvalue, cur_col, wrap)); 21201da177e4SLinus Torvalds} 21211da177e4SLinus Torvalds 212211668bb6SHannes Reineckestatic ahd_reg_parse_entry_t OVLYSPLTSTAT0_parse_table[] = { 212311668bb6SHannes Reinecke { "RXSPLTRSP", 0x01, 0x01 }, 212411668bb6SHannes Reinecke { "RXSCEMSG", 0x02, 0x02 }, 212511668bb6SHannes Reinecke { "RXOVRUN", 0x04, 0x04 }, 212611668bb6SHannes Reinecke { "CNTNOTCMPLT", 0x08, 0x08 }, 212711668bb6SHannes Reinecke { "SCDATBUCKET", 0x10, 0x10 }, 212811668bb6SHannes Reinecke { "SCADERR", 0x20, 0x20 }, 212911668bb6SHannes Reinecke { "SCBCERR", 0x40, 0x40 }, 213011668bb6SHannes Reinecke { "STAETERM", 0x80, 0x80 } 21311da177e4SLinus Torvalds}; 21321da177e4SLinus Torvalds 21331da177e4SLinus Torvaldsint 213411668bb6SHannes Reineckeahd_ovlyspltstat0_print(u_int regvalue, u_int *cur_col, u_int wrap) 21351da177e4SLinus Torvalds{ 213611668bb6SHannes Reinecke return (ahd_print_register(OVLYSPLTSTAT0_parse_table, 8, "OVLYSPLTSTAT0", 213711668bb6SHannes Reinecke 0x96, regvalue, cur_col, wrap)); 21381da177e4SLinus Torvalds} 21391da177e4SLinus Torvalds 21401da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t CMCSPLTSTAT1_parse_table[] = { 21411da177e4SLinus Torvalds { "RXDATABUCKET", 0x01, 0x01 } 21421da177e4SLinus Torvalds}; 21431da177e4SLinus Torvalds 21441da177e4SLinus Torvaldsint 21451da177e4SLinus Torvaldsahd_cmcspltstat1_print(u_int regvalue, u_int *cur_col, u_int wrap) 21461da177e4SLinus Torvalds{ 21471da177e4SLinus Torvalds return (ahd_print_register(CMCSPLTSTAT1_parse_table, 1, "CMCSPLTSTAT1", 21481da177e4SLinus Torvalds 0x97, regvalue, cur_col, wrap)); 21491da177e4SLinus Torvalds} 21501da177e4SLinus Torvalds 21511da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t OVLYSPLTSTAT1_parse_table[] = { 21521da177e4SLinus Torvalds { "RXDATABUCKET", 0x01, 0x01 } 21531da177e4SLinus Torvalds}; 21541da177e4SLinus Torvalds 21551da177e4SLinus Torvaldsint 21561da177e4SLinus Torvaldsahd_ovlyspltstat1_print(u_int regvalue, u_int *cur_col, u_int wrap) 21571da177e4SLinus Torvalds{ 21581da177e4SLinus Torvalds return (ahd_print_register(OVLYSPLTSTAT1_parse_table, 1, "OVLYSPLTSTAT1", 21591da177e4SLinus Torvalds 0x97, regvalue, cur_col, wrap)); 21601da177e4SLinus Torvalds} 21611da177e4SLinus Torvalds 216211668bb6SHannes Reineckestatic ahd_reg_parse_entry_t DCHSPLTSTAT1_parse_table[] = { 216311668bb6SHannes Reinecke { "RXDATABUCKET", 0x01, 0x01 } 216411668bb6SHannes Reinecke}; 216511668bb6SHannes Reinecke 216611668bb6SHannes Reineckeint 216711668bb6SHannes Reineckeahd_dchspltstat1_print(u_int regvalue, u_int *cur_col, u_int wrap) 216811668bb6SHannes Reinecke{ 216911668bb6SHannes Reinecke return (ahd_print_register(DCHSPLTSTAT1_parse_table, 1, "DCHSPLTSTAT1", 217011668bb6SHannes Reinecke 0x97, regvalue, cur_col, wrap)); 217111668bb6SHannes Reinecke} 217211668bb6SHannes Reinecke 21731da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SGRXMSG0_parse_table[] = { 21741da177e4SLinus Torvalds { "CFNUM", 0x07, 0x07 }, 21751da177e4SLinus Torvalds { "CDNUM", 0xf8, 0xf8 } 21761da177e4SLinus Torvalds}; 21771da177e4SLinus Torvalds 21781da177e4SLinus Torvaldsint 21791da177e4SLinus Torvaldsahd_sgrxmsg0_print(u_int regvalue, u_int *cur_col, u_int wrap) 21801da177e4SLinus Torvalds{ 21811da177e4SLinus Torvalds return (ahd_print_register(SGRXMSG0_parse_table, 2, "SGRXMSG0", 21821da177e4SLinus Torvalds 0x98, regvalue, cur_col, wrap)); 21831da177e4SLinus Torvalds} 21841da177e4SLinus Torvalds 21851da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SLVSPLTOUTADR0_parse_table[] = { 21861da177e4SLinus Torvalds { "LOWER_ADDR", 0x7f, 0x7f } 21871da177e4SLinus Torvalds}; 21881da177e4SLinus Torvalds 21891da177e4SLinus Torvaldsint 21901da177e4SLinus Torvaldsahd_slvspltoutadr0_print(u_int regvalue, u_int *cur_col, u_int wrap) 21911da177e4SLinus Torvalds{ 21921da177e4SLinus Torvalds return (ahd_print_register(SLVSPLTOUTADR0_parse_table, 1, "SLVSPLTOUTADR0", 21931da177e4SLinus Torvalds 0x98, regvalue, cur_col, wrap)); 21941da177e4SLinus Torvalds} 21951da177e4SLinus Torvalds 21961da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SGRXMSG1_parse_table[] = { 21971da177e4SLinus Torvalds { "CBNUM", 0xff, 0xff } 21981da177e4SLinus Torvalds}; 21991da177e4SLinus Torvalds 22001da177e4SLinus Torvaldsint 22011da177e4SLinus Torvaldsahd_sgrxmsg1_print(u_int regvalue, u_int *cur_col, u_int wrap) 22021da177e4SLinus Torvalds{ 22031da177e4SLinus Torvalds return (ahd_print_register(SGRXMSG1_parse_table, 1, "SGRXMSG1", 22041da177e4SLinus Torvalds 0x99, regvalue, cur_col, wrap)); 22051da177e4SLinus Torvalds} 22061da177e4SLinus Torvalds 22071da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SLVSPLTOUTADR1_parse_table[] = { 22081da177e4SLinus Torvalds { "REQ_FNUM", 0x07, 0x07 }, 22091da177e4SLinus Torvalds { "REQ_DNUM", 0xf8, 0xf8 } 22101da177e4SLinus Torvalds}; 22111da177e4SLinus Torvalds 22121da177e4SLinus Torvaldsint 22131da177e4SLinus Torvaldsahd_slvspltoutadr1_print(u_int regvalue, u_int *cur_col, u_int wrap) 22141da177e4SLinus Torvalds{ 22151da177e4SLinus Torvalds return (ahd_print_register(SLVSPLTOUTADR1_parse_table, 2, "SLVSPLTOUTADR1", 22161da177e4SLinus Torvalds 0x99, regvalue, cur_col, wrap)); 22171da177e4SLinus Torvalds} 22181da177e4SLinus Torvalds 22191da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SGRXMSG2_parse_table[] = { 22201da177e4SLinus Torvalds { "MINDEX", 0xff, 0xff } 22211da177e4SLinus Torvalds}; 22221da177e4SLinus Torvalds 22231da177e4SLinus Torvaldsint 22241da177e4SLinus Torvaldsahd_sgrxmsg2_print(u_int regvalue, u_int *cur_col, u_int wrap) 22251da177e4SLinus Torvalds{ 22261da177e4SLinus Torvalds return (ahd_print_register(SGRXMSG2_parse_table, 1, "SGRXMSG2", 22271da177e4SLinus Torvalds 0x9a, regvalue, cur_col, wrap)); 22281da177e4SLinus Torvalds} 22291da177e4SLinus Torvalds 22301da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SLVSPLTOUTADR2_parse_table[] = { 22311da177e4SLinus Torvalds { "REQ_BNUM", 0xff, 0xff } 22321da177e4SLinus Torvalds}; 22331da177e4SLinus Torvalds 22341da177e4SLinus Torvaldsint 22351da177e4SLinus Torvaldsahd_slvspltoutadr2_print(u_int regvalue, u_int *cur_col, u_int wrap) 22361da177e4SLinus Torvalds{ 22371da177e4SLinus Torvalds return (ahd_print_register(SLVSPLTOUTADR2_parse_table, 1, "SLVSPLTOUTADR2", 22381da177e4SLinus Torvalds 0x9a, regvalue, cur_col, wrap)); 22391da177e4SLinus Torvalds} 22401da177e4SLinus Torvalds 22411da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SGRXMSG3_parse_table[] = { 22421da177e4SLinus Torvalds { "MCLASS", 0x0f, 0x0f } 22431da177e4SLinus Torvalds}; 22441da177e4SLinus Torvalds 22451da177e4SLinus Torvaldsint 22461da177e4SLinus Torvaldsahd_sgrxmsg3_print(u_int regvalue, u_int *cur_col, u_int wrap) 22471da177e4SLinus Torvalds{ 22481da177e4SLinus Torvalds return (ahd_print_register(SGRXMSG3_parse_table, 1, "SGRXMSG3", 22491da177e4SLinus Torvalds 0x9b, regvalue, cur_col, wrap)); 22501da177e4SLinus Torvalds} 22511da177e4SLinus Torvalds 22521da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SLVSPLTOUTADR3_parse_table[] = { 22531da177e4SLinus Torvalds { "RLXORD", 0x10, 0x10 }, 22541da177e4SLinus Torvalds { "TAG_NUM", 0x1f, 0x1f } 22551da177e4SLinus Torvalds}; 22561da177e4SLinus Torvalds 22571da177e4SLinus Torvaldsint 22581da177e4SLinus Torvaldsahd_slvspltoutadr3_print(u_int regvalue, u_int *cur_col, u_int wrap) 22591da177e4SLinus Torvalds{ 22601da177e4SLinus Torvalds return (ahd_print_register(SLVSPLTOUTADR3_parse_table, 2, "SLVSPLTOUTADR3", 22611da177e4SLinus Torvalds 0x9b, regvalue, cur_col, wrap)); 22621da177e4SLinus Torvalds} 22631da177e4SLinus Torvalds 22641da177e4SLinus Torvaldsint 22651da177e4SLinus Torvaldsahd_sgseqbcnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 22661da177e4SLinus Torvalds{ 22671da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SGSEQBCNT", 22681da177e4SLinus Torvalds 0x9c, regvalue, cur_col, wrap)); 22691da177e4SLinus Torvalds} 22701da177e4SLinus Torvalds 22711da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SLVSPLTOUTATTR0_parse_table[] = { 22721da177e4SLinus Torvalds { "LOWER_BCNT", 0xff, 0xff } 22731da177e4SLinus Torvalds}; 22741da177e4SLinus Torvalds 22751da177e4SLinus Torvaldsint 22761da177e4SLinus Torvaldsahd_slvspltoutattr0_print(u_int regvalue, u_int *cur_col, u_int wrap) 22771da177e4SLinus Torvalds{ 22781da177e4SLinus Torvalds return (ahd_print_register(SLVSPLTOUTATTR0_parse_table, 1, "SLVSPLTOUTATTR0", 22791da177e4SLinus Torvalds 0x9c, regvalue, cur_col, wrap)); 22801da177e4SLinus Torvalds} 22811da177e4SLinus Torvalds 22821da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SLVSPLTOUTATTR1_parse_table[] = { 22831da177e4SLinus Torvalds { "CMPLT_FNUM", 0x07, 0x07 }, 22841da177e4SLinus Torvalds { "CMPLT_DNUM", 0xf8, 0xf8 } 22851da177e4SLinus Torvalds}; 22861da177e4SLinus Torvalds 22871da177e4SLinus Torvaldsint 22881da177e4SLinus Torvaldsahd_slvspltoutattr1_print(u_int regvalue, u_int *cur_col, u_int wrap) 22891da177e4SLinus Torvalds{ 22901da177e4SLinus Torvalds return (ahd_print_register(SLVSPLTOUTATTR1_parse_table, 2, "SLVSPLTOUTATTR1", 22911da177e4SLinus Torvalds 0x9d, regvalue, cur_col, wrap)); 22921da177e4SLinus Torvalds} 22931da177e4SLinus Torvalds 22941da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SLVSPLTOUTATTR2_parse_table[] = { 22951da177e4SLinus Torvalds { "CMPLT_BNUM", 0xff, 0xff } 22961da177e4SLinus Torvalds}; 22971da177e4SLinus Torvalds 22981da177e4SLinus Torvaldsint 22991da177e4SLinus Torvaldsahd_slvspltoutattr2_print(u_int regvalue, u_int *cur_col, u_int wrap) 23001da177e4SLinus Torvalds{ 23011da177e4SLinus Torvalds return (ahd_print_register(SLVSPLTOUTATTR2_parse_table, 1, "SLVSPLTOUTATTR2", 23021da177e4SLinus Torvalds 0x9e, regvalue, cur_col, wrap)); 23031da177e4SLinus Torvalds} 23041da177e4SLinus Torvalds 23051da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SGSPLTSTAT0_parse_table[] = { 23061da177e4SLinus Torvalds { "RXSPLTRSP", 0x01, 0x01 }, 23071da177e4SLinus Torvalds { "RXSCEMSG", 0x02, 0x02 }, 23081da177e4SLinus Torvalds { "RXOVRUN", 0x04, 0x04 }, 23091da177e4SLinus Torvalds { "CNTNOTCMPLT", 0x08, 0x08 }, 23101da177e4SLinus Torvalds { "SCDATBUCKET", 0x10, 0x10 }, 23111da177e4SLinus Torvalds { "SCADERR", 0x20, 0x20 }, 23121da177e4SLinus Torvalds { "SCBCERR", 0x40, 0x40 }, 23131da177e4SLinus Torvalds { "STAETERM", 0x80, 0x80 } 23141da177e4SLinus Torvalds}; 23151da177e4SLinus Torvalds 23161da177e4SLinus Torvaldsint 23171da177e4SLinus Torvaldsahd_sgspltstat0_print(u_int regvalue, u_int *cur_col, u_int wrap) 23181da177e4SLinus Torvalds{ 23191da177e4SLinus Torvalds return (ahd_print_register(SGSPLTSTAT0_parse_table, 8, "SGSPLTSTAT0", 23201da177e4SLinus Torvalds 0x9e, regvalue, cur_col, wrap)); 23211da177e4SLinus Torvalds} 23221da177e4SLinus Torvalds 232311668bb6SHannes Reineckestatic ahd_reg_parse_entry_t SGSPLTSTAT1_parse_table[] = { 232411668bb6SHannes Reinecke { "RXDATABUCKET", 0x01, 0x01 } 232511668bb6SHannes Reinecke}; 232611668bb6SHannes Reinecke 232711668bb6SHannes Reineckeint 232811668bb6SHannes Reineckeahd_sgspltstat1_print(u_int regvalue, u_int *cur_col, u_int wrap) 232911668bb6SHannes Reinecke{ 233011668bb6SHannes Reinecke return (ahd_print_register(SGSPLTSTAT1_parse_table, 1, "SGSPLTSTAT1", 233111668bb6SHannes Reinecke 0x9f, regvalue, cur_col, wrap)); 233211668bb6SHannes Reinecke} 233311668bb6SHannes Reinecke 23341da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SFUNCT_parse_table[] = { 23351da177e4SLinus Torvalds { "TEST_NUM", 0x0f, 0x0f }, 23361da177e4SLinus Torvalds { "TEST_GROUP", 0xf0, 0xf0 } 23371da177e4SLinus Torvalds}; 23381da177e4SLinus Torvalds 23391da177e4SLinus Torvaldsint 23401da177e4SLinus Torvaldsahd_sfunct_print(u_int regvalue, u_int *cur_col, u_int wrap) 23411da177e4SLinus Torvalds{ 23421da177e4SLinus Torvalds return (ahd_print_register(SFUNCT_parse_table, 2, "SFUNCT", 23431da177e4SLinus Torvalds 0x9f, regvalue, cur_col, wrap)); 23441da177e4SLinus Torvalds} 23451da177e4SLinus Torvalds 23461da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t DF0PCISTAT_parse_table[] = { 23471da177e4SLinus Torvalds { "DPR", 0x01, 0x01 }, 23481da177e4SLinus Torvalds { "TWATERR", 0x02, 0x02 }, 23491da177e4SLinus Torvalds { "RDPERR", 0x04, 0x04 }, 23501da177e4SLinus Torvalds { "SCAAPERR", 0x08, 0x08 }, 23511da177e4SLinus Torvalds { "RTA", 0x10, 0x10 }, 23521da177e4SLinus Torvalds { "RMA", 0x20, 0x20 }, 23531da177e4SLinus Torvalds { "SSE", 0x40, 0x40 }, 23541da177e4SLinus Torvalds { "DPE", 0x80, 0x80 } 23551da177e4SLinus Torvalds}; 23561da177e4SLinus Torvalds 23571da177e4SLinus Torvaldsint 23581da177e4SLinus Torvaldsahd_df0pcistat_print(u_int regvalue, u_int *cur_col, u_int wrap) 23591da177e4SLinus Torvalds{ 23601da177e4SLinus Torvalds return (ahd_print_register(DF0PCISTAT_parse_table, 8, "DF0PCISTAT", 23611da177e4SLinus Torvalds 0xa0, regvalue, cur_col, wrap)); 23621da177e4SLinus Torvalds} 23631da177e4SLinus Torvalds 23641da177e4SLinus Torvaldsint 23651da177e4SLinus Torvaldsahd_reg0_print(u_int regvalue, u_int *cur_col, u_int wrap) 23661da177e4SLinus Torvalds{ 23671da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "REG0", 23681da177e4SLinus Torvalds 0xa0, regvalue, cur_col, wrap)); 23691da177e4SLinus Torvalds} 23701da177e4SLinus Torvalds 23711da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t DF1PCISTAT_parse_table[] = { 23721da177e4SLinus Torvalds { "DPR", 0x01, 0x01 }, 23731da177e4SLinus Torvalds { "TWATERR", 0x02, 0x02 }, 23741da177e4SLinus Torvalds { "RDPERR", 0x04, 0x04 }, 23751da177e4SLinus Torvalds { "SCAAPERR", 0x08, 0x08 }, 23761da177e4SLinus Torvalds { "RTA", 0x10, 0x10 }, 23771da177e4SLinus Torvalds { "RMA", 0x20, 0x20 }, 23781da177e4SLinus Torvalds { "SSE", 0x40, 0x40 }, 23791da177e4SLinus Torvalds { "DPE", 0x80, 0x80 } 23801da177e4SLinus Torvalds}; 23811da177e4SLinus Torvalds 23821da177e4SLinus Torvaldsint 23831da177e4SLinus Torvaldsahd_df1pcistat_print(u_int regvalue, u_int *cur_col, u_int wrap) 23841da177e4SLinus Torvalds{ 23851da177e4SLinus Torvalds return (ahd_print_register(DF1PCISTAT_parse_table, 8, "DF1PCISTAT", 23861da177e4SLinus Torvalds 0xa1, regvalue, cur_col, wrap)); 23871da177e4SLinus Torvalds} 23881da177e4SLinus Torvalds 23891da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SGPCISTAT_parse_table[] = { 23901da177e4SLinus Torvalds { "DPR", 0x01, 0x01 }, 23911da177e4SLinus Torvalds { "RDPERR", 0x04, 0x04 }, 23921da177e4SLinus Torvalds { "SCAAPERR", 0x08, 0x08 }, 23931da177e4SLinus Torvalds { "RTA", 0x10, 0x10 }, 23941da177e4SLinus Torvalds { "RMA", 0x20, 0x20 }, 23951da177e4SLinus Torvalds { "SSE", 0x40, 0x40 }, 23961da177e4SLinus Torvalds { "DPE", 0x80, 0x80 } 23971da177e4SLinus Torvalds}; 23981da177e4SLinus Torvalds 23991da177e4SLinus Torvaldsint 24001da177e4SLinus Torvaldsahd_sgpcistat_print(u_int regvalue, u_int *cur_col, u_int wrap) 24011da177e4SLinus Torvalds{ 24021da177e4SLinus Torvalds return (ahd_print_register(SGPCISTAT_parse_table, 7, "SGPCISTAT", 24031da177e4SLinus Torvalds 0xa2, regvalue, cur_col, wrap)); 24041da177e4SLinus Torvalds} 24051da177e4SLinus Torvalds 24061da177e4SLinus Torvaldsint 24071da177e4SLinus Torvaldsahd_reg1_print(u_int regvalue, u_int *cur_col, u_int wrap) 24081da177e4SLinus Torvalds{ 24091da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "REG1", 24101da177e4SLinus Torvalds 0xa2, regvalue, cur_col, wrap)); 24111da177e4SLinus Torvalds} 24121da177e4SLinus Torvalds 24131da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t CMCPCISTAT_parse_table[] = { 24141da177e4SLinus Torvalds { "DPR", 0x01, 0x01 }, 24151da177e4SLinus Torvalds { "TWATERR", 0x02, 0x02 }, 24161da177e4SLinus Torvalds { "RDPERR", 0x04, 0x04 }, 24171da177e4SLinus Torvalds { "SCAAPERR", 0x08, 0x08 }, 24181da177e4SLinus Torvalds { "RTA", 0x10, 0x10 }, 24191da177e4SLinus Torvalds { "RMA", 0x20, 0x20 }, 24201da177e4SLinus Torvalds { "SSE", 0x40, 0x40 }, 24211da177e4SLinus Torvalds { "DPE", 0x80, 0x80 } 24221da177e4SLinus Torvalds}; 24231da177e4SLinus Torvalds 24241da177e4SLinus Torvaldsint 24251da177e4SLinus Torvaldsahd_cmcpcistat_print(u_int regvalue, u_int *cur_col, u_int wrap) 24261da177e4SLinus Torvalds{ 24271da177e4SLinus Torvalds return (ahd_print_register(CMCPCISTAT_parse_table, 8, "CMCPCISTAT", 24281da177e4SLinus Torvalds 0xa3, regvalue, cur_col, wrap)); 24291da177e4SLinus Torvalds} 24301da177e4SLinus Torvalds 24311da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t OVLYPCISTAT_parse_table[] = { 24321da177e4SLinus Torvalds { "DPR", 0x01, 0x01 }, 24331da177e4SLinus Torvalds { "RDPERR", 0x04, 0x04 }, 24341da177e4SLinus Torvalds { "SCAAPERR", 0x08, 0x08 }, 24351da177e4SLinus Torvalds { "RTA", 0x10, 0x10 }, 24361da177e4SLinus Torvalds { "RMA", 0x20, 0x20 }, 24371da177e4SLinus Torvalds { "SSE", 0x40, 0x40 }, 24381da177e4SLinus Torvalds { "DPE", 0x80, 0x80 } 24391da177e4SLinus Torvalds}; 24401da177e4SLinus Torvalds 24411da177e4SLinus Torvaldsint 24421da177e4SLinus Torvaldsahd_ovlypcistat_print(u_int regvalue, u_int *cur_col, u_int wrap) 24431da177e4SLinus Torvalds{ 24441da177e4SLinus Torvalds return (ahd_print_register(OVLYPCISTAT_parse_table, 7, "OVLYPCISTAT", 24451da177e4SLinus Torvalds 0xa4, regvalue, cur_col, wrap)); 24461da177e4SLinus Torvalds} 24471da177e4SLinus Torvalds 24481da177e4SLinus Torvaldsint 24491da177e4SLinus Torvaldsahd_reg_isr_print(u_int regvalue, u_int *cur_col, u_int wrap) 24501da177e4SLinus Torvalds{ 24511da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "REG_ISR", 24521da177e4SLinus Torvalds 0xa4, regvalue, cur_col, wrap)); 24531da177e4SLinus Torvalds} 24541da177e4SLinus Torvalds 24551da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SG_STATE_parse_table[] = { 24561da177e4SLinus Torvalds { "SEGS_AVAIL", 0x01, 0x01 }, 24571da177e4SLinus Torvalds { "LOADING_NEEDED", 0x02, 0x02 }, 24581da177e4SLinus Torvalds { "FETCH_INPROG", 0x04, 0x04 } 24591da177e4SLinus Torvalds}; 24601da177e4SLinus Torvalds 24611da177e4SLinus Torvaldsint 24621da177e4SLinus Torvaldsahd_sg_state_print(u_int regvalue, u_int *cur_col, u_int wrap) 24631da177e4SLinus Torvalds{ 24641da177e4SLinus Torvalds return (ahd_print_register(SG_STATE_parse_table, 3, "SG_STATE", 24651da177e4SLinus Torvalds 0xa6, regvalue, cur_col, wrap)); 24661da177e4SLinus Torvalds} 24671da177e4SLinus Torvalds 24681da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t MSIPCISTAT_parse_table[] = { 24691da177e4SLinus Torvalds { "DPR", 0x01, 0x01 }, 24701da177e4SLinus Torvalds { "TWATERR", 0x02, 0x02 }, 24711da177e4SLinus Torvalds { "CLRPENDMSI", 0x08, 0x08 }, 24721da177e4SLinus Torvalds { "RTA", 0x10, 0x10 }, 24731da177e4SLinus Torvalds { "RMA", 0x20, 0x20 }, 24741da177e4SLinus Torvalds { "SSE", 0x40, 0x40 } 24751da177e4SLinus Torvalds}; 24761da177e4SLinus Torvalds 24771da177e4SLinus Torvaldsint 24781da177e4SLinus Torvaldsahd_msipcistat_print(u_int regvalue, u_int *cur_col, u_int wrap) 24791da177e4SLinus Torvalds{ 24801da177e4SLinus Torvalds return (ahd_print_register(MSIPCISTAT_parse_table, 6, "MSIPCISTAT", 24811da177e4SLinus Torvalds 0xa6, regvalue, cur_col, wrap)); 24821da177e4SLinus Torvalds} 24831da177e4SLinus Torvalds 24841da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t TARGPCISTAT_parse_table[] = { 24851da177e4SLinus Torvalds { "TWATERR", 0x02, 0x02 }, 24861da177e4SLinus Torvalds { "STA", 0x08, 0x08 }, 24871da177e4SLinus Torvalds { "SSE", 0x40, 0x40 }, 24881da177e4SLinus Torvalds { "DPE", 0x80, 0x80 } 24891da177e4SLinus Torvalds}; 24901da177e4SLinus Torvalds 24911da177e4SLinus Torvaldsint 24921da177e4SLinus Torvaldsahd_targpcistat_print(u_int regvalue, u_int *cur_col, u_int wrap) 24931da177e4SLinus Torvalds{ 24941da177e4SLinus Torvalds return (ahd_print_register(TARGPCISTAT_parse_table, 4, "TARGPCISTAT", 24951da177e4SLinus Torvalds 0xa7, regvalue, cur_col, wrap)); 24961da177e4SLinus Torvalds} 24971da177e4SLinus Torvalds 24981da177e4SLinus Torvaldsint 24991da177e4SLinus Torvaldsahd_data_count_odd_print(u_int regvalue, u_int *cur_col, u_int wrap) 25001da177e4SLinus Torvalds{ 25011da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "DATA_COUNT_ODD", 25021da177e4SLinus Torvalds 0xa7, regvalue, cur_col, wrap)); 25031da177e4SLinus Torvalds} 25041da177e4SLinus Torvalds 25051da177e4SLinus Torvaldsint 25061da177e4SLinus Torvaldsahd_scbptr_print(u_int regvalue, u_int *cur_col, u_int wrap) 25071da177e4SLinus Torvalds{ 25081da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SCBPTR", 25091da177e4SLinus Torvalds 0xa8, regvalue, cur_col, wrap)); 25101da177e4SLinus Torvalds} 25111da177e4SLinus Torvalds 25121da177e4SLinus Torvaldsint 25131da177e4SLinus Torvaldsahd_ccscbacnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 25141da177e4SLinus Torvalds{ 25151da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "CCSCBACNT", 25161da177e4SLinus Torvalds 0xab, regvalue, cur_col, wrap)); 25171da177e4SLinus Torvalds} 25181da177e4SLinus Torvalds 25191da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SCBAUTOPTR_parse_table[] = { 25201da177e4SLinus Torvalds { "SCBPTR_OFF", 0x07, 0x07 }, 25211da177e4SLinus Torvalds { "SCBPTR_ADDR", 0x38, 0x38 }, 25221da177e4SLinus Torvalds { "AUSCBPTR_EN", 0x80, 0x80 } 25231da177e4SLinus Torvalds}; 25241da177e4SLinus Torvalds 25251da177e4SLinus Torvaldsint 25261da177e4SLinus Torvaldsahd_scbautoptr_print(u_int regvalue, u_int *cur_col, u_int wrap) 25271da177e4SLinus Torvalds{ 25281da177e4SLinus Torvalds return (ahd_print_register(SCBAUTOPTR_parse_table, 3, "SCBAUTOPTR", 25291da177e4SLinus Torvalds 0xab, regvalue, cur_col, wrap)); 25301da177e4SLinus Torvalds} 25311da177e4SLinus Torvalds 25321da177e4SLinus Torvaldsint 25331da177e4SLinus Torvaldsahd_ccsgaddr_print(u_int regvalue, u_int *cur_col, u_int wrap) 25341da177e4SLinus Torvalds{ 25351da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "CCSGADDR", 25361da177e4SLinus Torvalds 0xac, regvalue, cur_col, wrap)); 25371da177e4SLinus Torvalds} 25381da177e4SLinus Torvalds 25391da177e4SLinus Torvaldsint 254011668bb6SHannes Reineckeahd_ccscbadr_bk_print(u_int regvalue, u_int *cur_col, u_int wrap) 25411da177e4SLinus Torvalds{ 254211668bb6SHannes Reinecke return (ahd_print_register(NULL, 0, "CCSCBADR_BK", 25431da177e4SLinus Torvalds 0xac, regvalue, cur_col, wrap)); 25441da177e4SLinus Torvalds} 25451da177e4SLinus Torvalds 25461da177e4SLinus Torvaldsint 254711668bb6SHannes Reineckeahd_ccscbaddr_print(u_int regvalue, u_int *cur_col, u_int wrap) 25481da177e4SLinus Torvalds{ 254911668bb6SHannes Reinecke return (ahd_print_register(NULL, 0, "CCSCBADDR", 25501da177e4SLinus Torvalds 0xac, regvalue, cur_col, wrap)); 25511da177e4SLinus Torvalds} 25521da177e4SLinus Torvalds 25531da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t CMC_RAMBIST_parse_table[] = { 25541da177e4SLinus Torvalds { "CMC_BUFFER_BIST_EN", 0x01, 0x01 }, 25551da177e4SLinus Torvalds { "CMC_BUFFER_BIST_FAIL",0x02, 0x02 }, 25561da177e4SLinus Torvalds { "SG_BIST_EN", 0x10, 0x10 }, 25571da177e4SLinus Torvalds { "SG_BIST_FAIL", 0x20, 0x20 }, 25581da177e4SLinus Torvalds { "SCBRAMBIST_FAIL", 0x40, 0x40 }, 25591da177e4SLinus Torvalds { "SG_ELEMENT_SIZE", 0x80, 0x80 } 25601da177e4SLinus Torvalds}; 25611da177e4SLinus Torvalds 25621da177e4SLinus Torvaldsint 25631da177e4SLinus Torvaldsahd_cmc_rambist_print(u_int regvalue, u_int *cur_col, u_int wrap) 25641da177e4SLinus Torvalds{ 25651da177e4SLinus Torvalds return (ahd_print_register(CMC_RAMBIST_parse_table, 6, "CMC_RAMBIST", 25661da177e4SLinus Torvalds 0xad, regvalue, cur_col, wrap)); 25671da177e4SLinus Torvalds} 25681da177e4SLinus Torvalds 25691da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t CCSCBCTL_parse_table[] = { 25701da177e4SLinus Torvalds { "CCSCBRESET", 0x01, 0x01 }, 25711da177e4SLinus Torvalds { "CCSCBDIR", 0x04, 0x04 }, 25721da177e4SLinus Torvalds { "CCSCBEN", 0x08, 0x08 }, 25731da177e4SLinus Torvalds { "CCARREN", 0x10, 0x10 }, 25741da177e4SLinus Torvalds { "ARRDONE", 0x40, 0x40 }, 25751da177e4SLinus Torvalds { "CCSCBDONE", 0x80, 0x80 } 25761da177e4SLinus Torvalds}; 25771da177e4SLinus Torvalds 25781da177e4SLinus Torvaldsint 25791da177e4SLinus Torvaldsahd_ccscbctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 25801da177e4SLinus Torvalds{ 25811da177e4SLinus Torvalds return (ahd_print_register(CCSCBCTL_parse_table, 6, "CCSCBCTL", 25821da177e4SLinus Torvalds 0xad, regvalue, cur_col, wrap)); 25831da177e4SLinus Torvalds} 25841da177e4SLinus Torvalds 258511668bb6SHannes Reineckestatic ahd_reg_parse_entry_t CCSGCTL_parse_table[] = { 258611668bb6SHannes Reinecke { "CCSGRESET", 0x01, 0x01 }, 258711668bb6SHannes Reinecke { "SG_FETCH_REQ", 0x02, 0x02 }, 258811668bb6SHannes Reinecke { "CCSGENACK", 0x08, 0x08 }, 258911668bb6SHannes Reinecke { "SG_CACHE_AVAIL", 0x10, 0x10 }, 259011668bb6SHannes Reinecke { "CCSGDONE", 0x80, 0x80 }, 259111668bb6SHannes Reinecke { "CCSGEN", 0x0c, 0x0c } 259211668bb6SHannes Reinecke}; 259311668bb6SHannes Reinecke 259411668bb6SHannes Reineckeint 259511668bb6SHannes Reineckeahd_ccsgctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 259611668bb6SHannes Reinecke{ 259711668bb6SHannes Reinecke return (ahd_print_register(CCSGCTL_parse_table, 6, "CCSGCTL", 259811668bb6SHannes Reinecke 0xad, regvalue, cur_col, wrap)); 259911668bb6SHannes Reinecke} 260011668bb6SHannes Reinecke 26011da177e4SLinus Torvaldsint 26021da177e4SLinus Torvaldsahd_ccsgram_print(u_int regvalue, u_int *cur_col, u_int wrap) 26031da177e4SLinus Torvalds{ 26041da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "CCSGRAM", 26051da177e4SLinus Torvalds 0xb0, regvalue, cur_col, wrap)); 26061da177e4SLinus Torvalds} 26071da177e4SLinus Torvalds 26081da177e4SLinus Torvaldsint 26091da177e4SLinus Torvaldsahd_flexadr_print(u_int regvalue, u_int *cur_col, u_int wrap) 26101da177e4SLinus Torvalds{ 26111da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "FLEXADR", 26121da177e4SLinus Torvalds 0xb0, regvalue, cur_col, wrap)); 26131da177e4SLinus Torvalds} 26141da177e4SLinus Torvalds 26151da177e4SLinus Torvaldsint 26161da177e4SLinus Torvaldsahd_ccscbram_print(u_int regvalue, u_int *cur_col, u_int wrap) 26171da177e4SLinus Torvalds{ 26181da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "CCSCBRAM", 26191da177e4SLinus Torvalds 0xb0, regvalue, cur_col, wrap)); 26201da177e4SLinus Torvalds} 26211da177e4SLinus Torvalds 26221da177e4SLinus Torvaldsint 26231da177e4SLinus Torvaldsahd_flexcnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 26241da177e4SLinus Torvalds{ 26251da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "FLEXCNT", 26261da177e4SLinus Torvalds 0xb3, regvalue, cur_col, wrap)); 26271da177e4SLinus Torvalds} 26281da177e4SLinus Torvalds 26291da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t FLEXDMASTAT_parse_table[] = { 26301da177e4SLinus Torvalds { "FLEXDMADONE", 0x01, 0x01 }, 26311da177e4SLinus Torvalds { "FLEXDMAERR", 0x02, 0x02 } 26321da177e4SLinus Torvalds}; 26331da177e4SLinus Torvalds 26341da177e4SLinus Torvaldsint 26351da177e4SLinus Torvaldsahd_flexdmastat_print(u_int regvalue, u_int *cur_col, u_int wrap) 26361da177e4SLinus Torvalds{ 26371da177e4SLinus Torvalds return (ahd_print_register(FLEXDMASTAT_parse_table, 2, "FLEXDMASTAT", 26381da177e4SLinus Torvalds 0xb5, regvalue, cur_col, wrap)); 26391da177e4SLinus Torvalds} 26401da177e4SLinus Torvalds 26411da177e4SLinus Torvaldsint 26421da177e4SLinus Torvaldsahd_flexdata_print(u_int regvalue, u_int *cur_col, u_int wrap) 26431da177e4SLinus Torvalds{ 26441da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "FLEXDATA", 26451da177e4SLinus Torvalds 0xb6, regvalue, cur_col, wrap)); 26461da177e4SLinus Torvalds} 26471da177e4SLinus Torvalds 26481da177e4SLinus Torvaldsint 26491da177e4SLinus Torvaldsahd_brddat_print(u_int regvalue, u_int *cur_col, u_int wrap) 26501da177e4SLinus Torvalds{ 26511da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "BRDDAT", 26521da177e4SLinus Torvalds 0xb8, regvalue, cur_col, wrap)); 26531da177e4SLinus Torvalds} 26541da177e4SLinus Torvalds 26551da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t BRDCTL_parse_table[] = { 26561da177e4SLinus Torvalds { "BRDSTB", 0x01, 0x01 }, 26571da177e4SLinus Torvalds { "BRDRW", 0x02, 0x02 }, 26581da177e4SLinus Torvalds { "BRDEN", 0x04, 0x04 }, 26591da177e4SLinus Torvalds { "BRDADDR", 0x38, 0x38 }, 26601da177e4SLinus Torvalds { "FLXARBREQ", 0x40, 0x40 }, 26611da177e4SLinus Torvalds { "FLXARBACK", 0x80, 0x80 } 26621da177e4SLinus Torvalds}; 26631da177e4SLinus Torvalds 26641da177e4SLinus Torvaldsint 26651da177e4SLinus Torvaldsahd_brdctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 26661da177e4SLinus Torvalds{ 26671da177e4SLinus Torvalds return (ahd_print_register(BRDCTL_parse_table, 6, "BRDCTL", 26681da177e4SLinus Torvalds 0xb9, regvalue, cur_col, wrap)); 26691da177e4SLinus Torvalds} 26701da177e4SLinus Torvalds 26711da177e4SLinus Torvaldsint 26721da177e4SLinus Torvaldsahd_seeadr_print(u_int regvalue, u_int *cur_col, u_int wrap) 26731da177e4SLinus Torvalds{ 26741da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SEEADR", 26751da177e4SLinus Torvalds 0xba, regvalue, cur_col, wrap)); 26761da177e4SLinus Torvalds} 26771da177e4SLinus Torvalds 26781da177e4SLinus Torvaldsint 26791da177e4SLinus Torvaldsahd_seedat_print(u_int regvalue, u_int *cur_col, u_int wrap) 26801da177e4SLinus Torvalds{ 26811da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SEEDAT", 26821da177e4SLinus Torvalds 0xbc, regvalue, cur_col, wrap)); 26831da177e4SLinus Torvalds} 26841da177e4SLinus Torvalds 26851da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SEECTL_parse_table[] = { 26861da177e4SLinus Torvalds { "SEEOP_ERAL", 0x40, 0x70 }, 26871da177e4SLinus Torvalds { "SEEOP_WRITE", 0x50, 0x70 }, 26881da177e4SLinus Torvalds { "SEEOP_READ", 0x60, 0x70 }, 26891da177e4SLinus Torvalds { "SEEOP_ERASE", 0x70, 0x70 }, 26901da177e4SLinus Torvalds { "SEESTART", 0x01, 0x01 }, 26911da177e4SLinus Torvalds { "SEERST", 0x02, 0x02 }, 26921da177e4SLinus Torvalds { "SEEOPCODE", 0x70, 0x70 }, 26931da177e4SLinus Torvalds { "SEEOP_EWEN", 0x40, 0x40 }, 26941da177e4SLinus Torvalds { "SEEOP_WALL", 0x40, 0x40 }, 26951da177e4SLinus Torvalds { "SEEOP_EWDS", 0x40, 0x40 } 26961da177e4SLinus Torvalds}; 26971da177e4SLinus Torvalds 26981da177e4SLinus Torvaldsint 26991da177e4SLinus Torvaldsahd_seectl_print(u_int regvalue, u_int *cur_col, u_int wrap) 27001da177e4SLinus Torvalds{ 27011da177e4SLinus Torvalds return (ahd_print_register(SEECTL_parse_table, 10, "SEECTL", 27021da177e4SLinus Torvalds 0xbe, regvalue, cur_col, wrap)); 27031da177e4SLinus Torvalds} 27041da177e4SLinus Torvalds 27051da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SEESTAT_parse_table[] = { 27061da177e4SLinus Torvalds { "SEESTART", 0x01, 0x01 }, 27071da177e4SLinus Torvalds { "SEEBUSY", 0x02, 0x02 }, 27081da177e4SLinus Torvalds { "SEEARBACK", 0x04, 0x04 }, 27091da177e4SLinus Torvalds { "LDALTID_L", 0x08, 0x08 }, 27101da177e4SLinus Torvalds { "SEEOPCODE", 0x70, 0x70 }, 27111da177e4SLinus Torvalds { "INIT_DONE", 0x80, 0x80 } 27121da177e4SLinus Torvalds}; 27131da177e4SLinus Torvalds 27141da177e4SLinus Torvaldsint 27151da177e4SLinus Torvaldsahd_seestat_print(u_int regvalue, u_int *cur_col, u_int wrap) 27161da177e4SLinus Torvalds{ 27171da177e4SLinus Torvalds return (ahd_print_register(SEESTAT_parse_table, 6, "SEESTAT", 27181da177e4SLinus Torvalds 0xbe, regvalue, cur_col, wrap)); 27191da177e4SLinus Torvalds} 27201da177e4SLinus Torvalds 27211da177e4SLinus Torvaldsint 27221da177e4SLinus Torvaldsahd_scbcnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 27231da177e4SLinus Torvalds{ 27241da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SCBCNT", 27251da177e4SLinus Torvalds 0xbf, regvalue, cur_col, wrap)); 27261da177e4SLinus Torvalds} 27271da177e4SLinus Torvalds 27281da177e4SLinus Torvaldsint 27291da177e4SLinus Torvaldsahd_dfwaddr_print(u_int regvalue, u_int *cur_col, u_int wrap) 27301da177e4SLinus Torvalds{ 27311da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "DFWADDR", 27321da177e4SLinus Torvalds 0xc0, regvalue, cur_col, wrap)); 27331da177e4SLinus Torvalds} 27341da177e4SLinus Torvalds 27351da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t DSPFLTRCTL_parse_table[] = { 27361da177e4SLinus Torvalds { "DSPFCNTSEL", 0x0f, 0x0f }, 27371da177e4SLinus Torvalds { "EDGESENSE", 0x10, 0x10 }, 27381da177e4SLinus Torvalds { "FLTRDISABLE", 0x20, 0x20 } 27391da177e4SLinus Torvalds}; 27401da177e4SLinus Torvalds 27411da177e4SLinus Torvaldsint 27421da177e4SLinus Torvaldsahd_dspfltrctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 27431da177e4SLinus Torvalds{ 27441da177e4SLinus Torvalds return (ahd_print_register(DSPFLTRCTL_parse_table, 3, "DSPFLTRCTL", 27451da177e4SLinus Torvalds 0xc0, regvalue, cur_col, wrap)); 27461da177e4SLinus Torvalds} 27471da177e4SLinus Torvalds 27481da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t DSPDATACTL_parse_table[] = { 27491da177e4SLinus Torvalds { "XMITOFFSTDIS", 0x02, 0x02 }, 27501da177e4SLinus Torvalds { "RCVROFFSTDIS", 0x04, 0x04 }, 27511da177e4SLinus Torvalds { "DESQDIS", 0x10, 0x10 }, 27521da177e4SLinus Torvalds { "BYPASSENAB", 0x80, 0x80 } 27531da177e4SLinus Torvalds}; 27541da177e4SLinus Torvalds 27551da177e4SLinus Torvaldsint 27561da177e4SLinus Torvaldsahd_dspdatactl_print(u_int regvalue, u_int *cur_col, u_int wrap) 27571da177e4SLinus Torvalds{ 27581da177e4SLinus Torvalds return (ahd_print_register(DSPDATACTL_parse_table, 4, "DSPDATACTL", 27591da177e4SLinus Torvalds 0xc1, regvalue, cur_col, wrap)); 27601da177e4SLinus Torvalds} 27611da177e4SLinus Torvalds 27621da177e4SLinus Torvaldsint 27631da177e4SLinus Torvaldsahd_dfraddr_print(u_int regvalue, u_int *cur_col, u_int wrap) 27641da177e4SLinus Torvalds{ 27651da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "DFRADDR", 27661da177e4SLinus Torvalds 0xc2, regvalue, cur_col, wrap)); 27671da177e4SLinus Torvalds} 27681da177e4SLinus Torvalds 27691da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t DSPREQCTL_parse_table[] = { 27701da177e4SLinus Torvalds { "MANREQDLY", 0x3f, 0x3f }, 27711da177e4SLinus Torvalds { "MANREQCTL", 0xc0, 0xc0 } 27721da177e4SLinus Torvalds}; 27731da177e4SLinus Torvalds 27741da177e4SLinus Torvaldsint 27751da177e4SLinus Torvaldsahd_dspreqctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 27761da177e4SLinus Torvalds{ 27771da177e4SLinus Torvalds return (ahd_print_register(DSPREQCTL_parse_table, 2, "DSPREQCTL", 27781da177e4SLinus Torvalds 0xc2, regvalue, cur_col, wrap)); 27791da177e4SLinus Torvalds} 27801da177e4SLinus Torvalds 27811da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t DSPACKCTL_parse_table[] = { 27821da177e4SLinus Torvalds { "MANACKDLY", 0x3f, 0x3f }, 27831da177e4SLinus Torvalds { "MANACKCTL", 0xc0, 0xc0 } 27841da177e4SLinus Torvalds}; 27851da177e4SLinus Torvalds 27861da177e4SLinus Torvaldsint 27871da177e4SLinus Torvaldsahd_dspackctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 27881da177e4SLinus Torvalds{ 27891da177e4SLinus Torvalds return (ahd_print_register(DSPACKCTL_parse_table, 2, "DSPACKCTL", 27901da177e4SLinus Torvalds 0xc3, regvalue, cur_col, wrap)); 27911da177e4SLinus Torvalds} 27921da177e4SLinus Torvalds 27931da177e4SLinus Torvaldsint 27941da177e4SLinus Torvaldsahd_dfdat_print(u_int regvalue, u_int *cur_col, u_int wrap) 27951da177e4SLinus Torvalds{ 27961da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "DFDAT", 27971da177e4SLinus Torvalds 0xc4, regvalue, cur_col, wrap)); 27981da177e4SLinus Torvalds} 27991da177e4SLinus Torvalds 28001da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t DSPSELECT_parse_table[] = { 28011da177e4SLinus Torvalds { "DSPSEL", 0x1f, 0x1f }, 28021da177e4SLinus Torvalds { "AUTOINCEN", 0x80, 0x80 } 28031da177e4SLinus Torvalds}; 28041da177e4SLinus Torvalds 28051da177e4SLinus Torvaldsint 28061da177e4SLinus Torvaldsahd_dspselect_print(u_int regvalue, u_int *cur_col, u_int wrap) 28071da177e4SLinus Torvalds{ 28081da177e4SLinus Torvalds return (ahd_print_register(DSPSELECT_parse_table, 2, "DSPSELECT", 28091da177e4SLinus Torvalds 0xc4, regvalue, cur_col, wrap)); 28101da177e4SLinus Torvalds} 28111da177e4SLinus Torvalds 28121da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t WRTBIASCTL_parse_table[] = { 28131da177e4SLinus Torvalds { "XMITMANVAL", 0x3f, 0x3f }, 28141da177e4SLinus Torvalds { "AUTOXBCDIS", 0x80, 0x80 } 28151da177e4SLinus Torvalds}; 28161da177e4SLinus Torvalds 28171da177e4SLinus Torvaldsint 28181da177e4SLinus Torvaldsahd_wrtbiasctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 28191da177e4SLinus Torvalds{ 28201da177e4SLinus Torvalds return (ahd_print_register(WRTBIASCTL_parse_table, 2, "WRTBIASCTL", 28211da177e4SLinus Torvalds 0xc5, regvalue, cur_col, wrap)); 28221da177e4SLinus Torvalds} 28231da177e4SLinus Torvalds 28241da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t RCVRBIOSCTL_parse_table[] = { 28251da177e4SLinus Torvalds { "RCVRMANVAL", 0x3f, 0x3f }, 28261da177e4SLinus Torvalds { "AUTORBCDIS", 0x80, 0x80 } 28271da177e4SLinus Torvalds}; 28281da177e4SLinus Torvalds 28291da177e4SLinus Torvaldsint 28301da177e4SLinus Torvaldsahd_rcvrbiosctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 28311da177e4SLinus Torvalds{ 28321da177e4SLinus Torvalds return (ahd_print_register(RCVRBIOSCTL_parse_table, 2, "RCVRBIOSCTL", 28331da177e4SLinus Torvalds 0xc6, regvalue, cur_col, wrap)); 28341da177e4SLinus Torvalds} 28351da177e4SLinus Torvalds 28361da177e4SLinus Torvaldsint 28371da177e4SLinus Torvaldsahd_wrtbiascalc_print(u_int regvalue, u_int *cur_col, u_int wrap) 28381da177e4SLinus Torvalds{ 28391da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "WRTBIASCALC", 28401da177e4SLinus Torvalds 0xc7, regvalue, cur_col, wrap)); 28411da177e4SLinus Torvalds} 28421da177e4SLinus Torvalds 28431da177e4SLinus Torvaldsint 28441da177e4SLinus Torvaldsahd_rcvrbiascalc_print(u_int regvalue, u_int *cur_col, u_int wrap) 28451da177e4SLinus Torvalds{ 28461da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "RCVRBIASCALC", 28471da177e4SLinus Torvalds 0xc8, regvalue, cur_col, wrap)); 28481da177e4SLinus Torvalds} 28491da177e4SLinus Torvalds 28501da177e4SLinus Torvaldsint 285111668bb6SHannes Reineckeahd_dfptrs_print(u_int regvalue, u_int *cur_col, u_int wrap) 28521da177e4SLinus Torvalds{ 285311668bb6SHannes Reinecke return (ahd_print_register(NULL, 0, "DFPTRS", 285411668bb6SHannes Reinecke 0xc8, regvalue, cur_col, wrap)); 28551da177e4SLinus Torvalds} 28561da177e4SLinus Torvalds 28571da177e4SLinus Torvaldsint 28581da177e4SLinus Torvaldsahd_skewcalc_print(u_int regvalue, u_int *cur_col, u_int wrap) 28591da177e4SLinus Torvalds{ 28601da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SKEWCALC", 28611da177e4SLinus Torvalds 0xc9, regvalue, cur_col, wrap)); 28621da177e4SLinus Torvalds} 28631da177e4SLinus Torvalds 286411668bb6SHannes Reineckeint 286511668bb6SHannes Reineckeahd_dfbkptr_print(u_int regvalue, u_int *cur_col, u_int wrap) 286611668bb6SHannes Reinecke{ 286711668bb6SHannes Reinecke return (ahd_print_register(NULL, 0, "DFBKPTR", 286811668bb6SHannes Reinecke 0xc9, regvalue, cur_col, wrap)); 286911668bb6SHannes Reinecke} 287011668bb6SHannes Reinecke 28711da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t DFDBCTL_parse_table[] = { 28721da177e4SLinus Torvalds { "DFF_RAMBIST_EN", 0x01, 0x01 }, 28731da177e4SLinus Torvalds { "DFF_RAMBIST_DONE", 0x02, 0x02 }, 28741da177e4SLinus Torvalds { "DFF_RAMBIST_FAIL", 0x04, 0x04 }, 28751da177e4SLinus Torvalds { "DFF_DIR_ERR", 0x08, 0x08 }, 28761da177e4SLinus Torvalds { "DFF_CIO_RD_RDY", 0x10, 0x10 }, 28771da177e4SLinus Torvalds { "DFF_CIO_WR_RDY", 0x20, 0x20 } 28781da177e4SLinus Torvalds}; 28791da177e4SLinus Torvalds 28801da177e4SLinus Torvaldsint 28811da177e4SLinus Torvaldsahd_dfdbctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 28821da177e4SLinus Torvalds{ 28831da177e4SLinus Torvalds return (ahd_print_register(DFDBCTL_parse_table, 6, "DFDBCTL", 28841da177e4SLinus Torvalds 0xcb, regvalue, cur_col, wrap)); 28851da177e4SLinus Torvalds} 28861da177e4SLinus Torvalds 28871da177e4SLinus Torvaldsint 28881da177e4SLinus Torvaldsahd_dfscnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 28891da177e4SLinus Torvalds{ 28901da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "DFSCNT", 28911da177e4SLinus Torvalds 0xcc, regvalue, cur_col, wrap)); 28921da177e4SLinus Torvalds} 28931da177e4SLinus Torvalds 28941da177e4SLinus Torvaldsint 28951da177e4SLinus Torvaldsahd_dfbcnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 28961da177e4SLinus Torvalds{ 28971da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "DFBCNT", 28981da177e4SLinus Torvalds 0xce, regvalue, cur_col, wrap)); 28991da177e4SLinus Torvalds} 29001da177e4SLinus Torvalds 29011da177e4SLinus Torvaldsint 29021da177e4SLinus Torvaldsahd_ovlyaddr_print(u_int regvalue, u_int *cur_col, u_int wrap) 29031da177e4SLinus Torvalds{ 29041da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "OVLYADDR", 29051da177e4SLinus Torvalds 0xd4, regvalue, cur_col, wrap)); 29061da177e4SLinus Torvalds} 29071da177e4SLinus Torvalds 29081da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SEQCTL0_parse_table[] = { 29091da177e4SLinus Torvalds { "LOADRAM", 0x01, 0x01 }, 29101da177e4SLinus Torvalds { "SEQRESET", 0x02, 0x02 }, 29111da177e4SLinus Torvalds { "STEP", 0x04, 0x04 }, 29121da177e4SLinus Torvalds { "BRKADRINTEN", 0x08, 0x08 }, 29131da177e4SLinus Torvalds { "FASTMODE", 0x10, 0x10 }, 29141da177e4SLinus Torvalds { "FAILDIS", 0x20, 0x20 }, 29151da177e4SLinus Torvalds { "PAUSEDIS", 0x40, 0x40 }, 29161da177e4SLinus Torvalds { "PERRORDIS", 0x80, 0x80 } 29171da177e4SLinus Torvalds}; 29181da177e4SLinus Torvalds 29191da177e4SLinus Torvaldsint 29201da177e4SLinus Torvaldsahd_seqctl0_print(u_int regvalue, u_int *cur_col, u_int wrap) 29211da177e4SLinus Torvalds{ 29221da177e4SLinus Torvalds return (ahd_print_register(SEQCTL0_parse_table, 8, "SEQCTL0", 29231da177e4SLinus Torvalds 0xd6, regvalue, cur_col, wrap)); 29241da177e4SLinus Torvalds} 29251da177e4SLinus Torvalds 29261da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SEQCTL1_parse_table[] = { 29271da177e4SLinus Torvalds { "RAMBIST_EN", 0x01, 0x01 }, 29281da177e4SLinus Torvalds { "RAMBIST_FAIL", 0x02, 0x02 }, 29291da177e4SLinus Torvalds { "RAMBIST_DONE", 0x04, 0x04 }, 29301da177e4SLinus Torvalds { "OVRLAY_DATA_CHK", 0x08, 0x08 } 29311da177e4SLinus Torvalds}; 29321da177e4SLinus Torvalds 29331da177e4SLinus Torvaldsint 29341da177e4SLinus Torvaldsahd_seqctl1_print(u_int regvalue, u_int *cur_col, u_int wrap) 29351da177e4SLinus Torvalds{ 29361da177e4SLinus Torvalds return (ahd_print_register(SEQCTL1_parse_table, 4, "SEQCTL1", 29371da177e4SLinus Torvalds 0xd7, regvalue, cur_col, wrap)); 29381da177e4SLinus Torvalds} 29391da177e4SLinus Torvalds 29401da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t FLAGS_parse_table[] = { 29411da177e4SLinus Torvalds { "CARRY", 0x01, 0x01 }, 29421da177e4SLinus Torvalds { "ZERO", 0x02, 0x02 } 29431da177e4SLinus Torvalds}; 29441da177e4SLinus Torvalds 29451da177e4SLinus Torvaldsint 29461da177e4SLinus Torvaldsahd_flags_print(u_int regvalue, u_int *cur_col, u_int wrap) 29471da177e4SLinus Torvalds{ 29481da177e4SLinus Torvalds return (ahd_print_register(FLAGS_parse_table, 2, "FLAGS", 29491da177e4SLinus Torvalds 0xd8, regvalue, cur_col, wrap)); 29501da177e4SLinus Torvalds} 29511da177e4SLinus Torvalds 29521da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SEQINTCTL_parse_table[] = { 29531da177e4SLinus Torvalds { "IRET", 0x01, 0x01 }, 29541da177e4SLinus Torvalds { "INTMASK1", 0x02, 0x02 }, 29551da177e4SLinus Torvalds { "INTMASK2", 0x04, 0x04 }, 29561da177e4SLinus Torvalds { "SCS_SEQ_INT1M0", 0x08, 0x08 }, 29571da177e4SLinus Torvalds { "SCS_SEQ_INT1M1", 0x10, 0x10 }, 29581da177e4SLinus Torvalds { "INT1_CONTEXT", 0x20, 0x20 }, 29591da177e4SLinus Torvalds { "INTVEC1DSL", 0x80, 0x80 } 29601da177e4SLinus Torvalds}; 29611da177e4SLinus Torvalds 29621da177e4SLinus Torvaldsint 29631da177e4SLinus Torvaldsahd_seqintctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 29641da177e4SLinus Torvalds{ 29651da177e4SLinus Torvalds return (ahd_print_register(SEQINTCTL_parse_table, 7, "SEQINTCTL", 29661da177e4SLinus Torvalds 0xd9, regvalue, cur_col, wrap)); 29671da177e4SLinus Torvalds} 29681da177e4SLinus Torvalds 29691da177e4SLinus Torvaldsint 29701da177e4SLinus Torvaldsahd_seqram_print(u_int regvalue, u_int *cur_col, u_int wrap) 29711da177e4SLinus Torvalds{ 29721da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SEQRAM", 29731da177e4SLinus Torvalds 0xda, regvalue, cur_col, wrap)); 29741da177e4SLinus Torvalds} 29751da177e4SLinus Torvalds 29761da177e4SLinus Torvaldsint 29771da177e4SLinus Torvaldsahd_prgmcnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 29781da177e4SLinus Torvalds{ 29791da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "PRGMCNT", 29801da177e4SLinus Torvalds 0xde, regvalue, cur_col, wrap)); 29811da177e4SLinus Torvalds} 29821da177e4SLinus Torvalds 29831da177e4SLinus Torvaldsint 29841da177e4SLinus Torvaldsahd_accum_print(u_int regvalue, u_int *cur_col, u_int wrap) 29851da177e4SLinus Torvalds{ 29861da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "ACCUM", 29871da177e4SLinus Torvalds 0xe0, regvalue, cur_col, wrap)); 29881da177e4SLinus Torvalds} 29891da177e4SLinus Torvalds 29901da177e4SLinus Torvaldsint 29911da177e4SLinus Torvaldsahd_sindex_print(u_int regvalue, u_int *cur_col, u_int wrap) 29921da177e4SLinus Torvalds{ 29931da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SINDEX", 29941da177e4SLinus Torvalds 0xe2, regvalue, cur_col, wrap)); 29951da177e4SLinus Torvalds} 29961da177e4SLinus Torvalds 29971da177e4SLinus Torvaldsint 29981da177e4SLinus Torvaldsahd_dindex_print(u_int regvalue, u_int *cur_col, u_int wrap) 29991da177e4SLinus Torvalds{ 30001da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "DINDEX", 30011da177e4SLinus Torvalds 0xe4, regvalue, cur_col, wrap)); 30021da177e4SLinus Torvalds} 30031da177e4SLinus Torvalds 300411668bb6SHannes Reineckeint 300511668bb6SHannes Reineckeahd_brkaddr0_print(u_int regvalue, u_int *cur_col, u_int wrap) 300611668bb6SHannes Reinecke{ 300711668bb6SHannes Reinecke return (ahd_print_register(NULL, 0, "BRKADDR0", 300811668bb6SHannes Reinecke 0xe6, regvalue, cur_col, wrap)); 300911668bb6SHannes Reinecke} 301011668bb6SHannes Reinecke 30111da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t BRKADDR1_parse_table[] = { 30121da177e4SLinus Torvalds { "BRKDIS", 0x80, 0x80 } 30131da177e4SLinus Torvalds}; 30141da177e4SLinus Torvalds 30151da177e4SLinus Torvaldsint 30161da177e4SLinus Torvaldsahd_brkaddr1_print(u_int regvalue, u_int *cur_col, u_int wrap) 30171da177e4SLinus Torvalds{ 30181da177e4SLinus Torvalds return (ahd_print_register(BRKADDR1_parse_table, 1, "BRKADDR1", 30191da177e4SLinus Torvalds 0xe6, regvalue, cur_col, wrap)); 30201da177e4SLinus Torvalds} 30211da177e4SLinus Torvalds 30221da177e4SLinus Torvaldsint 30231da177e4SLinus Torvaldsahd_allones_print(u_int regvalue, u_int *cur_col, u_int wrap) 30241da177e4SLinus Torvalds{ 30251da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "ALLONES", 30261da177e4SLinus Torvalds 0xe8, regvalue, cur_col, wrap)); 30271da177e4SLinus Torvalds} 30281da177e4SLinus Torvalds 30291da177e4SLinus Torvaldsint 30301da177e4SLinus Torvaldsahd_allzeros_print(u_int regvalue, u_int *cur_col, u_int wrap) 30311da177e4SLinus Torvalds{ 30321da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "ALLZEROS", 30331da177e4SLinus Torvalds 0xea, regvalue, cur_col, wrap)); 30341da177e4SLinus Torvalds} 30351da177e4SLinus Torvalds 30361da177e4SLinus Torvaldsint 30371da177e4SLinus Torvaldsahd_none_print(u_int regvalue, u_int *cur_col, u_int wrap) 30381da177e4SLinus Torvalds{ 30391da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "NONE", 30401da177e4SLinus Torvalds 0xea, regvalue, cur_col, wrap)); 30411da177e4SLinus Torvalds} 30421da177e4SLinus Torvalds 30431da177e4SLinus Torvaldsint 30441da177e4SLinus Torvaldsahd_sindir_print(u_int regvalue, u_int *cur_col, u_int wrap) 30451da177e4SLinus Torvalds{ 30461da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SINDIR", 30471da177e4SLinus Torvalds 0xec, regvalue, cur_col, wrap)); 30481da177e4SLinus Torvalds} 30491da177e4SLinus Torvalds 30501da177e4SLinus Torvaldsint 30511da177e4SLinus Torvaldsahd_dindir_print(u_int regvalue, u_int *cur_col, u_int wrap) 30521da177e4SLinus Torvalds{ 30531da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "DINDIR", 30541da177e4SLinus Torvalds 0xed, regvalue, cur_col, wrap)); 30551da177e4SLinus Torvalds} 30561da177e4SLinus Torvalds 30571da177e4SLinus Torvaldsint 30581da177e4SLinus Torvaldsahd_function1_print(u_int regvalue, u_int *cur_col, u_int wrap) 30591da177e4SLinus Torvalds{ 30601da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "FUNCTION1", 30611da177e4SLinus Torvalds 0xf0, regvalue, cur_col, wrap)); 30621da177e4SLinus Torvalds} 30631da177e4SLinus Torvalds 30641da177e4SLinus Torvaldsint 30651da177e4SLinus Torvaldsahd_stack_print(u_int regvalue, u_int *cur_col, u_int wrap) 30661da177e4SLinus Torvalds{ 30671da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "STACK", 30681da177e4SLinus Torvalds 0xf2, regvalue, cur_col, wrap)); 30691da177e4SLinus Torvalds} 30701da177e4SLinus Torvalds 30711da177e4SLinus Torvaldsint 30721da177e4SLinus Torvaldsahd_intvec1_addr_print(u_int regvalue, u_int *cur_col, u_int wrap) 30731da177e4SLinus Torvalds{ 30741da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "INTVEC1_ADDR", 30751da177e4SLinus Torvalds 0xf4, regvalue, cur_col, wrap)); 30761da177e4SLinus Torvalds} 30771da177e4SLinus Torvalds 30781da177e4SLinus Torvaldsint 307911668bb6SHannes Reineckeahd_curaddr_print(u_int regvalue, u_int *cur_col, u_int wrap) 30801da177e4SLinus Torvalds{ 308111668bb6SHannes Reinecke return (ahd_print_register(NULL, 0, "CURADDR", 308211668bb6SHannes Reinecke 0xf4, regvalue, cur_col, wrap)); 30831da177e4SLinus Torvalds} 30841da177e4SLinus Torvalds 30851da177e4SLinus Torvaldsint 30861da177e4SLinus Torvaldsahd_lastaddr_print(u_int regvalue, u_int *cur_col, u_int wrap) 30871da177e4SLinus Torvalds{ 30881da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "LASTADDR", 30891da177e4SLinus Torvalds 0xf6, regvalue, cur_col, wrap)); 30901da177e4SLinus Torvalds} 30911da177e4SLinus Torvalds 30921da177e4SLinus Torvaldsint 309311668bb6SHannes Reineckeahd_intvec2_addr_print(u_int regvalue, u_int *cur_col, u_int wrap) 309411668bb6SHannes Reinecke{ 309511668bb6SHannes Reinecke return (ahd_print_register(NULL, 0, "INTVEC2_ADDR", 309611668bb6SHannes Reinecke 0xf6, regvalue, cur_col, wrap)); 309711668bb6SHannes Reinecke} 309811668bb6SHannes Reinecke 309911668bb6SHannes Reineckeint 31001da177e4SLinus Torvaldsahd_longjmp_addr_print(u_int regvalue, u_int *cur_col, u_int wrap) 31011da177e4SLinus Torvalds{ 31021da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "LONGJMP_ADDR", 31031da177e4SLinus Torvalds 0xf8, regvalue, cur_col, wrap)); 31041da177e4SLinus Torvalds} 31051da177e4SLinus Torvalds 31061da177e4SLinus Torvaldsint 31071da177e4SLinus Torvaldsahd_accum_save_print(u_int regvalue, u_int *cur_col, u_int wrap) 31081da177e4SLinus Torvalds{ 31091da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "ACCUM_SAVE", 31101da177e4SLinus Torvalds 0xfa, regvalue, cur_col, wrap)); 31111da177e4SLinus Torvalds} 31121da177e4SLinus Torvalds 31131da177e4SLinus Torvaldsint 31141da177e4SLinus Torvaldsahd_waiting_scb_tails_print(u_int regvalue, u_int *cur_col, u_int wrap) 31151da177e4SLinus Torvalds{ 31161da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "WAITING_SCB_TAILS", 31171da177e4SLinus Torvalds 0x100, regvalue, cur_col, wrap)); 31181da177e4SLinus Torvalds} 31191da177e4SLinus Torvalds 31201da177e4SLinus Torvaldsint 31211da177e4SLinus Torvaldsahd_ahd_pci_config_base_print(u_int regvalue, u_int *cur_col, u_int wrap) 31221da177e4SLinus Torvalds{ 31231da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "AHD_PCI_CONFIG_BASE", 31241da177e4SLinus Torvalds 0x100, regvalue, cur_col, wrap)); 31251da177e4SLinus Torvalds} 31261da177e4SLinus Torvalds 31271da177e4SLinus Torvaldsint 31281da177e4SLinus Torvaldsahd_sram_base_print(u_int regvalue, u_int *cur_col, u_int wrap) 31291da177e4SLinus Torvalds{ 31301da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SRAM_BASE", 31311da177e4SLinus Torvalds 0x100, regvalue, cur_col, wrap)); 31321da177e4SLinus Torvalds} 31331da177e4SLinus Torvalds 31341da177e4SLinus Torvaldsint 31351da177e4SLinus Torvaldsahd_waiting_tid_head_print(u_int regvalue, u_int *cur_col, u_int wrap) 31361da177e4SLinus Torvalds{ 31371da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "WAITING_TID_HEAD", 31381da177e4SLinus Torvalds 0x120, regvalue, cur_col, wrap)); 31391da177e4SLinus Torvalds} 31401da177e4SLinus Torvalds 31411da177e4SLinus Torvaldsint 31421da177e4SLinus Torvaldsahd_waiting_tid_tail_print(u_int regvalue, u_int *cur_col, u_int wrap) 31431da177e4SLinus Torvalds{ 31441da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "WAITING_TID_TAIL", 31451da177e4SLinus Torvalds 0x122, regvalue, cur_col, wrap)); 31461da177e4SLinus Torvalds} 31471da177e4SLinus Torvalds 31481da177e4SLinus Torvaldsint 31491da177e4SLinus Torvaldsahd_next_queued_scb_addr_print(u_int regvalue, u_int *cur_col, u_int wrap) 31501da177e4SLinus Torvalds{ 31511da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "NEXT_QUEUED_SCB_ADDR", 31521da177e4SLinus Torvalds 0x124, regvalue, cur_col, wrap)); 31531da177e4SLinus Torvalds} 31541da177e4SLinus Torvalds 31551da177e4SLinus Torvaldsint 31561da177e4SLinus Torvaldsahd_complete_scb_head_print(u_int regvalue, u_int *cur_col, u_int wrap) 31571da177e4SLinus Torvalds{ 31581da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "COMPLETE_SCB_HEAD", 31591da177e4SLinus Torvalds 0x128, regvalue, cur_col, wrap)); 31601da177e4SLinus Torvalds} 31611da177e4SLinus Torvalds 31621da177e4SLinus Torvaldsint 31631da177e4SLinus Torvaldsahd_complete_scb_dmainprog_head_print(u_int regvalue, u_int *cur_col, u_int wrap) 31641da177e4SLinus Torvalds{ 31651da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "COMPLETE_SCB_DMAINPROG_HEAD", 31661da177e4SLinus Torvalds 0x12a, regvalue, cur_col, wrap)); 31671da177e4SLinus Torvalds} 31681da177e4SLinus Torvalds 31691da177e4SLinus Torvaldsint 31701da177e4SLinus Torvaldsahd_complete_dma_scb_head_print(u_int regvalue, u_int *cur_col, u_int wrap) 31711da177e4SLinus Torvalds{ 31721da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "COMPLETE_DMA_SCB_HEAD", 31731da177e4SLinus Torvalds 0x12c, regvalue, cur_col, wrap)); 31741da177e4SLinus Torvalds} 31751da177e4SLinus Torvalds 31761da177e4SLinus Torvaldsint 317711668bb6SHannes Reineckeahd_complete_dma_scb_tail_print(u_int regvalue, u_int *cur_col, u_int wrap) 317811668bb6SHannes Reinecke{ 317911668bb6SHannes Reinecke return (ahd_print_register(NULL, 0, "COMPLETE_DMA_SCB_TAIL", 318011668bb6SHannes Reinecke 0x12e, regvalue, cur_col, wrap)); 318111668bb6SHannes Reinecke} 318211668bb6SHannes Reinecke 318311668bb6SHannes Reineckeint 318411668bb6SHannes Reineckeahd_complete_on_qfreeze_head_print(u_int regvalue, u_int *cur_col, u_int wrap) 318511668bb6SHannes Reinecke{ 318611668bb6SHannes Reinecke return (ahd_print_register(NULL, 0, "COMPLETE_ON_QFREEZE_HEAD", 318711668bb6SHannes Reinecke 0x130, regvalue, cur_col, wrap)); 318811668bb6SHannes Reinecke} 318911668bb6SHannes Reinecke 319011668bb6SHannes Reineckeint 31911da177e4SLinus Torvaldsahd_qfreeze_count_print(u_int regvalue, u_int *cur_col, u_int wrap) 31921da177e4SLinus Torvalds{ 31931da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "QFREEZE_COUNT", 319411668bb6SHannes Reinecke 0x132, regvalue, cur_col, wrap)); 319511668bb6SHannes Reinecke} 319611668bb6SHannes Reinecke 319711668bb6SHannes Reineckeint 319811668bb6SHannes Reineckeahd_kernel_qfreeze_count_print(u_int regvalue, u_int *cur_col, u_int wrap) 319911668bb6SHannes Reinecke{ 320011668bb6SHannes Reinecke return (ahd_print_register(NULL, 0, "KERNEL_QFREEZE_COUNT", 320111668bb6SHannes Reinecke 0x134, regvalue, cur_col, wrap)); 32021da177e4SLinus Torvalds} 32031da177e4SLinus Torvalds 32041da177e4SLinus Torvaldsint 32051da177e4SLinus Torvaldsahd_saved_mode_print(u_int regvalue, u_int *cur_col, u_int wrap) 32061da177e4SLinus Torvalds{ 32071da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SAVED_MODE", 320811668bb6SHannes Reinecke 0x136, regvalue, cur_col, wrap)); 32091da177e4SLinus Torvalds} 32101da177e4SLinus Torvalds 32111da177e4SLinus Torvaldsint 32121da177e4SLinus Torvaldsahd_msg_out_print(u_int regvalue, u_int *cur_col, u_int wrap) 32131da177e4SLinus Torvalds{ 32141da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "MSG_OUT", 321511668bb6SHannes Reinecke 0x137, regvalue, cur_col, wrap)); 32161da177e4SLinus Torvalds} 32171da177e4SLinus Torvalds 32181da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t DMAPARAMS_parse_table[] = { 32191da177e4SLinus Torvalds { "FIFORESET", 0x01, 0x01 }, 32201da177e4SLinus Torvalds { "FIFOFLUSH", 0x02, 0x02 }, 32211da177e4SLinus Torvalds { "DIRECTION", 0x04, 0x04 }, 32221da177e4SLinus Torvalds { "HDMAEN", 0x08, 0x08 }, 32231da177e4SLinus Torvalds { "HDMAENACK", 0x08, 0x08 }, 32241da177e4SLinus Torvalds { "SDMAEN", 0x10, 0x10 }, 32251da177e4SLinus Torvalds { "SDMAENACK", 0x10, 0x10 }, 32261da177e4SLinus Torvalds { "SCSIEN", 0x20, 0x20 }, 32271da177e4SLinus Torvalds { "WIDEODD", 0x40, 0x40 }, 32281da177e4SLinus Torvalds { "PRELOADEN", 0x80, 0x80 } 32291da177e4SLinus Torvalds}; 32301da177e4SLinus Torvalds 32311da177e4SLinus Torvaldsint 32321da177e4SLinus Torvaldsahd_dmaparams_print(u_int regvalue, u_int *cur_col, u_int wrap) 32331da177e4SLinus Torvalds{ 32341da177e4SLinus Torvalds return (ahd_print_register(DMAPARAMS_parse_table, 10, "DMAPARAMS", 323511668bb6SHannes Reinecke 0x138, regvalue, cur_col, wrap)); 32361da177e4SLinus Torvalds} 32371da177e4SLinus Torvalds 32381da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SEQ_FLAGS_parse_table[] = { 32391da177e4SLinus Torvalds { "NO_DISCONNECT", 0x01, 0x01 }, 32401da177e4SLinus Torvalds { "SPHASE_PENDING", 0x02, 0x02 }, 32411da177e4SLinus Torvalds { "DPHASE_PENDING", 0x04, 0x04 }, 32421da177e4SLinus Torvalds { "CMDPHASE_PENDING", 0x08, 0x08 }, 32431da177e4SLinus Torvalds { "TARG_CMD_PENDING", 0x10, 0x10 }, 32441da177e4SLinus Torvalds { "DPHASE", 0x20, 0x20 }, 32451da177e4SLinus Torvalds { "NO_CDB_SENT", 0x40, 0x40 }, 32461da177e4SLinus Torvalds { "TARGET_CMD_IS_TAGGED",0x40, 0x40 }, 32471da177e4SLinus Torvalds { "NOT_IDENTIFIED", 0x80, 0x80 } 32481da177e4SLinus Torvalds}; 32491da177e4SLinus Torvalds 32501da177e4SLinus Torvaldsint 32511da177e4SLinus Torvaldsahd_seq_flags_print(u_int regvalue, u_int *cur_col, u_int wrap) 32521da177e4SLinus Torvalds{ 32531da177e4SLinus Torvalds return (ahd_print_register(SEQ_FLAGS_parse_table, 9, "SEQ_FLAGS", 325411668bb6SHannes Reinecke 0x139, regvalue, cur_col, wrap)); 32551da177e4SLinus Torvalds} 32561da177e4SLinus Torvalds 32571da177e4SLinus Torvaldsint 32581da177e4SLinus Torvaldsahd_saved_scsiid_print(u_int regvalue, u_int *cur_col, u_int wrap) 32591da177e4SLinus Torvalds{ 32601da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SAVED_SCSIID", 326111668bb6SHannes Reinecke 0x13a, regvalue, cur_col, wrap)); 32621da177e4SLinus Torvalds} 32631da177e4SLinus Torvalds 32641da177e4SLinus Torvaldsint 32651da177e4SLinus Torvaldsahd_saved_lun_print(u_int regvalue, u_int *cur_col, u_int wrap) 32661da177e4SLinus Torvalds{ 32671da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SAVED_LUN", 326811668bb6SHannes Reinecke 0x13b, regvalue, cur_col, wrap)); 32691da177e4SLinus Torvalds} 32701da177e4SLinus Torvalds 32711da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t LASTPHASE_parse_table[] = { 32721da177e4SLinus Torvalds { "P_DATAOUT", 0x00, 0xe0 }, 32731da177e4SLinus Torvalds { "P_DATAOUT_DT", 0x20, 0xe0 }, 32741da177e4SLinus Torvalds { "P_DATAIN", 0x40, 0xe0 }, 32751da177e4SLinus Torvalds { "P_DATAIN_DT", 0x60, 0xe0 }, 32761da177e4SLinus Torvalds { "P_COMMAND", 0x80, 0xe0 }, 32771da177e4SLinus Torvalds { "P_MESGOUT", 0xa0, 0xe0 }, 32781da177e4SLinus Torvalds { "P_STATUS", 0xc0, 0xe0 }, 32791da177e4SLinus Torvalds { "P_MESGIN", 0xe0, 0xe0 }, 32801da177e4SLinus Torvalds { "P_BUSFREE", 0x01, 0x01 }, 32811da177e4SLinus Torvalds { "MSGI", 0x20, 0x20 }, 32821da177e4SLinus Torvalds { "IOI", 0x40, 0x40 }, 32831da177e4SLinus Torvalds { "CDI", 0x80, 0x80 }, 32841da177e4SLinus Torvalds { "PHASE_MASK", 0xe0, 0xe0 } 32851da177e4SLinus Torvalds}; 32861da177e4SLinus Torvalds 32871da177e4SLinus Torvaldsint 32881da177e4SLinus Torvaldsahd_lastphase_print(u_int regvalue, u_int *cur_col, u_int wrap) 32891da177e4SLinus Torvalds{ 32901da177e4SLinus Torvalds return (ahd_print_register(LASTPHASE_parse_table, 13, "LASTPHASE", 329111668bb6SHannes Reinecke 0x13c, regvalue, cur_col, wrap)); 32921da177e4SLinus Torvalds} 32931da177e4SLinus Torvalds 32941da177e4SLinus Torvaldsint 32951da177e4SLinus Torvaldsahd_qoutfifo_entry_valid_tag_print(u_int regvalue, u_int *cur_col, u_int wrap) 32961da177e4SLinus Torvalds{ 32971da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "QOUTFIFO_ENTRY_VALID_TAG", 329811668bb6SHannes Reinecke 0x13d, regvalue, cur_col, wrap)); 32991da177e4SLinus Torvalds} 33001da177e4SLinus Torvalds 33011da177e4SLinus Torvaldsint 33021da177e4SLinus Torvaldsahd_kernel_tqinpos_print(u_int regvalue, u_int *cur_col, u_int wrap) 33031da177e4SLinus Torvalds{ 33041da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "KERNEL_TQINPOS", 330511668bb6SHannes Reinecke 0x13e, regvalue, cur_col, wrap)); 33061da177e4SLinus Torvalds} 33071da177e4SLinus Torvalds 33081da177e4SLinus Torvaldsint 33091da177e4SLinus Torvaldsahd_tqinpos_print(u_int regvalue, u_int *cur_col, u_int wrap) 33101da177e4SLinus Torvalds{ 33111da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "TQINPOS", 331211668bb6SHannes Reinecke 0x13f, regvalue, cur_col, wrap)); 331311668bb6SHannes Reinecke} 331411668bb6SHannes Reinecke 331511668bb6SHannes Reineckeint 331611668bb6SHannes Reineckeahd_shared_data_addr_print(u_int regvalue, u_int *cur_col, u_int wrap) 331711668bb6SHannes Reinecke{ 331811668bb6SHannes Reinecke return (ahd_print_register(NULL, 0, "SHARED_DATA_ADDR", 331911668bb6SHannes Reinecke 0x140, regvalue, cur_col, wrap)); 332011668bb6SHannes Reinecke} 332111668bb6SHannes Reinecke 332211668bb6SHannes Reineckeint 332311668bb6SHannes Reineckeahd_qoutfifo_next_addr_print(u_int regvalue, u_int *cur_col, u_int wrap) 332411668bb6SHannes Reinecke{ 332511668bb6SHannes Reinecke return (ahd_print_register(NULL, 0, "QOUTFIFO_NEXT_ADDR", 332611668bb6SHannes Reinecke 0x144, regvalue, cur_col, wrap)); 33271da177e4SLinus Torvalds} 33281da177e4SLinus Torvalds 33291da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t ARG_1_parse_table[] = { 33301da177e4SLinus Torvalds { "CONT_MSG_LOOP_TARG", 0x02, 0x02 }, 33311da177e4SLinus Torvalds { "CONT_MSG_LOOP_READ", 0x03, 0x03 }, 33321da177e4SLinus Torvalds { "CONT_MSG_LOOP_WRITE",0x04, 0x04 }, 33331da177e4SLinus Torvalds { "EXIT_MSG_LOOP", 0x08, 0x08 }, 33341da177e4SLinus Torvalds { "MSGOUT_PHASEMIS", 0x10, 0x10 }, 33351da177e4SLinus Torvalds { "SEND_REJ", 0x20, 0x20 }, 33361da177e4SLinus Torvalds { "SEND_SENSE", 0x40, 0x40 }, 33371da177e4SLinus Torvalds { "SEND_MSG", 0x80, 0x80 } 33381da177e4SLinus Torvalds}; 33391da177e4SLinus Torvalds 33401da177e4SLinus Torvaldsint 33411da177e4SLinus Torvaldsahd_arg_1_print(u_int regvalue, u_int *cur_col, u_int wrap) 33421da177e4SLinus Torvalds{ 33431da177e4SLinus Torvalds return (ahd_print_register(ARG_1_parse_table, 8, "ARG_1", 334411668bb6SHannes Reinecke 0x148, regvalue, cur_col, wrap)); 33451da177e4SLinus Torvalds} 33461da177e4SLinus Torvalds 33471da177e4SLinus Torvaldsint 33481da177e4SLinus Torvaldsahd_arg_2_print(u_int regvalue, u_int *cur_col, u_int wrap) 33491da177e4SLinus Torvalds{ 33501da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "ARG_2", 335111668bb6SHannes Reinecke 0x149, regvalue, cur_col, wrap)); 33521da177e4SLinus Torvalds} 33531da177e4SLinus Torvalds 33541da177e4SLinus Torvaldsint 33551da177e4SLinus Torvaldsahd_last_msg_print(u_int regvalue, u_int *cur_col, u_int wrap) 33561da177e4SLinus Torvalds{ 33571da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "LAST_MSG", 335811668bb6SHannes Reinecke 0x14a, regvalue, cur_col, wrap)); 33591da177e4SLinus Torvalds} 33601da177e4SLinus Torvalds 33611da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SCSISEQ_TEMPLATE_parse_table[] = { 33621da177e4SLinus Torvalds { "ALTSTIM", 0x01, 0x01 }, 33631da177e4SLinus Torvalds { "ENAUTOATNP", 0x02, 0x02 }, 33641da177e4SLinus Torvalds { "MANUALP", 0x0c, 0x0c }, 33651da177e4SLinus Torvalds { "ENRSELI", 0x10, 0x10 }, 33661da177e4SLinus Torvalds { "ENSELI", 0x20, 0x20 }, 33671da177e4SLinus Torvalds { "MANUALCTL", 0x40, 0x40 } 33681da177e4SLinus Torvalds}; 33691da177e4SLinus Torvalds 33701da177e4SLinus Torvaldsint 33711da177e4SLinus Torvaldsahd_scsiseq_template_print(u_int regvalue, u_int *cur_col, u_int wrap) 33721da177e4SLinus Torvalds{ 33731da177e4SLinus Torvalds return (ahd_print_register(SCSISEQ_TEMPLATE_parse_table, 6, "SCSISEQ_TEMPLATE", 337411668bb6SHannes Reinecke 0x14b, regvalue, cur_col, wrap)); 33751da177e4SLinus Torvalds} 33761da177e4SLinus Torvalds 33771da177e4SLinus Torvaldsint 33781da177e4SLinus Torvaldsahd_initiator_tag_print(u_int regvalue, u_int *cur_col, u_int wrap) 33791da177e4SLinus Torvalds{ 33801da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "INITIATOR_TAG", 338111668bb6SHannes Reinecke 0x14c, regvalue, cur_col, wrap)); 33821da177e4SLinus Torvalds} 33831da177e4SLinus Torvalds 33841da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SEQ_FLAGS2_parse_table[] = { 3385*53467e63SHannes Reinecke { "PENDING_MK_MESSAGE", 0x01, 0x01 }, 33861da177e4SLinus Torvalds { "TARGET_MSG_PENDING", 0x02, 0x02 }, 33871da177e4SLinus Torvalds { "SELECTOUT_QFROZEN", 0x04, 0x04 } 33881da177e4SLinus Torvalds}; 33891da177e4SLinus Torvalds 33901da177e4SLinus Torvaldsint 33911da177e4SLinus Torvaldsahd_seq_flags2_print(u_int regvalue, u_int *cur_col, u_int wrap) 33921da177e4SLinus Torvalds{ 3393*53467e63SHannes Reinecke return (ahd_print_register(SEQ_FLAGS2_parse_table, 3, "SEQ_FLAGS2", 339411668bb6SHannes Reinecke 0x14d, regvalue, cur_col, wrap)); 33951da177e4SLinus Torvalds} 33961da177e4SLinus Torvalds 33971da177e4SLinus Torvaldsint 33981da177e4SLinus Torvaldsahd_allocfifo_scbptr_print(u_int regvalue, u_int *cur_col, u_int wrap) 33991da177e4SLinus Torvalds{ 34001da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "ALLOCFIFO_SCBPTR", 340111668bb6SHannes Reinecke 0x14e, regvalue, cur_col, wrap)); 34021da177e4SLinus Torvalds} 34031da177e4SLinus Torvalds 34041da177e4SLinus Torvaldsint 34051da177e4SLinus Torvaldsahd_int_coalescing_timer_print(u_int regvalue, u_int *cur_col, u_int wrap) 34061da177e4SLinus Torvalds{ 34071da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "INT_COALESCING_TIMER", 340811668bb6SHannes Reinecke 0x150, regvalue, cur_col, wrap)); 34091da177e4SLinus Torvalds} 34101da177e4SLinus Torvalds 34111da177e4SLinus Torvaldsint 34121da177e4SLinus Torvaldsahd_int_coalescing_maxcmds_print(u_int regvalue, u_int *cur_col, u_int wrap) 34131da177e4SLinus Torvalds{ 34141da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "INT_COALESCING_MAXCMDS", 341511668bb6SHannes Reinecke 0x152, regvalue, cur_col, wrap)); 34161da177e4SLinus Torvalds} 34171da177e4SLinus Torvalds 34181da177e4SLinus Torvaldsint 34191da177e4SLinus Torvaldsahd_int_coalescing_mincmds_print(u_int regvalue, u_int *cur_col, u_int wrap) 34201da177e4SLinus Torvalds{ 34211da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "INT_COALESCING_MINCMDS", 342211668bb6SHannes Reinecke 0x153, regvalue, cur_col, wrap)); 34231da177e4SLinus Torvalds} 34241da177e4SLinus Torvalds 34251da177e4SLinus Torvaldsint 34261da177e4SLinus Torvaldsahd_cmds_pending_print(u_int regvalue, u_int *cur_col, u_int wrap) 34271da177e4SLinus Torvalds{ 34281da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "CMDS_PENDING", 342911668bb6SHannes Reinecke 0x154, regvalue, cur_col, wrap)); 34301da177e4SLinus Torvalds} 34311da177e4SLinus Torvalds 34321da177e4SLinus Torvaldsint 34331da177e4SLinus Torvaldsahd_int_coalescing_cmdcount_print(u_int regvalue, u_int *cur_col, u_int wrap) 34341da177e4SLinus Torvalds{ 34351da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "INT_COALESCING_CMDCOUNT", 343611668bb6SHannes Reinecke 0x156, regvalue, cur_col, wrap)); 34371da177e4SLinus Torvalds} 34381da177e4SLinus Torvalds 34391da177e4SLinus Torvaldsint 34401da177e4SLinus Torvaldsahd_local_hs_mailbox_print(u_int regvalue, u_int *cur_col, u_int wrap) 34411da177e4SLinus Torvalds{ 34421da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "LOCAL_HS_MAILBOX", 344311668bb6SHannes Reinecke 0x157, regvalue, cur_col, wrap)); 34441da177e4SLinus Torvalds} 34451da177e4SLinus Torvalds 34461da177e4SLinus Torvaldsint 34471da177e4SLinus Torvaldsahd_cmdsize_table_print(u_int regvalue, u_int *cur_col, u_int wrap) 34481da177e4SLinus Torvalds{ 34491da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "CMDSIZE_TABLE", 345011668bb6SHannes Reinecke 0x158, regvalue, cur_col, wrap)); 34511da177e4SLinus Torvalds} 34521da177e4SLinus Torvalds 34531da177e4SLinus Torvaldsint 3454*53467e63SHannes Reineckeahd_mk_message_scb_print(u_int regvalue, u_int *cur_col, u_int wrap) 3455*53467e63SHannes Reinecke{ 3456*53467e63SHannes Reinecke return (ahd_print_register(NULL, 0, "MK_MESSAGE_SCB", 3457*53467e63SHannes Reinecke 0x160, regvalue, cur_col, wrap)); 3458*53467e63SHannes Reinecke} 3459*53467e63SHannes Reinecke 3460*53467e63SHannes Reineckeint 3461*53467e63SHannes Reineckeahd_mk_message_scsiid_print(u_int regvalue, u_int *cur_col, u_int wrap) 3462*53467e63SHannes Reinecke{ 3463*53467e63SHannes Reinecke return (ahd_print_register(NULL, 0, "MK_MESSAGE_SCSIID", 3464*53467e63SHannes Reinecke 0x162, regvalue, cur_col, wrap)); 3465*53467e63SHannes Reinecke} 3466*53467e63SHannes Reinecke 3467*53467e63SHannes Reineckeint 34681da177e4SLinus Torvaldsahd_scb_base_print(u_int regvalue, u_int *cur_col, u_int wrap) 34691da177e4SLinus Torvalds{ 34701da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SCB_BASE", 34711da177e4SLinus Torvalds 0x180, regvalue, cur_col, wrap)); 34721da177e4SLinus Torvalds} 34731da177e4SLinus Torvalds 34741da177e4SLinus Torvaldsint 34751da177e4SLinus Torvaldsahd_scb_residual_datacnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 34761da177e4SLinus Torvalds{ 34771da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SCB_RESIDUAL_DATACNT", 34781da177e4SLinus Torvalds 0x180, regvalue, cur_col, wrap)); 34791da177e4SLinus Torvalds} 34801da177e4SLinus Torvalds 34811da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SCB_RESIDUAL_SGPTR_parse_table[] = { 34821da177e4SLinus Torvalds { "SG_LIST_NULL", 0x01, 0x01 }, 34831da177e4SLinus Torvalds { "SG_OVERRUN_RESID", 0x02, 0x02 }, 34841da177e4SLinus Torvalds { "SG_ADDR_MASK", 0xf8, 0xf8 } 34851da177e4SLinus Torvalds}; 34861da177e4SLinus Torvalds 34871da177e4SLinus Torvaldsint 34881da177e4SLinus Torvaldsahd_scb_residual_sgptr_print(u_int regvalue, u_int *cur_col, u_int wrap) 34891da177e4SLinus Torvalds{ 34901da177e4SLinus Torvalds return (ahd_print_register(SCB_RESIDUAL_SGPTR_parse_table, 3, "SCB_RESIDUAL_SGPTR", 34911da177e4SLinus Torvalds 0x184, regvalue, cur_col, wrap)); 34921da177e4SLinus Torvalds} 34931da177e4SLinus Torvalds 34941da177e4SLinus Torvaldsint 34951da177e4SLinus Torvaldsahd_scb_scsi_status_print(u_int regvalue, u_int *cur_col, u_int wrap) 34961da177e4SLinus Torvalds{ 34971da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SCB_SCSI_STATUS", 34981da177e4SLinus Torvalds 0x188, regvalue, cur_col, wrap)); 34991da177e4SLinus Torvalds} 35001da177e4SLinus Torvalds 35011da177e4SLinus Torvaldsint 35021da177e4SLinus Torvaldsahd_scb_target_phases_print(u_int regvalue, u_int *cur_col, u_int wrap) 35031da177e4SLinus Torvalds{ 35041da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SCB_TARGET_PHASES", 35051da177e4SLinus Torvalds 0x189, regvalue, cur_col, wrap)); 35061da177e4SLinus Torvalds} 35071da177e4SLinus Torvalds 35081da177e4SLinus Torvaldsint 35091da177e4SLinus Torvaldsahd_scb_target_data_dir_print(u_int regvalue, u_int *cur_col, u_int wrap) 35101da177e4SLinus Torvalds{ 35111da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SCB_TARGET_DATA_DIR", 35121da177e4SLinus Torvalds 0x18a, regvalue, cur_col, wrap)); 35131da177e4SLinus Torvalds} 35141da177e4SLinus Torvalds 35151da177e4SLinus Torvaldsint 35161da177e4SLinus Torvaldsahd_scb_target_itag_print(u_int regvalue, u_int *cur_col, u_int wrap) 35171da177e4SLinus Torvalds{ 35181da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SCB_TARGET_ITAG", 35191da177e4SLinus Torvalds 0x18b, regvalue, cur_col, wrap)); 35201da177e4SLinus Torvalds} 35211da177e4SLinus Torvalds 35221da177e4SLinus Torvaldsint 35231da177e4SLinus Torvaldsahd_scb_sense_busaddr_print(u_int regvalue, u_int *cur_col, u_int wrap) 35241da177e4SLinus Torvalds{ 35251da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SCB_SENSE_BUSADDR", 35261da177e4SLinus Torvalds 0x18c, regvalue, cur_col, wrap)); 35271da177e4SLinus Torvalds} 35281da177e4SLinus Torvalds 35291da177e4SLinus Torvaldsint 35301da177e4SLinus Torvaldsahd_scb_tag_print(u_int regvalue, u_int *cur_col, u_int wrap) 35311da177e4SLinus Torvalds{ 35321da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SCB_TAG", 35331da177e4SLinus Torvalds 0x190, regvalue, cur_col, wrap)); 35341da177e4SLinus Torvalds} 35351da177e4SLinus Torvalds 35361da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SCB_CONTROL_parse_table[] = { 35371da177e4SLinus Torvalds { "SCB_TAG_TYPE", 0x03, 0x03 }, 35381da177e4SLinus Torvalds { "DISCONNECTED", 0x04, 0x04 }, 35391da177e4SLinus Torvalds { "STATUS_RCVD", 0x08, 0x08 }, 35401da177e4SLinus Torvalds { "MK_MESSAGE", 0x10, 0x10 }, 35411da177e4SLinus Torvalds { "TAG_ENB", 0x20, 0x20 }, 35421da177e4SLinus Torvalds { "DISCENB", 0x40, 0x40 }, 35431da177e4SLinus Torvalds { "TARGET_SCB", 0x80, 0x80 } 35441da177e4SLinus Torvalds}; 35451da177e4SLinus Torvalds 35461da177e4SLinus Torvaldsint 35471da177e4SLinus Torvaldsahd_scb_control_print(u_int regvalue, u_int *cur_col, u_int wrap) 35481da177e4SLinus Torvalds{ 35491da177e4SLinus Torvalds return (ahd_print_register(SCB_CONTROL_parse_table, 7, "SCB_CONTROL", 35501da177e4SLinus Torvalds 0x192, regvalue, cur_col, wrap)); 35511da177e4SLinus Torvalds} 35521da177e4SLinus Torvalds 35531da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SCB_SCSIID_parse_table[] = { 35541da177e4SLinus Torvalds { "OID", 0x0f, 0x0f }, 35551da177e4SLinus Torvalds { "TID", 0xf0, 0xf0 } 35561da177e4SLinus Torvalds}; 35571da177e4SLinus Torvalds 35581da177e4SLinus Torvaldsint 35591da177e4SLinus Torvaldsahd_scb_scsiid_print(u_int regvalue, u_int *cur_col, u_int wrap) 35601da177e4SLinus Torvalds{ 35611da177e4SLinus Torvalds return (ahd_print_register(SCB_SCSIID_parse_table, 2, "SCB_SCSIID", 35621da177e4SLinus Torvalds 0x193, regvalue, cur_col, wrap)); 35631da177e4SLinus Torvalds} 35641da177e4SLinus Torvalds 35651da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SCB_LUN_parse_table[] = { 35661da177e4SLinus Torvalds { "LID", 0xff, 0xff } 35671da177e4SLinus Torvalds}; 35681da177e4SLinus Torvalds 35691da177e4SLinus Torvaldsint 35701da177e4SLinus Torvaldsahd_scb_lun_print(u_int regvalue, u_int *cur_col, u_int wrap) 35711da177e4SLinus Torvalds{ 35721da177e4SLinus Torvalds return (ahd_print_register(SCB_LUN_parse_table, 1, "SCB_LUN", 35731da177e4SLinus Torvalds 0x194, regvalue, cur_col, wrap)); 35741da177e4SLinus Torvalds} 35751da177e4SLinus Torvalds 35761da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SCB_TASK_ATTRIBUTE_parse_table[] = { 35771da177e4SLinus Torvalds { "SCB_XFERLEN_ODD", 0x01, 0x01 } 35781da177e4SLinus Torvalds}; 35791da177e4SLinus Torvalds 35801da177e4SLinus Torvaldsint 35811da177e4SLinus Torvaldsahd_scb_task_attribute_print(u_int regvalue, u_int *cur_col, u_int wrap) 35821da177e4SLinus Torvalds{ 35831da177e4SLinus Torvalds return (ahd_print_register(SCB_TASK_ATTRIBUTE_parse_table, 1, "SCB_TASK_ATTRIBUTE", 35841da177e4SLinus Torvalds 0x195, regvalue, cur_col, wrap)); 35851da177e4SLinus Torvalds} 35861da177e4SLinus Torvalds 35871da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SCB_CDB_LEN_parse_table[] = { 35881da177e4SLinus Torvalds { "SCB_CDB_LEN_PTR", 0x80, 0x80 } 35891da177e4SLinus Torvalds}; 35901da177e4SLinus Torvalds 35911da177e4SLinus Torvaldsint 35921da177e4SLinus Torvaldsahd_scb_cdb_len_print(u_int regvalue, u_int *cur_col, u_int wrap) 35931da177e4SLinus Torvalds{ 35941da177e4SLinus Torvalds return (ahd_print_register(SCB_CDB_LEN_parse_table, 1, "SCB_CDB_LEN", 35951da177e4SLinus Torvalds 0x196, regvalue, cur_col, wrap)); 35961da177e4SLinus Torvalds} 35971da177e4SLinus Torvalds 35981da177e4SLinus Torvaldsint 35991da177e4SLinus Torvaldsahd_scb_task_management_print(u_int regvalue, u_int *cur_col, u_int wrap) 36001da177e4SLinus Torvalds{ 36011da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SCB_TASK_MANAGEMENT", 36021da177e4SLinus Torvalds 0x197, regvalue, cur_col, wrap)); 36031da177e4SLinus Torvalds} 36041da177e4SLinus Torvalds 36051da177e4SLinus Torvaldsint 36061da177e4SLinus Torvaldsahd_scb_dataptr_print(u_int regvalue, u_int *cur_col, u_int wrap) 36071da177e4SLinus Torvalds{ 36081da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SCB_DATAPTR", 36091da177e4SLinus Torvalds 0x198, regvalue, cur_col, wrap)); 36101da177e4SLinus Torvalds} 36111da177e4SLinus Torvalds 36121da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SCB_DATACNT_parse_table[] = { 36131da177e4SLinus Torvalds { "SG_HIGH_ADDR_BITS", 0x7f, 0x7f }, 36141da177e4SLinus Torvalds { "SG_LAST_SEG", 0x80, 0x80 } 36151da177e4SLinus Torvalds}; 36161da177e4SLinus Torvalds 36171da177e4SLinus Torvaldsint 36181da177e4SLinus Torvaldsahd_scb_datacnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 36191da177e4SLinus Torvalds{ 36201da177e4SLinus Torvalds return (ahd_print_register(SCB_DATACNT_parse_table, 2, "SCB_DATACNT", 36211da177e4SLinus Torvalds 0x1a0, regvalue, cur_col, wrap)); 36221da177e4SLinus Torvalds} 36231da177e4SLinus Torvalds 36241da177e4SLinus Torvaldsstatic ahd_reg_parse_entry_t SCB_SGPTR_parse_table[] = { 36251da177e4SLinus Torvalds { "SG_LIST_NULL", 0x01, 0x01 }, 36261da177e4SLinus Torvalds { "SG_FULL_RESID", 0x02, 0x02 }, 36271da177e4SLinus Torvalds { "SG_STATUS_VALID", 0x04, 0x04 } 36281da177e4SLinus Torvalds}; 36291da177e4SLinus Torvalds 36301da177e4SLinus Torvaldsint 36311da177e4SLinus Torvaldsahd_scb_sgptr_print(u_int regvalue, u_int *cur_col, u_int wrap) 36321da177e4SLinus Torvalds{ 36331da177e4SLinus Torvalds return (ahd_print_register(SCB_SGPTR_parse_table, 3, "SCB_SGPTR", 36341da177e4SLinus Torvalds 0x1a4, regvalue, cur_col, wrap)); 36351da177e4SLinus Torvalds} 36361da177e4SLinus Torvalds 36371da177e4SLinus Torvaldsint 36381da177e4SLinus Torvaldsahd_scb_busaddr_print(u_int regvalue, u_int *cur_col, u_int wrap) 36391da177e4SLinus Torvalds{ 36401da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SCB_BUSADDR", 36411da177e4SLinus Torvalds 0x1a8, regvalue, cur_col, wrap)); 36421da177e4SLinus Torvalds} 36431da177e4SLinus Torvalds 36441da177e4SLinus Torvaldsint 36451da177e4SLinus Torvaldsahd_scb_next_print(u_int regvalue, u_int *cur_col, u_int wrap) 36461da177e4SLinus Torvalds{ 36471da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SCB_NEXT", 36481da177e4SLinus Torvalds 0x1ac, regvalue, cur_col, wrap)); 36491da177e4SLinus Torvalds} 36501da177e4SLinus Torvalds 36511da177e4SLinus Torvaldsint 36521da177e4SLinus Torvaldsahd_scb_next2_print(u_int regvalue, u_int *cur_col, u_int wrap) 36531da177e4SLinus Torvalds{ 36541da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SCB_NEXT2", 36551da177e4SLinus Torvalds 0x1ae, regvalue, cur_col, wrap)); 36561da177e4SLinus Torvalds} 36571da177e4SLinus Torvalds 36581da177e4SLinus Torvaldsint 36591da177e4SLinus Torvaldsahd_scb_spare_print(u_int regvalue, u_int *cur_col, u_int wrap) 36601da177e4SLinus Torvalds{ 36611da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SCB_SPARE", 36621da177e4SLinus Torvalds 0x1b0, regvalue, cur_col, wrap)); 36631da177e4SLinus Torvalds} 36641da177e4SLinus Torvalds 36651da177e4SLinus Torvaldsint 36661da177e4SLinus Torvaldsahd_scb_disconnected_lists_print(u_int regvalue, u_int *cur_col, u_int wrap) 36671da177e4SLinus Torvalds{ 36681da177e4SLinus Torvalds return (ahd_print_register(NULL, 0, "SCB_DISCONNECTED_LISTS", 36691da177e4SLinus Torvalds 0x1b8, regvalue, cur_col, wrap)); 36701da177e4SLinus Torvalds} 36711da177e4SLinus Torvalds 3672