Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
hubio.h File Reference

Go to the source code of this file.

Data Structures

union  hubii_wid_u
 
union  hubii_wcr_u
 
union  hubii_wstat_u
 
union  hubii_ilcsr_u
 
union  hubii_iowa_u
 
union  hubii_iiwa_u
 
union  hubii_illr_u
 
union  io_perf_sel
 
union  io_perf_cnt
 
union  icrba_u
 
union  h1_icrba_u
 
union  icrbb_u
 
union  h1_icrbb_u
 
union  icrbc_s
 
union  icrbd_s
 
union  hubii_ifdr_u
 
union  iprte_a
 
union  iprb_u
 
union  icrbp_a
 
union  hubii_idsr
 

Macros

#define IIO_WIDGET   IIO_WID /* Widget identification */
 
#define IIO_WIDGET_STAT   IIO_WSTAT /* Widget status register */
 
#define IIO_WIDGET_CTRL   IIO_WCR /* Widget control register */
 
#define IIO_WIDGET_TOUT   IIO_WRTO /* Widget request timeout */
 
#define IIO_WIDGET_FLUSH   IIO_WTFR /* Widget target flush */
 
#define IIO_PROTECT   IIO_ILAPR /* IO interface protection */
 
#define IIO_PROTECT_OVRRD   IIO_ILAPO /* IO protect override */
 
#define IIO_OUTWIDGET_ACCESS   IIO_IOWA /* Outbound widget access */
 
#define IIO_INWIDGET_ACCESS   IIO_IIWA /* Inbound widget access */
 
#define IIO_INDEV_ERR_MASK   IIO_IIDEM /* Inbound device error mask */
 
#define IIO_LLP_CSR   IIO_ILCSR /* LLP control and status */
 
#define IIO_LLP_LOG   IIO_ILLR /* LLP log */
 
#define IIO_XTALKCC_TOUT   IIO_IXCC /* Xtalk credit count timeout*/
 
#define IIO_XTALKTT_TOUT   IIO_IXTT /* Xtalk tail timeout */
 
#define IIO_IO_ERR_CLR   IIO_IECLR /* IO error clear */
 
#define IIO_BTE_CRB_CNT   IIO_IBCN /* IO BTE CRB count */
 
#define IIO_LLP_CSR_IS_UP   0x00002000
 
#define IIO_LLP_CSR_LLP_STAT_MASK   0x00003000
 
#define IIO_LLP_CSR_LLP_STAT_SHFT   12
 
#define IIO_PROTECT_OVRRD_KEY   0x53474972756c6573ull /* "SGIrules" */
 
#define IIO_BTE_STAT_0   IIO_IBLS_0 /* Also BTE length/status 0 */
 
#define IIO_BTE_SRC_0   IIO_IBSA_0 /* Also BTE source address 0 */
 
#define IIO_BTE_DEST_0   IIO_IBDA_0 /* Also BTE dest. address 0 */
 
#define IIO_BTE_CTRL_0   IIO_IBCT_0 /* Also BTE control/terminate 0 */
 
#define IIO_BTE_NOTIFY_0   IIO_IBNA_0 /* Also BTE notification 0 */
 
#define IIO_BTE_INT_0   IIO_IBIA_0 /* Also BTE interrupt 0 */
 
#define IIO_BTE_OFF_0   0 /* Base offset from BTE 0 regs. */
 
#define IIO_BTE_OFF_1   IIO_IBLS_1 - IIO_IBLS_0 /* Offset from base to BTE 1 */
 
#define BTEOFF_STAT   0
 
#define BTEOFF_SRC   (IIO_BTE_SRC_0 - IIO_BTE_STAT_0)
 
#define BTEOFF_DEST   (IIO_BTE_DEST_0 - IIO_BTE_STAT_0)
 
#define BTEOFF_CTRL   (IIO_BTE_CTRL_0 - IIO_BTE_STAT_0)
 
#define BTEOFF_NOTIFY   (IIO_BTE_NOTIFY_0 - IIO_BTE_STAT_0)
 
#define BTEOFF_INT   (IIO_BTE_INT_0 - IIO_BTE_STAT_0)
 
#define IIO_BASE   0x400000
 
#define IIO_BASE_BTE0   0x410000
 
#define IIO_BASE_BTE1   0x420000
 
#define IIO_BASE_PERF   0x430000
 
#define IIO_PERF_CNT   0x430008
 
#define IO_PERF_SETS   32
 
#define IIO_WID   0x400000 /* Widget identification */
 
#define IIO_WSTAT   0x400008 /* Widget status */
 
#define IIO_WCR   0x400020 /* Widget control */
 
#define IIO_WSTAT_ECRAZY   (1ULL << 32) /* Hub gone crazy */
 
#define IIO_WSTAT_TXRETRY   (1ULL << 9) /* Hub Tx Retry timeout */
 
#define IIO_WSTAT_TXRETRY_MASK   (0x7F)
 
#define IIO_WSTAT_TXRETRY_SHFT   (16)
 
#define IIO_WSTAT_TXRETRY_CNT(w)
 
#define IIO_ILAPR   0x400100 /* Local Access Protection */
 
#define IIO_ILAPO   0x400108 /* Protection override */
 
#define IIO_IOWA   0x400110 /* outbound widget access */
 
#define IIO_IIWA   0x400118 /* inbound widget access */
 
#define IIO_IIDEM   0x400120 /* Inbound Device Error Mask */
 
#define IIO_ILCSR   0x400128 /* LLP control and status */
 
#define IIO_ILLR   0x400130 /* LLP Log */
 
#define IIO_IIDSR   0x400138 /* Interrupt destination */
 
#define IIO_IIBUSERR   0x1400208 /* Reads here cause a bus error. */
 
#define IIO_IIDSR_SENT_SHIFT   28
 
#define IIO_IIDSR_SENT_MASK   0x10000000
 
#define IIO_IIDSR_ENB_SHIFT   24
 
#define IIO_IIDSR_ENB_MASK   0x01000000
 
#define IIO_IIDSR_NODE_SHIFT   8
 
#define IIO_IIDSR_NODE_MASK   0x0000ff00
 
#define IIO_IIDSR_LVL_SHIFT   0
 
#define IIO_IIDSR_LVL_MASK   0x0000003f
 
#define IIO_IGFX_0   0x400140 /* gfx node/widget register 0 */
 
#define IIO_IGFX_1   0x400148 /* gfx node/widget register 1 */
 
#define IIO_IGFX_W_NUM_BITS   4 /* size of widget num field */
 
#define IIO_IGFX_W_NUM_MASK   ((1<<IIO_IGFX_W_NUM_BITS)-1)
 
#define IIO_IGFX_W_NUM_SHIFT   0
 
#define IIO_IGFX_N_NUM_BITS   9 /* size of node num field */
 
#define IIO_IGFX_N_NUM_MASK   ((1<<IIO_IGFX_N_NUM_BITS)-1)
 
#define IIO_IGFX_N_NUM_SHIFT   4
 
#define IIO_IGFX_P_NUM_BITS   1 /* size of processor num field */
 
#define IIO_IGFX_P_NUM_MASK   ((1<<IIO_IGFX_P_NUM_BITS)-1)
 
#define IIO_IGFX_P_NUM_SHIFT   16
 
#define IIO_IGFX_VLD_BITS   1 /* size of valid field */
 
#define IIO_IGFX_VLD_MASK   ((1<<IIO_IGFX_VLD_BITS)-1)
 
#define IIO_IGFX_VLD_SHIFT   20
 
#define IIO_IGFX_INIT(widget, node, cpu, valid)
 
#define IIO_SCRATCH_REG0   0x400150
 
#define IIO_SCRATCH_REG1   0x400158
 
#define IIO_SCRATCH_MASK   0x0000000f00f11fff
 
#define IIO_SCRATCH_BIT0_0   0x0000000800000000
 
#define IIO_SCRATCH_BIT0_1   0x0000000400000000
 
