3 Copyright (c) 2004, 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.
18 The EFI_FORM_BROWSER_PROTOCOL is the interface to the EFI
19 Configuration Driver. This will allow the caller to direct the
20 configuration driver to use either the HII database or use the passed
21 in packet of data. This will also allow the caller to post messages
22 into the configuration drivers internal mailbox.
26 #ifndef _FORM_BROWSER_H_
27 #define _FORM_BROWSER_H_
29 #include EFI_PROTOCOL_DEFINITION (Hii)
32 // EFI_FORM_BROWSER_PROTOCOL_GUID has been changed from the one defined in Framework HII 0.92 as the
33 // Setup Browser protocol produced by HII Thunk Layer support the UEFI IFR and UEF String Package format.
35 #define EFI_FORM_BROWSER_PROTOCOL_GUID \
37 0xfb7c852, 0xadca, 0x4853, {0x8d, 0xf, 0xfb, 0xa7, 0x1b, 0x1c, 0xe1, 0x1a} \
41 #define EFI_FORM_BROWSER_PROTOCOL_GUID \
43 0xe5a1333e, 0xe1b4, 0x4d55, {0xce, 0xeb, 0x35, 0xc3, 0xef, 0x13, 0x34, 0x43} \
48 // Forward reference for pure ANSI compatability
50 typedef struct _EFI_FORM_BROWSER_PROTOCOL EFI_FORM_BROWSER_PROTOCOL
;
59 EFI_HII_IFR_PACK
*IfrData
;
60 EFI_HII_STRING_PACK
*StringData
;
71 // The following types are currently defined:
75 (EFIAPI
*EFI_SEND_FORM
) (
76 IN EFI_FORM_BROWSER_PROTOCOL
* This
,
77 IN BOOLEAN UseDatabase
,
78 IN EFI_HII_HANDLE
* Handle
,
80 IN EFI_IFR_PACKET
* Packet
,
81 IN EFI_HANDLE CallbackHandle
,
82 IN UINT8
*NvMapOverride
,
83 IN SCREEN_DESCRIPTOR
* ScreenDimensions
,
84 OUT BOOLEAN
*ResetRequired OPTIONAL
89 (EFIAPI
*EFI_CREATE_POP_UP
) (
90 IN UINTN NumberOfLines
,
92 IN UINTN MaximumStringSize
,
93 OUT CHAR16
*StringBuffer
,
94 OUT EFI_INPUT_KEY
* KeyValue
,
99 struct _EFI_FORM_BROWSER_PROTOCOL
{
100 EFI_SEND_FORM SendForm
;
101 EFI_CREATE_POP_UP CreatePopUp
;
104 extern EFI_GUID gEfiFormBrowserProtocolGuid
;