3 Copyright (c) 2006 - 2007, Intel Corporation
4 All rights reserved. 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 _DATA_HUB_GEN_H_
21 #define _DATA_HUB_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/DataHub.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>
43 #define PRODUCT_NAME L"DUET"
44 #define PRODUCT_VERSION L"Beta"
46 #define FIRMWARE_PRODUCT_NAME (PRODUCT_NAME L": ")
48 #if (EFI_SPECIFICATION_VERSION >= 0x00020000)
49 #define FIRMWARE_BIOS_VERSIONE (PRODUCT_NAME L"(IA32.UEFI)" PRODUCT_VERSION L": ")
51 #define FIRMWARE_BIOS_VERSIONE (PRODUCT_NAME L"(IA32.EFI)" PRODUCT_VERSION L": ")
54 #if (EFI_SPECIFICATION_VERSION >= 0x00020000)
55 #define FIRMWARE_BIOS_VERSIONE (PRODUCT_NAME L"(X64.UEFI)" PRODUCT_VERSION L": ")
57 #define FIRMWARE_BIOS_VERSIONE (PRODUCT_NAME L"(X64.EFI)" PRODUCT_VERSION L": ")
61 SMBIOS_STRUCTURE_POINTER
62 GetSmbiosTableFromType (
63 IN SMBIOS_TABLE_ENTRY_POINT
*Smbios
,
70 IN SMBIOS_STRUCTURE_POINTER SmbiosTable
,
71 IN SMBIOS_TABLE_STRING String