]> git.proxmox.com Git - mirror_edk2.git/blame - InOsEmuPkg/MiscSubClassPlatformDxe/MiscSubClassDriver.h
Clarify the requirements for the Destination parameter of UnicodeStrToAsciiStr.
[mirror_edk2.git] / InOsEmuPkg / MiscSubClassPlatformDxe / MiscSubClassDriver.h
CommitLineData
949f388f 1/*++\r
2\r
3Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
4This 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 MiscSubclassDriver.h\r
15\r
16Abstract:\r
17\r
18 Header file for MiscSubclass Driver.\r
19\r
20**/\r
21\r
22#ifndef _MISC_SUBCLASS_DRIVER_H\r
23#define _MISC_SUBCLASS_DRIVER_H\r
24\r
25#include <FrameworkDxe.h>\r
26\r
27#include <Guid/DataHubRecords.h>\r
28#include <IndustryStandard/SmBios.h>\r
29#include <Protocol/Smbios.h>\r
30#include <Protocol/EmuIoThunk.h>\r
31\r
32#include <Library/BaseLib.h>\r
33#include <Library/DebugLib.h>\r
34#include <Library/HiiLib.h>\r
35#include <Library/UefiLib.h>\r
36#include <Library/UefiDriverEntryPoint.h>\r
37#include <Library/BaseMemoryLib.h>\r
38#include <Library/MemoryAllocationLib.h>\r
39#include <Library/UefiBootServicesTableLib.h>\r
40#include <Library/DevicePathLib.h>\r
41#include <Library/PcdLib.h>\r
42\r
43\r
44#include <MiscDevicePath.h>\r
45#include <Protocol/FrameworkHii.h>\r
46#include <Library/HiiLib.h>\r
47\r
48//\r
49// Data table entry update function.\r
50//\r
51typedef EFI_STATUS (EFIAPI EFI_MISC_SMBIOS_DATA_FUNCTION) (\r
52 IN VOID *RecordData,\r
53 IN EFI_SMBIOS_PROTOCOL *Smbios\r
54 );\r
55\r
56//\r
57// Data table entry definition.\r
58//\r
59typedef struct {\r
60 //\r
61 // intermediat input data for SMBIOS record\r
62 //\r
63 VOID *RecordData;\r
64 EFI_MISC_SMBIOS_DATA_FUNCTION *Function;\r
65} EFI_MISC_SMBIOS_DATA_TABLE;\r
66\r
67//\r
68// Data Table extern definitions.\r
69//\r
70#define MISC_SMBIOS_TABLE_EXTERNS(NAME1, NAME2, NAME3) \\r
71extern NAME1 NAME2 ## Data; \\r
72extern EFI_MISC_SMBIOS_DATA_FUNCTION NAME3 ## Function\r
73\r
74\r
75//\r
76// Data Table entries\r
77//\r
78#define MISC_SMBIOS_TABLE_ENTRY_DATA_AND_FUNCTION(NAME1, NAME2) \\r
79{ \\r
80 & NAME1 ## Data, \\r
81 & NAME2 ## Function \\r
82}\r
83\r
84//\r
85// Global definition macros.\r
86//\r
87#define MISC_SMBIOS_TABLE_DATA(NAME1, NAME2) \\r
88 NAME1 NAME2 ## Data\r
89\r
90#define MISC_SMBIOS_TABLE_FUNCTION(NAME2) \\r
91 EFI_STATUS EFIAPI NAME2 ## Function( \\r
92 IN VOID *RecordData, \\r
93 IN EFI_SMBIOS_PROTOCOL *Smbios \\r
94 )\r
95\r
96\r
97//\r
98// Data Table Array\r
99//\r
100extern EFI_MISC_SMBIOS_DATA_TABLE mMiscSubclassDataTable[];\r
101\r
102//\r
103// Data Table Array Entries\r
104//\r
105extern UINTN mMiscSubclassDataTableEntries;\r
106extern UINT8 MiscSubclassStrings[];\r
107extern EFI_HII_HANDLE mHiiHandle;\r
108\r
109//\r
110// Prototypes\r
111//\r
112EFI_STATUS\r
113EFIAPI\r
114MiscSubclassDriverEntryPoint (\r
115 IN EFI_HANDLE ImageHandle,\r
116 IN EFI_SYSTEM_TABLE *SystemTable\r
117 );\r
118\r
119\r
120#endif /* _MISC_SUBCLASS_DRIVER_H */\r
121\r
122/* eof - MiscSubclassDriver.h */\r