]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFrameworkModulePkg/Universal/DriverSampleDxe/DriverSample.h
Correct all header files for doxygen format and correct the license issue for VgaClas...
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / DriverSampleDxe / DriverSample.h
CommitLineData
3db51098 1/**@file\r
103b6520 2\r
3db51098 3 This is an example of how a driver might export data to the HII protocol to be\r
4 later utilized by the Setup Protocol\r
5 \r
103b6520 6Copyright (c) 2006, Intel Corporation\r
7All rights reserved. This program and the accompanying materials\r
8are licensed and made available under the terms and conditions of the BSD License\r
9which accompanies this distribution. The full text of the license may be found at\r
10http://opensource.org/licenses/bsd-license.php\r
11\r
12THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
13WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
14\r
3db51098 15**/\r
103b6520 16#ifndef _DRIVER_SAMPLE_H\r
17#define _DRIVER_SAMPLE_H\r
18\r
19\r
ed7748fe 20\r
ececc2eb 21#include <PiDxe.h>\r
ed7748fe 22\r
ececc2eb 23#include <Protocol/FormCallbackFramework.h>\r
24#include <Protocol/HiiFramework.h>\r
ed7748fe 25\r
ececc2eb 26#include <Library/UefiBootServicesTableLib.h>\r
27#include <Library/UefiRuntimeServicesTableLib.h>\r
28#include <Library/DebugLib.h>\r
29#include <Library/UefiDriverEntryPoint.h>\r
30#include <Library/BaseLib.h>\r
31#include <Library/PrintLib.h>\r
32#include <Library/IfrSupportLibFramework.h>\r
33#include <Library/BaseMemoryLib.h>\r
34#include <Library/MemoryAllocationLib.h>\r
35#include <Library/HiiLibFramework.h>\r
103b6520 36\r
37#include "NVDataStruc.h"\r
38\r
39//\r
40// This is the generated header file which includes whatever needs to be exported (strings + IFR)\r
41//\r
42\r
43extern UINT8 VfrBin[];\r
44//\r
45// extern UINT8 VfrStringsStr[];\r
46//\r
47extern UINT8 InventoryBin[];\r
48//\r
49// extern UINT8 InventoryStringsStr[];\r
50//\r
ececc2eb 51extern UINT8 DriverSampleDxeStrings[];\r
103b6520 52\r
53#define SAMPLE_STRING L"This is an error!"\r
54\r
55#define EFI_CALLBACK_INFO_SIGNATURE EFI_SIGNATURE_32 ('C', 'l', 'b', 'k')\r
56\r
57typedef struct {\r
58 UINTN Signature;\r
59 EFI_HANDLE CallbackHandle;\r
60 EFI_FORM_CALLBACK_PROTOCOL DriverCallback;\r
61 UINT16 *KeyList;\r
62 VOID *FormBuffer;\r
63 EFI_HII_HANDLE RegisteredHandle;\r
64 EFI_HII_PROTOCOL *Hii;\r
65} EFI_CALLBACK_INFO;\r
66\r
67#define EFI_CALLBACK_INFO_FROM_THIS(a) CR (a, EFI_CALLBACK_INFO, DriverCallback, EFI_CALLBACK_INFO_SIGNATURE)\r
68\r
69#endif\r