diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2012-09-27 15:08:35 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2012-12-10 16:53:23 -0500 |
commit | 4d75658bffea78f0c6f82fd46df1ec983ccacdf0 (patch) | |
tree | a6c111fe8fb7ebb76af46924ec0bc5c8f7cc961b /drivers/gpu/drm/radeon/rv770d.h | |
parent | 71bfe916ebe6d026cd3d0e41c398574fc1228e03 (diff) |
drm/radeon/kms: Add initial support for async DMA on r6xx/r7xx
Uses the new multi-ring infrastucture. 6xx/7xx has a single
async DMA ring.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/rv770d.h')
-rw-r--r-- | drivers/gpu/drm/radeon/rv770d.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/rv770d.h b/drivers/gpu/drm/radeon/rv770d.h index e2d9dc8e751e..20e29d23d348 100644 --- a/drivers/gpu/drm/radeon/rv770d.h +++ b/drivers/gpu/drm/radeon/rv770d.h | |||
@@ -109,6 +109,9 @@ | |||
109 | #define PIPE_TILING__SHIFT 1 | 109 | #define PIPE_TILING__SHIFT 1 |
110 | #define PIPE_TILING__MASK 0x0000000e | 110 | #define PIPE_TILING__MASK 0x0000000e |
111 | 111 | ||
112 | #define DMA_TILING_CONFIG 0x3ec8 | ||
113 | #define DMA_TILING_CONFIG2 0xd0b8 | ||
114 | |||
112 | #define GC_USER_SHADER_PIPE_CONFIG 0x8954 | 115 | #define GC_USER_SHADER_PIPE_CONFIG 0x8954 |
113 | #define INACTIVE_QD_PIPES(x) ((x) << 8) | 116 | #define INACTIVE_QD_PIPES(x) ((x) << 8) |
114 | #define INACTIVE_QD_PIPES_MASK 0x0000FF00 | 117 | #define INACTIVE_QD_PIPES_MASK 0x0000FF00 |
@@ -358,6 +361,26 @@ | |||
358 | 361 | ||
359 | #define WAIT_UNTIL 0x8040 | 362 | #define WAIT_UNTIL 0x8040 |
360 | 363 | ||
364 | /* async DMA */ | ||
365 | #define DMA_RB_RPTR 0xd008 | ||
366 | #define DMA_RB_WPTR 0xd00c | ||
367 | |||
368 | /* async DMA packets */ | ||
369 | #define DMA_PACKET(cmd, t, s, n) ((((cmd) & 0xF) << 28) | \ | ||
370 | (((t) & 0x1) << 23) | \ | ||
371 | (((s) & 0x1) << 22) | \ | ||
372 | (((n) & 0xFFFF) << 0)) | ||
373 | /* async DMA Packet types */ | ||
374 | #define DMA_PACKET_WRITE 0x2 | ||
375 | #define DMA_PACKET_COPY 0x3 | ||
376 | #define DMA_PACKET_INDIRECT_BUFFER 0x4 | ||
377 | #define DMA_PACKET_SEMAPHORE 0x5 | ||
378 | #define DMA_PACKET_FENCE 0x6 | ||
379 | #define DMA_PACKET_TRAP 0x7 | ||
380 | #define DMA_PACKET_CONSTANT_FILL 0xd | ||
381 | #define DMA_PACKET_NOP 0xf | ||
382 | |||
383 | |||
361 | #define SRBM_STATUS 0x0E50 | 384 | #define SRBM_STATUS 0x0E50 |
362 | 385 | ||
363 | /* DCE 3.2 HDMI */ | 386 | /* DCE 3.2 HDMI */ |