]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/DriverSampleDxe/DriverSample.h
The driver and library in MdePkg, MdeModulePkg and Nt32Pkg that don't depend on PI...
[mirror_edk2.git] / MdeModulePkg / Universal / DriverSampleDxe / DriverSample.h
CommitLineData
93e3992d 1/** @file
2
3Copyright (c) 2007, Intel Corporation
4All rights reserved. This program and the accompanying materials
5are licensed and made available under the terms and conditions of the BSD License
6which accompanies this distribution. The full text of the license may be found at
7http://opensource.org/licenses/bsd-license.php
8
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12Module Name:
13
14 DriverSample.h
15
16Abstract:
17
18
19Revision History
20
21
22**/
23
24#ifndef _DRIVER_SAMPLE_H
25#define _DRIVER_SAMPLE_H
26
60c93673 27#include <Uefi.h>
93e3992d 28
29#include <Protocol/HiiConfigRouting.h>
30#include <Protocol/FormBrowser2.h>
31#include <Protocol/HiiConfigAccess.h>
32#include <Protocol/HiiDatabase.h>
33#include <Protocol/HiiString.h>
34
35#include <Library/DebugLib.h>
36#include <Library/BaseMemoryLib.h>
37#include <Library/UefiRuntimeServicesTableLib.h>
38#include <Library/UefiDriverEntryPoint.h>
39#include <Library/UefiBootServicesTableLib.h>
40#include <Library/MemoryAllocationLib.h>
41#include <Library/IfrSupportLib.h>
9226efe5 42#include <Library/ExtendedIfrSupportLib.h>
93e3992d 43#include <Library/HiiLib.h>
9226efe5 44#include <Library/ExtendedHiiLib.h>
93e3992d 45
46#include <MdeModuleHii.h>
47
48
49#include "NVDataStruc.h"
50
51//
52// This is the generated <AltResp> for defaults defined in VFR
53//
54extern UINT8 VfrMyIfrNVDataDefault0000[];
55
56//
57// This is the generated IFR binary data for each formset defined in VFR.
9226efe5 58// This data array is ready to be used as input of HiiLibPreparePackageList() to
93e3992d 59// create a packagelist (which contains Form packages, String packages, etc).
60//
61extern UINT8 VfrBin[];
62extern UINT8 InventoryBin[];
63
64//
65// This is the generated String package data for all .UNI files.
9226efe5 66// This data array is ready to be used as input of HiiLibPreparePackageList() to
93e3992d 67// create a packagelist (which contains Form packages, String packages, etc).
68//
69extern UINT8 DriverSampleStrings[];
70
71#define SAMPLE_STRING L"This is an error!"
72
73#define DRIVER_SAMPLE_PRIVATE_SIGNATURE EFI_SIGNATURE_32 ('D', 'S', 'p', 's')
74
75typedef struct {
76 UINTN Signature;
77
78 EFI_HANDLE DriverHandle[2];
79 EFI_HII_HANDLE HiiHandle[2];
80 DRIVER_SAMPLE_CONFIGURATION Configuration;
81 UINT8 PasswordState;
82
83 //
84 // Consumed protocol
85 //
86 EFI_HII_DATABASE_PROTOCOL *HiiDatabase;
87 EFI_HII_STRING_PROTOCOL *HiiString;
88 EFI_HII_CONFIG_ROUTING_PROTOCOL *HiiConfigRouting;
89 EFI_FORM_BROWSER2_PROTOCOL *FormBrowser2;
90
91 //
92 // Produced protocol
93 //
94 EFI_HII_CONFIG_ACCESS_PROTOCOL ConfigAccess;
95} DRIVER_SAMPLE_PRIVATE_DATA;
96
97#define DRIVER_SAMPLE_PRIVATE_FROM_THIS(a) CR (a, DRIVER_SAMPLE_PRIVATE_DATA, ConfigAccess, DRIVER_SAMPLE_PRIVATE_SIGNATURE)
98
99#endif