#define IIO_SCRATCH_BIT0_2   0x0000000200000000
 
#define IIO_SCRATCH_BIT0_3   0x0000000100000000
 
#define IIO_SCRATCH_BIT0_4   0x0000000000800000
 
#define IIO_SCRATCH_BIT0_5   0x0000000000400000
 
#define IIO_SCRATCH_BIT0_6   0x0000000000200000
 
#define IIO_SCRATCH_BIT0_7   0x0000000000100000
 
#define IIO_SCRATCH_BIT0_8   0x0000000000010000
 
#define IIO_SCRATCH_BIT0_9   0x0000000000001000
 
#define IIO_SCRATCH_BIT0_R   0x0000000000000fff
 
#define IIO_NUM_ITTES   7 /* ITTEs numbered 0..6 */
 
#define HUB_NUM_BIG_WINDOW   IIO_NUM_ITTES - 1
 
#define SWIN0_BIGWIN   HUB_NUM_BIG_WINDOW
 
#define ILCSR_WARM_RESET   0x100
 
#define iwcr_dir_con   wcr_fields_s.wcr_dir_con
 
#define LNK_STAT_WORKING   0x2
 
#define IIO_LLP_CB_MAX   0xffff
 
#define IIO_LLP_SN_MAX   0xffff
 
#define IIO_NUM_IPRBS   (9)
 
#define IIO_IOPRB_0   0x400198 /* PRB entry 0 */
 
#define IIO_IOPRB_8   0x4001a0 /* PRB entry 8 */
 
#define IIO_IOPRB_9   0x4001a8 /* PRB entry 9 */
 
#define IIO_IOPRB_A   0x4001b0 /* PRB entry a */
 
#define IIO_IOPRB_B   0x4001b8 /* PRB entry b */
 
#define IIO_IOPRB_C   0x4001c0 /* PRB entry c */
 
#define IIO_IOPRB_D   0x4001c8 /* PRB entry d */
 
#define IIO_IOPRB_E   0x4001d0 /* PRB entry e */
 
#define IIO_IOPRB_F   0x4001d8 /* PRB entry f */
 
#define IIO_IXCC   0x4001e0 /* Crosstalk credit count timeout */
 
#define IIO_IXTCC   IIO_IXCC
 
#define IIO_IMEM   0x4001e8 /* Miscellaneous Enable Mask */
 
#define IIO_IXTT   0x4001f0 /* Crosstalk tail timeout */
 
#define IIO_IECLR   0x4001f8 /* IO error clear */
 
#define IIO_IBCN   0x400200 /* IO BTE CRB count */
 
#define IIO_IMEM_W0ESD   0x1 /* Widget 0 shut down due to error */
 
#define IIO_IMEM_B0ESD   (1 << 4) /* BTE 0 shut down due to error */
 
#define IIO_IMEM_B1ESD   (1 << 8) /* BTE 1 Shut down due to error */
 
#define IIO_IPCA   0x400300 /* PRB Counter adjust */
 
#define IIO_NUM_PRTES   8 /* Total number of PRB table entries */
 
#define IIO_PRTE_0   0x400308 /* PIO Read address table entry 0 */
 
#define IIO_PRTE(_x)   (IIO_PRTE_0 + (8 * (_x)))
 
#define IIO_WIDPRTE(x)   IIO_PRTE(((x) - 8)) /* widget ID to its PRTE num */
 
#define IIO_IPDR   0x400388 /* PIO table entry deallocation */
 
#define IIO_ICDR   0x400390 /* CRB Entry Deallocation */
 
#define IIO_IFDR   0x400398 /* IOQ FIFO Depth */
 
#define IIO_IIAP   0x4003a0 /* IIQ Arbitration Parameters */
 
#define IIO_IMMR   IIO_IIAP
 
#define IIO_ICMR   0x4003a8 /* CRB Management Register */
 
#define IIO_ICCR   0x4003b0 /* CRB Control Register */
 
#define IIO_ICTO   0x4003b8 /* CRB Time Out Register */
 
#define IIO_ICTP   0x4003c0 /* CRB Time Out Prescalar */
 
#define IIO_ICMR_PC_VLD_SHFT   36
 
#define IIO_ICMR_PC_VLD_MASK   (0x7fffUL << IIO_ICMR_PC_VLD_SHFT)
 
#define IIO_ICMR_CRB_VLD_SHFT   20
 
#define IIO_ICMR_CRB_VLD_MASK   (0x7fffUL << IIO_ICMR_CRB_VLD_SHFT)
 
#define IIO_ICMR_FC_CNT_SHFT   16
 
#define IIO_ICMR_FC_CNT_MASK   (0xf << IIO_ICMR_FC_CNT_SHFT)
 
#define IIO_ICMR_C_CNT_SHFT   4
 
#define IIO_ICMR_C_CNT_MASK   (0xf << IIO_ICMR_C_CNT_SHFT)
 
#define IIO_ICMR_P_CNT_SHFT   0
 
#define IIO_ICMR_P_CNT_MASK   (0xf << IIO_ICMR_P_CNT_SHFT)
 
#define IIO_ICMR_PRECISE   (1UL << 52)
 
#define IIO_ICMR_CLR_RPPD   (1UL << 13)
 
#define IIO_ICMR_CLR_RQPD   (1UL << 12)
 
#define IIO_IPDR_PND   (1 << 4)
 
#define IIO_ICDR_PND   (1 << 4)
 
#define IIO_ICCR_PENDING   (0x10000)
 
#define IIO_ICCR_CMD_MASK   (0xFF)
 
#define IIO_ICCR_CMD_SHFT   (7)
 
#define IIO_ICCR_CMD_NOP   (0x0) /* No Op */
 
#define IIO_ICCR_CMD_WAKE   (0x100) /* Reactivate CRB entry and process */
 
#define IIO_ICCR_CMD_TIMEOUT   (0x200) /* Make CRB timeout & mark invalid */
 
#define IIO_ICCR_CMD_EJECT
 
#define IIO_ICCR_CMD_FLUSH   (0x800)
 
#define IIO_NUM_CRBS   15 /* Number of CRBs */
 
#define IIO_NUM_NORMAL_CRBS   12 /* Number of regular CRB entries */
 
#define IIO_NUM_PC_CRBS   4 /* Number of partial cache CRBs */
 
#define IIO_ICRB_OFFSET   8
 
#define IIO_ICRB_0   0x400400
 
#define IIO_ICRB_A(_x)   (IIO_ICRB_0 + (4 * IIO_ICRB_OFFSET * (_x)))
 
#define IIO_ICRB_B(_x)   (IIO_ICRB_A(_x) + 1*IIO_ICRB_OFFSET)
 
#define IIO_ICRB_C(_x)   (IIO_ICRB_A(_x) + 2*IIO_ICRB_OFFSET)
 
#define IIO_ICRB_D(_x)   (IIO_ICRB_A(_x) + 3*IIO_ICRB_OFFSET)
 
#define ICRBN_A_CERR_SHFT   54
 
#define ICRBN_A_ERR_MASK   0x3ff
 
#define IIO_ICRB_ADDR_SHFT   2 /* Shift to get proper address */
 
#define IIO_ICRB_ECODE_DERR   0 /* Directory error due to IIO access */
 
#define IIO_ICRB_ECODE_PERR   1 /* Poison error on IO access */
 
#define IIO_ICRB_ECODE_WERR
 
#define IIO_ICRB_ECODE_AERR   3 /* Access error caused by IIO access */
 
#define IIO_ICRB_ECODE_PWERR   4 /* Error on partial write */
 
#define IIO_ICRB_ECODE_PRERR   5 /* Error on partial read */
 
#define IIO_ICRB_ECODE_TOUT   6 /* CRB timeout before deallocating */
 
#define IIO_ICRB_ECODE_XTERR   7 /* Incoming xtalk pkt had error bit */
 
