aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h
diff options
context:
space:
mode:
authorLikun Gao <[email protected]>2022-09-22 06:33:06 +0000
committerAlex Deucher <[email protected]>2022-09-29 13:41:43 +0000
commit15aa13056d11dad1e54d65acd854184f3f74a5b7 (patch)
tree896c00b9b255a8d8789c01c5e1d9a710848b5a5e /drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h
parentdrm/amdgpu/gfx11: use common function to init cp fw (diff)
downloadkernel-15aa13056d11dad1e54d65acd854184f3f74a5b7.tar.gz
kernel-15aa13056d11dad1e54d65acd854184f3f74a5b7.zip
drm/amdgpu: add function to init SDMA microcode
Add an common function to init SDMA related microcode. Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h
index 53ac3ebae8d6..d2d88279fefb 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h
@@ -124,4 +124,8 @@ int amdgpu_sdma_process_ras_data_cb(struct amdgpu_device *adev,
int amdgpu_sdma_process_ecc_irq(struct amdgpu_device *adev,
struct amdgpu_irq_src *source,
struct amdgpu_iv_entry *entry);
+int amdgpu_sdma_init_microcode(struct amdgpu_device *adev,
+ char *fw_name, u32 instance, bool duplicate);
+void amdgpu_sdma_destroy_inst_ctx(struct amdgpu_device *adev,
+ bool duplicate);
#endif