]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/DriverSampleDxe/DriverSample.h
MdeModulePkg/DriverSample: Remove the password related codes
[mirror_edk2.git] / MdeModulePkg / Universal / DriverSampleDxe / DriverSample.h
CommitLineData
0bb0f8b8 1/** @file\r
2\r
6bfd7ea7 3Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>\r
e5eed7d3 4This program and the accompanying materials\r
0bb0f8b8 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
7064c0a5 24#ifndef _DRIVER_SAMPLE_H_\r
25#define _DRIVER_SAMPLE_H_\r
0bb0f8b8 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
2b826e21 34#include <Protocol/FormBrowserEx.h>\r
34326197 35#include <Protocol/HiiConfigKeyword.h>\r
0bb0f8b8 36\r
5c526736 37#include <Guid/MdeModuleHii.h>\r
0bb0f8b8 38#include <Library/DebugLib.h>\r
cb7d01c0 39#include <Library/BaseLib.h>\r
0bb0f8b8 40#include <Library/BaseMemoryLib.h>\r
41#include <Library/UefiRuntimeServicesTableLib.h>\r
42#include <Library/UefiDriverEntryPoint.h>\r
43#include <Library/UefiBootServicesTableLib.h>\r
44#include <Library/MemoryAllocationLib.h>\r
0bb0f8b8 45#include <Library/HiiLib.h>\r
f6f910dd 46#include <Library/DevicePathLib.h>\r
84f9a9ec 47#include <Library/PrintLib.h>\r
a6973cff 48#include <Library/UefiLib.h>\r
0bb0f8b8 49\r
0bb0f8b8 50#include "NVDataStruc.h"\r
51\r
0bb0f8b8 52//\r
53// This is the generated IFR binary data for each formset defined in VFR.\r
cb7d01c0 54// This data array is ready to be used as input of HiiAddPackages() to\r
0bb0f8b8 55// create a packagelist (which contains Form packages, String packages, etc).\r
56//\r
57extern UINT8 VfrBin[];\r
58extern UINT8 InventoryBin[];\r
59\r
60//\r
61// This is the generated String package data for all .UNI files.\r
cb7d01c0 62// This data array is ready to be used as input of HiiAddPackages() to\r
0bb0f8b8 63// create a packagelist (which contains Form packages, String packages, etc).\r
64//\r
65extern UINT8 DriverSampleStrings[];\r
66\r
36dadb8a 67#define DYNAMIC_ONE_OF_VAR_OFFSET OFFSET_OF (DRIVER_SAMPLE_CONFIGURATION, DynamicOneof)\r
68#define DYNAMIC_ORDERED_LIST_VAR_OFFSET OFFSET_OF (DRIVER_SAMPLE_CONFIGURATION, DynamicOrderedList)\r
0bb0f8b8 69\r
ee31d1be
ED
70#define DEFAULT_CLASS_MANUFACTURING_VALUE 0xFF\r
71#define DEFAULT_CLASS_STANDARD_VALUE 0x0\r
72\r
38ebfecb
LG
73//\r
74// Number of name in Name/Value storage\r
75//\r
76#define NAME_VALUE_NAME_NUMBER 3\r
77\r
f3f2e05d 78#define DRIVER_SAMPLE_PRIVATE_SIGNATURE SIGNATURE_32 ('D', 'S', 'p', 's')\r
0bb0f8b8 79\r
80typedef struct {\r
81 UINTN Signature;\r
82\r
83 EFI_HANDLE DriverHandle[2];\r
84 EFI_HII_HANDLE HiiHandle[2];\r
85 DRIVER_SAMPLE_CONFIGURATION Configuration;\r
78c2b9a3 86 MY_EFI_VARSTORE_DATA VarStoreConfig;\r
0bb0f8b8 87\r
38ebfecb
LG
88 //\r
89 // Name/Value storage Name list\r
90 //\r
91 EFI_STRING_ID NameStringId[NAME_VALUE_NAME_NUMBER];\r
92 EFI_STRING NameValueName[NAME_VALUE_NAME_NUMBER];\r
93\r
0bb0f8b8 94 //\r
95 // Consumed protocol\r
96 //\r
97 EFI_HII_DATABASE_PROTOCOL *HiiDatabase;\r
98 EFI_HII_STRING_PROTOCOL *HiiString;\r
99 EFI_HII_CONFIG_ROUTING_PROTOCOL *HiiConfigRouting;\r
34326197
ED
100 EFI_CONFIG_KEYWORD_HANDLER_PROTOCOL *HiiKeywordHandler;\r
101\r
0bb0f8b8 102 EFI_FORM_BROWSER2_PROTOCOL *FormBrowser2;\r
103\r
104 //\r
105 // Produced protocol\r
106 //\r
107 EFI_HII_CONFIG_ACCESS_PROTOCOL ConfigAccess;\r
108} DRIVER_SAMPLE_PRIVATE_DATA;\r
109\r
110#define DRIVER_SAMPLE_PRIVATE_FROM_THIS(a) CR (a, DRIVER_SAMPLE_PRIVATE_DATA, ConfigAccess, DRIVER_SAMPLE_PRIVATE_SIGNATURE)\r
111\r
f6f910dd 112#pragma pack(1)\r
113\r
114///\r
115/// HII specific Vendor Device Path definition.\r
116///\r
117typedef struct {\r
118 VENDOR_DEVICE_PATH VendorDevicePath;\r
119 EFI_DEVICE_PATH_PROTOCOL End;\r
120} HII_VENDOR_DEVICE_PATH;\r
121\r
122#pragma pack()\r
123\r
0bb0f8b8 124#endif\r