]> git.proxmox.com Git - mirror_edk2.git/blob - EdkModulePkg/Universal/UserInterface/DriverSample/DriverSample.h
1. adjust contents layout of SPD header editor, FPD header editor.
[mirror_edk2.git] / EdkModulePkg / Universal / UserInterface / DriverSample / 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 #include "NVDataStruc.h"
28
29 //
30 // This is the generated header file which includes whatever needs to be exported (strings + IFR)
31 //
32 #include "DriverSampleStrDefs.h"
33
34 extern UINT8 VfrBin[];
35 //
36 // extern UINT8 VfrStringsStr[];
37 //
38 extern UINT8 InventoryBin[];
39 //
40 // extern UINT8 InventoryStringsStr[];
41 //
42 extern UINT8 DriverSampleStrings[];
43
44 #define SAMPLE_STRING L"This is an error!"
45
46 #define EFI_CALLBACK_INFO_SIGNATURE EFI_SIGNATURE_32 ('C', 'l', 'b', 'k')
47
48 typedef struct {
49 UINTN Signature;
50 EFI_HANDLE CallbackHandle;
51 EFI_FORM_CALLBACK_PROTOCOL DriverCallback;
52 UINT16 *KeyList;
53 VOID *FormBuffer;
54 EFI_HII_HANDLE RegisteredHandle;
55 EFI_HII_PROTOCOL *Hii;
56 } EFI_CALLBACK_INFO;
57
58 #define EFI_CALLBACK_INFO_FROM_THIS(a) CR (a, EFI_CALLBACK_INFO, DriverCallback, EFI_CALLBACK_INFO_SIGNATURE)
59
60 #endif