]>
Commit | Line | Data |
---|---|---|
21020c7c | 1 | /** @file\r |
2 | \r | |
3 | Copyright (c) 2009, Intel Corporation \r | |
4 | All rights reserved. This program and the accompanying materials \r | |
5 | are licensed and made available under the terms and conditions of the BSD License \r | |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | Module Name: \r | |
13 | \r | |
14 | DataHubGen.h\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | **/\r | |
19 | \r | |
20 | #ifndef _SMBIOS_GEN_H_\r | |
21 | #define _SMBIOS_GEN_H_\r | |
22 | \r | |
23 | #include <FrameworkDxe.h>\r | |
24 | #include <IndustryStandard/SmBios.h>\r | |
25 | \r | |
26 | #include <Guid/HobList.h>\r | |
27 | #include <Guid/SmBios.h>\r | |
28 | #include <Guid/DataHubRecords.h>\r | |
29 | \r | |
30 | #include <Protocol/Smbios.h>\r | |
31 | #include <Protocol/FrameworkHii.h>\r | |
32 | #include <Protocol/HiiDatabase.h>\r | |
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 | |
38 | #include <Library/HiiLib.h>\r | |
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 | |
48 | #if (EFI_SPECIFICATION_VERSION >= 0x00020000)\r | |
49 | #define FIRMWARE_BIOS_VERSIONE (PRODUCT_NAME L"(IA32.UEFI)" PRODUCT_VERSION L": ")\r | |
50 | #else\r | |
51 | #define FIRMWARE_BIOS_VERSIONE (PRODUCT_NAME L"(IA32.EFI)" PRODUCT_VERSION L": ")\r | |
52 | #endif\r | |
53 | #else // EFIX64\r | |
54 | #if (EFI_SPECIFICATION_VERSION >= 0x00020000)\r | |
55 | #define FIRMWARE_BIOS_VERSIONE (PRODUCT_NAME L"(X64.UEFI)" PRODUCT_VERSION L": ")\r | |
56 | #else\r | |
57 | #define FIRMWARE_BIOS_VERSIONE (PRODUCT_NAME L"(X64.EFI)" PRODUCT_VERSION L": ")\r | |
58 | #endif\r | |
59 | #endif\r | |
60 | \r | |
61 | SMBIOS_STRUCTURE_POINTER\r | |
62 | GetSmbiosTableFromType (\r | |
63 | IN SMBIOS_TABLE_ENTRY_POINT *Smbios,\r | |
64 | IN UINT8 Type,\r | |
65 | IN UINTN Index\r | |
66 | );\r | |
67 | \r | |
68 | CHAR8 *\r | |
69 | GetSmbiosString (\r | |
70 | IN SMBIOS_STRUCTURE_POINTER SmbiosTable,\r | |
71 | IN SMBIOS_TABLE_STRING String\r | |
72 | );\r | |
73 | \r | |
74 | /**\r | |
75 | Logs SMBIOS record.\r | |
76 | \r | |
77 | @param Smbios Pointer to SMBIOS protocol instance.\r | |
78 | @param Buffer Pointer to the data buffer.\r | |
79 | \r | |
80 | **/\r | |
81 | VOID\r | |
82 | LogSmbiosData (\r | |
83 | IN EFI_SMBIOS_PROTOCOL *Smbios,\r | |
84 | IN UINT8 *Buffer\r | |
85 | );\r | |
86 | \r | |
87 | #endif\r |