📄 tioca.h
字号:
#ifndef _ASM_IA64_SN_TIO_TIOCA_H#define _ASM_IA64_SN_TIO_TIOCA_H/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (c) 2003-2005 Silicon Graphics, Inc. All rights reserved. */#define TIOCA_PART_NUM 0xE020#define TIOCA_MFGR_NUM 0x24#define TIOCA_REV_A 0x1/* * Register layout for TIO:CA. See below for bitmasks for each register. */struct tioca { uint64_t ca_id; /* 0x000000 */ uint64_t ca_control1; /* 0x000008 */ uint64_t ca_control2; /* 0x000010 */ uint64_t ca_status1; /* 0x000018 */ uint64_t ca_status2; /* 0x000020 */ uint64_t ca_gart_aperature; /* 0x000028 */ uint64_t ca_gfx_detach; /* 0x000030 */ uint64_t ca_inta_dest_addr; /* 0x000038 */ uint64_t ca_intb_dest_addr; /* 0x000040 */ uint64_t ca_err_int_dest_addr; /* 0x000048 */ uint64_t ca_int_status; /* 0x000050 */ uint64_t ca_int_status_alias; /* 0x000058 */ uint64_t ca_mult_error; /* 0x000060 */ uint64_t ca_mult_error_alias; /* 0x000068 */ uint64_t ca_first_error; /* 0x000070 */ uint64_t ca_int_mask; /* 0x000078 */ uint64_t ca_crm_pkterr_type; /* 0x000080 */ uint64_t ca_crm_pkterr_type_alias; /* 0x000088 */ uint64_t ca_crm_ct_error_detail_1; /* 0x000090 */ uint64_t ca_crm_ct_error_detail_2; /* 0x000098 */ uint64_t ca_crm_tnumto; /* 0x0000A0 */ uint64_t ca_gart_err; /* 0x0000A8 */ uint64_t ca_pcierr_type; /* 0x0000B0 */ uint64_t ca_pcierr_addr; /* 0x0000B8 */ uint64_t ca_pad_0000C0[3]; /* 0x0000{C0..D0} */ uint64_t ca_pci_rd_buf_flush; /* 0x0000D8 */ uint64_t ca_pci_dma_addr_extn; /* 0x0000E0 */ uint64_t ca_agp_dma_addr_extn; /* 0x0000E8 */ uint64_t ca_force_inta; /* 0x0000F0 */ uint64_t ca_force_intb; /* 0x0000F8 */ uint64_t ca_debug_vector_sel; /* 0x000100 */ uint64_t ca_debug_mux_core_sel; /* 0x000108 */ uint64_t ca_debug_mux_pci_sel; /* 0x000110 */ uint64_t ca_debug_domain_sel; /* 0x000118 */ uint64_t ca_pad_000120[28]; /* 0x0001{20..F8} */ uint64_t ca_gart_ptr_table; /* 0x200 */ uint64_t ca_gart_tlb_addr[8]; /* 0x2{08..40} */};/* * Mask/shift definitions for TIO:CA registers. The convention here is * to mainly use the names as they appear in the "TIO AEGIS Programmers' * Reference" with a CA_ prefix added. Some exceptions were made to fix * duplicate field names or to generalize fields that are common to * different registers (ca_debug_mux_core_sel and ca_debug_mux_pci_sel for * example). * * Fields consisting of a single bit have a single #define have a single * macro declaration to mask the bit. Fields consisting of multiple bits * have two declarations: one to mask the proper bits in a register, and * a second with the suffix "_SHFT" to identify how far the mask needs to * be shifted right to get its base value. *//* ==== ca_control1 */#define CA_SYS_BIG_END (1ull << 0)#define CA_DMA_AGP_SWAP (1ull << 1)#define CA_DMA_PCI_SWAP (1ull << 2)#define CA_PIO_IO_SWAP (1ull << 3)#define CA_PIO_MEM_SWAP (1ull << 4)#define CA_GFX_WR_SWAP (1ull << 5)#define CA_AGP_FW_ENABLE (1ull << 6)#define CA_AGP_CAL_CYCLE (0x7ull << 7)#define CA_AGP_CAL_CYCLE_SHFT 7#define CA_AGP_CAL_PRSCL_BYP (1ull << 10)#define CA_AGP_INIT_CAL_ENB (1ull << 11)#define CA_INJ_ADDR_PERR (1ull << 12)#define CA_INJ_DATA_PERR (1ull << 13) /* bits 15:14 unused */#define CA_PCIM_IO_NBE_AD (0x7ull << 16)#define CA_PCIM_IO_NBE_AD_SHFT 16#define CA_PCIM_FAST_BTB_ENB (1ull << 19) /* bits 23:20 unused */#define CA_PIO_ADDR_OFFSET (0xffull << 24)#define CA_PIO_ADDR_OFFSET_SHFT 24 /* bits 35:32 unused */#define CA_AGPDMA_OP_COMBDELAY (0x1full << 36)#define CA_AGPDMA_OP_COMBDELAY_SHFT 36 /* bit 41 unused */#define CA_AGPDMA_OP_ENB_COMBDELAY (1ull << 42)#define CA_PCI_INT_LPCNT (0xffull << 44)#define CA_PCI_INT_LPCNT_SHFT 44 /* bits 63:52 unused *//* ==== ca_control2 */#define CA_AGP_LATENCY_TO (0xffull << 0)#define CA_AGP_LATENCY_TO_SHFT 0#define CA_PCI_LATENCY_TO (0xffull << 8)#define CA_PCI_LATENCY_TO_SHFT 8#define CA_PCI_MAX_RETRY (0x3ffull << 16)#define CA_PCI_MAX_RETRY_SHFT 16 /* bits 27:26 unused */#define CA_RT_INT_EN (0x3ull << 28)#define CA_RT_INT_EN_SHFT 28#define CA_MSI_INT_ENB (1ull << 30)#define CA_PCI_ARB_ERR_ENB (1ull << 31)#define CA_GART_MEM_PARAM (0x3ull << 32)#define CA_GART_MEM_PARAM_SHFT 32#define CA_GART_RD_PREFETCH_ENB (1ull << 34)#define CA_GART_WR_PREFETCH_ENB (1ull << 35)#define CA_GART_FLUSH_TLB (1ull << 36) /* bits 39:37 unused */#define CA_CRM_TNUMTO_PERIOD (0x1fffull << 40)#define CA_CRM_TNUMTO_PERIOD_SHFT 40 /* bits 55:53 unused */#define CA_CRM_TNUMTO_ENB (1ull << 56)#define CA_CRM_PRESCALER_BYP (1ull << 57) /* bits 59:58 unused */#define CA_CRM_MAX_CREDIT (0x7ull << 60)#define CA_CRM_MAX_CREDIT_SHFT 60 /* bit 63 unused *//* ==== ca_status1 */#define CA_CORELET_ID (0x3ull << 0)#define CA_CORELET_ID_SHFT 0#define CA_INTA_N (1ull << 2)#define CA_INTB_N (1ull << 3)#define CA_CRM_CREDIT_AVAIL (0x7ull << 4)#define CA_CRM_CREDIT_AVAIL_SHFT 4 /* bit 7 unused */#define CA_CRM_SPACE_AVAIL (0x7full << 8)#define CA_CRM_SPACE_AVAIL_SHFT 8 /* bit 15 unused */#define CA_GART_TLB_VAL (0xffull << 16)#define CA_GART_TLB_VAL_SHFT 16 /* bits 63:24 unused *//* ==== ca_status2 */#define CA_GFX_CREDIT_AVAIL (0xffull << 0)#define CA_GFX_CREDIT_AVAIL_SHFT 0#define CA_GFX_OPQ_AVAIL (0xffull << 8)#define CA_GFX_OPQ_AVAIL_SHFT 8#define CA_GFX_WRBUFF_AVAIL (0xffull << 16)#define CA_GFX_WRBUFF_AVAIL_SHFT 16#define CA_ADMA_OPQ_AVAIL (0xffull << 24)#define CA_ADMA_OPQ_AVAIL_SHFT 24#define CA_ADMA_WRBUFF_AVAIL (0xffull << 32)#define CA_ADMA_WRBUFF_AVAIL_SHFT 32#define CA_ADMA_RDBUFF_AVAIL (0x7full << 40)#define CA_ADMA_RDBUFF_AVAIL_SHFT 40#define CA_PCI_PIO_OP_STAT (1ull << 47)#define CA_PDMA_OPQ_AVAIL (0xfull << 48)#define CA_PDMA_OPQ_AVAIL_SHFT 48#define CA_PDMA_WRBUFF_AVAIL (0xfull << 52)#define CA_PDMA_WRBUFF_AVAIL_SHFT 52#define CA_PDMA_RDBUFF_AVAIL (0x3ull << 56)#define CA_PDMA_RDBUFF_AVAIL_SHFT 56 /* bits 63:58 unused *//* ==== ca_gart_aperature */#define CA_GART_AP_ENB_AGP (1ull << 0)#define CA_GART_PAGE_SIZE (1ull << 1)#define CA_GART_AP_ENB_PCI (1ull << 2) /* bits 11:3 unused */#define CA_GART_AP_SIZE (0x3ffull << 12)#define CA_GART_AP_SIZE_SHFT 12#define CA_GART_AP_BASE (0x3ffffffffffull << 22)#define CA_GART_AP_BASE_SHFT 22/* ==== ca_inta_dest_addr ==== ca_intb_dest_addr ==== ca_err_int_dest_addr */ /* bits 2:0 unused */#define CA_INT_DEST_ADDR (0x7ffffffffffffull << 3)#define CA_INT_DEST_ADDR_SHFT 3 /* bits 55:54 unused */#define CA_INT_DEST_VECT (0xffull << 56)#define CA_INT_DEST_VECT_SHFT 56/* ==== ca_int_status *//* ==== ca_int_status_alias *//* ==== ca_mult_error *//* ==== ca_mult_error_alias *//* ==== ca_first_error *//* ==== ca_int_mask */#define CA_PCI_ERR (1ull << 0) /* bits 3:1 unused */#define CA_GART_FETCH_ERR (1ull << 4)#define CA_GFX_WR_OVFLW (1ull << 5)#define CA_PIO_REQ_OVFLW (1ull << 6)#define CA_CRM_PKTERR (1ull << 7)#define CA_CRM_DVERR (1ull << 8)#define CA_TNUMTO (1ull << 9)#define CA_CXM_RSP_CRED_OVFLW (1ull << 10)#define CA_CXM_REQ_CRED_OVFLW (1ull << 11)#define CA_PIO_INVALID_ADDR (1ull << 12)#define CA_PCI_ARB_TO (1ull << 13)#define CA_AGP_REQ_OFLOW (1ull << 14)#define CA_SBA_TYPE1_ERR (1ull << 15) /* bit 16 unused */#define CA_INTA (1ull << 17)#define CA_INTB (1ull << 18)#define CA_MULT_INTA (1ull << 19)#define CA_MULT_INTB (1ull << 20)#define CA_GFX_CREDIT_OVFLW (1ull << 21) /* bits 63:22 unused *//* ==== ca_crm_pkterr_type *//* ==== ca_crm_pkterr_type_alias */#define CA_CRM_PKTERR_SBERR_HDR (1ull << 0)#define CA_CRM_PKTERR_DIDN (1ull << 1)#define CA_CRM_PKTERR_PACTYPE (1ull << 2)#define CA_CRM_PKTERR_INV_TNUM (1ull << 3)#define CA_CRM_PKTERR_ADDR_RNG (1ull << 4)#define CA_CRM_PKTERR_ADDR_ALGN (1ull << 5)#define CA_CRM_PKTERR_HDR_PARAM (1ull << 6)#define CA_CRM_PKTERR_CW_ERR (1ull << 7)#define CA_CRM_PKTERR_SBERR_NH (1ull << 8)#define CA_CRM_PKTERR_EARLY_TERM (1ull << 9)#define CA_CRM_PKTERR_EARLY_TAIL (1ull << 10)#define CA_CRM_PKTERR_MSSNG_TAIL (1ull << 11)#define CA_CRM_PKTERR_MSSNG_HDR (1ull << 12) /* bits 15:13 unused */#define CA_FIRST_CRM_PKTERR_SBERR_HDR (1ull << 16)#define CA_FIRST_CRM_PKTERR_DIDN (1ull << 17)#define CA_FIRST_CRM_PKTERR_PACTYPE (1ull << 18)#define CA_FIRST_CRM_PKTERR_INV_TNUM (1ull << 19)#define CA_FIRST_CRM_PKTERR_ADDR_RNG (1ull << 20)#define CA_FIRST_CRM_PKTERR_ADDR_ALGN (1ull << 21)#define CA_FIRST_CRM_PKTERR_HDR_PARAM (1ull << 22)#define CA_FIRST_CRM_PKTERR_CW_ERR (1ull << 23)#define CA_FIRST_CRM_PKTERR_SBERR_NH (1ull << 24)#define CA_FIRST_CRM_PKTERR_EARLY_TERM (1ull << 25)#define CA_FIRST_CRM_PKTERR_EARLY_TAIL (1ull << 26)#define CA_FIRST_CRM_PKTERR_MSSNG_TAIL (1ull << 27)#define CA_FIRST_CRM_PKTERR_MSSNG_HDR (1ull << 28) /* bits 63:29 unused *//* ==== ca_crm_ct_error_detail_1 */#define CA_PKT_TYPE (0xfull << 0)#define CA_PKT_TYPE_SHFT 0#define CA_SRC_ID (0x3ull << 4)#define CA_SRC_ID_SHFT 4#define CA_DATA_SZ (0x3ull << 6)#define CA_DATA_SZ_SHFT 6#define CA_TNUM (0xffull << 8)#define CA_TNUM_SHFT 8#define CA_DW_DATA_EN (0xffull << 16)#define CA_DW_DATA_EN_SHFT 16#define CA_GFX_CRED (0xffull << 24)#define CA_GFX_CRED_SHFT 24#define CA_MEM_RD_PARAM (0x3ull << 32)#define CA_MEM_RD_PARAM_SHFT 32#define CA_PIO_OP (1ull << 34)#define CA_CW_ERR (1ull << 35) /* bits 62:36 unused */#define CA_VALID (1ull << 63)/* ==== ca_crm_ct_error_detail_2 */ /* bits 2:0 unused */#define CA_PKT_ADDR (0x1fffffffffffffull << 3)#define CA_PKT_ADDR_SHFT 3 /* bits 63:56 unused *//* ==== ca_crm_tnumto */#define CA_CRM_TNUMTO_VAL (0xffull << 0)#define CA_CRM_TNUMTO_VAL_SHFT 0#define CA_CRM_TNUMTO_WR (1ull << 8) /* bits 63:9 unused *//* ==== ca_gart_err */#define CA_GART_ERR_SOURCE (0x3ull << 0)#define CA_GART_ERR_SOURCE_SHFT 0 /* bits 3:2 unused */#define CA_GART_ERR_ADDR (0xfffffffffull << 4)#define CA_GART_ERR_ADDR_SHFT 4 /* bits 63:40 unused *//* ==== ca_pcierr_type */#define CA_PCIERR_DATA (0xffffffffull << 0)#define CA_PCIERR_DATA_SHFT 0#define CA_PCIERR_ENB (0xfull << 32)#define CA_PCIERR_ENB_SHFT 32#define CA_PCIERR_CMD (0xfull << 36)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -