]> git.proxmox.com Git - mirror_edk2.git/blame - DuetPkg/DataHubGenDxe/DataHubGen.h
Fix the issue that GCC treat enum type as unsigned int which incompatible with UEFI...
[mirror_edk2.git] / DuetPkg / DataHubGenDxe / DataHubGen.h
CommitLineData
18b84857 1/** @file\r
ca162103 2\r
a17b7e9f 3Copyright (c) 2006 - 2010, Intel Corporation \r
ca162103 4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name: \r
13\r
14 DataHubGen.h\r
15\r
16Abstract:\r
17\r
18b84857 18**/\r
ca162103 19\r
20#ifndef _DATA_HUB_GEN_H_\r
21#define _DATA_HUB_GEN_H_\r
22\r
23#include <FrameworkDxe.h>\r
d8bee43c 24#include <IndustryStandard/SmBios.h>\r
ca162103 25\r
26#include <Guid/HobList.h>\r
d8bee43c 27#include <Guid/SmBios.h>\r
ca162103 28#include <Guid/DataHubRecords.h>\r
29\r
d8bee43c 30#include <Protocol/DataHub.h>\r
ca162103 31#include <Protocol/FrameworkHii.h>\r
9aa08808 32#include <Protocol/HiiDatabase.h>\r
ca162103 33\r
34#include <Library/BaseLib.h>\r
35#include <Library/UefiLib.h>\r
36#include <Library/HobLib.h>\r
37#include <Library/UefiBootServicesTableLib.h>\r
3751c4cf 38#include <Library/HiiLib.h>\r
ca162103 39#include <Library/DebugLib.h>\r
40#include <Library/BaseMemoryLib.h>\r
41#include <Library/MemoryAllocationLib.h>\r
42\r
43#define PRODUCT_NAME L"DUET"\r
44#define PRODUCT_VERSION L"Beta"\r
45\r
46#define FIRMWARE_PRODUCT_NAME (PRODUCT_NAME L": ")\r
47#ifdef EFI32\r
ca162103 48#define FIRMWARE_BIOS_VERSIONE (PRODUCT_NAME L"(IA32.UEFI)" PRODUCT_VERSION L": ")\r
ca162103 49#else // EFIX64\r
ca162103 50#define FIRMWARE_BIOS_VERSIONE (PRODUCT_NAME L"(X64.UEFI)" PRODUCT_VERSION L": ")\r
ca162103 51#endif\r
52\r
53SMBIOS_STRUCTURE_POINTER\r
54GetSmbiosTableFromType (\r
f40bbc08 55 IN SMBIOS_TABLE_ENTRY_POINT *Smbios,\r
ca162103 56 IN UINT8 Type,\r
57 IN UINTN Index\r
58 );\r
59\r
60CHAR8 *\r
61GetSmbiosString (\r
62 IN SMBIOS_STRUCTURE_POINTER SmbiosTable,\r
63 IN SMBIOS_TABLE_STRING String\r
64 );\r
65\r
66#endif\r