#define b_imsgtype   icrbb_field_s.imsgtype
 
#define b_btenum   icrbb_field_s.btenum
 
#define b_cohtrans   icrbb_field_s.cohtrans
 
#define b_xtsize   icrbb_field_s.xtsize
 
#define b_srcnode   icrbb_field_s.srcnode
 
#define b_srcinit   icrbb_field_s.srcinit
 
#define b_imsgtype   icrbb_field_s.imsgtype
 
#define b_imsg   icrbb_field_s.imsg
 
#define b_initiator   icrbb_field_s.initiator
 
#define IIO_ICRB_XTSIZE_DW   0 /* Xtalk operation size is 8 bytes */
 
#define IIO_ICRB_XTSIZE_32   1 /* Xtalk operation size is 32 bytes */
 
#define IIO_ICRB_XTSIZE_128   2 /* Xtalk operation size is 128 bytes */
 
#define IIO_ICRB_PROC0   0 /* Source of request is Proc 0 */
 
#define IIO_ICRB_PROC1   1 /* Source of request is Proc 1 */
 
#define IIO_ICRB_GB_REQ   2 /* Source is Guaranteed BW request */
 
#define IIO_ICRB_IO_REQ   3 /* Source is Normal IO request */
 
#define IIO_ICRB_IMSGT_XTALK   0 /* Incoming Meessage from Xtalk */
 
#define IIO_ICRB_IMSGT_BTE   1 /* Incoming message from BTE */
 
#define IIO_ICRB_IMSGT_SN0NET   2 /* Incoming message from SN0 net */
 
#define IIO_ICRB_IMSGT_CRB   3 /* Incoming message from CRB ??? */
 
#define IIO_ICRB_INIT_XTALK   0 /* Message originated in xtalk */
 
#define IIO_ICRB_INIT_BTE0   0x1 /* Message originated in BTE 0 */
 
#define IIO_ICRB_INIT_SN0NET   0x2 /* Message originated in SN0net */
 
#define IIO_ICRB_INIT_CRB   0x3 /* Message originated in CRB ? */
 
#define IIO_ICRB_INIT_BTE1   0x5 /* MEssage originated in BTE 1 */
 
#define IIO_ICRB_REQ_DWRD   0 /* Request type double word */
 
#define IIO_ICRB_REQ_QCLRD   1 /* Request is Qrtr Caceh line Rd */
 
#define IIO_ICRB_REQ_BLKRD   2 /* Request is block read */
 
#define IIO_ICRB_REQ_RSHU   6 /* Request is BTE block read */
 
#define IIO_ICRB_REQ_REXU   7 /* request is BTE Excl Read */
 
#define IIO_ICRB_REQ_RDEX   8 /* Request is Read Exclusive */
 
#define IIO_ICRB_REQ_WINC   9 /* Request is Write Invalidate */
 
#define IIO_ICRB_REQ_BWINV   10 /* Request is BTE Winv */
 
#define IIO_ICRB_REQ_PIORD   11 /* Request is PIO read */
 
#define IIO_ICRB_REQ_PIOWR   12 /* Request is PIO Write */
 
#define IIO_ICRB_REQ_PRDM   13 /* Request is Fetch&Op */
 
#define IIO_ICRB_REQ_PWRM   14 /* Request is Store &Op */
 
#define IIO_ICRB_REQ_PTPWR   15 /* Request is Peer to peer */
 
#define IIO_ICRB_REQ_WB   16 /* Request is Write back */
 
#define IIO_ICRB_REQ_DEX   17 /* Retained DEX Cache line */
 
#define c_pricnt   icrbc_field_s.pricnt
 
#define c_pripsc   icrbc_field_s.pripsc
 
#define c_bteop   icrbc_field_s.bteop
 
#define c_bteaddr   icrbc_field_s.push_be /* push_be field has 2 names */
 
#define c_benable   icrbc_field_s.push_be /* push_be field has 2 names */
 
#define c_suppl   icrbc_field_s.suppl
 
#define c_barrop   icrbc_field_s.barrop
 
#define c_doresp   icrbc_field_s.doresp
 
#define c_gbr   icrbc_field_s.gbr
 
#define icrbd_toutvld   icrbd_field_s.toutvld
 
#define icrbd_ctxtvld   icrbd_field_s.ctxtvld
 
#define icrbd_context   icrbd_field_s.context
 
#define IIO_IBLS_0   0x410000 /* BTE length/status 0 */
 
#define IIO_IBSA_0   0x410008 /* BTE source address 0 */
 
#define IIO_IBDA_0   0x410010 /* BTE destination address 0 */
 
#define IIO_IBCT_0   0x410018 /* BTE control/terminate 0 */
 
#define IIO_IBNA_0   0x410020 /* BTE notification address 0 */
 
#define IIO_IBNR_0   IIO_IBNA_0
 
#define IIO_IBIA_0   0x410028 /* BTE interrupt address 0 */
 
#define IIO_IBLS_1   0x420000 /* BTE length/status 1 */
 
#define IIO_IBSA_1   0x420008 /* BTE source address 1 */
 
#define IIO_IBDA_1   0x420010 /* BTE destination address 1 */
 
#define IIO_IBCT_1   0x420018 /* BTE control/terminate 1 */
 
#define IIO_IBNA_1   0x420020 /* BTE notification address 1 */
 
#define IIO_IBNR_1   IIO_IBNA_1
 
#define IIO_IBIA_1   0x420028 /* BTE interrupt address 1 */
 
#define IIO_IPCR   0x430000 /* Performance Control */
 
#define IIO_IPPR   0x430008 /* Performance Profiling */
 
#define IECLR_BTE1   (1 << 18) /* clear bte error 1 ??? */
 
#define IECLR_BTE0   (1 << 17) /* clear bte error 0 ??? */
 
#define IECLR_CRAZY   (1 << 16) /* clear crazy bit in wstat reg */
 
#define IECLR_PRB_F   (1 << 15) /* clear err bit in PRB_F reg */
 
#define IECLR_PRB_E   (1 << 14) /* clear err bit in PRB_E reg */
 
#define IECLR_PRB_D   (1 << 13) /* clear err bit in PRB_D reg */
 
#define IECLR_PRB_C   (1 << 12) /* clear err bit in PRB_C reg */
 
#define IECLR_PRB_B   (1 << 11) /* clear err bit in PRB_B reg */
 
#define IECLR_PRB_A   (1 << 10) /* clear err bit in PRB_A reg */
 
#define IECLR_PRB_9   (1 << 9) /* clear err bit in PRB_9 reg */
 
#define IECLR_PRB_8   (1 << 8) /* clear err bit in PRB_8 reg */
 
#define IECLR_PRB_0   (1 << 0) /* clear err bit in PRB_0 reg */
 
#define iprte_valid   iprte_fields.valid
 
#define iprte_timeout   iprte_fields.timeout
 
#define iprte_srcnode   iprte_fields.srcnode
 
#define iprte_init   iprte_fields.initiator
 
#define iprte_addr   iprte_fields.addr
 
#define IPRTE_ADDRSHFT   3
 
#define iprb_regval   reg_value
 
#define iprb_error   iprb_fields_s.error
 
#define iprb_ovflow   iprb_fields_s.ovflow
 
#define iprb_ff   iprb_fields_s.fire_and_forget
 
#define iprb_mode   iprb_fields_s.mode
 
#define iprb_bnakctr   iprb_fields_s.bnakctr
 
#define iprb_anakctr   iprb_fields_s.anakctr
 
#define iprb_xtalkctr   iprb_fields_s.xtalkctr
 
#define IPRB_MODE_NORMAL   (0)
 
#define IPRB_MODE_COLLECT_A   (1) /* PRB in collect A mode */
 
#define IPRB_MODE_SERVICE_A   (2) /* NAK B and Accept A */
 
#define IPRB_MODE_SERVICE_B   (3) /* NAK A and Accept B */
 
