]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFrameworkModulePkg/Universal/DriverSampleDxe/DriverSample.h
Modules clean up.
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / DriverSampleDxe / DriverSample.h
CommitLineData
103b6520 1/*++\r
2\r
3Copyright (c) 2006, Intel Corporation\r
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 DriverSample.h\r
15\r
16Abstract:\r
17\r
18\r
19Revision History\r
20\r
21--*/\r
22\r
23#ifndef _DRIVER_SAMPLE_H\r
24#define _DRIVER_SAMPLE_H\r
25\r
26\r
27//\r
ececc2eb 28// The package level header files this module uses\r
103b6520 29//\r
ececc2eb 30#include <PiDxe.h>\r
31//\r
32// The protocols, PPI and GUID defintions for this module\r
33//\r
34#include <Protocol/FormCallbackFramework.h>\r
35#include <Protocol/HiiFramework.h>\r
36//\r
37// The Library classes this module consumes\r
38//\r
39#include <Library/UefiBootServicesTableLib.h>\r
40#include <Library/UefiRuntimeServicesTableLib.h>\r
41#include <Library/DebugLib.h>\r
42#include <Library/UefiDriverEntryPoint.h>\r
43#include <Library/BaseLib.h>\r
44#include <Library/PrintLib.h>\r
45#include <Library/IfrSupportLibFramework.h>\r
46#include <Library/BaseMemoryLib.h>\r
47#include <Library/MemoryAllocationLib.h>\r
48#include <Library/HiiLibFramework.h>\r
103b6520 49\r
50#include "NVDataStruc.h"\r
51\r
52//\r
53// This is the generated header file which includes whatever needs to be exported (strings + IFR)\r
54//\r
55\r
56extern UINT8 VfrBin[];\r
57//\r
58// extern UINT8 VfrStringsStr[];\r
59//\r
60extern UINT8 InventoryBin[];\r
61//\r
62// extern UINT8 InventoryStringsStr[];\r
63//\r
ececc2eb 64extern UINT8 DriverSampleDxeStrings[];\r
103b6520 65\r
66#define SAMPLE_STRING L"This is an error!"\r
67\r
68#define EFI_CALLBACK_INFO_SIGNATURE EFI_SIGNATURE_32 ('C', 'l', 'b', 'k')\r
69\r
70typedef struct {\r
71 UINTN Signature;\r
72 EFI_HANDLE CallbackHandle;\r
73 EFI_FORM_CALLBACK_PROTOCOL DriverCallback;\r
74 UINT16 *KeyList;\r
75 VOID *FormBuffer;\r
76 EFI_HII_HANDLE RegisteredHandle;\r
77 EFI_HII_PROTOCOL *Hii;\r
78} EFI_CALLBACK_INFO;\r
79\r
80#define EFI_CALLBACK_INFO_FROM_THIS(a) CR (a, EFI_CALLBACK_INFO, DriverCallback, EFI_CALLBACK_INFO_SIGNATURE)\r
81\r
82#endif\r