[SWDEV-554587] Added IFWI Version and boot_firmware API

- Changed amd-smi static --vbios to accept ifwi
- Change population logic for vbios version API
- Added IFWI boot_firmware to the CLI, C++, Rust, and Python API

Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: I4ea504d40a43cfb011ab38fc9a664ecf12d39c8a
Этот коммит содержится в:
Maisam Arif
2025-09-16 19:51:13 -05:00
коммит произвёл Arif, Maisam
родитель c708a7e11f
Коммит cd21b5edcc
20 изменённых файлов: 185 добавлений и 72 удалений
+5 -2
Просмотреть файл
@@ -972,7 +972,8 @@ pub struct AmdsmiVbiosInfoT {
pub build_date: [::std::os::raw::c_char; 256usize],
pub part_number: [::std::os::raw::c_char; 256usize],
pub version: [::std::os::raw::c_char; 256usize],
pub reserved: [u64; 68usize],
pub boot_firmware: [::std::os::raw::c_char; 256usize],
pub reserved: [u64; 36usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
@@ -986,8 +987,10 @@ const _: () = {
[::std::mem::offset_of!(AmdsmiVbiosInfoT, part_number) - 512usize];
["Offset of field: AmdsmiVbiosInfoT::version"]
[::std::mem::offset_of!(AmdsmiVbiosInfoT, version) - 768usize];
["Offset of field: AmdsmiVbiosInfoT::boot_firmware"]
[::std::mem::offset_of!(AmdsmiVbiosInfoT, boot_firmware) - 1024usize];
["Offset of field: AmdsmiVbiosInfoT::reserved"]
[::std::mem::offset_of!(AmdsmiVbiosInfoT, reserved) - 1024usize];
[::std::mem::offset_of!(AmdsmiVbiosInfoT, reserved) - 1280usize];
};
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
+1 -1
Просмотреть файл
@@ -156,7 +156,7 @@ impl AmdsmiBdfT {
}
// Implement the getters for the C string fields in AmdsmiVbiosInfoT
impl_cstr_getters!(AmdsmiVbiosInfoT, name, build_date, part_number, version);
impl_cstr_getters!(AmdsmiVbiosInfoT, name, build_date, part_number, version, boot_firmware);
// Implement the getters for the C string fields in AmdsmiAsicInfoT
impl_cstr_getters!(AmdsmiAsicInfoT, market_name, vendor_name, asic_serial);