#define ICRBP_A_CERR_SHFT   54
 
#define ICRBP_A_ERR_MASK   0x3ff
 
#define IBLS_BUSY   (0x1 << 20)
 
#define IBLS_ERROR_SHFT   16
 
#define IBLS_ERROR   (0x1 << IBLS_ERROR_SHFT)
 
#define IBLS_LENGTH_MASK   0xffff
 
#define IBCT_POISON   (0x1 << 8)
 
#define IBCT_NOTIFY   (0x1 << 4)
 
#define IBCT_ZFIL_MODE   (0x1 << 0)
 
#define IBIA_LEVEL_SHFT   16
 
#define IBIA_LEVEL_MASK   (0x7f << IBIA_LEVEL_SHFT)
 
#define IBIA_NODE_ID_SHFT   0
 
#define IBIA_NODE_ID_MASK   (0x1ff)
 
#define HUB_NUM_WIDGET   9
 
#define HUB_WIDGET_ID_MIN   0x8
 
#define HUB_WIDGET_ID_MAX   0xf
 
#define HUB_WIDGET_PART_NUM   0xc101
 
#define MAX_HUBS_PER_XBOW   2
 
#define IIO_WCR_WID_GET(nasid)   (REMOTE_HUB_L(nasid, III_WCR) & 0xf)
 
#define IIO_WST_ERROR_MASK   (UINT64_CAST 1 << 32) /* Widget status error */
 
#define HUBII_XBOW_CREDIT   3
 
#define HUBII_XBOW_REV2_CREDIT   4
 

Typedefs

typedef union hubii_wid_u hubii_wid_t
 
typedef union hubii_wcr_u hubii_wcr_t
 
typedef union hubii_wstat_u hubii_wstat_t
 
typedef union hubii_ilcsr_u hubii_ilcsr_t
 
typedef union hubii_iowa_u hubii_iowa_t
 
typedef union hubii_iiwa_u hubii_iiwa_t
 
typedef union hubii_illr_u hubii_illr_t
 
typedef union io_perf_sel io_perf_sel_t
 
typedef union io_perf_cnt io_perf_cnt_t
 
typedef union icrba_u icrba_t
 
typedef union h1_icrba_u h1_icrba_t
 
typedef union icrbb_u icrbb_t
 
typedef union h1_icrbb_u h1_icrbb_t
 
typedef union icrbc_s icrbc_t
 
typedef union icrbd_s icrbd_t
 
typedef union hubii_ifdr_u hubii_ifdr_t
 
typedef union iprte_a iprte_a_t
 
typedef union iprb_u iprb_t
 
typedef union icrbp_a icrbp_a_t
 
typedef union hubii_idsr hubii_idsr_t
 

Macro Definition Documentation

#define b_btenum   icrbb_field_s.btenum

Definition at line 598 of file hubio.h.

#define b_cohtrans   icrbb_field_s.cohtrans

Definition at line 599 of file hubio.h.

#define b_imsg   icrbb_field_s.imsg

Definition at line 604 of file hubio.h.

#define b_imsgtype   icrbb_field_s.imsgtype

Definition at line 603 of file hubio.h.

#define b_imsgtype   icrbb_field_s.imsgtype

Definition at line 603 of file hubio.h.

#define b_initiator   icrbb_field_s.initiator

Definition at line 605 of file hubio.h.

#define b_srcinit   icrbb_field_s.srcinit

Definition at line 602 of file hubio.h.

#define b_srcnode   icrbb_field_s.srcnode

Definition at line 601 of file hubio.h.

#define b_xtsize   icrbb_field_s.xtsize

Definition at line 600 of file hubio.h.

#define BTEOFF_CTRL   (IIO_BTE_CTRL_0 - IIO_BTE_STAT_0)

Definition at line 63 of file hubio.h.

#define BTEOFF_DEST   (IIO_BTE_DEST_0 - IIO_BTE_STAT_0)

Definition at line 62 of file hubio.h.

#define BTEOFF_INT   (IIO_BTE_INT_0 - IIO_BTE_STAT_0)

Definition at line 65 of file hubio.h.

#define BTEOFF_NOTIFY   (IIO_BTE_NOTIFY_0 - IIO_BTE_STAT_0)

Definition at line 64 of file hubio.h.

#define BTEOFF_SRC   (IIO_BTE_SRC_0 - IIO_BTE_STAT_0)

Definition at line 61 of file hubio.h.

#define BTEOFF_STAT   0

Definition at line 60 of file hubio.h.

#define c_barrop   icrbc_field_s.barrop

Definition at line 694 of file hubio.h.

#define c_benable   icrbc_field_s.push_be /* push_be field has 2 names */

Definition at line 692 of file hubio.h.

#define c_bteaddr   icrbc_field_s.push_be /* push_be field has 2 names */

Definition at line 691 of file hubio.h.

#define c_bteop   icrbc_field_s.bteop

Definition at line 690 of file hubio.h.

#define c_doresp   icrbc_field_s.doresp

Definition at line 695 of file hubio.h.

#define c_gbr   icrbc_field_s.gbr

Definition at line 696 of file hubio.h.

#define c_pricnt   icrbc_field_s.pricnt

Definition at line 688 of file hubio.h.

#define c_pripsc   icrbc_field_s.pripsc

Definition at line 689 of file hubio.h.

#define c_suppl   icrbc_field_s.suppl

Definition at line 693 of file hubio.h.

#define HUB_NUM_BIG_WINDOW   IIO_NUM_ITTES - 1

Definition at line 161 of file hubio.h.

#define HUB_NUM_WIDGET   9

Definition at line 946 of file hubio.h.

#define HUB_WIDGET_ID_MAX   0xf

Definition at line 948 of file hubio.h.

#define HUB_WIDGET_ID_MIN   0x8

Definition at line 947 of file hubio.h.

#define HUB_WIDGET_PART_NUM   0xc101

Definition at line 950 of file hubio.h.

#define HUBII_XBOW_CREDIT   3

Definition at line 965 of file hubio.h.

#define HUBII_XBOW_REV2_CREDIT   4

Definition at line 966 of file hubio.h.

#define IBCT_NOTIFY   (0x1 << 4)

Definition at line 930 of file hubio.h.

#define IBCT_POISON   (0x1 << 8)

Definition at line 929 of file hubio.h.

#define IBCT_ZFIL_MODE   (0x1 << 0)

Definition at line 931 of file hubio.h.

#define IBIA_LEVEL_MASK   (0x7f << IBIA_LEVEL_SHFT)

Definition at line 937 of file hubio.h.

#define IBIA_LEVEL_SHFT   16

Definition at line 936 of file hubio.h.

#define IBIA_NODE_ID_MASK   (0x1ff)

Definition at line 939 of file hubio.h.

#define IBIA_NODE_ID_SHFT   0

Definition at line 938 of file hubio.h.

#define IBLS_BUSY   (0x1 << 20)

Definition at line 921 of file hubio.h.

#define IBLS_ERROR   (0x1 << IBLS_ERROR_SHFT)

Definition at line 923 of file hubio.h.

#define IBLS_ERROR_SHFT   16

Definition at line 922 of file hubio.h.

#define IBLS_LENGTH_MASK   0xffff

Definition at line 924 of file hubio.h.

#define icrbd_context   icrbd_field_s.context

Definition at line 723 of file hubio.h.

#define icrbd_ctxtvld   icrbd_field_s.ctxtvld

Definition at line 722 of file hubio.h.

#define icrbd_toutvld   icrbd_field_s.toutvld

Definition at line 721 of file hubio.h.

#define ICRBN_A_CERR_SHFT   54

Definition at line 484 of file hubio.h.

#define ICRBN_A_ERR_MASK   0x3ff

Definition at line 485 of file hubio.h.

#define ICRBP_A_CERR_SHFT   54

Definition at line 899 of file hubio.h.

#define ICRBP_A_ERR_MASK   0x3ff

