3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
23 #ifndef _DRIVER_SAMPLE_H
24 #define _DRIVER_SAMPLE_H
30 #include <Protocol/FormCallbackFramework.h>
31 #include <Protocol/HiiFramework.h>
33 #include <Library/UefiBootServicesTableLib.h>
34 #include <Library/UefiRuntimeServicesTableLib.h>
35 #include <Library/DebugLib.h>
36 #include <Library/UefiDriverEntryPoint.h>
37 #include <Library/BaseLib.h>
38 #include <Library/PrintLib.h>
39 #include <Library/IfrSupportLibFramework.h>
40 #include <Library/BaseMemoryLib.h>
41 #include <Library/MemoryAllocationLib.h>
42 #include <Library/HiiLibFramework.h>
44 #include "NVDataStruc.h"
47 // This is the generated header file which includes whatever needs to be exported (strings + IFR)
50 extern UINT8 VfrBin
[];
52 // extern UINT8 VfrStringsStr[];
54 extern UINT8 InventoryBin
[];
56 // extern UINT8 InventoryStringsStr[];
58 extern UINT8 DriverSampleDxeStrings
[];
60 #define SAMPLE_STRING L"This is an error!"
62 #define EFI_CALLBACK_INFO_SIGNATURE EFI_SIGNATURE_32 ('C', 'l', 'b', 'k')
66 EFI_HANDLE CallbackHandle
;
67 EFI_FORM_CALLBACK_PROTOCOL DriverCallback
;
70 EFI_HII_HANDLE RegisteredHandle
;
71 EFI_HII_PROTOCOL
*Hii
;
74 #define EFI_CALLBACK_INFO_FROM_THIS(a) CR (a, EFI_CALLBACK_INFO, DriverCallback, EFI_CALLBACK_INFO_SIGNATURE)