| 1 | /** @file |
| 2 | Header file for Firmware Version Information |
| 3 | |
| 4 | @copyright |
| 5 | Copyright (c) 2015 - 2024, Intel Corporation. All rights reserved.<BR> |
| 6 | |
| 7 | This program and the accompanying materials are licensed and made available under |
| 8 | the terms and conditions of the BSD License which accompanies this distribution. |
| 9 | The full text of the license may be found at |
| 10 | http://opensource.org/licenses/bsd-license.php |
| 11 | |
| 12 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. |
| 14 | |
| 15 | **/ |
| 16 | |
| 17 | #ifndef _FIRMWARE_VERSION_INFO_HOB_H_ |
| 18 | #define _FIRMWARE_VERSION_INFO_HOB_H_ |
| 19 | |
| 20 | #include <Uefi/UefiMultiPhase.h> |
| 21 | #include <Pi/PiBootMode.h> |
| 22 | #include <Pi/PiHob.h> |
| 23 | |
| 24 | #pragma pack(1) |
| 25 | /// |
| 26 | /// Firmware Version Structure |
| 27 | /// |
| 28 | typedef struct { |
| 29 | UINT8 MajorVersion; |
| 30 | UINT8 MinorVersion; |
| 31 | UINT8 Revision; |
| 32 | UINT16 BuildNumber; |
| 33 | } FIRMWARE_VERSION; |
| 34 | |
| 35 | /// |
| 36 | /// Firmware Version Information Structure |
| 37 | /// |
| 38 | typedef struct { |
| 39 | UINT8 ComponentNameIndex; ///< Offset 0 Index of Component Name |
| 40 | UINT8 VersionStringIndex; ///< Offset 1 Index of Version String |
| 41 | FIRMWARE_VERSION Version; ///< Offset 2-6 Firmware version |
| 42 | } FIRMWARE_VERSION_INFO; |
| 43 | |
| 44 | #ifndef __SMBIOS_STANDARD_H__ |
| 45 | /// |
| 46 | /// The Smbios structure header. |
| 47 | /// |
| 48 | typedef struct { |
| 49 | UINT8 Type; |
| 50 | UINT8 Length; |
| 51 | UINT16 Handle; |
| 52 | } SMBIOS_STRUCTURE; |
| 53 | #endif |
| 54 | |
| 55 | /// |
| 56 | /// Firmware Version Information HOB Structure |
| 57 | /// |
| 58 | typedef struct { |
| 59 | EFI_HOB_GUID_TYPE Header; ///< Offset 0-23 The header of FVI HOB |
| 60 | SMBIOS_STRUCTURE SmbiosData; ///< Offset 24-27 The SMBIOS header of FVI HOB |
| 61 | UINT8 Count; ///< Offset 28 Number of FVI elements included. |
| 62 | /// |
| 63 | /// FIRMWARE_VERSION_INFO structures followed by the null terminated string buffer |
| 64 | /// |
| 65 | } FIRMWARE_VERSION_INFO_HOB; |
| 66 | #pragma pack() |
| 67 | |
| 68 | #endif // _FIRMWARE_VERSION_INFO_HOB_H_ |