Rev 2004 | Rev 3764 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2004 | Rev 2997 | ||
---|---|---|---|
Line 39... | Line 39... | ||
39 | #define CAYMAN_MAX_PIPES_MASK 0xFF |
39 | #define CAYMAN_MAX_PIPES_MASK 0xFF |
40 | #define CAYMAN_MAX_LDS_NUM 0xFFFF |
40 | #define CAYMAN_MAX_LDS_NUM 0xFFFF |
41 | #define CAYMAN_MAX_TCC 16 |
41 | #define CAYMAN_MAX_TCC 16 |
42 | #define CAYMAN_MAX_TCC_MASK 0xFF |
42 | #define CAYMAN_MAX_TCC_MASK 0xFF |
Line -... | Line 43... | ||
- | 43 | ||
- | 44 | #define CAYMAN_GB_ADDR_CONFIG_GOLDEN 0x02011003 |
|
- | 45 | #define ARUBA_GB_ADDR_CONFIG_GOLDEN 0x12010001 |
|
43 | 46 | ||
- | 47 | #define DMIF_ADDR_CONFIG 0xBD4 |
|
- | 48 | #define SRBM_GFX_CNTL 0x0E44 |
|
- | 49 | #define RINGID(x) (((x) & 0x3) << 0) |
|
44 | #define DMIF_ADDR_CONFIG 0xBD4 |
50 | #define VMID(x) (((x) & 0x7) << 0) |
Line 45... | Line 51... | ||
45 | #define SRBM_STATUS 0x0E50 |
51 | #define SRBM_STATUS 0x0E50 |
46 | 52 | ||
47 | #define VM_CONTEXT0_REQUEST_RESPONSE 0x1470 |
53 | #define VM_CONTEXT0_REQUEST_RESPONSE 0x1470 |
Line 101... | Line 107... | ||
101 | #define SYSTEM_ACCESS_MODE_USE_SYS_MAP (1 << 3) |
107 | #define SYSTEM_ACCESS_MODE_USE_SYS_MAP (1 << 3) |
102 | #define SYSTEM_ACCESS_MODE_IN_SYS (2 << 3) |
108 | #define SYSTEM_ACCESS_MODE_IN_SYS (2 << 3) |
103 | #define SYSTEM_ACCESS_MODE_NOT_IN_SYS (3 << 3) |
109 | #define SYSTEM_ACCESS_MODE_NOT_IN_SYS (3 << 3) |
104 | #define SYSTEM_APERTURE_UNMAPPED_ACCESS_PASS_THRU (0 << 5) |
110 | #define SYSTEM_APERTURE_UNMAPPED_ACCESS_PASS_THRU (0 << 5) |
105 | #define ENABLE_ADVANCED_DRIVER_MODEL (1 << 6) |
111 | #define ENABLE_ADVANCED_DRIVER_MODEL (1 << 6) |
- | 112 | #define FUS_MC_VM_FB_OFFSET 0x2068 |
|
Line 106... | Line 113... | ||
106 | 113 | ||
107 | #define MC_SHARED_BLACKOUT_CNTL 0x20ac |
114 | #define MC_SHARED_BLACKOUT_CNTL 0x20ac |
108 | #define MC_ARB_RAMCFG 0x2760 |
115 | #define MC_ARB_RAMCFG 0x2760 |
109 | #define NOOFBANK_SHIFT 0 |
116 | #define NOOFBANK_SHIFT 0 |
Line 142... | Line 149... | ||
142 | #define CC_SYS_RB_BACKEND_DISABLE 0x3F88 |
149 | #define CC_SYS_RB_BACKEND_DISABLE 0x3F88 |
143 | #define GC_USER_SYS_RB_BACKEND_DISABLE 0x3F8C |
150 | #define GC_USER_SYS_RB_BACKEND_DISABLE 0x3F8C |
144 | #define CGTS_SYS_TCC_DISABLE 0x3F90 |
151 | #define CGTS_SYS_TCC_DISABLE 0x3F90 |
145 | #define CGTS_USER_SYS_TCC_DISABLE 0x3F94 |
152 | #define CGTS_USER_SYS_TCC_DISABLE 0x3F94 |
Line -... | Line 153... | ||
- | 153 | ||
- | 154 | #define RLC_GFX_INDEX 0x3FC4 |
|
146 | 155 | ||
Line 147... | Line 156... | ||
147 | #define CONFIG_MEMSIZE 0x5428 |
156 | #define CONFIG_MEMSIZE 0x5428 |
148 | 157 | ||
Line 206... | Line 215... | ||
206 | #define SOFT_RESET_TC (1 << 11) |
215 | #define SOFT_RESET_TC (1 << 11) |
207 | #define SOFT_RESET_TA (1 << 12) |
216 | #define SOFT_RESET_TA (1 << 12) |
208 | #define SOFT_RESET_VGT (1 << 14) |
217 | #define SOFT_RESET_VGT (1 << 14) |
209 | #define SOFT_RESET_IA (1 << 15) |
218 | #define SOFT_RESET_IA (1 << 15) |
Line -... | Line 219... | ||
- | 219 | ||
- | 220 | #define GRBM_GFX_INDEX 0x802C |
|
- | 221 | #define INSTANCE_INDEX(x) ((x) << 0) |
|
- | 222 | #define SE_INDEX(x) ((x) << 16) |
|
- | 223 | #define INSTANCE_BROADCAST_WRITES (1 << 30) |
|
- | 224 | #define SE_BROADCAST_WRITES (1 << 31) |
|
210 | 225 | ||
211 | #define SCRATCH_REG0 0x8500 |
226 | #define SCRATCH_REG0 0x8500 |
212 | #define SCRATCH_REG1 0x8504 |
227 | #define SCRATCH_REG1 0x8504 |
213 | #define SCRATCH_REG2 0x8508 |
228 | #define SCRATCH_REG2 0x8508 |
214 | #define SCRATCH_REG3 0x850C |
229 | #define SCRATCH_REG3 0x850C |
Line 217... | Line 232... | ||
217 | #define SCRATCH_REG6 0x8518 |
232 | #define SCRATCH_REG6 0x8518 |
218 | #define SCRATCH_REG7 0x851C |
233 | #define SCRATCH_REG7 0x851C |
219 | #define SCRATCH_UMSK 0x8540 |
234 | #define SCRATCH_UMSK 0x8540 |
220 | #define SCRATCH_ADDR 0x8544 |
235 | #define SCRATCH_ADDR 0x8544 |
221 | #define CP_SEM_WAIT_TIMER 0x85BC |
236 | #define CP_SEM_WAIT_TIMER 0x85BC |
- | 237 | #define CP_SEM_INCOMPLETE_TIMER_CNTL 0x85C8 |
|
- | 238 | #define CP_COHER_CNTL2 0x85E8 |
|
- | 239 | #define CP_STALLED_STAT1 0x8674 |
|
- | 240 | #define CP_STALLED_STAT2 0x8678 |
|
- | 241 | #define CP_BUSY_STAT 0x867C |
|
- | 242 | #define CP_STAT 0x8680 |
|
222 | #define CP_ME_CNTL 0x86D8 |
243 | #define CP_ME_CNTL 0x86D8 |
223 | #define CP_ME_HALT (1 << 28) |
244 | #define CP_ME_HALT (1 << 28) |
224 | #define CP_PFP_HALT (1 << 26) |
245 | #define CP_PFP_HALT (1 << 26) |
225 | #define CP_RB2_RPTR 0x86f8 |
246 | #define CP_RB2_RPTR 0x86f8 |
226 | #define CP_RB1_RPTR 0x86fc |
247 | #define CP_RB1_RPTR 0x86fc |
Line 392... | Line 413... | ||
392 | #define RB_RPTR_WR_ENA (1 << 31) |
413 | #define RB_RPTR_WR_ENA (1 << 31) |
393 | #define BUF_SWAP_32BIT (2 << 16) |
414 | #define BUF_SWAP_32BIT (2 << 16) |
394 | #define CP_RB0_RPTR_ADDR 0xC10C |
415 | #define CP_RB0_RPTR_ADDR 0xC10C |
395 | #define CP_RB0_RPTR_ADDR_HI 0xC110 |
416 | #define CP_RB0_RPTR_ADDR_HI 0xC110 |
396 | #define CP_RB0_WPTR 0xC114 |
417 | #define CP_RB0_WPTR 0xC114 |
- | 418 | ||
- | 419 | #define CP_INT_CNTL 0xC124 |
|
- | 420 | # define CNTX_BUSY_INT_ENABLE (1 << 19) |
|
- | 421 | # define CNTX_EMPTY_INT_ENABLE (1 << 20) |
|
- | 422 | # define TIME_STAMP_INT_ENABLE (1 << 26) |
|
- | 423 | ||
397 | #define CP_RB1_BASE 0xC180 |
424 | #define CP_RB1_BASE 0xC180 |
398 | #define CP_RB1_CNTL 0xC184 |
425 | #define CP_RB1_CNTL 0xC184 |
399 | #define CP_RB1_RPTR_ADDR 0xC188 |
426 | #define CP_RB1_RPTR_ADDR 0xC188 |
400 | #define CP_RB1_RPTR_ADDR_HI 0xC18C |
427 | #define CP_RB1_RPTR_ADDR_HI 0xC18C |
401 | #define CP_RB1_WPTR 0xC190 |
428 | #define CP_RB1_WPTR 0xC190 |
Line 409... | Line 436... | ||
409 | #define CP_ME_RAM_RADDR 0xC158 |
436 | #define CP_ME_RAM_RADDR 0xC158 |
410 | #define CP_ME_RAM_WADDR 0xC15C |
437 | #define CP_ME_RAM_WADDR 0xC15C |
411 | #define CP_ME_RAM_DATA 0xC160 |
438 | #define CP_ME_RAM_DATA 0xC160 |
412 | #define CP_DEBUG 0xC1FC |
439 | #define CP_DEBUG 0xC1FC |
Line -... | Line 440... | ||
- | 440 | ||
- | 441 | #define VGT_EVENT_INITIATOR 0x28a90 |
|
- | 442 | # define CACHE_FLUSH_AND_INV_EVENT_TS (0x14 << 0) |
|
- | 443 | # define CACHE_FLUSH_AND_INV_EVENT (0x16 << 0) |
|
413 | 444 | ||
414 | /* |
445 | /* |
415 | * PM4 |
446 | * PM4 |
416 | */ |
447 | */ |
417 | #define PACKET_TYPE0 0 |
448 | #define PACKET_TYPE0 0 |
Line 443... | Line 474... | ||
443 | #define PACKET3_INDEX_BUFFER_SIZE 0x13 |
474 | #define PACKET3_INDEX_BUFFER_SIZE 0x13 |
444 | #define PACKET3_DEALLOC_STATE 0x14 |
475 | #define PACKET3_DEALLOC_STATE 0x14 |
445 | #define PACKET3_DISPATCH_DIRECT 0x15 |
476 | #define PACKET3_DISPATCH_DIRECT 0x15 |
446 | #define PACKET3_DISPATCH_INDIRECT 0x16 |
477 | #define PACKET3_DISPATCH_INDIRECT 0x16 |
447 | #define PACKET3_INDIRECT_BUFFER_END 0x17 |
478 | #define PACKET3_INDIRECT_BUFFER_END 0x17 |
- | 479 | #define PACKET3_MODE_CONTROL 0x18 |
|
448 | #define PACKET3_SET_PREDICATION 0x20 |
480 | #define PACKET3_SET_PREDICATION 0x20 |
449 | #define PACKET3_REG_RMW 0x21 |
481 | #define PACKET3_REG_RMW 0x21 |
450 | #define PACKET3_COND_EXEC 0x22 |
482 | #define PACKET3_COND_EXEC 0x22 |
451 | #define PACKET3_PRED_EXEC 0x23 |
483 | #define PACKET3_PRED_EXEC 0x23 |
452 | #define PACKET3_DRAW_INDIRECT 0x24 |
484 | #define PACKET3_DRAW_INDIRECT 0x24 |
Line 468... | Line 500... | ||
468 | #define PACKET3_WRITE_DATA 0x37 |
500 | #define PACKET3_WRITE_DATA 0x37 |
469 | #define PACKET3_MEM_SEMAPHORE 0x39 |
501 | #define PACKET3_MEM_SEMAPHORE 0x39 |
470 | #define PACKET3_MPEG_INDEX 0x3A |
502 | #define PACKET3_MPEG_INDEX 0x3A |
471 | #define PACKET3_WAIT_REG_MEM 0x3C |
503 | #define PACKET3_WAIT_REG_MEM 0x3C |
472 | #define PACKET3_MEM_WRITE 0x3D |
504 | #define PACKET3_MEM_WRITE 0x3D |
- | 505 | #define PACKET3_PFP_SYNC_ME 0x42 |
|
473 | #define PACKET3_SURFACE_SYNC 0x43 |
506 | #define PACKET3_SURFACE_SYNC 0x43 |
474 | # define PACKET3_CB0_DEST_BASE_ENA (1 << 6) |
507 | # define PACKET3_CB0_DEST_BASE_ENA (1 << 6) |
475 | # define PACKET3_CB1_DEST_BASE_ENA (1 << 7) |
508 | # define PACKET3_CB1_DEST_BASE_ENA (1 << 7) |
476 | # define PACKET3_CB2_DEST_BASE_ENA (1 << 8) |
509 | # define PACKET3_CB2_DEST_BASE_ENA (1 << 8) |
477 | # define PACKET3_CB3_DEST_BASE_ENA (1 << 9) |
510 | # define PACKET3_CB3_DEST_BASE_ENA (1 << 9) |
Line 492... | Line 525... | ||
492 | # define PACKET3_SX_ACTION_ENA (1 << 28) |
525 | # define PACKET3_SX_ACTION_ENA (1 << 28) |
493 | #define PACKET3_ME_INITIALIZE 0x44 |
526 | #define PACKET3_ME_INITIALIZE 0x44 |
494 | #define PACKET3_ME_INITIALIZE_DEVICE_ID(x) ((x) << 16) |
527 | #define PACKET3_ME_INITIALIZE_DEVICE_ID(x) ((x) << 16) |
495 | #define PACKET3_COND_WRITE 0x45 |
528 | #define PACKET3_COND_WRITE 0x45 |
496 | #define PACKET3_EVENT_WRITE 0x46 |
529 | #define PACKET3_EVENT_WRITE 0x46 |
- | 530 | #define EVENT_TYPE(x) ((x) << 0) |
|
- | 531 | #define EVENT_INDEX(x) ((x) << 8) |
|
- | 532 | /* 0 - any non-TS event |
|
- | 533 | * 1 - ZPASS_DONE |
|
- | 534 | * 2 - SAMPLE_PIPELINESTAT |
|
- | 535 | * 3 - SAMPLE_STREAMOUTSTAT* |
|
- | 536 | * 4 - *S_PARTIAL_FLUSH |
|
- | 537 | * 5 - TS events |
|
- | 538 | */ |
|
497 | #define PACKET3_EVENT_WRITE_EOP 0x47 |
539 | #define PACKET3_EVENT_WRITE_EOP 0x47 |
- | 540 | #define DATA_SEL(x) ((x) << 29) |
|
- | 541 | /* 0 - discard |
|
- | 542 | * 1 - send low 32bit data |
|
- | 543 | * 2 - send 64bit data |
|
- | 544 | * 3 - send 64bit counter value |
|
- | 545 | */ |
|
- | 546 | #define INT_SEL(x) ((x) << 24) |
|
- | 547 | /* 0 - none |
|
- | 548 | * 1 - interrupt only (DATA_SEL = 0) |
|
- | 549 | * 2 - interrupt when data write is confirmed |
|
- | 550 | */ |
|
498 | #define PACKET3_EVENT_WRITE_EOS 0x48 |
551 | #define PACKET3_EVENT_WRITE_EOS 0x48 |
499 | #define PACKET3_PREAMBLE_CNTL 0x4A |
552 | #define PACKET3_PREAMBLE_CNTL 0x4A |
500 | # define PACKET3_PREAMBLE_BEGIN_CLEAR_STATE (2 << 28) |
553 | # define PACKET3_PREAMBLE_BEGIN_CLEAR_STATE (2 << 28) |
501 | # define PACKET3_PREAMBLE_END_CLEAR_STATE (3 << 28) |
554 | # define PACKET3_PREAMBLE_END_CLEAR_STATE (3 << 28) |
502 | #define PACKET3_ALU_PS_CONST_BUFFER_COPY 0x4C |
555 | #define PACKET3_ALU_PS_CONST_BUFFER_COPY 0x4C |
Line 531... | Line 584... | ||
531 | #define PACKET3_SET_ALU_CONST_VS 0x71 |
584 | #define PACKET3_SET_ALU_CONST_VS 0x71 |
532 | #define PACKET3_SET_ALU_CONST_DI 0x72 |
585 | #define PACKET3_SET_ALU_CONST_DI 0x72 |
533 | #define PACKET3_SET_CONTEXT_REG_INDIRECT 0x73 |
586 | #define PACKET3_SET_CONTEXT_REG_INDIRECT 0x73 |
534 | #define PACKET3_SET_RESOURCE_INDIRECT 0x74 |
587 | #define PACKET3_SET_RESOURCE_INDIRECT 0x74 |
535 | #define PACKET3_SET_APPEND_CNT 0x75 |
588 | #define PACKET3_SET_APPEND_CNT 0x75 |
- | 589 | #define PACKET3_ME_WRITE 0x7A |
|
Line 536... | Line 590... | ||
536 | 590 |