X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=EdkModulePkg%2FUniversal%2FUserInterface%2FDriverSample%2FDriverSample.h;fp=EdkModulePkg%2FUniversal%2FUserInterface%2FDriverSample%2FDriverSample.h;h=b1534e8dc6d7e76c915f7ac7c9ccc6e32c05f587;hp=0000000000000000000000000000000000000000;hb=47a16b84f23e83c49d0fa0c5f9ae507df4b5c986;hpb=2a7b1e115dbb01cc5ad2dccde4608afefb8203a2 diff --git a/EdkModulePkg/Universal/UserInterface/DriverSample/DriverSample.h b/EdkModulePkg/Universal/UserInterface/DriverSample/DriverSample.h new file mode 100644 index 0000000000..b1534e8dc6 --- /dev/null +++ b/EdkModulePkg/Universal/UserInterface/DriverSample/DriverSample.h @@ -0,0 +1,60 @@ +/*++ + +Copyright (c) 2006, Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +Module Name: + + DriverSample.h + +Abstract: + + +Revision History + +--*/ + +#ifndef _DRIVER_SAMPLE_H +#define _DRIVER_SAMPLE_H + + +#include "NVDataStruc.h" + +// +// This is the generated header file which includes whatever needs to be exported (strings + IFR) +// +#include "DriverSampleStrDefs.h" + +extern UINT8 VfrBin[]; +// +// extern UINT8 VfrStringsStr[]; +// +extern UINT8 InventoryBin[]; +// +// extern UINT8 InventoryStringsStr[]; +// +extern UINT8 DriverSampleStrings[]; + +#define SAMPLE_STRING L"This is an error!" + +#define EFI_CALLBACK_INFO_SIGNATURE EFI_SIGNATURE_32 ('C', 'l', 'b', 'k') + +typedef struct { + UINTN Signature; + EFI_HANDLE CallbackHandle; + EFI_FORM_CALLBACK_PROTOCOL DriverCallback; + UINT16 *KeyList; + VOID *FormBuffer; + EFI_HII_HANDLE RegisteredHandle; + EFI_HII_PROTOCOL *Hii; +} EFI_CALLBACK_INFO; + +#define EFI_CALLBACK_INFO_FROM_THIS(a) CR (a, EFI_CALLBACK_INFO, DriverCallback, EFI_CALLBACK_INFO_SIGNATURE) + +#endif