Port rocm-smi function to amd-smi

Port most rocm-smi function to amd-smi and add unit tests.

Change-Id: I6387a4bdaf20ead2389c99bb01d438156ccd0747
このコミットが含まれているのは:
Bill(Shuzhou) Liu committed 2022-09-06 12:08:59 -04:00
1 親 86017b799c
コミット f1d02aca79
61ファイル変更
+6785 -161

検索条件に一致するファイルはありません

+2 -2
ファイルの表示
@@ -334,7 +334,7 @@ typedef struct {
* Clock types
*/
typedef enum {
RSMI_CLK_TYPE_SYS = 0x0, //!< System clock
RSMI_CLK_TYPE_SYS = 0x0, //!< System clock
RSMI_CLK_TYPE_FIRST = RSMI_CLK_TYPE_SYS,
RSMI_CLK_TYPE_DF, //!< Data Fabric clock (for ASICs
//!< running on a separate clock)
@@ -1064,7 +1064,7 @@ rsmi_status_t rsmi_dev_id_get(uint32_t dv_ind, uint16_t *id);
* @retval ::RSMI_STATUS_INVALID_ARGS the provided arguments are not valid
*
*/
rsmi_status_t rsmi_dev_sku_get(uint32_t dv_ind, char *sku);
rsmi_status_t rsmi_dev_sku_get(uint32_t dv_ind, uint16_t *sku);
/**
* @brief Get the device vendor id associated with the device with provided