Appukuttan V K | e527e95 | 2024-05-15 23:12:44 +0530 | [diff] [blame^] | 1 | /** @file |
| 2 | Intel Firmware Version Info (FVI) related definitions. |
| 3 | |
| 4 | @todo update document/spec reference |
| 5 | |
| 6 | Copyright (c) 2016, Intel Corporation. All rights reserved.<BR> |
| 7 | SPDX-License-Identifier: BSD-2-Clause-Patent |
| 8 | |
| 9 | @par Specification Reference: |
| 10 | System Management BIOS (SMBIOS) Reference Specification v3.0.0 dated 2015-Feb-12 |
| 11 | http://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.0.0.pdf |
| 12 | |
| 13 | **/ |
| 14 | |
| 15 | #ifndef __FIRMWARE_VERSION_INFO_H__ |
| 16 | #define __FIRMWARE_VERSION_INFO_H__ |
| 17 | |
| 18 | #include <IndustryStandard/SmBios.h> |
| 19 | |
| 20 | #define INTEL_FIRMWARE_VERSION_INFO_GROUP_NAME "Firmware Version Info" |
| 21 | #define INTEL_FVI_SMBIOS_TYPE 0xDD |
| 22 | |
| 23 | #pragma pack(1) |
| 24 | |
| 25 | /// |
| 26 | /// Firmware Version Structure |
| 27 | /// |
| 28 | typedef struct { |
| 29 | UINT8 MajorVersion; |
| 30 | UINT8 MinorVersion; |
| 31 | UINT8 Revision; |
| 32 | UINT16 BuildNumber; |
| 33 | } INTEL_FIRMWARE_VERSION; |
| 34 | |
| 35 | /// |
| 36 | /// Firmware Version Info (FVI) Structure |
| 37 | /// |
| 38 | typedef struct { |
| 39 | SMBIOS_TABLE_STRING ComponentName; ///< String Index of Component Name |
| 40 | SMBIOS_TABLE_STRING VersionString; ///< String Index of Version String |
| 41 | INTEL_FIRMWARE_VERSION Version; ///< Firmware version |
| 42 | } INTEL_FIRMWARE_VERSION_INFO; |
| 43 | |
| 44 | /// |
| 45 | /// SMBIOS OEM Type Intel Firmware Version Info (FVI) Structure |
| 46 | /// |
| 47 | typedef struct { |
| 48 | SMBIOS_STRUCTURE Header; ///< SMBIOS structure header |
| 49 | UINT8 Count; ///< Number of FVI entries in this structure |
| 50 | INTEL_FIRMWARE_VERSION_INFO Fvi[1]; ///< FVI structure(s) |
| 51 | } SMBIOS_TABLE_TYPE_OEM_INTEL_FVI; |
| 52 | |
| 53 | #pragma pack() |
| 54 | |
| 55 | #endif |