summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2017-06-07 13:31:32 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-06-07 18:20:41 -0400
commit71c37505e7eaa01fa259debad1a71a7ae061039d (patch)
tree2c8be48756c40c0407ba35f579d7f33d38aefc85 /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
parent2db0cdbe2879f424e28f69755a16344348247d44 (diff)
downloadop-kernel-dev-71c37505e7eaa01fa259debad1a71a7ae061039d.zip
op-kernel-dev-71c37505e7eaa01fa259debad1a71a7ae061039d.tar.gz
drm/amdgpu/gfx: move more common KIQ code to amdgpu_gfx.c
Lots more common stuff. Reviewed-by: Alex Xie <AlexBin.Xie@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
index fa20438..b1766fa 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
@@ -32,6 +32,17 @@ void amdgpu_gfx_parse_disable_cu(unsigned *mask, unsigned max_se,
void amdgpu_gfx_compute_queue_acquire(struct amdgpu_device *adev);
+int amdgpu_gfx_kiq_init_ring(struct amdgpu_device *adev,
+ struct amdgpu_ring *ring,
+ struct amdgpu_irq_src *irq);
+
+void amdgpu_gfx_kiq_free_ring(struct amdgpu_ring *ring,
+ struct amdgpu_irq_src *irq);
+
+void amdgpu_gfx_kiq_fini(struct amdgpu_device *adev);
+int amdgpu_gfx_kiq_init(struct amdgpu_device *adev,
+ unsigned hpd_size);
+
/**
* amdgpu_gfx_create_bitmask - create a bitmask
*
OpenPOWER on IntegriCloud