diff options
author | Jammy Zhou <Jammy.Zhou@amd.com> | 2015-07-21 05:41:48 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-08-17 16:50:20 -0400 |
commit | 0b2daf09cf3c9893872d68f0ce9a3f4b7e3ff06c (patch) | |
tree | 567bcf04665702464dd06d31be1ad4d36ed23287 /drivers/gpu/drm/amd/include/amd_shared.h | |
parent | c7890fea04acbaa89f572adcd9efe0b2d390a8e7 (diff) |
drm/amdgpu: add some common definitions to amd_shared.h
Add GPU family definitions and timeout value for IP components.
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/include/amd_shared.h')
-rw-r--r-- | drivers/gpu/drm/amd/include/amd_shared.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/include/amd_shared.h b/drivers/gpu/drm/amd/include/amd_shared.h index 5bdf1b4397a0..369848159803 100644 --- a/drivers/gpu/drm/amd/include/amd_shared.h +++ b/drivers/gpu/drm/amd/include/amd_shared.h | |||
@@ -23,6 +23,17 @@ | |||
23 | #ifndef __AMD_SHARED_H__ | 23 | #ifndef __AMD_SHARED_H__ |
24 | #define __AMD_SHARED_H__ | 24 | #define __AMD_SHARED_H__ |
25 | 25 | ||
26 | #define AMD_MAX_USEC_TIMEOUT 100000 /* 100 ms */ | ||
27 | |||
28 | /* | ||
29 | * Supported GPU families (aligned with amdgpu_drm.h) | ||
30 | */ | ||
31 | #define AMD_FAMILY_UNKNOWN 0 | ||
32 | #define AMD_FAMILY_CI 120 /* Bonaire, Hawaii */ | ||
33 | #define AMD_FAMILY_KV 125 /* Kaveri, Kabini, Mullins */ | ||
34 | #define AMD_FAMILY_VI 130 /* Iceland, Tonga */ | ||
35 | #define AMD_FAMILY_CZ 135 /* Carrizo */ | ||
36 | |||
26 | enum amd_ip_block_type { | 37 | enum amd_ip_block_type { |
27 | AMD_IP_BLOCK_TYPE_COMMON, | 38 | AMD_IP_BLOCK_TYPE_COMMON, |
28 | AMD_IP_BLOCK_TYPE_GMC, | 39 | AMD_IP_BLOCK_TYPE_GMC, |