aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/include/discovery.h
diff options
context:
space:
mode:
authorXiaojie Yuan <xiaojie.yuan@amd.com>2019-02-21 17:55:30 +0800
committerAlex Deucher <alexander.deucher@amd.com>2019-06-21 18:58:21 -0500
commit70cbfe3d64b84e9f4c47c186942cd70d6495b465 (patch)
treedbdf7cd60eb79aaef42d8e9a417206d76cb5d395 /drivers/gpu/drm/amd/include/discovery.h
parentdrm/amdgpu/discovery: update definitions of table_info and binary_header (diff)
downloadlinux-dev-70cbfe3d64b84e9f4c47c186942cd70d6495b465.tar.xz
linux-dev-70cbfe3d64b84e9f4c47c186942cd70d6495b465.zip
drm/amdgpu/discovery: add harvest info data table
Add support for the harvest tables. Signed-off-by: Xiaojie Yuan <xiaojie.yuan@amd.com> Reviewed-by: Jack Xiao <Jack.Xiao@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/include/discovery.h')
-rw-r--r--drivers/gpu/drm/amd/include/discovery.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/include/discovery.h b/drivers/gpu/drm/amd/include/discovery.h
index 93a8ae0aacda..e01d4cd9f2cb 100644
--- a/drivers/gpu/drm/amd/include/discovery.h
+++ b/drivers/gpu/drm/amd/include/discovery.h
@@ -33,7 +33,7 @@ typedef enum
{
IP_DISCOVERY = 0,
GC,
- TABLE_3,
+ HARVEST_INFO,
TABLE_4,
RESERVED_1,
RESERVED_2,
@@ -144,6 +144,22 @@ struct gc_info_v1_0 {
uint32_t gc_num_gl2a;
};
+typedef struct harvest_info_header {
+ uint32_t signature; /* Table Signature */
+ uint32_t version; /* Table Version */
+} harvest_info_header;
+
+typedef struct harvest_info {
+ uint16_t hw_id; /* Hardware ID */
+ uint8_t number_instance; /* Instance of the IP */
+ uint8_t reserved; /* Reserved for alignment */
+} harvest_info;
+
+typedef struct harvest_table {
+ harvest_info_header header;
+ harvest_info list[32];
+} harvest_table;
+
#pragma pack()
#endif