3 This is an example of how a driver might export data to the HII protocol to be
4 later utilized by the Setup Protocol
6 Copyright (c) 2006, Intel Corporation
7 All rights reserved. This program and the accompanying materials
8 are licensed and made available under the terms and conditions of the BSD License
9 which accompanies this distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #ifndef _DRIVER_SAMPLE_H
17 #define _DRIVER_SAMPLE_H
21 #include <FrameworkDxe.h>
23 #include <Protocol/FrameworkFormCallback.h>
24 #include <Protocol/FrameworkHii.h>
26 #include <Library/UefiBootServicesTableLib.h>
27 #include <Library/UefiRuntimeServicesTableLib.h>
28 #include <Library/DebugLib.h>
29 #include <Library/UefiDriverEntryPoint.h>
30 #include <Library/BaseLib.h>
31 #include <Library/PrintLib.h>
32 #include <Library/FrameworkIfrSupportLib.h>
33 #include <Library/BaseMemoryLib.h>
34 #include <Library/MemoryAllocationLib.h>
35 #include <Library/FrameworkHiiLib.h>
37 #include "NVDataStruc.h"
40 // This is the generated header file which includes whatever needs to be exported (strings + IFR)
43 extern UINT8 VfrBin
[];
45 // extern UINT8 VfrStringsStr[];
47 extern UINT8 InventoryBin
[];
49 // extern UINT8 InventoryStringsStr[];
51 extern UINT8 DriverSampleDxeStrings
[];
53 #define SAMPLE_STRING L"This is an error!"
55 #define EFI_CALLBACK_INFO_SIGNATURE EFI_SIGNATURE_32 ('C', 'l', 'b', 'k')
59 EFI_HANDLE CallbackHandle
;
60 EFI_FORM_CALLBACK_PROTOCOL DriverCallback
;
63 FRAMEWORK_EFI_HII_HANDLE RegisteredHandle
;
64 EFI_HII_PROTOCOL
*Hii
;
67 #define EFI_CALLBACK_INFO_FROM_THIS(a) CR (a, EFI_CALLBACK_INFO, DriverCallback, EFI_CALLBACK_INFO_SIGNATURE)