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