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