Alex Deucher | 0af62b0 | 2011-01-06 21:19:31 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2010 Advanced Micro Devices, Inc. |
| 3 | * |
| 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
| 5 | * copy of this software and associated documentation files (the "Software"), |
| 6 | * to deal in the Software without restriction, including without limitation |
| 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 8 | * and/or sell copies of the Software, and to permit persons to whom the |
| 9 | * Software is furnished to do so, subject to the following conditions: |
| 10 | * |
| 11 | * The above copyright notice and this permission notice shall be included in |
| 12 | * all copies or substantial portions of the Software. |
| 13 | * |
| 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 17 | * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR |
| 18 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
| 19 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 20 | * OTHER DEALINGS IN THE SOFTWARE. |
| 21 | * |
| 22 | * Authors: Alex Deucher |
| 23 | */ |
| 24 | #ifndef NI_H |
| 25 | #define NI_H |
| 26 | |
Alex Deucher | fecf1d0 | 2011-03-02 20:07:29 -0500 | [diff] [blame] | 27 | #define CAYMAN_MAX_SH_GPRS 256 |
| 28 | #define CAYMAN_MAX_TEMP_GPRS 16 |
| 29 | #define CAYMAN_MAX_SH_THREADS 256 |
| 30 | #define CAYMAN_MAX_SH_STACK_ENTRIES 4096 |
| 31 | #define CAYMAN_MAX_FRC_EOV_CNT 16384 |
| 32 | #define CAYMAN_MAX_BACKENDS 8 |
| 33 | #define CAYMAN_MAX_BACKENDS_MASK 0xFF |
| 34 | #define CAYMAN_MAX_BACKENDS_PER_SE_MASK 0xF |
| 35 | #define CAYMAN_MAX_SIMDS 16 |
| 36 | #define CAYMAN_MAX_SIMDS_MASK 0xFFFF |
| 37 | #define CAYMAN_MAX_SIMDS_PER_SE_MASK 0xFFF |
| 38 | #define CAYMAN_MAX_PIPES 8 |
| 39 | #define CAYMAN_MAX_PIPES_MASK 0xFF |
| 40 | #define CAYMAN_MAX_LDS_NUM 0xFFFF |
| 41 | #define CAYMAN_MAX_TCC 16 |
| 42 | #define CAYMAN_MAX_TCC_MASK 0xFF |
| 43 | |
| 44 | #define DMIF_ADDR_CONFIG 0xBD4 |
| 45 | |
Alex Deucher | fa8198e | 2011-03-02 20:07:30 -0500 | [diff] [blame^] | 46 | #define VM_CONTEXT0_REQUEST_RESPONSE 0x1470 |
| 47 | #define REQUEST_TYPE(x) (((x) & 0xf) << 0) |
| 48 | #define RESPONSE_TYPE_MASK 0x000000F0 |
| 49 | #define RESPONSE_TYPE_SHIFT 4 |
| 50 | #define VM_L2_CNTL 0x1400 |
| 51 | #define ENABLE_L2_CACHE (1 << 0) |
| 52 | #define ENABLE_L2_FRAGMENT_PROCESSING (1 << 1) |
| 53 | #define ENABLE_L2_PTE_CACHE_LRU_UPDATE_BY_WRITE (1 << 9) |
| 54 | #define ENABLE_L2_PDE0_CACHE_LRU_UPDATE_BY_WRITE (1 << 10) |
| 55 | #define EFFECTIVE_L2_QUEUE_SIZE(x) (((x) & 7) << 14) |
| 56 | #define CONTEXT1_IDENTITY_ACCESS_MODE(x) (((x) & 3) << 18) |
| 57 | /* CONTEXT1_IDENTITY_ACCESS_MODE |
| 58 | * 0 physical = logical |
| 59 | * 1 logical via context1 page table |
| 60 | * 2 inside identity aperture use translation, outside physical = logical |
| 61 | * 3 inside identity aperture physical = logical, outside use translation |
| 62 | */ |
| 63 | #define VM_L2_CNTL2 0x1404 |
| 64 | #define INVALIDATE_ALL_L1_TLBS (1 << 0) |
| 65 | #define INVALIDATE_L2_CACHE (1 << 1) |
| 66 | #define VM_L2_CNTL3 0x1408 |
| 67 | #define BANK_SELECT(x) ((x) << 0) |
| 68 | #define CACHE_UPDATE_MODE(x) ((x) << 6) |
| 69 | #define L2_CACHE_BIGK_ASSOCIATIVITY (1 << 20) |
| 70 | #define L2_CACHE_BIGK_FRAGMENT_SIZE(x) ((x) << 15) |
| 71 | #define VM_L2_STATUS 0x140C |
| 72 | #define L2_BUSY (1 << 0) |
| 73 | #define VM_CONTEXT0_CNTL 0x1410 |
| 74 | #define ENABLE_CONTEXT (1 << 0) |
| 75 | #define PAGE_TABLE_DEPTH(x) (((x) & 3) << 1) |
| 76 | #define RANGE_PROTECTION_FAULT_ENABLE_DEFAULT (1 << 4) |
| 77 | #define VM_CONTEXT1_CNTL 0x1414 |
| 78 | #define VM_CONTEXT0_CNTL2 0x1430 |
| 79 | #define VM_CONTEXT1_CNTL2 0x1434 |
| 80 | #define VM_INVALIDATE_REQUEST 0x1478 |
| 81 | #define VM_INVALIDATE_RESPONSE 0x147c |
| 82 | #define VM_CONTEXT0_PROTECTION_FAULT_DEFAULT_ADDR 0x1518 |
| 83 | #define VM_CONTEXT1_PROTECTION_FAULT_DEFAULT_ADDR 0x151c |
| 84 | #define VM_CONTEXT0_PAGE_TABLE_BASE_ADDR 0x153C |
| 85 | #define VM_CONTEXT0_PAGE_TABLE_START_ADDR 0x155C |
| 86 | #define VM_CONTEXT0_PAGE_TABLE_END_ADDR 0x157C |
| 87 | |
Alex Deucher | fecf1d0 | 2011-03-02 20:07:29 -0500 | [diff] [blame] | 88 | #define MC_SHARED_CHMAP 0x2004 |
| 89 | #define NOOFCHAN_SHIFT 12 |
| 90 | #define NOOFCHAN_MASK 0x00003000 |
| 91 | #define MC_SHARED_CHREMAP 0x2008 |
Alex Deucher | fa8198e | 2011-03-02 20:07:30 -0500 | [diff] [blame^] | 92 | |
| 93 | #define MC_VM_SYSTEM_APERTURE_LOW_ADDR 0x2034 |
| 94 | #define MC_VM_SYSTEM_APERTURE_HIGH_ADDR 0x2038 |
| 95 | #define MC_VM_SYSTEM_APERTURE_DEFAULT_ADDR 0x203C |
| 96 | #define MC_VM_MX_L1_TLB_CNTL 0x2064 |
| 97 | #define ENABLE_L1_TLB (1 << 0) |
| 98 | #define ENABLE_L1_FRAGMENT_PROCESSING (1 << 1) |
| 99 | #define SYSTEM_ACCESS_MODE_PA_ONLY (0 << 3) |
| 100 | #define SYSTEM_ACCESS_MODE_USE_SYS_MAP (1 << 3) |
| 101 | #define SYSTEM_ACCESS_MODE_IN_SYS (2 << 3) |
| 102 | #define SYSTEM_ACCESS_MODE_NOT_IN_SYS (3 << 3) |
| 103 | #define SYSTEM_APERTURE_UNMAPPED_ACCESS_PASS_THRU (0 << 5) |
| 104 | #define ENABLE_ADVANCED_DRIVER_MODEL (1 << 6) |
| 105 | |
Alex Deucher | 0af62b0 | 2011-01-06 21:19:31 -0500 | [diff] [blame] | 106 | #define MC_SHARED_BLACKOUT_CNTL 0x20ac |
Alex Deucher | fecf1d0 | 2011-03-02 20:07:29 -0500 | [diff] [blame] | 107 | #define MC_ARB_RAMCFG 0x2760 |
| 108 | #define NOOFBANK_SHIFT 0 |
| 109 | #define NOOFBANK_MASK 0x00000003 |
| 110 | #define NOOFRANK_SHIFT 2 |
| 111 | #define NOOFRANK_MASK 0x00000004 |
| 112 | #define NOOFROWS_SHIFT 3 |
| 113 | #define NOOFROWS_MASK 0x00000038 |
| 114 | #define NOOFCOLS_SHIFT 6 |
| 115 | #define NOOFCOLS_MASK 0x000000C0 |
| 116 | #define CHANSIZE_SHIFT 8 |
| 117 | #define CHANSIZE_MASK 0x00000100 |
| 118 | #define BURSTLENGTH_SHIFT 9 |
| 119 | #define BURSTLENGTH_MASK 0x00000200 |
| 120 | #define CHANSIZE_OVERRIDE (1 << 11) |
Alex Deucher | 0af62b0 | 2011-01-06 21:19:31 -0500 | [diff] [blame] | 121 | #define MC_SEQ_SUP_CNTL 0x28c8 |
| 122 | #define RUN_MASK (1 << 0) |
| 123 | #define MC_SEQ_SUP_PGM 0x28cc |
| 124 | #define MC_IO_PAD_CNTL_D0 0x29d0 |
| 125 | #define MEM_FALL_OUT_CMD (1 << 8) |
| 126 | #define MC_SEQ_MISC0 0x2a00 |
| 127 | #define MC_SEQ_MISC0_GDDR5_SHIFT 28 |
| 128 | #define MC_SEQ_MISC0_GDDR5_MASK 0xf0000000 |
| 129 | #define MC_SEQ_MISC0_GDDR5_VALUE 5 |
| 130 | #define MC_SEQ_IO_DEBUG_INDEX 0x2a44 |
| 131 | #define MC_SEQ_IO_DEBUG_DATA 0x2a48 |
| 132 | |
Alex Deucher | fecf1d0 | 2011-03-02 20:07:29 -0500 | [diff] [blame] | 133 | #define HDP_HOST_PATH_CNTL 0x2C00 |
| 134 | #define HDP_NONSURFACE_BASE 0x2C04 |
| 135 | #define HDP_NONSURFACE_INFO 0x2C08 |
| 136 | #define HDP_NONSURFACE_SIZE 0x2C0C |
| 137 | #define HDP_ADDR_CONFIG 0x2F48 |
| 138 | |
| 139 | #define CC_SYS_RB_BACKEND_DISABLE 0x3F88 |
| 140 | #define GC_USER_SYS_RB_BACKEND_DISABLE 0x3F8C |
| 141 | #define CGTS_SYS_TCC_DISABLE 0x3F90 |
| 142 | #define CGTS_USER_SYS_TCC_DISABLE 0x3F94 |
| 143 | |
| 144 | #define CONFIG_MEMSIZE 0x5428 |
| 145 | |
Alex Deucher | fa8198e | 2011-03-02 20:07:30 -0500 | [diff] [blame^] | 146 | #define HDP_MEM_COHERENCY_FLUSH_CNTL 0x5480 |
Alex Deucher | fecf1d0 | 2011-03-02 20:07:29 -0500 | [diff] [blame] | 147 | #define HDP_REG_COHERENCY_FLUSH_CNTL 0x54A0 |
| 148 | |
| 149 | #define GRBM_CNTL 0x8000 |
| 150 | #define GRBM_READ_TIMEOUT(x) ((x) << 0) |
| 151 | #define GRBM_STATUS 0x8010 |
| 152 | #define CMDFIFO_AVAIL_MASK 0x0000000F |
| 153 | #define RING2_RQ_PENDING (1 << 4) |
| 154 | #define SRBM_RQ_PENDING (1 << 5) |
| 155 | #define RING1_RQ_PENDING (1 << 6) |
| 156 | #define CF_RQ_PENDING (1 << 7) |
| 157 | #define PF_RQ_PENDING (1 << 8) |
| 158 | #define GDS_DMA_RQ_PENDING (1 << 9) |
| 159 | #define GRBM_EE_BUSY (1 << 10) |
| 160 | #define SX_CLEAN (1 << 11) |
| 161 | #define DB_CLEAN (1 << 12) |
| 162 | #define CB_CLEAN (1 << 13) |
| 163 | #define TA_BUSY (1 << 14) |
| 164 | #define GDS_BUSY (1 << 15) |
| 165 | #define VGT_BUSY_NO_DMA (1 << 16) |
| 166 | #define VGT_BUSY (1 << 17) |
| 167 | #define IA_BUSY_NO_DMA (1 << 18) |
| 168 | #define IA_BUSY (1 << 19) |
| 169 | #define SX_BUSY (1 << 20) |
| 170 | #define SH_BUSY (1 << 21) |
| 171 | #define SPI_BUSY (1 << 22) |
| 172 | #define SC_BUSY (1 << 24) |
| 173 | #define PA_BUSY (1 << 25) |
| 174 | #define DB_BUSY (1 << 26) |
| 175 | #define CP_COHERENCY_BUSY (1 << 28) |
| 176 | #define CP_BUSY (1 << 29) |
| 177 | #define CB_BUSY (1 << 30) |
| 178 | #define GUI_ACTIVE (1 << 31) |
| 179 | #define GRBM_STATUS_SE0 0x8014 |
| 180 | #define GRBM_STATUS_SE1 0x8018 |
| 181 | #define SE_SX_CLEAN (1 << 0) |
| 182 | #define SE_DB_CLEAN (1 << 1) |
| 183 | #define SE_CB_CLEAN (1 << 2) |
| 184 | #define SE_VGT_BUSY (1 << 23) |
| 185 | #define SE_PA_BUSY (1 << 24) |
| 186 | #define SE_TA_BUSY (1 << 25) |
| 187 | #define SE_SX_BUSY (1 << 26) |
| 188 | #define SE_SPI_BUSY (1 << 27) |
| 189 | #define SE_SH_BUSY (1 << 28) |
| 190 | #define SE_SC_BUSY (1 << 29) |
| 191 | #define SE_DB_BUSY (1 << 30) |
| 192 | #define SE_CB_BUSY (1 << 31) |
| 193 | #define GRBM_SOFT_RESET 0x8020 |
| 194 | #define SOFT_RESET_CP (1 << 0) |
| 195 | #define SOFT_RESET_CB (1 << 1) |
| 196 | #define SOFT_RESET_DB (1 << 3) |
| 197 | #define SOFT_RESET_GDS (1 << 4) |
| 198 | #define SOFT_RESET_PA (1 << 5) |
| 199 | #define SOFT_RESET_SC (1 << 6) |
| 200 | #define SOFT_RESET_SPI (1 << 8) |
| 201 | #define SOFT_RESET_SH (1 << 9) |
| 202 | #define SOFT_RESET_SX (1 << 10) |
| 203 | #define SOFT_RESET_TC (1 << 11) |
| 204 | #define SOFT_RESET_TA (1 << 12) |
| 205 | #define SOFT_RESET_VGT (1 << 14) |
| 206 | #define SOFT_RESET_IA (1 << 15) |
| 207 | |
| 208 | #define CP_MEQ_THRESHOLDS 0x8764 |
| 209 | #define MEQ1_START(x) ((x) << 0) |
| 210 | #define MEQ2_START(x) ((x) << 8) |
| 211 | #define CP_PERFMON_CNTL 0x87FC |
| 212 | |
| 213 | #define VGT_CACHE_INVALIDATION 0x88C4 |
| 214 | #define CACHE_INVALIDATION(x) ((x) << 0) |
| 215 | #define VC_ONLY 0 |
| 216 | #define TC_ONLY 1 |
| 217 | #define VC_AND_TC 2 |
| 218 | #define AUTO_INVLD_EN(x) ((x) << 6) |
| 219 | #define NO_AUTO 0 |
| 220 | #define ES_AUTO 1 |
| 221 | #define GS_AUTO 2 |
| 222 | #define ES_AND_GS_AUTO 3 |
| 223 | #define VGT_GS_VERTEX_REUSE 0x88D4 |
| 224 | |
| 225 | #define CC_GC_SHADER_PIPE_CONFIG 0x8950 |
| 226 | #define GC_USER_SHADER_PIPE_CONFIG 0x8954 |
| 227 | #define INACTIVE_QD_PIPES(x) ((x) << 8) |
| 228 | #define INACTIVE_QD_PIPES_MASK 0x0000FF00 |
| 229 | #define INACTIVE_QD_PIPES_SHIFT 8 |
| 230 | #define INACTIVE_SIMDS(x) ((x) << 16) |
| 231 | #define INACTIVE_SIMDS_MASK 0xFFFF0000 |
| 232 | #define INACTIVE_SIMDS_SHIFT 16 |
| 233 | |
| 234 | #define VGT_PRIMITIVE_TYPE 0x8958 |
| 235 | #define VGT_NUM_INSTANCES 0x8974 |
| 236 | #define VGT_TF_RING_SIZE 0x8988 |
| 237 | #define VGT_OFFCHIP_LDS_BASE 0x89b4 |
| 238 | |
| 239 | #define PA_SC_LINE_STIPPLE_STATE 0x8B10 |
| 240 | #define PA_CL_ENHANCE 0x8A14 |
| 241 | #define CLIP_VTX_REORDER_ENA (1 << 0) |
| 242 | #define NUM_CLIP_SEQ(x) ((x) << 1) |
| 243 | #define PA_SC_FIFO_SIZE 0x8BCC |
| 244 | #define SC_PRIM_FIFO_SIZE(x) ((x) << 0) |
| 245 | #define SC_HIZ_TILE_FIFO_SIZE(x) ((x) << 12) |
| 246 | #define SC_EARLYZ_TILE_FIFO_SIZE(x) ((x) << 20) |
| 247 | #define PA_SC_FORCE_EOV_MAX_CNTS 0x8B24 |
| 248 | #define FORCE_EOV_MAX_CLK_CNT(x) ((x) << 0) |
| 249 | #define FORCE_EOV_MAX_REZ_CNT(x) ((x) << 16) |
| 250 | |
| 251 | #define SQ_CONFIG 0x8C00 |
| 252 | #define VC_ENABLE (1 << 0) |
| 253 | #define EXPORT_SRC_C (1 << 1) |
| 254 | #define GFX_PRIO(x) ((x) << 2) |
| 255 | #define CS1_PRIO(x) ((x) << 4) |
| 256 | #define CS2_PRIO(x) ((x) << 6) |
| 257 | #define SQ_GPR_RESOURCE_MGMT_1 0x8C04 |
| 258 | #define NUM_PS_GPRS(x) ((x) << 0) |
| 259 | #define NUM_VS_GPRS(x) ((x) << 16) |
| 260 | #define NUM_CLAUSE_TEMP_GPRS(x) ((x) << 28) |
| 261 | #define SQ_ESGS_RING_SIZE 0x8c44 |
| 262 | #define SQ_GSVS_RING_SIZE 0x8c4c |
| 263 | #define SQ_ESTMP_RING_BASE 0x8c50 |
| 264 | #define SQ_ESTMP_RING_SIZE 0x8c54 |
| 265 | #define SQ_GSTMP_RING_BASE 0x8c58 |
| 266 | #define SQ_GSTMP_RING_SIZE 0x8c5c |
| 267 | #define SQ_VSTMP_RING_BASE 0x8c60 |
| 268 | #define SQ_VSTMP_RING_SIZE 0x8c64 |
| 269 | #define SQ_PSTMP_RING_BASE 0x8c68 |
| 270 | #define SQ_PSTMP_RING_SIZE 0x8c6c |
| 271 | #define SQ_MS_FIFO_SIZES 0x8CF0 |
| 272 | #define CACHE_FIFO_SIZE(x) ((x) << 0) |
| 273 | #define FETCH_FIFO_HIWATER(x) ((x) << 8) |
| 274 | #define DONE_FIFO_HIWATER(x) ((x) << 16) |
| 275 | #define ALU_UPDATE_FIFO_HIWATER(x) ((x) << 24) |
| 276 | #define SQ_LSTMP_RING_BASE 0x8e10 |
| 277 | #define SQ_LSTMP_RING_SIZE 0x8e14 |
| 278 | #define SQ_HSTMP_RING_BASE 0x8e18 |
| 279 | #define SQ_HSTMP_RING_SIZE 0x8e1c |
| 280 | #define SQ_DYN_GPR_CNTL_PS_FLUSH_REQ 0x8D8C |
| 281 | #define DYN_GPR_ENABLE (1 << 8) |
| 282 | #define SQ_CONST_MEM_BASE 0x8df8 |
| 283 | |
| 284 | #define SX_EXPORT_BUFFER_SIZES 0x900C |
| 285 | #define COLOR_BUFFER_SIZE(x) ((x) << 0) |
| 286 | #define POSITION_BUFFER_SIZE(x) ((x) << 8) |
| 287 | #define SMX_BUFFER_SIZE(x) ((x) << 16) |
| 288 | #define SX_DEBUG_1 0x9058 |
| 289 | #define ENABLE_NEW_SMX_ADDRESS (1 << 16) |
| 290 | |
| 291 | #define SPI_CONFIG_CNTL 0x9100 |
| 292 | #define GPR_WRITE_PRIORITY(x) ((x) << 0) |
| 293 | #define SPI_CONFIG_CNTL_1 0x913C |
| 294 | #define VTX_DONE_DELAY(x) ((x) << 0) |
| 295 | #define INTERP_ONE_PRIM_PER_ROW (1 << 4) |
| 296 | #define CRC_SIMD_ID_WADDR_DISABLE (1 << 8) |
| 297 | |
| 298 | #define CGTS_TCC_DISABLE 0x9148 |
| 299 | #define CGTS_USER_TCC_DISABLE 0x914C |
| 300 | #define TCC_DISABLE_MASK 0xFFFF0000 |
| 301 | #define TCC_DISABLE_SHIFT 16 |
| 302 | #define CGTS_SM_CTRL_REG 0x915C |
| 303 | #define OVERRIDE (1 << 21) |
| 304 | |
| 305 | #define TA_CNTL_AUX 0x9508 |
| 306 | #define DISABLE_CUBE_WRAP (1 << 0) |
| 307 | #define DISABLE_CUBE_ANISO (1 << 1) |
| 308 | |
| 309 | #define TCP_CHAN_STEER_LO 0x960c |
| 310 | #define TCP_CHAN_STEER_HI 0x9610 |
| 311 | |
| 312 | #define CC_RB_BACKEND_DISABLE 0x98F4 |
| 313 | #define BACKEND_DISABLE(x) ((x) << 16) |
| 314 | #define GB_ADDR_CONFIG 0x98F8 |
| 315 | #define NUM_PIPES(x) ((x) << 0) |
| 316 | #define NUM_PIPES_MASK 0x00000007 |
| 317 | #define NUM_PIPES_SHIFT 0 |
| 318 | #define PIPE_INTERLEAVE_SIZE(x) ((x) << 4) |
| 319 | #define PIPE_INTERLEAVE_SIZE_MASK 0x00000070 |
| 320 | #define PIPE_INTERLEAVE_SIZE_SHIFT 4 |
| 321 | #define BANK_INTERLEAVE_SIZE(x) ((x) << 8) |
| 322 | #define NUM_SHADER_ENGINES(x) ((x) << 12) |
| 323 | #define NUM_SHADER_ENGINES_MASK 0x00003000 |
| 324 | #define NUM_SHADER_ENGINES_SHIFT 12 |
| 325 | #define SHADER_ENGINE_TILE_SIZE(x) ((x) << 16) |
| 326 | #define SHADER_ENGINE_TILE_SIZE_MASK 0x00070000 |
| 327 | #define SHADER_ENGINE_TILE_SIZE_SHIFT 16 |
| 328 | #define NUM_GPUS(x) ((x) << 20) |
| 329 | #define NUM_GPUS_MASK 0x00700000 |
| 330 | #define NUM_GPUS_SHIFT 20 |
| 331 | #define MULTI_GPU_TILE_SIZE(x) ((x) << 24) |
| 332 | #define MULTI_GPU_TILE_SIZE_MASK 0x03000000 |
| 333 | #define MULTI_GPU_TILE_SIZE_SHIFT 24 |
| 334 | #define ROW_SIZE(x) ((x) << 28) |
| 335 | #define ROW_SIZE_MASK 0x30000007 |
| 336 | #define ROW_SIZE_SHIFT 28 |
| 337 | #define NUM_LOWER_PIPES(x) ((x) << 30) |
| 338 | #define NUM_LOWER_PIPES_MASK 0x40000000 |
| 339 | #define NUM_LOWER_PIPES_SHIFT 30 |
| 340 | #define GB_BACKEND_MAP 0x98FC |
| 341 | |
| 342 | #define CB_PERF_CTR0_SEL_0 0x9A20 |
| 343 | #define CB_PERF_CTR0_SEL_1 0x9A24 |
| 344 | #define CB_PERF_CTR1_SEL_0 0x9A28 |
| 345 | #define CB_PERF_CTR1_SEL_1 0x9A2C |
| 346 | #define CB_PERF_CTR2_SEL_0 0x9A30 |
| 347 | #define CB_PERF_CTR2_SEL_1 0x9A34 |
| 348 | #define CB_PERF_CTR3_SEL_0 0x9A38 |
| 349 | #define CB_PERF_CTR3_SEL_1 0x9A3C |
| 350 | |
| 351 | #define GC_USER_RB_BACKEND_DISABLE 0x9B7C |
| 352 | #define BACKEND_DISABLE_MASK 0x00FF0000 |
| 353 | #define BACKEND_DISABLE_SHIFT 16 |
| 354 | |
| 355 | #define SMX_DC_CTL0 0xA020 |
| 356 | #define USE_HASH_FUNCTION (1 << 0) |
| 357 | #define NUMBER_OF_SETS(x) ((x) << 1) |
| 358 | #define FLUSH_ALL_ON_EVENT (1 << 10) |
| 359 | #define STALL_ON_EVENT (1 << 11) |
| 360 | #define SMX_EVENT_CTL 0xA02C |
| 361 | #define ES_FLUSH_CTL(x) ((x) << 0) |
| 362 | #define GS_FLUSH_CTL(x) ((x) << 3) |
| 363 | #define ACK_FLUSH_CTL(x) ((x) << 6) |
| 364 | #define SYNC_FLUSH_CTL (1 << 8) |
| 365 | |
Alex Deucher | 0af62b0 | 2011-01-06 21:19:31 -0500 | [diff] [blame] | 366 | #endif |
| 367 | |