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