]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFrameworkModulePkg/Universal/DriverSampleDxe/DriverSample.h
Rename Protocol/FrameworkHii.h to Protocol/HiiFramework.h to follow the naming conven...
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / DriverSampleDxe / DriverSample.h
CommitLineData
103b6520 1/*++\r
2\r
3Copyright (c) 2006, Intel Corporation\r
4All rights reserved. This program and the accompanying materials\r
5are licensed and made available under the terms and conditions of the BSD License\r
6which accompanies this distribution. The full text of the license may be found at\r
7http://opensource.org/licenses/bsd-license.php\r
8\r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11\r
12Module Name:\r
13\r
14 DriverSample.h\r
15\r
16Abstract:\r
17\r
18\r
19Revision History\r
20\r
21--*/\r
22\r
23#ifndef _DRIVER_SAMPLE_H\r
24#define _DRIVER_SAMPLE_H\r
25\r
26\r
27//\r
28// Include common header file for this module.\r
29//\r
30#include "CommonHeader.h"\r
31\r
32#include "NVDataStruc.h"\r
33\r
34//\r
35// This is the generated header file which includes whatever needs to be exported (strings + IFR)\r
36//\r
37\r
38extern UINT8 VfrBin[];\r
39//\r
40// extern UINT8 VfrStringsStr[];\r
41//\r
42extern UINT8 InventoryBin[];\r
43//\r
44// extern UINT8 InventoryStringsStr[];\r
45//\r
46extern UINT8 DriverSampleStrings[];\r
47\r
48#define SAMPLE_STRING L"This is an error!"\r
49\r
50#define EFI_CALLBACK_INFO_SIGNATURE EFI_SIGNATURE_32 ('C', 'l', 'b', 'k')\r
51\r
52typedef struct {\r
53 UINTN Signature;\r
54 EFI_HANDLE CallbackHandle;\r
55 EFI_FORM_CALLBACK_PROTOCOL DriverCallback;\r
56 UINT16 *KeyList;\r
57 VOID *FormBuffer;\r
58 EFI_HII_HANDLE RegisteredHandle;\r
59 EFI_HII_PROTOCOL *Hii;\r
60} EFI_CALLBACK_INFO;\r
61\r
62#define EFI_CALLBACK_INFO_FROM_THIS(a) CR (a, EFI_CALLBACK_INFO, DriverCallback, EFI_CALLBACK_INFO_SIGNATURE)\r
63\r
64#endif\r