SWDEV-410230 - Added slot_type to amd-smi static --bus

Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I2006a3525a8aa9091bf54501461d364f7237f00f
Цей коміт міститься в:
Maisam Arif
2023-09-27 22:19:19 -05:00
зафіксовано Maisam Arif
джерело b58665e77b
коміт fadf1b6cc9
5 змінених файлів з 49 додано та 29 видалено
+13 -2
Переглянути файл
@@ -1150,6 +1150,16 @@ typedef struct {
uint64_t reserved[2];
} amdsmi_error_count_t;
/**
* @brief This is a enum translation for pcie_slot_type
*/
typedef enum {
AMDSMI_SLOT_TYPE__PCIE = 0,
AMDSMI_SLOT_TYPE__CEM = 1,
AMDSMI_SLOT_TYPE__OAM = 2,
AMDSMI_SLOT_TYPE__RESERVED = 3,
} amdsmi_pcie_slot_type_t;
/**
* @brief This structure holds pcie info.
*/
@@ -1157,9 +1167,10 @@ typedef struct {
uint16_t pcie_lanes;
uint32_t pcie_speed;
uint32_t pcie_interface_version;
uint32_t pcie_slot_type; // 0: PCIE, 1: CEM, 2: OAM, 3: Reserved
uint32_t reserved[5];
amdsmi_pcie_slot_type_t pcie_slot_type; // 0: PCIE, 1: CEM, 2: OAM, 3: Reserved
uint32_t reserved[4];
} amdsmi_pcie_info_t;
/**
* @brief This structure contains information specific to a process.
*/