3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials are licensed and made available under
6 the terms and conditions of the BSD License that accompanies this distribution.
7 The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php.
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
21 BIOS ID library definitions.
23 This library provides functions to get BIOS ID, VERSION, DATE and TIME
27 #ifndef _BIOS_ID_LIB_H_
28 #define _BIOS_ID_LIB_H_
31 // BIOS ID string format:
33 // $(BOARD_ID)$(BOARD_REV).$(OEM_ID).$(VERSION_MAJOR).$(BUILD_TYPE)$(VERSION_MINOR).YYMMDDHHMM
35 // Example: "TRFTCRB1.86C.0008.D03.0506081529"
40 CHAR16 BoardId
[7]; // "TRFTCRB"
41 CHAR16 BoardRev
; // "1"
43 CHAR16 OemId
[3]; // "86C"
45 CHAR16 VersionMajor
[4]; // "0008"
47 CHAR16 BuildType
; // "D"
48 CHAR16 VersionMinor
[2]; // "03"
50 CHAR16 TimeStamp
[10]; // "YYMMDDHHMM"
51 CHAR16 NullTerminator
; // 0x0000
54 #define MEM_IFWIVER_START 0x7E0000
55 #define MEM_IFWIVER_LENGTH 0x1000
57 typedef struct _MANIFEST_OEM_DATA
{
59 unsigned char FillNull
[0x39];
60 UINT32 IFWIVersionLen
;
61 unsigned char IFWIVersion
[32];
65 // A signature precedes the BIOS ID string in the FV to enable search by external tools.
68 UINT8 Signature
[8]; // "$IBIOSI$"
69 BIOS_ID_STRING BiosIdString
; // "TRFTCRB1.86C.0008.D03.0506081529"
75 This function returns BIOS ID by searching HOB or FV.
77 @param[in] BiosIdImage The BIOS ID got from HOB or FV
79 @retval EFI_SUCCESS All parameters were valid and BIOS ID has been got.
80 @retval EFI_NOT_FOUND BiosId image is not found, and no parameter will be modified.
81 @retval EFI_INVALID_PARAMETER The parameter is NULL.
86 OUT BIOS_ID_IMAGE
*BiosIdImage
90 This function returns the Version & Release Date and Time by getting and converting
93 @param[in] BiosVersion The Bios Version out of the conversion.
94 @param[in] BiosReleaseDate The Bios Release Date out of the conversion.
95 @param[in] BiosReleaseTime The Bios Release Time out of the conversion.
97 @retval EFI_SUCCESS BIOS Version & Release Date and Time have been got successfully.
98 @retval EFI_NOT_FOUND BiosId image is not found, and no parameter will be modified.
99 @retval EFI_INVALID_PARAMETER All the parameters are NULL.
103 GetBiosVersionDateTime (
104 OUT CHAR16
*BiosVersion
, OPTIONAL
105 OUT CHAR16
*BiosReleaseDate
, OPTIONAL
106 OUT CHAR16
*BiosReleaseTime OPTIONAL