Definition at line 900 of file hubio.h.

#define IECLR_BTE0   (1 << 17) /* clear bte error 0 ??? */

Definition at line 767 of file hubio.h.

#define IECLR_BTE1   (1 << 18) /* clear bte error 1 ??? */

Definition at line 766 of file hubio.h.

#define IECLR_CRAZY   (1 << 16) /* clear crazy bit in wstat reg */

Definition at line 768 of file hubio.h.

#define IECLR_PRB_0   (1 << 0) /* clear err bit in PRB_0 reg */

Definition at line 777 of file hubio.h.

#define IECLR_PRB_8   (1 << 8) /* clear err bit in PRB_8 reg */

Definition at line 776 of file hubio.h.

#define IECLR_PRB_9   (1 << 9) /* clear err bit in PRB_9 reg */

Definition at line 775 of file hubio.h.

#define IECLR_PRB_A   (1 << 10) /* clear err bit in PRB_A reg */

Definition at line 774 of file hubio.h.

#define IECLR_PRB_B   (1 << 11) /* clear err bit in PRB_B reg */

Definition at line 773 of file hubio.h.

#define IECLR_PRB_C   (1 << 12) /* clear err bit in PRB_C reg */

Definition at line 772 of file hubio.h.

#define IECLR_PRB_D   (1 << 13) /* clear err bit in PRB_D reg */

Definition at line 771 of file hubio.h.

#define IECLR_PRB_E   (1 << 14) /* clear err bit in PRB_E reg */

Definition at line 770 of file hubio.h.

#define IECLR_PRB_F   (1 << 15) /* clear err bit in PRB_F reg */

Definition at line 769 of file hubio.h.

#define IIO_BASE   0x400000

Definition at line 74 of file hubio.h.

#define IIO_BASE_BTE0   0x410000

Definition at line 75 of file hubio.h.

#define IIO_BASE_BTE1   0x420000

Definition at line 76 of file hubio.h.

#define IIO_BASE_PERF   0x430000

Definition at line 77 of file hubio.h.

#define IIO_BTE_CRB_CNT   IIO_IBCN /* IO BTE CRB count */

Definition at line 40 of file hubio.h.

#define IIO_BTE_CTRL_0   IIO_IBCT_0 /* Also BTE control/terminate 0 */

Definition at line 53 of file hubio.h.

#define IIO_BTE_DEST_0   IIO_IBDA_0 /* Also BTE dest. address 0 */

Definition at line 52 of file hubio.h.

#define IIO_BTE_INT_0   IIO_IBIA_0 /* Also BTE interrupt 0 */

Definition at line 55 of file hubio.h.

#define IIO_BTE_NOTIFY_0   IIO_IBNA_0 /* Also BTE notification 0 */

Definition at line 54 of file hubio.h.

#define IIO_BTE_OFF_0   0 /* Base offset from BTE 0 regs. */

Definition at line 56 of file hubio.h.

#define IIO_BTE_OFF_1   IIO_IBLS_1 - IIO_IBLS_0 /* Offset from base to BTE 1 */

Definition at line 57 of file hubio.h.

#define IIO_BTE_SRC_0   IIO_IBSA_0 /* Also BTE source address 0 */

Definition at line 51 of file hubio.h.

#define IIO_BTE_STAT_0   IIO_IBLS_0 /* Also BTE length/status 0 */

Definition at line 50 of file hubio.h.

#define IIO_IBCN   0x400200 /* IO BTE CRB count */

Definition at line 321 of file hubio.h.

#define IIO_IBCT_0   0x410018 /* BTE control/terminate 0 */

Definition at line 744 of file hubio.h.

#define IIO_IBCT_1   0x420018 /* BTE control/terminate 1 */

Definition at line 752 of file hubio.h.

#define IIO_IBDA_0   0x410010 /* BTE destination address 0 */

Definition at line 743 of file hubio.h.

#define IIO_IBDA_1   0x420010 /* BTE destination address 1 */

Definition at line 751 of file hubio.h.

#define IIO_IBIA_0   0x410028 /* BTE interrupt address 0 */

Definition at line 747 of file hubio.h.

#define IIO_IBIA_1   0x420028 /* BTE interrupt address 1 */

Definition at line 755 of file hubio.h.

#define IIO_IBLS_0   0x410000 /* BTE length/status 0 */

Definition at line 741 of file hubio.h.

#define IIO_IBLS_1   0x420000 /* BTE length/status 1 */

Definition at line 749 of file hubio.h.

#define IIO_IBNA_0   0x410020 /* BTE notification address 0 */

Definition at line 745 of file hubio.h.

#define IIO_IBNA_1   0x420020 /* BTE notification address 1 */

Definition at line 753 of file hubio.h.

#define IIO_IBNR_0   IIO_IBNA_0

Definition at line 746 of file hubio.h.

#define IIO_IBNR_1   IIO_IBNA_1

Definition at line 754 of file hubio.h.

#define IIO_IBSA_0   0x410008 /* BTE source address 0 */

Definition at line 742 of file hubio.h.

#define IIO_IBSA_1   0x420008 /* BTE source address 1 */

Definition at line 750 of file hubio.h.

#define IIO_ICCR   0x4003b0 /* CRB Control Register */

Definition at line 342 of file hubio.h.

#define IIO_ICCR_CMD_EJECT
Value:
(0x400) /* Contents of entry written to memory
* via a WB
*/

Definition at line 388 of file hubio.h.

#define IIO_ICCR_CMD_FLUSH   (0x800)

Definition at line 389 of file hubio.h.

#define IIO_ICCR_CMD_MASK   (0xFF)

Definition at line 383 of file hubio.h.

#define IIO_ICCR_CMD_NOP   (0x0) /* No Op */

Definition at line 385 of file hubio.h.

#define IIO_ICCR_CMD_SHFT   (7)

Definition at line 384 of file hubio.h.

#define IIO_ICCR_CMD_TIMEOUT   (0x200) /* Make CRB timeout & mark invalid */

Definition at line 387 of file hubio.h.

#define IIO_ICCR_CMD_WAKE   (0x100) /* Reactivate CRB entry and process */

Definition at line 386 of file hubio.h.

#define IIO_ICCR_PENDING   (0x10000)

Definition at line 382 of file hubio.h.

#define IIO_ICDR   0x400390 /* CRB Entry Deallocation */

Definition at line 337 of file hubio.h.

#define IIO_ICDR_PND   (1 << 4)

Definition at line 377 of file hubio.h.

#define IIO_ICMR   0x4003a8 /* CRB Management Register */

Definition at line 341 of file hubio.h.

#define IIO_ICMR_C_CNT_MASK   (0xf << IIO_ICMR_C_CNT_SHFT)

Definition at line 360 of file hubio.h.

#define IIO_ICMR_C_CNT_SHFT   4

Definition at line 359 of file hubio.h.

#define IIO_ICMR_CLR_RPPD   (1UL << 13)

Definition at line 366 of file hubio.h.

#define IIO_ICMR_CLR_RQPD   (1UL << 12)

Definition at line 367 of file hubio.h.

#define IIO_ICMR_CRB_VLD_MASK   (0x7fffUL << IIO_ICMR_CRB_VLD_SHFT)

Definition at line 354 of file hubio.h.

#define IIO_ICMR_CRB_VLD_SHFT   20

Definition at line 353 of file hubio.h.

#define IIO_ICMR_FC_CNT_MASK   (0xf << IIO_ICMR_FC_CNT_SHFT)

Definition at line 357 of file hubio.h.

#define IIO_ICMR_FC_CNT_SHFT   16

Definition at line 356 of file hubio.h.

#define IIO_ICMR_P_CNT_MASK   (0xf << IIO_ICMR_P_CNT_SHFT)

Definition at line 363 of file hubio.h.

#define IIO_ICMR_P_CNT_SHFT   0

Definition at line 362 of file hubio.h.

