18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * DO NOT EDIT - This file is automatically generated 38c2ecf20Sopenharmony_ci * from the following source files: 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * $Id: //depot/aic7xxx/aic7xxx/aic79xx.seq#120 $ 68c2ecf20Sopenharmony_ci * $Id: //depot/aic7xxx/aic7xxx/aic79xx.reg#77 $ 78c2ecf20Sopenharmony_ci */ 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#include "aic79xx_osm.h" 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t INTSTAT_parse_table[] = { 128c2ecf20Sopenharmony_ci { "SPLTINT", 0x01, 0x01 }, 138c2ecf20Sopenharmony_ci { "CMDCMPLT", 0x02, 0x02 }, 148c2ecf20Sopenharmony_ci { "SEQINT", 0x04, 0x04 }, 158c2ecf20Sopenharmony_ci { "SCSIINT", 0x08, 0x08 }, 168c2ecf20Sopenharmony_ci { "PCIINT", 0x10, 0x10 }, 178c2ecf20Sopenharmony_ci { "SWTMINT", 0x20, 0x20 }, 188c2ecf20Sopenharmony_ci { "BRKADRINT", 0x40, 0x40 }, 198c2ecf20Sopenharmony_ci { "HWERRINT", 0x80, 0x80 }, 208c2ecf20Sopenharmony_ci { "INT_PEND", 0xff, 0xff } 218c2ecf20Sopenharmony_ci}; 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ciint 248c2ecf20Sopenharmony_ciahd_intstat_print(u_int regvalue, u_int *cur_col, u_int wrap) 258c2ecf20Sopenharmony_ci{ 268c2ecf20Sopenharmony_ci return (ahd_print_register(INTSTAT_parse_table, 9, "INTSTAT", 278c2ecf20Sopenharmony_ci 0x01, regvalue, cur_col, wrap)); 288c2ecf20Sopenharmony_ci} 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t HS_MAILBOX_parse_table[] = { 318c2ecf20Sopenharmony_ci { "ENINT_COALESCE", 0x40, 0x40 }, 328c2ecf20Sopenharmony_ci { "HOST_TQINPOS", 0x80, 0x80 } 338c2ecf20Sopenharmony_ci}; 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ciint 368c2ecf20Sopenharmony_ciahd_hs_mailbox_print(u_int regvalue, u_int *cur_col, u_int wrap) 378c2ecf20Sopenharmony_ci{ 388c2ecf20Sopenharmony_ci return (ahd_print_register(HS_MAILBOX_parse_table, 2, "HS_MAILBOX", 398c2ecf20Sopenharmony_ci 0x0b, regvalue, cur_col, wrap)); 408c2ecf20Sopenharmony_ci} 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t SEQINTSTAT_parse_table[] = { 438c2ecf20Sopenharmony_ci { "SEQ_SPLTINT", 0x01, 0x01 }, 448c2ecf20Sopenharmony_ci { "SEQ_PCIINT", 0x02, 0x02 }, 458c2ecf20Sopenharmony_ci { "SEQ_SCSIINT", 0x04, 0x04 }, 468c2ecf20Sopenharmony_ci { "SEQ_SEQINT", 0x08, 0x08 }, 478c2ecf20Sopenharmony_ci { "SEQ_SWTMRTO", 0x10, 0x10 } 488c2ecf20Sopenharmony_ci}; 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ciint 518c2ecf20Sopenharmony_ciahd_seqintstat_print(u_int regvalue, u_int *cur_col, u_int wrap) 528c2ecf20Sopenharmony_ci{ 538c2ecf20Sopenharmony_ci return (ahd_print_register(SEQINTSTAT_parse_table, 5, "SEQINTSTAT", 548c2ecf20Sopenharmony_ci 0x0c, regvalue, cur_col, wrap)); 558c2ecf20Sopenharmony_ci} 568c2ecf20Sopenharmony_ci 578c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t INTCTL_parse_table[] = { 588c2ecf20Sopenharmony_ci { "SPLTINTEN", 0x01, 0x01 }, 598c2ecf20Sopenharmony_ci { "SEQINTEN", 0x02, 0x02 }, 608c2ecf20Sopenharmony_ci { "SCSIINTEN", 0x04, 0x04 }, 618c2ecf20Sopenharmony_ci { "PCIINTEN", 0x08, 0x08 }, 628c2ecf20Sopenharmony_ci { "AUTOCLRCMDINT", 0x10, 0x10 }, 638c2ecf20Sopenharmony_ci { "SWTIMER_START", 0x20, 0x20 }, 648c2ecf20Sopenharmony_ci { "SWTMINTEN", 0x40, 0x40 }, 658c2ecf20Sopenharmony_ci { "SWTMINTMASK", 0x80, 0x80 } 668c2ecf20Sopenharmony_ci}; 678c2ecf20Sopenharmony_ci 688c2ecf20Sopenharmony_ciint 698c2ecf20Sopenharmony_ciahd_intctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 708c2ecf20Sopenharmony_ci{ 718c2ecf20Sopenharmony_ci return (ahd_print_register(INTCTL_parse_table, 8, "INTCTL", 728c2ecf20Sopenharmony_ci 0x18, regvalue, cur_col, wrap)); 738c2ecf20Sopenharmony_ci} 748c2ecf20Sopenharmony_ci 758c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t DFCNTRL_parse_table[] = { 768c2ecf20Sopenharmony_ci { "DIRECTIONEN", 0x01, 0x01 }, 778c2ecf20Sopenharmony_ci { "FIFOFLUSH", 0x02, 0x02 }, 788c2ecf20Sopenharmony_ci { "FIFOFLUSHACK", 0x02, 0x02 }, 798c2ecf20Sopenharmony_ci { "DIRECTION", 0x04, 0x04 }, 808c2ecf20Sopenharmony_ci { "DIRECTIONACK", 0x04, 0x04 }, 818c2ecf20Sopenharmony_ci { "HDMAEN", 0x08, 0x08 }, 828c2ecf20Sopenharmony_ci { "HDMAENACK", 0x08, 0x08 }, 838c2ecf20Sopenharmony_ci { "SCSIEN", 0x20, 0x20 }, 848c2ecf20Sopenharmony_ci { "SCSIENACK", 0x20, 0x20 }, 858c2ecf20Sopenharmony_ci { "SCSIENWRDIS", 0x40, 0x40 }, 868c2ecf20Sopenharmony_ci { "PRELOADEN", 0x80, 0x80 } 878c2ecf20Sopenharmony_ci}; 888c2ecf20Sopenharmony_ci 898c2ecf20Sopenharmony_ciint 908c2ecf20Sopenharmony_ciahd_dfcntrl_print(u_int regvalue, u_int *cur_col, u_int wrap) 918c2ecf20Sopenharmony_ci{ 928c2ecf20Sopenharmony_ci return (ahd_print_register(DFCNTRL_parse_table, 11, "DFCNTRL", 938c2ecf20Sopenharmony_ci 0x19, regvalue, cur_col, wrap)); 948c2ecf20Sopenharmony_ci} 958c2ecf20Sopenharmony_ci 968c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t DFSTATUS_parse_table[] = { 978c2ecf20Sopenharmony_ci { "FIFOEMP", 0x01, 0x01 }, 988c2ecf20Sopenharmony_ci { "FIFOFULL", 0x02, 0x02 }, 998c2ecf20Sopenharmony_ci { "DFTHRESH", 0x04, 0x04 }, 1008c2ecf20Sopenharmony_ci { "HDONE", 0x08, 0x08 }, 1018c2ecf20Sopenharmony_ci { "MREQPEND", 0x10, 0x10 }, 1028c2ecf20Sopenharmony_ci { "PKT_PRELOAD_AVAIL", 0x40, 0x40 }, 1038c2ecf20Sopenharmony_ci { "PRELOAD_AVAIL", 0x80, 0x80 } 1048c2ecf20Sopenharmony_ci}; 1058c2ecf20Sopenharmony_ci 1068c2ecf20Sopenharmony_ciint 1078c2ecf20Sopenharmony_ciahd_dfstatus_print(u_int regvalue, u_int *cur_col, u_int wrap) 1088c2ecf20Sopenharmony_ci{ 1098c2ecf20Sopenharmony_ci return (ahd_print_register(DFSTATUS_parse_table, 7, "DFSTATUS", 1108c2ecf20Sopenharmony_ci 0x1a, regvalue, cur_col, wrap)); 1118c2ecf20Sopenharmony_ci} 1128c2ecf20Sopenharmony_ci 1138c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t SG_CACHE_SHADOW_parse_table[] = { 1148c2ecf20Sopenharmony_ci { "LAST_SEG_DONE", 0x01, 0x01 }, 1158c2ecf20Sopenharmony_ci { "LAST_SEG", 0x02, 0x02 }, 1168c2ecf20Sopenharmony_ci { "ODD_SEG", 0x04, 0x04 }, 1178c2ecf20Sopenharmony_ci { "SG_ADDR_MASK", 0xf8, 0xf8 } 1188c2ecf20Sopenharmony_ci}; 1198c2ecf20Sopenharmony_ci 1208c2ecf20Sopenharmony_ciint 1218c2ecf20Sopenharmony_ciahd_sg_cache_shadow_print(u_int regvalue, u_int *cur_col, u_int wrap) 1228c2ecf20Sopenharmony_ci{ 1238c2ecf20Sopenharmony_ci return (ahd_print_register(SG_CACHE_SHADOW_parse_table, 4, "SG_CACHE_SHADOW", 1248c2ecf20Sopenharmony_ci 0x1b, regvalue, cur_col, wrap)); 1258c2ecf20Sopenharmony_ci} 1268c2ecf20Sopenharmony_ci 1278c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t SCSISEQ0_parse_table[] = { 1288c2ecf20Sopenharmony_ci { "SCSIRSTO", 0x01, 0x01 }, 1298c2ecf20Sopenharmony_ci { "FORCEBUSFREE", 0x10, 0x10 }, 1308c2ecf20Sopenharmony_ci { "ENARBO", 0x20, 0x20 }, 1318c2ecf20Sopenharmony_ci { "ENSELO", 0x40, 0x40 }, 1328c2ecf20Sopenharmony_ci { "TEMODEO", 0x80, 0x80 } 1338c2ecf20Sopenharmony_ci}; 1348c2ecf20Sopenharmony_ci 1358c2ecf20Sopenharmony_ciint 1368c2ecf20Sopenharmony_ciahd_scsiseq0_print(u_int regvalue, u_int *cur_col, u_int wrap) 1378c2ecf20Sopenharmony_ci{ 1388c2ecf20Sopenharmony_ci return (ahd_print_register(SCSISEQ0_parse_table, 5, "SCSISEQ0", 1398c2ecf20Sopenharmony_ci 0x3a, regvalue, cur_col, wrap)); 1408c2ecf20Sopenharmony_ci} 1418c2ecf20Sopenharmony_ci 1428c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t SCSISEQ1_parse_table[] = { 1438c2ecf20Sopenharmony_ci { "ALTSTIM", 0x01, 0x01 }, 1448c2ecf20Sopenharmony_ci { "ENAUTOATNP", 0x02, 0x02 }, 1458c2ecf20Sopenharmony_ci { "MANUALP", 0x0c, 0x0c }, 1468c2ecf20Sopenharmony_ci { "ENRSELI", 0x10, 0x10 }, 1478c2ecf20Sopenharmony_ci { "ENSELI", 0x20, 0x20 }, 1488c2ecf20Sopenharmony_ci { "MANUALCTL", 0x40, 0x40 } 1498c2ecf20Sopenharmony_ci}; 1508c2ecf20Sopenharmony_ci 1518c2ecf20Sopenharmony_ciint 1528c2ecf20Sopenharmony_ciahd_scsiseq1_print(u_int regvalue, u_int *cur_col, u_int wrap) 1538c2ecf20Sopenharmony_ci{ 1548c2ecf20Sopenharmony_ci return (ahd_print_register(SCSISEQ1_parse_table, 6, "SCSISEQ1", 1558c2ecf20Sopenharmony_ci 0x3b, regvalue, cur_col, wrap)); 1568c2ecf20Sopenharmony_ci} 1578c2ecf20Sopenharmony_ci 1588c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t DFFSTAT_parse_table[] = { 1598c2ecf20Sopenharmony_ci { "CURRFIFO_0", 0x00, 0x03 }, 1608c2ecf20Sopenharmony_ci { "CURRFIFO_1", 0x01, 0x03 }, 1618c2ecf20Sopenharmony_ci { "CURRFIFO_NONE", 0x03, 0x03 }, 1628c2ecf20Sopenharmony_ci { "FIFO0FREE", 0x10, 0x10 }, 1638c2ecf20Sopenharmony_ci { "FIFO1FREE", 0x20, 0x20 }, 1648c2ecf20Sopenharmony_ci { "CURRFIFO", 0x03, 0x03 } 1658c2ecf20Sopenharmony_ci}; 1668c2ecf20Sopenharmony_ci 1678c2ecf20Sopenharmony_ciint 1688c2ecf20Sopenharmony_ciahd_dffstat_print(u_int regvalue, u_int *cur_col, u_int wrap) 1698c2ecf20Sopenharmony_ci{ 1708c2ecf20Sopenharmony_ci return (ahd_print_register(DFFSTAT_parse_table, 6, "DFFSTAT", 1718c2ecf20Sopenharmony_ci 0x3f, regvalue, cur_col, wrap)); 1728c2ecf20Sopenharmony_ci} 1738c2ecf20Sopenharmony_ci 1748c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t SCSISIGI_parse_table[] = { 1758c2ecf20Sopenharmony_ci { "P_DATAOUT", 0x00, 0xe0 }, 1768c2ecf20Sopenharmony_ci { "P_DATAOUT_DT", 0x20, 0xe0 }, 1778c2ecf20Sopenharmony_ci { "P_DATAIN", 0x40, 0xe0 }, 1788c2ecf20Sopenharmony_ci { "P_DATAIN_DT", 0x60, 0xe0 }, 1798c2ecf20Sopenharmony_ci { "P_COMMAND", 0x80, 0xe0 }, 1808c2ecf20Sopenharmony_ci { "P_MESGOUT", 0xa0, 0xe0 }, 1818c2ecf20Sopenharmony_ci { "P_STATUS", 0xc0, 0xe0 }, 1828c2ecf20Sopenharmony_ci { "P_MESGIN", 0xe0, 0xe0 }, 1838c2ecf20Sopenharmony_ci { "ACKI", 0x01, 0x01 }, 1848c2ecf20Sopenharmony_ci { "REQI", 0x02, 0x02 }, 1858c2ecf20Sopenharmony_ci { "BSYI", 0x04, 0x04 }, 1868c2ecf20Sopenharmony_ci { "SELI", 0x08, 0x08 }, 1878c2ecf20Sopenharmony_ci { "ATNI", 0x10, 0x10 }, 1888c2ecf20Sopenharmony_ci { "MSGI", 0x20, 0x20 }, 1898c2ecf20Sopenharmony_ci { "IOI", 0x40, 0x40 }, 1908c2ecf20Sopenharmony_ci { "CDI", 0x80, 0x80 }, 1918c2ecf20Sopenharmony_ci { "PHASE_MASK", 0xe0, 0xe0 } 1928c2ecf20Sopenharmony_ci}; 1938c2ecf20Sopenharmony_ci 1948c2ecf20Sopenharmony_ciint 1958c2ecf20Sopenharmony_ciahd_scsisigi_print(u_int regvalue, u_int *cur_col, u_int wrap) 1968c2ecf20Sopenharmony_ci{ 1978c2ecf20Sopenharmony_ci return (ahd_print_register(SCSISIGI_parse_table, 17, "SCSISIGI", 1988c2ecf20Sopenharmony_ci 0x41, regvalue, cur_col, wrap)); 1998c2ecf20Sopenharmony_ci} 2008c2ecf20Sopenharmony_ci 2018c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t SCSIPHASE_parse_table[] = { 2028c2ecf20Sopenharmony_ci { "DATA_OUT_PHASE", 0x01, 0x03 }, 2038c2ecf20Sopenharmony_ci { "DATA_IN_PHASE", 0x02, 0x03 }, 2048c2ecf20Sopenharmony_ci { "DATA_PHASE_MASK", 0x03, 0x03 }, 2058c2ecf20Sopenharmony_ci { "MSG_OUT_PHASE", 0x04, 0x04 }, 2068c2ecf20Sopenharmony_ci { "MSG_IN_PHASE", 0x08, 0x08 }, 2078c2ecf20Sopenharmony_ci { "COMMAND_PHASE", 0x10, 0x10 }, 2088c2ecf20Sopenharmony_ci { "STATUS_PHASE", 0x20, 0x20 } 2098c2ecf20Sopenharmony_ci}; 2108c2ecf20Sopenharmony_ci 2118c2ecf20Sopenharmony_ciint 2128c2ecf20Sopenharmony_ciahd_scsiphase_print(u_int regvalue, u_int *cur_col, u_int wrap) 2138c2ecf20Sopenharmony_ci{ 2148c2ecf20Sopenharmony_ci return (ahd_print_register(SCSIPHASE_parse_table, 7, "SCSIPHASE", 2158c2ecf20Sopenharmony_ci 0x42, regvalue, cur_col, wrap)); 2168c2ecf20Sopenharmony_ci} 2178c2ecf20Sopenharmony_ci 2188c2ecf20Sopenharmony_ciint 2198c2ecf20Sopenharmony_ciahd_scsibus_print(u_int regvalue, u_int *cur_col, u_int wrap) 2208c2ecf20Sopenharmony_ci{ 2218c2ecf20Sopenharmony_ci return (ahd_print_register(NULL, 0, "SCSIBUS", 2228c2ecf20Sopenharmony_ci 0x46, regvalue, cur_col, wrap)); 2238c2ecf20Sopenharmony_ci} 2248c2ecf20Sopenharmony_ci 2258c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t SELID_parse_table[] = { 2268c2ecf20Sopenharmony_ci { "ONEBIT", 0x08, 0x08 }, 2278c2ecf20Sopenharmony_ci { "SELID_MASK", 0xf0, 0xf0 } 2288c2ecf20Sopenharmony_ci}; 2298c2ecf20Sopenharmony_ci 2308c2ecf20Sopenharmony_ciint 2318c2ecf20Sopenharmony_ciahd_selid_print(u_int regvalue, u_int *cur_col, u_int wrap) 2328c2ecf20Sopenharmony_ci{ 2338c2ecf20Sopenharmony_ci return (ahd_print_register(SELID_parse_table, 2, "SELID", 2348c2ecf20Sopenharmony_ci 0x49, regvalue, cur_col, wrap)); 2358c2ecf20Sopenharmony_ci} 2368c2ecf20Sopenharmony_ci 2378c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t SIMODE0_parse_table[] = { 2388c2ecf20Sopenharmony_ci { "ENARBDO", 0x01, 0x01 }, 2398c2ecf20Sopenharmony_ci { "ENSPIORDY", 0x02, 0x02 }, 2408c2ecf20Sopenharmony_ci { "ENOVERRUN", 0x04, 0x04 }, 2418c2ecf20Sopenharmony_ci { "ENIOERR", 0x08, 0x08 }, 2428c2ecf20Sopenharmony_ci { "ENSELINGO", 0x10, 0x10 }, 2438c2ecf20Sopenharmony_ci { "ENSELDI", 0x20, 0x20 }, 2448c2ecf20Sopenharmony_ci { "ENSELDO", 0x40, 0x40 } 2458c2ecf20Sopenharmony_ci}; 2468c2ecf20Sopenharmony_ci 2478c2ecf20Sopenharmony_ciint 2488c2ecf20Sopenharmony_ciahd_simode0_print(u_int regvalue, u_int *cur_col, u_int wrap) 2498c2ecf20Sopenharmony_ci{ 2508c2ecf20Sopenharmony_ci return (ahd_print_register(SIMODE0_parse_table, 7, "SIMODE0", 2518c2ecf20Sopenharmony_ci 0x4b, regvalue, cur_col, wrap)); 2528c2ecf20Sopenharmony_ci} 2538c2ecf20Sopenharmony_ci 2548c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t SSTAT0_parse_table[] = { 2558c2ecf20Sopenharmony_ci { "ARBDO", 0x01, 0x01 }, 2568c2ecf20Sopenharmony_ci { "SPIORDY", 0x02, 0x02 }, 2578c2ecf20Sopenharmony_ci { "OVERRUN", 0x04, 0x04 }, 2588c2ecf20Sopenharmony_ci { "IOERR", 0x08, 0x08 }, 2598c2ecf20Sopenharmony_ci { "SELINGO", 0x10, 0x10 }, 2608c2ecf20Sopenharmony_ci { "SELDI", 0x20, 0x20 }, 2618c2ecf20Sopenharmony_ci { "SELDO", 0x40, 0x40 }, 2628c2ecf20Sopenharmony_ci { "TARGET", 0x80, 0x80 } 2638c2ecf20Sopenharmony_ci}; 2648c2ecf20Sopenharmony_ci 2658c2ecf20Sopenharmony_ciint 2668c2ecf20Sopenharmony_ciahd_sstat0_print(u_int regvalue, u_int *cur_col, u_int wrap) 2678c2ecf20Sopenharmony_ci{ 2688c2ecf20Sopenharmony_ci return (ahd_print_register(SSTAT0_parse_table, 8, "SSTAT0", 2698c2ecf20Sopenharmony_ci 0x4b, regvalue, cur_col, wrap)); 2708c2ecf20Sopenharmony_ci} 2718c2ecf20Sopenharmony_ci 2728c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t SSTAT1_parse_table[] = { 2738c2ecf20Sopenharmony_ci { "REQINIT", 0x01, 0x01 }, 2748c2ecf20Sopenharmony_ci { "STRB2FAST", 0x02, 0x02 }, 2758c2ecf20Sopenharmony_ci { "SCSIPERR", 0x04, 0x04 }, 2768c2ecf20Sopenharmony_ci { "BUSFREE", 0x08, 0x08 }, 2778c2ecf20Sopenharmony_ci { "PHASEMIS", 0x10, 0x10 }, 2788c2ecf20Sopenharmony_ci { "SCSIRSTI", 0x20, 0x20 }, 2798c2ecf20Sopenharmony_ci { "ATNTARG", 0x40, 0x40 }, 2808c2ecf20Sopenharmony_ci { "SELTO", 0x80, 0x80 } 2818c2ecf20Sopenharmony_ci}; 2828c2ecf20Sopenharmony_ci 2838c2ecf20Sopenharmony_ciint 2848c2ecf20Sopenharmony_ciahd_sstat1_print(u_int regvalue, u_int *cur_col, u_int wrap) 2858c2ecf20Sopenharmony_ci{ 2868c2ecf20Sopenharmony_ci return (ahd_print_register(SSTAT1_parse_table, 8, "SSTAT1", 2878c2ecf20Sopenharmony_ci 0x4c, regvalue, cur_col, wrap)); 2888c2ecf20Sopenharmony_ci} 2898c2ecf20Sopenharmony_ci 2908c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t SSTAT2_parse_table[] = { 2918c2ecf20Sopenharmony_ci { "BUSFREE_LQO", 0x40, 0xc0 }, 2928c2ecf20Sopenharmony_ci { "BUSFREE_DFF0", 0x80, 0xc0 }, 2938c2ecf20Sopenharmony_ci { "BUSFREE_DFF1", 0xc0, 0xc0 }, 2948c2ecf20Sopenharmony_ci { "DMADONE", 0x01, 0x01 }, 2958c2ecf20Sopenharmony_ci { "SDONE", 0x02, 0x02 }, 2968c2ecf20Sopenharmony_ci { "WIDE_RES", 0x04, 0x04 }, 2978c2ecf20Sopenharmony_ci { "BSYX", 0x08, 0x08 }, 2988c2ecf20Sopenharmony_ci { "EXP_ACTIVE", 0x10, 0x10 }, 2998c2ecf20Sopenharmony_ci { "NONPACKREQ", 0x20, 0x20 }, 3008c2ecf20Sopenharmony_ci { "BUSFREETIME", 0xc0, 0xc0 } 3018c2ecf20Sopenharmony_ci}; 3028c2ecf20Sopenharmony_ci 3038c2ecf20Sopenharmony_ciint 3048c2ecf20Sopenharmony_ciahd_sstat2_print(u_int regvalue, u_int *cur_col, u_int wrap) 3058c2ecf20Sopenharmony_ci{ 3068c2ecf20Sopenharmony_ci return (ahd_print_register(SSTAT2_parse_table, 10, "SSTAT2", 3078c2ecf20Sopenharmony_ci 0x4d, regvalue, cur_col, wrap)); 3088c2ecf20Sopenharmony_ci} 3098c2ecf20Sopenharmony_ci 3108c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t PERRDIAG_parse_table[] = { 3118c2ecf20Sopenharmony_ci { "DTERR", 0x01, 0x01 }, 3128c2ecf20Sopenharmony_ci { "DGFORMERR", 0x02, 0x02 }, 3138c2ecf20Sopenharmony_ci { "CRCERR", 0x04, 0x04 }, 3148c2ecf20Sopenharmony_ci { "AIPERR", 0x08, 0x08 }, 3158c2ecf20Sopenharmony_ci { "PARITYERR", 0x10, 0x10 }, 3168c2ecf20Sopenharmony_ci { "PREVPHASE", 0x20, 0x20 }, 3178c2ecf20Sopenharmony_ci { "HIPERR", 0x40, 0x40 }, 3188c2ecf20Sopenharmony_ci { "HIZERO", 0x80, 0x80 } 3198c2ecf20Sopenharmony_ci}; 3208c2ecf20Sopenharmony_ci 3218c2ecf20Sopenharmony_ciint 3228c2ecf20Sopenharmony_ciahd_perrdiag_print(u_int regvalue, u_int *cur_col, u_int wrap) 3238c2ecf20Sopenharmony_ci{ 3248c2ecf20Sopenharmony_ci return (ahd_print_register(PERRDIAG_parse_table, 8, "PERRDIAG", 3258c2ecf20Sopenharmony_ci 0x4e, regvalue, cur_col, wrap)); 3268c2ecf20Sopenharmony_ci} 3278c2ecf20Sopenharmony_ci 3288c2ecf20Sopenharmony_ciint 3298c2ecf20Sopenharmony_ciahd_soffcnt_print(u_int regvalue, u_int *cur_col, u_int wrap) 3308c2ecf20Sopenharmony_ci{ 3318c2ecf20Sopenharmony_ci return (ahd_print_register(NULL, 0, "SOFFCNT", 3328c2ecf20Sopenharmony_ci 0x4f, regvalue, cur_col, wrap)); 3338c2ecf20Sopenharmony_ci} 3348c2ecf20Sopenharmony_ci 3358c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t LQISTAT0_parse_table[] = { 3368c2ecf20Sopenharmony_ci { "LQIATNCMD", 0x01, 0x01 }, 3378c2ecf20Sopenharmony_ci { "LQIATNLQ", 0x02, 0x02 }, 3388c2ecf20Sopenharmony_ci { "LQIBADLQT", 0x04, 0x04 }, 3398c2ecf20Sopenharmony_ci { "LQICRCT2", 0x08, 0x08 }, 3408c2ecf20Sopenharmony_ci { "LQICRCT1", 0x10, 0x10 }, 3418c2ecf20Sopenharmony_ci { "LQIATNQAS", 0x20, 0x20 } 3428c2ecf20Sopenharmony_ci}; 3438c2ecf20Sopenharmony_ci 3448c2ecf20Sopenharmony_ciint 3458c2ecf20Sopenharmony_ciahd_lqistat0_print(u_int regvalue, u_int *cur_col, u_int wrap) 3468c2ecf20Sopenharmony_ci{ 3478c2ecf20Sopenharmony_ci return (ahd_print_register(LQISTAT0_parse_table, 6, "LQISTAT0", 3488c2ecf20Sopenharmony_ci 0x50, regvalue, cur_col, wrap)); 3498c2ecf20Sopenharmony_ci} 3508c2ecf20Sopenharmony_ci 3518c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t LQISTAT1_parse_table[] = { 3528c2ecf20Sopenharmony_ci { "LQIOVERI_NLQ", 0x01, 0x01 }, 3538c2ecf20Sopenharmony_ci { "LQIOVERI_LQ", 0x02, 0x02 }, 3548c2ecf20Sopenharmony_ci { "LQIBADLQI", 0x04, 0x04 }, 3558c2ecf20Sopenharmony_ci { "LQICRCI_NLQ", 0x08, 0x08 }, 3568c2ecf20Sopenharmony_ci { "LQICRCI_LQ", 0x10, 0x10 }, 3578c2ecf20Sopenharmony_ci { "LQIABORT", 0x20, 0x20 }, 3588c2ecf20Sopenharmony_ci { "LQIPHASE_NLQ", 0x40, 0x40 }, 3598c2ecf20Sopenharmony_ci { "LQIPHASE_LQ", 0x80, 0x80 } 3608c2ecf20Sopenharmony_ci}; 3618c2ecf20Sopenharmony_ci 3628c2ecf20Sopenharmony_ciint 3638c2ecf20Sopenharmony_ciahd_lqistat1_print(u_int regvalue, u_int *cur_col, u_int wrap) 3648c2ecf20Sopenharmony_ci{ 3658c2ecf20Sopenharmony_ci return (ahd_print_register(LQISTAT1_parse_table, 8, "LQISTAT1", 3668c2ecf20Sopenharmony_ci 0x51, regvalue, cur_col, wrap)); 3678c2ecf20Sopenharmony_ci} 3688c2ecf20Sopenharmony_ci 3698c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t LQISTAT2_parse_table[] = { 3708c2ecf20Sopenharmony_ci { "LQIGSAVAIL", 0x01, 0x01 }, 3718c2ecf20Sopenharmony_ci { "LQISTOPCMD", 0x02, 0x02 }, 3728c2ecf20Sopenharmony_ci { "LQISTOPLQ", 0x04, 0x04 }, 3738c2ecf20Sopenharmony_ci { "LQISTOPPKT", 0x08, 0x08 }, 3748c2ecf20Sopenharmony_ci { "LQIWAITFIFO", 0x10, 0x10 }, 3758c2ecf20Sopenharmony_ci { "LQIWORKONLQ", 0x20, 0x20 }, 3768c2ecf20Sopenharmony_ci { "LQIPHASE_OUTPKT", 0x40, 0x40 }, 3778c2ecf20Sopenharmony_ci { "PACKETIZED", 0x80, 0x80 } 3788c2ecf20Sopenharmony_ci}; 3798c2ecf20Sopenharmony_ci 3808c2ecf20Sopenharmony_ciint 3818c2ecf20Sopenharmony_ciahd_lqistat2_print(u_int regvalue, u_int *cur_col, u_int wrap) 3828c2ecf20Sopenharmony_ci{ 3838c2ecf20Sopenharmony_ci return (ahd_print_register(LQISTAT2_parse_table, 8, "LQISTAT2", 3848c2ecf20Sopenharmony_ci 0x52, regvalue, cur_col, wrap)); 3858c2ecf20Sopenharmony_ci} 3868c2ecf20Sopenharmony_ci 3878c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t SSTAT3_parse_table[] = { 3888c2ecf20Sopenharmony_ci { "OSRAMPERR", 0x01, 0x01 }, 3898c2ecf20Sopenharmony_ci { "NTRAMPERR", 0x02, 0x02 } 3908c2ecf20Sopenharmony_ci}; 3918c2ecf20Sopenharmony_ci 3928c2ecf20Sopenharmony_ciint 3938c2ecf20Sopenharmony_ciahd_sstat3_print(u_int regvalue, u_int *cur_col, u_int wrap) 3948c2ecf20Sopenharmony_ci{ 3958c2ecf20Sopenharmony_ci return (ahd_print_register(SSTAT3_parse_table, 2, "SSTAT3", 3968c2ecf20Sopenharmony_ci 0x53, regvalue, cur_col, wrap)); 3978c2ecf20Sopenharmony_ci} 3988c2ecf20Sopenharmony_ci 3998c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t LQOSTAT0_parse_table[] = { 4008c2ecf20Sopenharmony_ci { "LQOTCRC", 0x01, 0x01 }, 4018c2ecf20Sopenharmony_ci { "LQOATNPKT", 0x02, 0x02 }, 4028c2ecf20Sopenharmony_ci { "LQOATNLQ", 0x04, 0x04 }, 4038c2ecf20Sopenharmony_ci { "LQOSTOPT2", 0x08, 0x08 }, 4048c2ecf20Sopenharmony_ci { "LQOTARGSCBPERR", 0x10, 0x10 } 4058c2ecf20Sopenharmony_ci}; 4068c2ecf20Sopenharmony_ci 4078c2ecf20Sopenharmony_ciint 4088c2ecf20Sopenharmony_ciahd_lqostat0_print(u_int regvalue, u_int *cur_col, u_int wrap) 4098c2ecf20Sopenharmony_ci{ 4108c2ecf20Sopenharmony_ci return (ahd_print_register(LQOSTAT0_parse_table, 5, "LQOSTAT0", 4118c2ecf20Sopenharmony_ci 0x54, regvalue, cur_col, wrap)); 4128c2ecf20Sopenharmony_ci} 4138c2ecf20Sopenharmony_ci 4148c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t LQOSTAT1_parse_table[] = { 4158c2ecf20Sopenharmony_ci { "LQOPHACHGINPKT", 0x01, 0x01 }, 4168c2ecf20Sopenharmony_ci { "LQOBUSFREE", 0x02, 0x02 }, 4178c2ecf20Sopenharmony_ci { "LQOBADQAS", 0x04, 0x04 }, 4188c2ecf20Sopenharmony_ci { "LQOSTOPI2", 0x08, 0x08 }, 4198c2ecf20Sopenharmony_ci { "LQOINITSCBPERR", 0x10, 0x10 } 4208c2ecf20Sopenharmony_ci}; 4218c2ecf20Sopenharmony_ci 4228c2ecf20Sopenharmony_ciint 4238c2ecf20Sopenharmony_ciahd_lqostat1_print(u_int regvalue, u_int *cur_col, u_int wrap) 4248c2ecf20Sopenharmony_ci{ 4258c2ecf20Sopenharmony_ci return (ahd_print_register(LQOSTAT1_parse_table, 5, "LQOSTAT1", 4268c2ecf20Sopenharmony_ci 0x55, regvalue, cur_col, wrap)); 4278c2ecf20Sopenharmony_ci} 4288c2ecf20Sopenharmony_ci 4298c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t LQOSTAT2_parse_table[] = { 4308c2ecf20Sopenharmony_ci { "LQOSTOP0", 0x01, 0x01 }, 4318c2ecf20Sopenharmony_ci { "LQOPHACHGOUTPKT", 0x02, 0x02 }, 4328c2ecf20Sopenharmony_ci { "LQOWAITFIFO", 0x10, 0x10 }, 4338c2ecf20Sopenharmony_ci { "LQOPKT", 0xe0, 0xe0 } 4348c2ecf20Sopenharmony_ci}; 4358c2ecf20Sopenharmony_ci 4368c2ecf20Sopenharmony_ciint 4378c2ecf20Sopenharmony_ciahd_lqostat2_print(u_int regvalue, u_int *cur_col, u_int wrap) 4388c2ecf20Sopenharmony_ci{ 4398c2ecf20Sopenharmony_ci return (ahd_print_register(LQOSTAT2_parse_table, 4, "LQOSTAT2", 4408c2ecf20Sopenharmony_ci 0x56, regvalue, cur_col, wrap)); 4418c2ecf20Sopenharmony_ci} 4428c2ecf20Sopenharmony_ci 4438c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t SIMODE1_parse_table[] = { 4448c2ecf20Sopenharmony_ci { "ENREQINIT", 0x01, 0x01 }, 4458c2ecf20Sopenharmony_ci { "ENSTRB2FAST", 0x02, 0x02 }, 4468c2ecf20Sopenharmony_ci { "ENSCSIPERR", 0x04, 0x04 }, 4478c2ecf20Sopenharmony_ci { "ENBUSFREE", 0x08, 0x08 }, 4488c2ecf20Sopenharmony_ci { "ENPHASEMIS", 0x10, 0x10 }, 4498c2ecf20Sopenharmony_ci { "ENSCSIRST", 0x20, 0x20 }, 4508c2ecf20Sopenharmony_ci { "ENATNTARG", 0x40, 0x40 }, 4518c2ecf20Sopenharmony_ci { "ENSELTIMO", 0x80, 0x80 } 4528c2ecf20Sopenharmony_ci}; 4538c2ecf20Sopenharmony_ci 4548c2ecf20Sopenharmony_ciint 4558c2ecf20Sopenharmony_ciahd_simode1_print(u_int regvalue, u_int *cur_col, u_int wrap) 4568c2ecf20Sopenharmony_ci{ 4578c2ecf20Sopenharmony_ci return (ahd_print_register(SIMODE1_parse_table, 8, "SIMODE1", 4588c2ecf20Sopenharmony_ci 0x57, regvalue, cur_col, wrap)); 4598c2ecf20Sopenharmony_ci} 4608c2ecf20Sopenharmony_ci 4618c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t DFFSXFRCTL_parse_table[] = { 4628c2ecf20Sopenharmony_ci { "RSTCHN", 0x01, 0x01 }, 4638c2ecf20Sopenharmony_ci { "CLRCHN", 0x02, 0x02 }, 4648c2ecf20Sopenharmony_ci { "CLRSHCNT", 0x04, 0x04 }, 4658c2ecf20Sopenharmony_ci { "DFFBITBUCKET", 0x08, 0x08 } 4668c2ecf20Sopenharmony_ci}; 4678c2ecf20Sopenharmony_ci 4688c2ecf20Sopenharmony_ciint 4698c2ecf20Sopenharmony_ciahd_dffsxfrctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 4708c2ecf20Sopenharmony_ci{ 4718c2ecf20Sopenharmony_ci return (ahd_print_register(DFFSXFRCTL_parse_table, 4, "DFFSXFRCTL", 4728c2ecf20Sopenharmony_ci 0x5a, regvalue, cur_col, wrap)); 4738c2ecf20Sopenharmony_ci} 4748c2ecf20Sopenharmony_ci 4758c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t SEQINTSRC_parse_table[] = { 4768c2ecf20Sopenharmony_ci { "CFG4TCMD", 0x01, 0x01 }, 4778c2ecf20Sopenharmony_ci { "CFG4ICMD", 0x02, 0x02 }, 4788c2ecf20Sopenharmony_ci { "CFG4TSTAT", 0x04, 0x04 }, 4798c2ecf20Sopenharmony_ci { "CFG4ISTAT", 0x08, 0x08 }, 4808c2ecf20Sopenharmony_ci { "CFG4DATA", 0x10, 0x10 }, 4818c2ecf20Sopenharmony_ci { "SAVEPTRS", 0x20, 0x20 }, 4828c2ecf20Sopenharmony_ci { "CTXTDONE", 0x40, 0x40 } 4838c2ecf20Sopenharmony_ci}; 4848c2ecf20Sopenharmony_ci 4858c2ecf20Sopenharmony_ciint 4868c2ecf20Sopenharmony_ciahd_seqintsrc_print(u_int regvalue, u_int *cur_col, u_int wrap) 4878c2ecf20Sopenharmony_ci{ 4888c2ecf20Sopenharmony_ci return (ahd_print_register(SEQINTSRC_parse_table, 7, "SEQINTSRC", 4898c2ecf20Sopenharmony_ci 0x5b, regvalue, cur_col, wrap)); 4908c2ecf20Sopenharmony_ci} 4918c2ecf20Sopenharmony_ci 4928c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t SEQIMODE_parse_table[] = { 4938c2ecf20Sopenharmony_ci { "ENCFG4TCMD", 0x01, 0x01 }, 4948c2ecf20Sopenharmony_ci { "ENCFG4ICMD", 0x02, 0x02 }, 4958c2ecf20Sopenharmony_ci { "ENCFG4TSTAT", 0x04, 0x04 }, 4968c2ecf20Sopenharmony_ci { "ENCFG4ISTAT", 0x08, 0x08 }, 4978c2ecf20Sopenharmony_ci { "ENCFG4DATA", 0x10, 0x10 }, 4988c2ecf20Sopenharmony_ci { "ENSAVEPTRS", 0x20, 0x20 }, 4998c2ecf20Sopenharmony_ci { "ENCTXTDONE", 0x40, 0x40 } 5008c2ecf20Sopenharmony_ci}; 5018c2ecf20Sopenharmony_ci 5028c2ecf20Sopenharmony_ciint 5038c2ecf20Sopenharmony_ciahd_seqimode_print(u_int regvalue, u_int *cur_col, u_int wrap) 5048c2ecf20Sopenharmony_ci{ 5058c2ecf20Sopenharmony_ci return (ahd_print_register(SEQIMODE_parse_table, 7, "SEQIMODE", 5068c2ecf20Sopenharmony_ci 0x5c, regvalue, cur_col, wrap)); 5078c2ecf20Sopenharmony_ci} 5088c2ecf20Sopenharmony_ci 5098c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t MDFFSTAT_parse_table[] = { 5108c2ecf20Sopenharmony_ci { "FIFOFREE", 0x01, 0x01 }, 5118c2ecf20Sopenharmony_ci { "DATAINFIFO", 0x02, 0x02 }, 5128c2ecf20Sopenharmony_ci { "DLZERO", 0x04, 0x04 }, 5138c2ecf20Sopenharmony_ci { "SHVALID", 0x08, 0x08 }, 5148c2ecf20Sopenharmony_ci { "LASTSDONE", 0x10, 0x10 }, 5158c2ecf20Sopenharmony_ci { "SHCNTMINUS1", 0x20, 0x20 }, 5168c2ecf20Sopenharmony_ci { "SHCNTNEGATIVE", 0x40, 0x40 } 5178c2ecf20Sopenharmony_ci}; 5188c2ecf20Sopenharmony_ci 5198c2ecf20Sopenharmony_ciint 5208c2ecf20Sopenharmony_ciahd_mdffstat_print(u_int regvalue, u_int *cur_col, u_int wrap) 5218c2ecf20Sopenharmony_ci{ 5228c2ecf20Sopenharmony_ci return (ahd_print_register(MDFFSTAT_parse_table, 7, "MDFFSTAT", 5238c2ecf20Sopenharmony_ci 0x5d, regvalue, cur_col, wrap)); 5248c2ecf20Sopenharmony_ci} 5258c2ecf20Sopenharmony_ci 5268c2ecf20Sopenharmony_ciint 5278c2ecf20Sopenharmony_ciahd_seloid_print(u_int regvalue, u_int *cur_col, u_int wrap) 5288c2ecf20Sopenharmony_ci{ 5298c2ecf20Sopenharmony_ci return (ahd_print_register(NULL, 0, "SELOID", 5308c2ecf20Sopenharmony_ci 0x6b, regvalue, cur_col, wrap)); 5318c2ecf20Sopenharmony_ci} 5328c2ecf20Sopenharmony_ci 5338c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t SG_STATE_parse_table[] = { 5348c2ecf20Sopenharmony_ci { "SEGS_AVAIL", 0x01, 0x01 }, 5358c2ecf20Sopenharmony_ci { "LOADING_NEEDED", 0x02, 0x02 }, 5368c2ecf20Sopenharmony_ci { "FETCH_INPROG", 0x04, 0x04 } 5378c2ecf20Sopenharmony_ci}; 5388c2ecf20Sopenharmony_ci 5398c2ecf20Sopenharmony_ciint 5408c2ecf20Sopenharmony_ciahd_sg_state_print(u_int regvalue, u_int *cur_col, u_int wrap) 5418c2ecf20Sopenharmony_ci{ 5428c2ecf20Sopenharmony_ci return (ahd_print_register(SG_STATE_parse_table, 3, "SG_STATE", 5438c2ecf20Sopenharmony_ci 0xa6, regvalue, cur_col, wrap)); 5448c2ecf20Sopenharmony_ci} 5458c2ecf20Sopenharmony_ci 5468c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t CCSCBCTL_parse_table[] = { 5478c2ecf20Sopenharmony_ci { "CCSCBRESET", 0x01, 0x01 }, 5488c2ecf20Sopenharmony_ci { "CCSCBDIR", 0x04, 0x04 }, 5498c2ecf20Sopenharmony_ci { "CCSCBEN", 0x08, 0x08 }, 5508c2ecf20Sopenharmony_ci { "CCARREN", 0x10, 0x10 }, 5518c2ecf20Sopenharmony_ci { "ARRDONE", 0x40, 0x40 }, 5528c2ecf20Sopenharmony_ci { "CCSCBDONE", 0x80, 0x80 } 5538c2ecf20Sopenharmony_ci}; 5548c2ecf20Sopenharmony_ci 5558c2ecf20Sopenharmony_ciint 5568c2ecf20Sopenharmony_ciahd_ccscbctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 5578c2ecf20Sopenharmony_ci{ 5588c2ecf20Sopenharmony_ci return (ahd_print_register(CCSCBCTL_parse_table, 6, "CCSCBCTL", 5598c2ecf20Sopenharmony_ci 0xad, regvalue, cur_col, wrap)); 5608c2ecf20Sopenharmony_ci} 5618c2ecf20Sopenharmony_ci 5628c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t CCSGCTL_parse_table[] = { 5638c2ecf20Sopenharmony_ci { "CCSGRESET", 0x01, 0x01 }, 5648c2ecf20Sopenharmony_ci { "SG_FETCH_REQ", 0x02, 0x02 }, 5658c2ecf20Sopenharmony_ci { "CCSGENACK", 0x08, 0x08 }, 5668c2ecf20Sopenharmony_ci { "SG_CACHE_AVAIL", 0x10, 0x10 }, 5678c2ecf20Sopenharmony_ci { "CCSGDONE", 0x80, 0x80 }, 5688c2ecf20Sopenharmony_ci { "CCSGEN", 0x0c, 0x0c } 5698c2ecf20Sopenharmony_ci}; 5708c2ecf20Sopenharmony_ci 5718c2ecf20Sopenharmony_ciint 5728c2ecf20Sopenharmony_ciahd_ccsgctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 5738c2ecf20Sopenharmony_ci{ 5748c2ecf20Sopenharmony_ci return (ahd_print_register(CCSGCTL_parse_table, 6, "CCSGCTL", 5758c2ecf20Sopenharmony_ci 0xad, regvalue, cur_col, wrap)); 5768c2ecf20Sopenharmony_ci} 5778c2ecf20Sopenharmony_ci 5788c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t SEQCTL0_parse_table[] = { 5798c2ecf20Sopenharmony_ci { "LOADRAM", 0x01, 0x01 }, 5808c2ecf20Sopenharmony_ci { "SEQRESET", 0x02, 0x02 }, 5818c2ecf20Sopenharmony_ci { "STEP", 0x04, 0x04 }, 5828c2ecf20Sopenharmony_ci { "BRKADRINTEN", 0x08, 0x08 }, 5838c2ecf20Sopenharmony_ci { "FASTMODE", 0x10, 0x10 }, 5848c2ecf20Sopenharmony_ci { "FAILDIS", 0x20, 0x20 }, 5858c2ecf20Sopenharmony_ci { "PAUSEDIS", 0x40, 0x40 }, 5868c2ecf20Sopenharmony_ci { "PERRORDIS", 0x80, 0x80 } 5878c2ecf20Sopenharmony_ci}; 5888c2ecf20Sopenharmony_ci 5898c2ecf20Sopenharmony_ciint 5908c2ecf20Sopenharmony_ciahd_seqctl0_print(u_int regvalue, u_int *cur_col, u_int wrap) 5918c2ecf20Sopenharmony_ci{ 5928c2ecf20Sopenharmony_ci return (ahd_print_register(SEQCTL0_parse_table, 8, "SEQCTL0", 5938c2ecf20Sopenharmony_ci 0xd6, regvalue, cur_col, wrap)); 5948c2ecf20Sopenharmony_ci} 5958c2ecf20Sopenharmony_ci 5968c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t SEQINTCTL_parse_table[] = { 5978c2ecf20Sopenharmony_ci { "IRET", 0x01, 0x01 }, 5988c2ecf20Sopenharmony_ci { "INTMASK1", 0x02, 0x02 }, 5998c2ecf20Sopenharmony_ci { "INTMASK2", 0x04, 0x04 }, 6008c2ecf20Sopenharmony_ci { "SCS_SEQ_INT1M0", 0x08, 0x08 }, 6018c2ecf20Sopenharmony_ci { "SCS_SEQ_INT1M1", 0x10, 0x10 }, 6028c2ecf20Sopenharmony_ci { "INT1_CONTEXT", 0x20, 0x20 }, 6038c2ecf20Sopenharmony_ci { "INTVEC1DSL", 0x80, 0x80 } 6048c2ecf20Sopenharmony_ci}; 6058c2ecf20Sopenharmony_ci 6068c2ecf20Sopenharmony_ciint 6078c2ecf20Sopenharmony_ciahd_seqintctl_print(u_int regvalue, u_int *cur_col, u_int wrap) 6088c2ecf20Sopenharmony_ci{ 6098c2ecf20Sopenharmony_ci return (ahd_print_register(SEQINTCTL_parse_table, 7, "SEQINTCTL", 6108c2ecf20Sopenharmony_ci 0xd9, regvalue, cur_col, wrap)); 6118c2ecf20Sopenharmony_ci} 6128c2ecf20Sopenharmony_ci 6138c2ecf20Sopenharmony_ciint 6148c2ecf20Sopenharmony_ciahd_sram_base_print(u_int regvalue, u_int *cur_col, u_int wrap) 6158c2ecf20Sopenharmony_ci{ 6168c2ecf20Sopenharmony_ci return (ahd_print_register(NULL, 0, "SRAM_BASE", 6178c2ecf20Sopenharmony_ci 0x100, regvalue, cur_col, wrap)); 6188c2ecf20Sopenharmony_ci} 6198c2ecf20Sopenharmony_ci 6208c2ecf20Sopenharmony_ciint 6218c2ecf20Sopenharmony_ciahd_qfreeze_count_print(u_int regvalue, u_int *cur_col, u_int wrap) 6228c2ecf20Sopenharmony_ci{ 6238c2ecf20Sopenharmony_ci return (ahd_print_register(NULL, 0, "QFREEZE_COUNT", 6248c2ecf20Sopenharmony_ci 0x132, regvalue, cur_col, wrap)); 6258c2ecf20Sopenharmony_ci} 6268c2ecf20Sopenharmony_ci 6278c2ecf20Sopenharmony_ciint 6288c2ecf20Sopenharmony_ciahd_kernel_qfreeze_count_print(u_int regvalue, u_int *cur_col, u_int wrap) 6298c2ecf20Sopenharmony_ci{ 6308c2ecf20Sopenharmony_ci return (ahd_print_register(NULL, 0, "KERNEL_QFREEZE_COUNT", 6318c2ecf20Sopenharmony_ci 0x134, regvalue, cur_col, wrap)); 6328c2ecf20Sopenharmony_ci} 6338c2ecf20Sopenharmony_ci 6348c2ecf20Sopenharmony_ciint 6358c2ecf20Sopenharmony_ciahd_saved_mode_print(u_int regvalue, u_int *cur_col, u_int wrap) 6368c2ecf20Sopenharmony_ci{ 6378c2ecf20Sopenharmony_ci return (ahd_print_register(NULL, 0, "SAVED_MODE", 6388c2ecf20Sopenharmony_ci 0x136, regvalue, cur_col, wrap)); 6398c2ecf20Sopenharmony_ci} 6408c2ecf20Sopenharmony_ci 6418c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t SEQ_FLAGS_parse_table[] = { 6428c2ecf20Sopenharmony_ci { "NO_DISCONNECT", 0x01, 0x01 }, 6438c2ecf20Sopenharmony_ci { "SPHASE_PENDING", 0x02, 0x02 }, 6448c2ecf20Sopenharmony_ci { "DPHASE_PENDING", 0x04, 0x04 }, 6458c2ecf20Sopenharmony_ci { "CMDPHASE_PENDING", 0x08, 0x08 }, 6468c2ecf20Sopenharmony_ci { "TARG_CMD_PENDING", 0x10, 0x10 }, 6478c2ecf20Sopenharmony_ci { "DPHASE", 0x20, 0x20 }, 6488c2ecf20Sopenharmony_ci { "NO_CDB_SENT", 0x40, 0x40 }, 6498c2ecf20Sopenharmony_ci { "TARGET_CMD_IS_TAGGED",0x40, 0x40 }, 6508c2ecf20Sopenharmony_ci { "NOT_IDENTIFIED", 0x80, 0x80 } 6518c2ecf20Sopenharmony_ci}; 6528c2ecf20Sopenharmony_ci 6538c2ecf20Sopenharmony_ciint 6548c2ecf20Sopenharmony_ciahd_seq_flags_print(u_int regvalue, u_int *cur_col, u_int wrap) 6558c2ecf20Sopenharmony_ci{ 6568c2ecf20Sopenharmony_ci return (ahd_print_register(SEQ_FLAGS_parse_table, 9, "SEQ_FLAGS", 6578c2ecf20Sopenharmony_ci 0x139, regvalue, cur_col, wrap)); 6588c2ecf20Sopenharmony_ci} 6598c2ecf20Sopenharmony_ci 6608c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t LASTPHASE_parse_table[] = { 6618c2ecf20Sopenharmony_ci { "P_DATAOUT", 0x00, 0xe0 }, 6628c2ecf20Sopenharmony_ci { "P_DATAOUT_DT", 0x20, 0xe0 }, 6638c2ecf20Sopenharmony_ci { "P_DATAIN", 0x40, 0xe0 }, 6648c2ecf20Sopenharmony_ci { "P_DATAIN_DT", 0x60, 0xe0 }, 6658c2ecf20Sopenharmony_ci { "P_COMMAND", 0x80, 0xe0 }, 6668c2ecf20Sopenharmony_ci { "P_MESGOUT", 0xa0, 0xe0 }, 6678c2ecf20Sopenharmony_ci { "P_STATUS", 0xc0, 0xe0 }, 6688c2ecf20Sopenharmony_ci { "P_MESGIN", 0xe0, 0xe0 }, 6698c2ecf20Sopenharmony_ci { "P_BUSFREE", 0x01, 0x01 }, 6708c2ecf20Sopenharmony_ci { "MSGI", 0x20, 0x20 }, 6718c2ecf20Sopenharmony_ci { "IOI", 0x40, 0x40 }, 6728c2ecf20Sopenharmony_ci { "CDI", 0x80, 0x80 }, 6738c2ecf20Sopenharmony_ci { "PHASE_MASK", 0xe0, 0xe0 } 6748c2ecf20Sopenharmony_ci}; 6758c2ecf20Sopenharmony_ci 6768c2ecf20Sopenharmony_ciint 6778c2ecf20Sopenharmony_ciahd_lastphase_print(u_int regvalue, u_int *cur_col, u_int wrap) 6788c2ecf20Sopenharmony_ci{ 6798c2ecf20Sopenharmony_ci return (ahd_print_register(LASTPHASE_parse_table, 13, "LASTPHASE", 6808c2ecf20Sopenharmony_ci 0x13c, regvalue, cur_col, wrap)); 6818c2ecf20Sopenharmony_ci} 6828c2ecf20Sopenharmony_ci 6838c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t SEQ_FLAGS2_parse_table[] = { 6848c2ecf20Sopenharmony_ci { "PENDING_MK_MESSAGE", 0x01, 0x01 }, 6858c2ecf20Sopenharmony_ci { "TARGET_MSG_PENDING", 0x02, 0x02 }, 6868c2ecf20Sopenharmony_ci { "SELECTOUT_QFROZEN", 0x04, 0x04 } 6878c2ecf20Sopenharmony_ci}; 6888c2ecf20Sopenharmony_ci 6898c2ecf20Sopenharmony_ciint 6908c2ecf20Sopenharmony_ciahd_seq_flags2_print(u_int regvalue, u_int *cur_col, u_int wrap) 6918c2ecf20Sopenharmony_ci{ 6928c2ecf20Sopenharmony_ci return (ahd_print_register(SEQ_FLAGS2_parse_table, 3, "SEQ_FLAGS2", 6938c2ecf20Sopenharmony_ci 0x14d, regvalue, cur_col, wrap)); 6948c2ecf20Sopenharmony_ci} 6958c2ecf20Sopenharmony_ci 6968c2ecf20Sopenharmony_ciint 6978c2ecf20Sopenharmony_ciahd_mk_message_scb_print(u_int regvalue, u_int *cur_col, u_int wrap) 6988c2ecf20Sopenharmony_ci{ 6998c2ecf20Sopenharmony_ci return (ahd_print_register(NULL, 0, "MK_MESSAGE_SCB", 7008c2ecf20Sopenharmony_ci 0x160, regvalue, cur_col, wrap)); 7018c2ecf20Sopenharmony_ci} 7028c2ecf20Sopenharmony_ci 7038c2ecf20Sopenharmony_ciint 7048c2ecf20Sopenharmony_ciahd_mk_message_scsiid_print(u_int regvalue, u_int *cur_col, u_int wrap) 7058c2ecf20Sopenharmony_ci{ 7068c2ecf20Sopenharmony_ci return (ahd_print_register(NULL, 0, "MK_MESSAGE_SCSIID", 7078c2ecf20Sopenharmony_ci 0x162, regvalue, cur_col, wrap)); 7088c2ecf20Sopenharmony_ci} 7098c2ecf20Sopenharmony_ci 7108c2ecf20Sopenharmony_ciint 7118c2ecf20Sopenharmony_ciahd_scb_base_print(u_int regvalue, u_int *cur_col, u_int wrap) 7128c2ecf20Sopenharmony_ci{ 7138c2ecf20Sopenharmony_ci return (ahd_print_register(NULL, 0, "SCB_BASE", 7148c2ecf20Sopenharmony_ci 0x180, regvalue, cur_col, wrap)); 7158c2ecf20Sopenharmony_ci} 7168c2ecf20Sopenharmony_ci 7178c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t SCB_CONTROL_parse_table[] = { 7188c2ecf20Sopenharmony_ci { "SCB_TAG_TYPE", 0x03, 0x03 }, 7198c2ecf20Sopenharmony_ci { "DISCONNECTED", 0x04, 0x04 }, 7208c2ecf20Sopenharmony_ci { "STATUS_RCVD", 0x08, 0x08 }, 7218c2ecf20Sopenharmony_ci { "MK_MESSAGE", 0x10, 0x10 }, 7228c2ecf20Sopenharmony_ci { "TAG_ENB", 0x20, 0x20 }, 7238c2ecf20Sopenharmony_ci { "DISCENB", 0x40, 0x40 }, 7248c2ecf20Sopenharmony_ci { "TARGET_SCB", 0x80, 0x80 } 7258c2ecf20Sopenharmony_ci}; 7268c2ecf20Sopenharmony_ci 7278c2ecf20Sopenharmony_ciint 7288c2ecf20Sopenharmony_ciahd_scb_control_print(u_int regvalue, u_int *cur_col, u_int wrap) 7298c2ecf20Sopenharmony_ci{ 7308c2ecf20Sopenharmony_ci return (ahd_print_register(SCB_CONTROL_parse_table, 7, "SCB_CONTROL", 7318c2ecf20Sopenharmony_ci 0x192, regvalue, cur_col, wrap)); 7328c2ecf20Sopenharmony_ci} 7338c2ecf20Sopenharmony_ci 7348c2ecf20Sopenharmony_cistatic const ahd_reg_parse_entry_t SCB_SCSIID_parse_table[] = { 7358c2ecf20Sopenharmony_ci { "OID", 0x0f, 0x0f }, 7368c2ecf20Sopenharmony_ci { "TID", 0xf0, 0xf0 } 7378c2ecf20Sopenharmony_ci}; 7388c2ecf20Sopenharmony_ci 7398c2ecf20Sopenharmony_ciint 7408c2ecf20Sopenharmony_ciahd_scb_scsiid_print(u_int regvalue, u_int *cur_col, u_int wrap) 7418c2ecf20Sopenharmony_ci{ 7428c2ecf20Sopenharmony_ci return (ahd_print_register(SCB_SCSIID_parse_table, 2, "SCB_SCSIID", 7438c2ecf20Sopenharmony_ci 0x193, regvalue, cur_col, wrap)); 7448c2ecf20Sopenharmony_ci} 7458c2ecf20Sopenharmony_ci 746