[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
Этот коммит содержится в:
коммит произвёл
Arif, Maisam
родитель
c708a7e11f
Коммит
cd21b5edcc
@@ -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)]
|
||||
|
||||
@@ -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);
|
||||
|
||||
Ссылка в новой задаче
Block a user