#define IIO_ICMR_PC_VLD_MASK   (0x7fffUL << IIO_ICMR_PC_VLD_SHFT)

Definition at line 351 of file hubio.h.

#define IIO_ICMR_PC_VLD_SHFT   36

Definition at line 350 of file hubio.h.

#define IIO_ICMR_PRECISE   (1UL << 52)

Definition at line 365 of file hubio.h.

#define IIO_ICRB_0   0x400400

Definition at line 400 of file hubio.h.

#define IIO_ICRB_A (   _x)    (IIO_ICRB_0 + (4 * IIO_ICRB_OFFSET * (_x)))

Definition at line 405 of file hubio.h.

#define IIO_ICRB_ADDR_SHFT   2 /* Shift to get proper address */

Definition at line 489 of file hubio.h.

#define IIO_ICRB_B (   _x)    (IIO_ICRB_A(_x) + 1*IIO_ICRB_OFFSET)

Definition at line 406 of file hubio.h.

#define IIO_ICRB_C (   _x)    (IIO_ICRB_A(_x) + 2*IIO_ICRB_OFFSET)

Definition at line 407 of file hubio.h.

#define IIO_ICRB_D (   _x)    (IIO_ICRB_A(_x) + 3*IIO_ICRB_OFFSET)

Definition at line 408 of file hubio.h.

#define IIO_ICRB_ECODE_AERR   3 /* Access error caused by IIO access */

Definition at line 497 of file hubio.h.

#define IIO_ICRB_ECODE_DERR   0 /* Directory error due to IIO access */

Definition at line 494 of file hubio.h.

#define IIO_ICRB_ECODE_PERR   1 /* Poison error on IO access */

Definition at line 495 of file hubio.h.

#define IIO_ICRB_ECODE_PRERR   5 /* Error on partial read */

Definition at line 499 of file hubio.h.

#define IIO_ICRB_ECODE_PWERR   4 /* Error on partial write */

Definition at line 498 of file hubio.h.

#define IIO_ICRB_ECODE_TOUT   6 /* CRB timeout before deallocating */

Definition at line 500 of file hubio.h.

#define IIO_ICRB_ECODE_WERR
Value:
2 /* Write error by IIO access
* e.g. WINV to a Read only line.
*/

Definition at line 496 of file hubio.h.

#define IIO_ICRB_ECODE_XTERR   7 /* Incoming xtalk pkt had error bit */

Definition at line 501 of file hubio.h.

#define IIO_ICRB_GB_REQ   2 /* Source is Guaranteed BW request */

Definition at line 621 of file hubio.h.

#define IIO_ICRB_IMSGT_BTE   1 /* Incoming message from BTE */

Definition at line 628 of file hubio.h.

#define IIO_ICRB_IMSGT_CRB   3 /* Incoming message from CRB ??? */

Definition at line 630 of file hubio.h.

#define IIO_ICRB_IMSGT_SN0NET   2 /* Incoming message from SN0 net */

Definition at line 629 of file hubio.h.

#define IIO_ICRB_IMSGT_XTALK   0 /* Incoming Meessage from Xtalk */

Definition at line 627 of file hubio.h.

#define IIO_ICRB_INIT_BTE0   0x1 /* Message originated in BTE 0 */

Definition at line 636 of file hubio.h.

#define IIO_ICRB_INIT_BTE1   0x5 /* MEssage originated in BTE 1 */

Definition at line 639 of file hubio.h.

#define IIO_ICRB_INIT_CRB   0x3 /* Message originated in CRB ? */

Definition at line 638 of file hubio.h.

#define IIO_ICRB_INIT_SN0NET   0x2 /* Message originated in SN0net */

Definition at line 637 of file hubio.h.

#define IIO_ICRB_INIT_XTALK   0 /* Message originated in xtalk */

Definition at line 635 of file hubio.h.

#define IIO_ICRB_IO_REQ   3 /* Source is Normal IO request */

Definition at line 622 of file hubio.h.

#define IIO_ICRB_OFFSET   8

Definition at line 399 of file hubio.h.

#define IIO_ICRB_PROC0   0 /* Source of request is Proc 0 */

Definition at line 619 of file hubio.h.

#define IIO_ICRB_PROC1   1 /* Source of request is Proc 1 */

Definition at line 620 of file hubio.h.

#define IIO_ICRB_REQ_BLKRD   2 /* Request is block read */

Definition at line 647 of file hubio.h.

#define IIO_ICRB_REQ_BWINV   10 /* Request is BTE Winv */

Definition at line 652 of file hubio.h.

#define IIO_ICRB_REQ_DEX   17 /* Retained DEX Cache line */

Definition at line 659 of file hubio.h.

#define IIO_ICRB_REQ_DWRD   0 /* Request type double word */

Definition at line 645 of file hubio.h.

#define IIO_ICRB_REQ_PIORD   11 /* Request is PIO read */

Definition at line 653 of file hubio.h.

#define IIO_ICRB_REQ_PIOWR   12 /* Request is PIO Write */

Definition at line 654 of file hubio.h.

#define IIO_ICRB_REQ_PRDM   13 /* Request is Fetch&Op */

Definition at line 655 of file hubio.h.

#define IIO_ICRB_REQ_PTPWR   15 /* Request is Peer to peer */

Definition at line 657 of file hubio.h.

#define IIO_ICRB_REQ_PWRM   14 /* Request is Store &Op */

Definition at line 656 of file hubio.h.

#define IIO_ICRB_REQ_QCLRD   1 /* Request is Qrtr Caceh line Rd */

Definition at line 646 of file hubio.h.

#define IIO_ICRB_REQ_RDEX   8 /* Request is Read Exclusive */

Definition at line 650 of file hubio.h.

#define IIO_ICRB_REQ_REXU   7 /* request is BTE Excl Read */

Definition at line 649 of file hubio.h.

#define IIO_ICRB_REQ_RSHU   6 /* Request is BTE block read */

Definition at line 648 of file hubio.h.

#define IIO_ICRB_REQ_WB   16 /* Request is Write back */

Definition at line 658 of file hubio.h.

#define IIO_ICRB_REQ_WINC   9 /* Request is Write Invalidate */

Definition at line 651 of file hubio.h.

#define IIO_ICRB_XTSIZE_128   2 /* Xtalk operation size is 128 bytes */

Definition at line 614 of file hubio.h.

#define IIO_ICRB_XTSIZE_32   1 /* Xtalk operation size is 32 bytes */

Definition at line 613 of file hubio.h.

#define IIO_ICRB_XTSIZE_DW   0 /* Xtalk operation size is 8 bytes */

Definition at line 612 of file hubio.h.

#define IIO_ICTO   0x4003b8 /* CRB Time Out Register */

Definition at line 343 of file hubio.h.

#define IIO_ICTP   0x4003c0 /* CRB Time Out Prescalar */

Definition at line 344 of file hubio.h.

#define IIO_IECLR   0x4001f8 /* IO error clear */

Definition at line 320 of file hubio.h.

#define IIO_IFDR   0x400398 /* IOQ FIFO Depth */

Definition at line 338 of file hubio.h.

#define IIO_IGFX_0   0x400140 /* gfx node/widget register 0 */

Definition at line 116 of file hubio.h.

#define IIO_IGFX_1   0x400148 /* gfx node/widget register 1 */

Definition at line 117 of file hubio.h.

#define IIO_IGFX_INIT (   widget,
  node,
  cpu,
  valid 
)
Value:

Definition at line 130 of file hubio.h.

#define IIO_IGFX_N_NUM_BITS   9 /* size of node num field */

Definition at line 121 of file hubio.h.

#define IIO_IGFX_N_NUM_MASK   ((1<<IIO_IGFX_N_NUM_BITS)-1)

Definition at line 122 of file hubio.h.

#define IIO_IGFX_N_NUM_SHIFT   4

Definition at line 123 of file hubio.h.

#define IIO_IGFX_P_NUM_BITS   1 /* size of processor num field */

