summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_tmz.h
diff options
context:
space:
mode:
authorHuang Rui <ray.huang@amd.com>2020-03-19 16:46:10 -0400
committerAlex Deucher <alexander.deucher@amd.com>2020-04-28 16:20:28 -0400
commit01a8dcec1a08f7c13b7546742fc84dcd7114bf4e (patch)
treea59365a174f5acdd237bf7cfe858c93558e937d1 /drivers/gpu/drm/amd/amdgpu/amdgpu_tmz.h
parentae60305ac04ff7bb804fb17962140839daa628c2 (diff)
downloadlinux-next-01a8dcec1a08f7c13b7546742fc84dcd7114bf4e.tar.gz
linux-next-01a8dcec1a08f7c13b7546742fc84dcd7114bf4e.zip
drm/amdgpu: add function to check tmz capability (v4)
Add a function to check tmz capability with kernel parameter and ASIC type. v2: use a per device tmz variable instead of global amdgpu_tmz. v3: refine the comments for the function. (Luben) v4: add amdgpu_tmz.c/h for future use. Signed-off-by: Huang Rui <ray.huang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_tmz.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_tmz.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_tmz.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_tmz.h
index 24bbbc21702a..28e05177fb89 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_tmz.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_tmz.h
@@ -33,4 +33,7 @@ struct amdgpu_tmz {
bool enabled;
};
+
+extern bool amdgpu_is_tmz(struct amdgpu_device *adev);
+
#endif