[SWDEV-513651] Sync Unified And Linux Header (#98)

Signed-off-by: Joseph Narlo <joseph.narlo@amd.com>
This commit is contained in:
Narlo, Joseph
2025-02-06 22:25:50 -06:00
کامیت شده توسط GitHub
والد 548ed781c7
کامیت dc4a16da6f
14فایلهای تغییر یافته به همراه161 افزوده شده و 154 حذف شده
+3 -1
مشاهده پرونده
@@ -5720,9 +5720,10 @@ pub fn amdsmi_get_gpu_activity(
/// #
/// // Example processor_handle, assuming the number of processors is greater than zero
/// let processor_handle = amdsmi_get_processor_handles!()[0];
/// let sensor_ind = 0
///
/// // Retrieve the power information
/// match amdsmi_get_power_info(processor_handle) {
/// match amdsmi_get_power_info(processor_handle, sensor_ind) {
/// Ok(info) => println!("Power information: {:?}", info),
/// Err(e) => panic!("Failed to get power information: {}", e),
/// }
@@ -5741,6 +5742,7 @@ pub fn amdsmi_get_power_info(
let mut info = MaybeUninit::<AmdsmiPowerInfoT>::uninit();
call_unsafe!(amdsmi_wrapper::amdsmi_get_power_info(
processor_handle,
sensor_ind,
info.as_mut_ptr()
));
let info = unsafe { info.assume_init() };
@@ -104,7 +104,6 @@ where
pub const AMDSMI_MAX_MM_IP_COUNT: u32 = 8;
pub const AMDSMI_MAX_DATE_LENGTH: u32 = 32;
pub const AMDSMI_MAX_STRING_LENGTH: u32 = 256;
pub const AMDSMI_NORMAL_STRING_LENGTH: u32 = 256;
pub const AMDSMI_256_LENGTH: u32 = 256;
pub const AMDSMI_MAX_DEVICES: u32 = 32;
pub const AMDSMI_MAX_NAME: u32 = 32;
@@ -3022,6 +3021,7 @@ extern "C" {
extern "C" {
pub fn amdsmi_get_power_info(
processor_handle: AmdsmiProcessorHandle,
sensor_ind: u32,
info: *mut AmdsmiPowerInfoT,
) -> AmdsmiStatusT;
}