aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2016-09-23 16:23:41 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-03-29 23:54:17 -0400
commita5bde2f964fa0657b8750156d9bc0ca156e18d2b (patch)
tree912a0f76a27a36d7b3bdd95d5db13a4f20738f5c /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parent43bf11bd9231ad06bd1d91c847beda52b88bc6e0 (diff)
drm/amdgpu: add basic support for atomfirmware.h (v3)
This adds basic support for asics that use atomfirmware.h to define their vbios tables. v2: rebase v3: squash in num scratch reg fix Acked-by: Christian König <christian.koenig@amd.com> Reviewed-by: Ken Wang <Qingqing.Wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 2790129c0b76..a7108ba94794 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -111,7 +111,7 @@ extern int amdgpu_vram_page_split;
111#define AMDGPU_IB_POOL_SIZE 16 111#define AMDGPU_IB_POOL_SIZE 16
112#define AMDGPU_DEBUGFS_MAX_COMPONENTS 32 112#define AMDGPU_DEBUGFS_MAX_COMPONENTS 32
113#define AMDGPUFB_CONN_LIMIT 4 113#define AMDGPUFB_CONN_LIMIT 4
114#define AMDGPU_BIOS_NUM_SCRATCH 8 114#define AMDGPU_BIOS_NUM_SCRATCH 16
115 115
116/* max number of IP instances */ 116/* max number of IP instances */
117#define AMDGPU_MAX_SDMA_INSTANCES 2 117#define AMDGPU_MAX_SDMA_INSTANCES 2
@@ -1312,6 +1312,7 @@ struct amdgpu_device {
1312 uint8_t *bios; 1312 uint8_t *bios;
1313 uint32_t bios_size; 1313 uint32_t bios_size;
1314 struct amdgpu_bo *stollen_vga_memory; 1314 struct amdgpu_bo *stollen_vga_memory;
1315 uint32_t bios_scratch_reg_offset;
1315 uint32_t bios_scratch[AMDGPU_BIOS_NUM_SCRATCH]; 1316 uint32_t bios_scratch[AMDGPU_BIOS_NUM_SCRATCH];
1316 1317
1317 /* Register/doorbell mmio */ 1318 /* Register/doorbell mmio */