]> git.proxmox.com Git - mirror_edk2.git/blob - DuetPkg/SmbiosGenDxe/SmbiosGen.h
Update the modules with the different module GUID to avoid the different modules...
[mirror_edk2.git] / DuetPkg / SmbiosGenDxe / SmbiosGen.h
1 /** @file
2
3 Copyright (c) 2009 - 2010, 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
8
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.
11
12 Module Name:
13
14 DataHubGen.h
15
16 Abstract:
17
18 **/
19
20 #ifndef _SMBIOS_GEN_H_
21 #define _SMBIOS_GEN_H_
22
23 #include <FrameworkDxe.h>
24 #include <IndustryStandard/SmBios.h>
25
26 #include <Guid/HobList.h>
27 #include <Guid/SmBios.h>
28 #include <Guid/DataHubRecords.h>
29
30 #include <Protocol/Smbios.h>
31 #include <Protocol/FrameworkHii.h>
32 #include <Protocol/HiiDatabase.h>
33
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
43 #define PRODUCT_NAME L"DUET"
44 #define PRODUCT_VERSION L"Beta"
45
46 #define FIRMWARE_PRODUCT_NAME (PRODUCT_NAME L": ")
47 #ifdef EFI32
48 #define FIRMWARE_BIOS_VERSIONE (PRODUCT_NAME L"(IA32.UEFI)" PRODUCT_VERSION L": ")
49 #else // EFIX64
50 #define FIRMWARE_BIOS_VERSIONE (PRODUCT_NAME L"(X64.UEFI)" PRODUCT_VERSION L": ")
51 #endif
52
53 SMBIOS_STRUCTURE_POINTER
54 GetSmbiosTableFromType (
55 IN SMBIOS_TABLE_ENTRY_POINT *Smbios,
56 IN UINT8 Type,
57 IN UINTN Index
58 );
59
60 CHAR8 *
61 GetSmbiosString (
62 IN SMBIOS_STRUCTURE_POINTER SmbiosTable,
63 IN SMBIOS_TABLE_STRING String
64 );
65
66 /**
67 Logs SMBIOS record.
68
69 @param Smbios Pointer to SMBIOS protocol instance.
70 @param Buffer Pointer to the data buffer.
71
72 **/
73 VOID
74 LogSmbiosData (
75 IN EFI_SMBIOS_PROTOCOL *Smbios,
76 IN UINT8 *Buffer
77 );
78
79 #endif