Definition at line 124 of file hubio.h.

#define IIO_IGFX_P_NUM_MASK   ((1<<IIO_IGFX_P_NUM_BITS)-1)

Definition at line 125 of file hubio.h.

#define IIO_IGFX_P_NUM_SHIFT   16

Definition at line 126 of file hubio.h.

#define IIO_IGFX_VLD_BITS   1 /* size of valid field */

Definition at line 127 of file hubio.h.

#define IIO_IGFX_VLD_MASK   ((1<<IIO_IGFX_VLD_BITS)-1)

Definition at line 128 of file hubio.h.

#define IIO_IGFX_VLD_SHIFT   20

Definition at line 129 of file hubio.h.

#define IIO_IGFX_W_NUM_BITS   4 /* size of widget num field */

Definition at line 118 of file hubio.h.

#define IIO_IGFX_W_NUM_MASK   ((1<<IIO_IGFX_W_NUM_BITS)-1)

Definition at line 119 of file hubio.h.

#define IIO_IGFX_W_NUM_SHIFT   0

Definition at line 120 of file hubio.h.

#define IIO_IIAP   0x4003a0 /* IIQ Arbitration Parameters */

Definition at line 339 of file hubio.h.

#define IIO_IIBUSERR   0x1400208 /* Reads here cause a bus error. */

Definition at line 102 of file hubio.h.

#define IIO_IIDEM   0x400120 /* Inbound Device Error Mask */

Definition at line 97 of file hubio.h.

#define IIO_IIDSR   0x400138 /* Interrupt destination */

Definition at line 100 of file hubio.h.

#define IIO_IIDSR_ENB_MASK   0x01000000

Definition at line 108 of file hubio.h.

#define IIO_IIDSR_ENB_SHIFT   24

Definition at line 107 of file hubio.h.

#define IIO_IIDSR_LVL_MASK   0x0000003f

Definition at line 112 of file hubio.h.

#define IIO_IIDSR_LVL_SHIFT   0

Definition at line 111 of file hubio.h.

#define IIO_IIDSR_NODE_MASK   0x0000ff00

Definition at line 110 of file hubio.h.

#define IIO_IIDSR_NODE_SHIFT   8

Definition at line 109 of file hubio.h.

#define IIO_IIDSR_SENT_MASK   0x10000000

Definition at line 106 of file hubio.h.

#define IIO_IIDSR_SENT_SHIFT   28

Definition at line 105 of file hubio.h.

#define IIO_IIWA   0x400118 /* inbound widget access */

Definition at line 96 of file hubio.h.

#define IIO_ILAPO   0x400108 /* Protection override */

Definition at line 94 of file hubio.h.

#define IIO_ILAPR   0x400100 /* Local Access Protection */

Definition at line 93 of file hubio.h.

#define IIO_ILCSR   0x400128 /* LLP control and status */

Definition at line 98 of file hubio.h.

#define IIO_ILLR   0x400130 /* LLP Log */

Definition at line 99 of file hubio.h.

#define IIO_IMEM   0x4001e8 /* Miscellaneous Enable Mask */

Definition at line 318 of file hubio.h.

#define IIO_IMEM_B0ESD   (1 << 4) /* BTE 0 shut down due to error */

Definition at line 327 of file hubio.h.

#define IIO_IMEM_B1ESD   (1 << 8) /* BTE 1 Shut down due to error */

Definition at line 328 of file hubio.h.

#define IIO_IMEM_W0ESD   0x1 /* Widget 0 shut down due to error */

Definition at line 326 of file hubio.h.

#define IIO_IMMR   IIO_IIAP

Definition at line 340 of file hubio.h.

#define IIO_INDEV_ERR_MASK   IIO_IIDEM /* Inbound device error mask */

Definition at line 34 of file hubio.h.

#define IIO_INWIDGET_ACCESS   IIO_IIWA /* Inbound widget access */

Definition at line 33 of file hubio.h.

#define IIO_IO_ERR_CLR   IIO_IECLR /* IO error clear */

Definition at line 39 of file hubio.h.

#define IIO_IOPRB_0   0x400198 /* PRB entry 0 */

Definition at line 305 of file hubio.h.

#define IIO_IOPRB_8   0x4001a0 /* PRB entry 8 */

Definition at line 306 of file hubio.h.

#define IIO_IOPRB_9   0x4001a8 /* PRB entry 9 */

Definition at line 307 of file hubio.h.

#define IIO_IOPRB_A   0x4001b0 /* PRB entry a */

Definition at line 308 of file hubio.h.

#define IIO_IOPRB_B   0x4001b8 /* PRB entry b */

Definition at line 309 of file hubio.h.

#define IIO_IOPRB_C   0x4001c0 /* PRB entry c */

Definition at line 310 of file hubio.h.

#define IIO_IOPRB_D   0x4001c8 /* PRB entry d */

Definition at line 311 of file hubio.h.

#define IIO_IOPRB_E   0x4001d0 /* PRB entry e */

Definition at line 312 of file hubio.h.

#define IIO_IOPRB_F   0x4001d8 /* PRB entry f */

Definition at line 313 of file hubio.h.

#define IIO_IOWA   0x400110 /* outbound widget access */

Definition at line 95 of file hubio.h.

#define IIO_IPCA   0x400300 /* PRB Counter adjust */

Definition at line 331 of file hubio.h.

#define IIO_IPCR   0x430000 /* Performance Control */

Definition at line 760 of file hubio.h.

#define IIO_IPDR   0x400388 /* PIO table entry deallocation */

Definition at line 336 of file hubio.h.

#define IIO_IPDR_PND   (1 << 4)

Definition at line 372 of file hubio.h.

#define IIO_IPPR   0x430008 /* Performance Profiling */

Definition at line 761 of file hubio.h.

#define IIO_IXCC   0x4001e0 /* Crosstalk credit count timeout */

Definition at line 316 of file hubio.h.

#define IIO_IXTCC   IIO_IXCC

Definition at line 317 of file hubio.h.

#define IIO_IXTT   0x4001f0 /* Crosstalk tail timeout */

Definition at line 319 of file hubio.h.

#define IIO_LLP_CB_MAX   0xffff

Definition at line 300 of file hubio.h.

#define IIO_LLP_CSR   IIO_ILCSR /* LLP control and status */

Definition at line 35 of file hubio.h.

#define IIO_LLP_CSR_IS_UP   0x00002000

Definition at line 42 of file hubio.h.

#define IIO_LLP_CSR_LLP_STAT_MASK   0x00003000

Definition at line 43 of file hubio.h.

#define IIO_LLP_CSR_LLP_STAT_SHFT   12

Definition at line 44 of file hubio.h.

#define IIO_LLP_LOG   IIO_ILLR /* LLP log */

Definition at line 36 of file hubio.h.

#define IIO_LLP_SN_MAX   0xffff

Definition at line 301 of file hubio.h.

#define IIO_NUM_CRBS   15 /* Number of CRBs */

Definition at line 396 of file hubio.h.

#define IIO_NUM_IPRBS   (9)

Definition at line 304 of file hubio.h.

#define IIO_NUM_ITTES   7 /* ITTEs numbered 0..6 */

Definition at line 154 of file hubio.h.

#define IIO_NUM_NORMAL_CRBS   12 /* Number of regular CRB entries */

Definition at line 397 of file hubio.h.

#define IIO_NUM_PC_CRBS   4 /* Number of partial cache CRBs */

Definition at line 398 of file hubio.h.

#define IIO_NUM_PRTES   8 /* Total number of PRB table entries */

Definition at line 332 of file hubio.h.

#define IIO_OUTWIDGET_ACCESS   IIO_IOWA /* Outbound widget access */

Definition at line 32 of file hubio.h.

#define IIO_PERF_CNT   0x430008

Definition at line 78 of file hubio.h.

#define IIO_PROTECT   IIO_ILAPR /* IO interface protection */

