Commit 70cbfe3d authored by Xiaojie Yuan's avatar Xiaojie Yuan Committed by Alex Deucher

drm/amdgpu/discovery: add harvest info data table

Add support for the harvest tables.
Signed-off-by: default avatarXiaojie Yuan <xiaojie.yuan@amd.com>
Reviewed-by: default avatarJack Xiao <Jack.Xiao@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 478586d6
...@@ -33,7 +33,7 @@ typedef enum ...@@ -33,7 +33,7 @@ typedef enum
{ {
IP_DISCOVERY = 0, IP_DISCOVERY = 0,
GC, GC,
TABLE_3, HARVEST_INFO,
TABLE_4, TABLE_4,
RESERVED_1, RESERVED_1,
RESERVED_2, RESERVED_2,
...@@ -144,6 +144,22 @@ struct gc_info_v1_0 { ...@@ -144,6 +144,22 @@ struct gc_info_v1_0 {
uint32_t gc_num_gl2a; 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() #pragma pack()
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment