]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/DriverSampleDxe/DriverSample.h
Update to use DOS format
[mirror_edk2.git] / MdeModulePkg / Universal / DriverSampleDxe / DriverSample.h
CommitLineData
0bb0f8b8 1/** @file\r
2\r
3Copyright (c) 2007, 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\r
24#ifndef _DRIVER_SAMPLE_H\r
25#define _DRIVER_SAMPLE_H\r
26\r
27#include <Uefi.h>\r
28\r
29#include <Protocol/HiiConfigRouting.h>\r
30#include <Protocol/FormBrowser2.h>\r
31#include <Protocol/HiiConfigAccess.h>\r
32#include <Protocol/HiiDatabase.h>\r
33#include <Protocol/HiiString.h>\r
34\r
35#include <Library/DebugLib.h>\r
36#include <Library/BaseMemoryLib.h>\r
37#include <Library/UefiRuntimeServicesTableLib.h>\r
38#include <Library/UefiDriverEntryPoint.h>\r
39#include <Library/UefiBootServicesTableLib.h>\r
40#include <Library/MemoryAllocationLib.h>\r
41#include <Library/IfrSupportLib.h>\r
42#include <Library/ExtendedIfrSupportLib.h>\r
43#include <Library/HiiLib.h>\r
44#include <Library/ExtendedHiiLib.h>\r
45\r
46#include <MdeModuleHii.h>\r
47\r
48\r
49#include "NVDataStruc.h"\r
50\r
51//\r
52// This is the generated <AltResp> for defaults defined in VFR\r
53//\r
54extern UINT8 VfrMyIfrNVDataDefault0000[];\r
55\r
56//\r
57// This is the generated IFR binary data for each formset defined in VFR.\r
58// This data array is ready to be used as input of HiiLibPreparePackageList() to\r
59// create a packagelist (which contains Form packages, String packages, etc).\r
60//\r
61extern UINT8 VfrBin[];\r
62extern UINT8 InventoryBin[];\r
63\r
64//\r
65// This is the generated String package data for all .UNI files.\r
66// This data array is ready to be used as input of HiiLibPreparePackageList() to\r
67// create a packagelist (which contains Form packages, String packages, etc).\r
68//\r
69extern UINT8 DriverSampleStrings[];\r
70\r
71#define SAMPLE_STRING L"This is an error!"\r
72\r
73#define DRIVER_SAMPLE_PRIVATE_SIGNATURE EFI_SIGNATURE_32 ('D', 'S', 'p', 's')\r
74\r
75typedef struct {\r
76 UINTN Signature;\r
77\r
78 EFI_HANDLE DriverHandle[2];\r
79 EFI_HII_HANDLE HiiHandle[2];\r
80 DRIVER_SAMPLE_CONFIGURATION Configuration;\r
81 UINT8 PasswordState;\r
82\r
83 //\r
84 // Consumed protocol\r
85 //\r
86 EFI_HII_DATABASE_PROTOCOL *HiiDatabase;\r
87 EFI_HII_STRING_PROTOCOL *HiiString;\r
88 EFI_HII_CONFIG_ROUTING_PROTOCOL *HiiConfigRouting;\r
89 EFI_FORM_BROWSER2_PROTOCOL *FormBrowser2;\r
90\r
91 //\r
92 // Produced protocol\r
93 //\r
94 EFI_HII_CONFIG_ACCESS_PROTOCOL ConfigAccess;\r
95} DRIVER_SAMPLE_PRIVATE_DATA;\r
96\r
97#define DRIVER_SAMPLE_PRIVATE_FROM_THIS(a) CR (a, DRIVER_SAMPLE_PRIVATE_DATA, ConfigAccess, DRIVER_SAMPLE_PRIVATE_SIGNATURE)\r
98\r
99#endif\r