Definition at line 30 of file hubio.h.

#define IIO_PROTECT_OVRRD   IIO_ILAPO /* IO protect override */

Definition at line 31 of file hubio.h.

#define IIO_PROTECT_OVRRD_KEY   0x53474972756c6573ull /* "SGIrules" */

Definition at line 47 of file hubio.h.

#define IIO_PRTE (   _x)    (IIO_PRTE_0 + (8 * (_x)))

Definition at line 334 of file hubio.h.

#define IIO_PRTE_0   0x400308 /* PIO Read address table entry 0 */

Definition at line 333 of file hubio.h.

#define IIO_SCRATCH_BIT0_0   0x0000000800000000

Definition at line 141 of file hubio.h.

#define IIO_SCRATCH_BIT0_1   0x0000000400000000

Definition at line 142 of file hubio.h.

#define IIO_SCRATCH_BIT0_2   0x0000000200000000

Definition at line 143 of file hubio.h.

#define IIO_SCRATCH_BIT0_3   0x0000000100000000

Definition at line 144 of file hubio.h.

#define IIO_SCRATCH_BIT0_4   0x0000000000800000

Definition at line 145 of file hubio.h.

#define IIO_SCRATCH_BIT0_5   0x0000000000400000

Definition at line 146 of file hubio.h.

#define IIO_SCRATCH_BIT0_6   0x0000000000200000

Definition at line 147 of file hubio.h.

#define IIO_SCRATCH_BIT0_7   0x0000000000100000

Definition at line 148 of file hubio.h.

#define IIO_SCRATCH_BIT0_8   0x0000000000010000

Definition at line 149 of file hubio.h.

#define IIO_SCRATCH_BIT0_9   0x0000000000001000

Definition at line 150 of file hubio.h.

#define IIO_SCRATCH_BIT0_R   0x0000000000000fff

Definition at line 151 of file hubio.h.

#define IIO_SCRATCH_MASK   0x0000000f00f11fff

Definition at line 139 of file hubio.h.

#define IIO_SCRATCH_REG0   0x400150

Definition at line 137 of file hubio.h.

#define IIO_SCRATCH_REG1   0x400158

Definition at line 138 of file hubio.h.

#define IIO_WCR   0x400020 /* Widget control */

Definition at line 84 of file hubio.h.

#define IIO_WCR_WID_GET (   nasid)    (REMOTE_HUB_L(nasid, III_WCR) & 0xf)

Definition at line 956 of file hubio.h.

#define IIO_WID   0x400000 /* Widget identification */

Definition at line 82 of file hubio.h.

#define IIO_WIDGET   IIO_WID /* Widget identification */

Definition at line 25 of file hubio.h.

#define IIO_WIDGET_CTRL   IIO_WCR /* Widget control register */

Definition at line 27 of file hubio.h.

#define IIO_WIDGET_FLUSH   IIO_WTFR /* Widget target flush */

Definition at line 29 of file hubio.h.

#define IIO_WIDGET_STAT   IIO_WSTAT /* Widget status register */

Definition at line 26 of file hubio.h.

#define IIO_WIDGET_TOUT   IIO_WRTO /* Widget request timeout */

Definition at line 28 of file hubio.h.

#define IIO_WIDPRTE (   x)    IIO_PRTE(((x) - 8)) /* widget ID to its PRTE num */

Definition at line 335 of file hubio.h.

#define IIO_WST_ERROR_MASK   (UINT64_CAST 1 << 32) /* Widget status error */

Definition at line 957 of file hubio.h.

#define IIO_WSTAT   0x400008 /* Widget status */

Definition at line 83 of file hubio.h.

#define IIO_WSTAT_ECRAZY   (1ULL << 32) /* Hub gone crazy */

Definition at line 86 of file hubio.h.

#define IIO_WSTAT_TXRETRY   (1ULL << 9) /* Hub Tx Retry timeout */

Definition at line 87 of file hubio.h.

#define IIO_WSTAT_TXRETRY_CNT (   w)
Value:
IIO_WSTAT_TXRETRY_MASK)

Definition at line 90 of file hubio.h.

#define IIO_WSTAT_TXRETRY_MASK   (0x7F)

Definition at line 88 of file hubio.h.

#define IIO_WSTAT_TXRETRY_SHFT   (16)

Definition at line 89 of file hubio.h.

#define IIO_XTALKCC_TOUT   IIO_IXCC /* Xtalk credit count timeout*/

Definition at line 37 of file hubio.h.

#define IIO_XTALKTT_TOUT   IIO_IXTT /* Xtalk tail timeout */

Definition at line 38 of file hubio.h.

#define ILCSR_WARM_RESET   0x100

Definition at line 168 of file hubio.h.

#define IO_PERF_SETS   32

Definition at line 80 of file hubio.h.

#define iprb_anakctr   iprb_fields_s.anakctr

Definition at line 842 of file hubio.h.

#define iprb_bnakctr   iprb_fields_s.bnakctr

Definition at line 841 of file hubio.h.

#define iprb_error   iprb_fields_s.error

Definition at line 837 of file hubio.h.

#define iprb_ff   iprb_fields_s.fire_and_forget

Definition at line 839 of file hubio.h.

#define iprb_mode   iprb_fields_s.mode

Definition at line 840 of file hubio.h.

#define IPRB_MODE_COLLECT_A   (1) /* PRB in collect A mode */

Definition at line 853 of file hubio.h.

#define IPRB_MODE_NORMAL   (0)

Definition at line 852 of file hubio.h.

#define IPRB_MODE_SERVICE_A   (2) /* NAK B and Accept A */

Definition at line 854 of file hubio.h.

#define IPRB_MODE_SERVICE_B   (3) /* NAK A and Accept B */

Definition at line 855 of file hubio.h.

#define iprb_ovflow   iprb_fields_s.ovflow

Definition at line 838 of file hubio.h.

#define iprb_regval   reg_value

Definition at line 835 of file hubio.h.

#define iprb_xtalkctr   iprb_fields_s.xtalkctr

Definition at line 843 of file hubio.h.

#define iprte_addr   iprte_fields.addr

Definition at line 803 of file hubio.h.

#define IPRTE_ADDRSHFT   3

Definition at line 807 of file hubio.h.

#define iprte_init   iprte_fields.initiator

Definition at line 802 of file hubio.h.

#define iprte_srcnode   iprte_fields.srcnode

Definition at line 801 of file hubio.h.

#define iprte_timeout   iprte_fields.timeout

Definition at line 800 of file hubio.h.

#define iprte_valid   iprte_fields.valid

Definition at line 799 of file hubio.h.

#define iwcr_dir_con   wcr_fields_s.wcr_dir_con

Definition at line 200 of file hubio.h.

#define LNK_STAT_WORKING   0x2

Definition at line 298 of file hubio.h.

#define MAX_HUBS_PER_XBOW   2

Definition at line 951 of file hubio.h.

#define SWIN0_BIGWIN   HUB_NUM_BIG_WINDOW

Definition at line 166 of file hubio.h.

Typedef Documentation

typedef union h1_icrba_u h1_icrba_t
typedef union h1_icrbb_u h1_icrbb_t
typedef union hubii_idsr hubii_idsr_t
typedef union hubii_ifdr_u hubii_ifdr_t
typedef union hubii_iiwa_u hubii_iiwa_t
typedef union hubii_illr_u hubii_illr_t
typedef union hubii_iowa_u hubii_iowa_t
typedef union hubii_wcr_u hubii_wcr_t
typedef union hubii_wid_u hubii_wid_t
typedef union icrba_u icrba_t
typedef union icrbb_u icrbb_t
typedef union icrbc_s icrbc_t
typedef union icrbd_s icrbd_t
typedef union icrbp_a icrbp_a_t
typedef union io_perf_cnt io_perf_cnt_t
typedef union io_perf_sel io_perf_sel_t
typedef union iprb_u iprb_t
typedef union iprte_a iprte_a_t