3 Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
4 This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
20 #ifndef _SMBIOS_GEN_H_
21 #define _SMBIOS_GEN_H_
23 #include <FrameworkDxe.h>
24 #include <IndustryStandard/SmBios.h>
26 #include <Guid/HobList.h>
27 #include <Guid/SmBios.h>
28 #include <Guid/DataHubRecords.h>
30 #include <Protocol/Smbios.h>
31 #include <Protocol/FrameworkHii.h>
32 #include <Protocol/HiiDatabase.h>
34 #include <Library/BaseLib.h>
35 #include <Library/UefiLib.h>
36 #include <Library/HobLib.h>
37 #include <Library/UefiBootServicesTableLib.h>
38 #include <Library/HiiLib.h>
39 #include <Library/DebugLib.h>
40 #include <Library/BaseMemoryLib.h>
41 #include <Library/MemoryAllocationLib.h>
42 #include <Library/UefiHiiServicesLib.h>
44 #define PRODUCT_NAME L"DUET"
45 #define PRODUCT_VERSION L"Beta"
47 #define FIRMWARE_PRODUCT_NAME (PRODUCT_NAME L": ")
49 #define FIRMWARE_BIOS_VERSIONE (PRODUCT_NAME L"(IA32.UEFI)" PRODUCT_VERSION L": ")
51 #define FIRMWARE_BIOS_VERSIONE (PRODUCT_NAME L"(X64.UEFI)" PRODUCT_VERSION L": ")
54 SMBIOS_STRUCTURE_POINTER
55 GetSmbiosTableFromType (
56 IN SMBIOS_TABLE_ENTRY_POINT
*Smbios
,
63 IN SMBIOS_STRUCTURE_POINTER SmbiosTable
,
64 IN SMBIOS_TABLE_STRING String
70 @param Smbios Pointer to SMBIOS protocol instance.
71 @param Buffer Pointer to the data buffer.
76 IN EFI_SMBIOS_PROTOCOL
*Smbios
,