]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Framework/Protocol/FormBrowser/FormBrowser.h
Update Guid Value format.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Framework / Protocol / FormBrowser / FormBrowser.h
CommitLineData
3eb9473e 1/*++\r
2\r
3Copyright (c) 2004, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13 \r
14 FormBrowser.h\r
15\r
16Abstract:\r
17\r
18 The EFI_FORM_BROWSER_PROTOCOL is the interface to the EFI \r
19 Configuration Driver. This will allow the caller to direct the \r
20 configuration driver to use either the HII database or use the passed \r
21 in packet of data. This will also allow the caller to post messages \r
22 into the configuration drivers internal mailbox.\r
23\r
24--*/\r
25\r
26#ifndef _FORM_BROWSER_H_\r
27#define _FORM_BROWSER_H_\r
28\r
29#include EFI_PROTOCOL_DEFINITION (Hii)\r
30\r
31#define EFI_FORM_BROWSER_PROTOCOL_GUID \\r
32 { \\r
7ccf38a3 33 0xe5a1333e, 0xe1b4, 0x4d55, {0xce, 0xeb, 0x35, 0xc3, 0xef, 0x13, 0x34, 0x43} \\r
3eb9473e 34 }\r
35\r
36//\r
37// Forward reference for pure ANSI compatability\r
38//\r
3eb9473e 39typedef struct _EFI_FORM_BROWSER_PROTOCOL EFI_FORM_BROWSER_PROTOCOL;\r
40\r
41typedef struct {\r
42 UINT32 Length;\r
43 UINT16 Type;\r
44 UINT8 Data[1];\r
45} EFI_HII_PACKET;\r
46\r
47typedef struct {\r
48 EFI_HII_IFR_PACK *IfrData;\r
49 EFI_HII_STRING_PACK *StringData;\r
50} EFI_IFR_PACKET;\r
51\r
52typedef struct {\r
53 UINTN LeftColumn;\r
54 UINTN RightColumn;\r
55 UINTN TopRow;\r
56 UINTN BottomRow;\r
57} SCREEN_DESCRIPTOR;\r
58\r
59//\r
60// The following types are currently defined:\r
61//\r
62typedef\r
63EFI_STATUS\r
64(EFIAPI *EFI_SEND_FORM) (\r
65 IN EFI_FORM_BROWSER_PROTOCOL * This,\r
66 IN BOOLEAN UseDatabase,\r
67 IN EFI_HII_HANDLE * Handle,\r
68 IN UINTN HandleCount,\r
69 IN EFI_IFR_PACKET * Packet,\r
70 IN EFI_HANDLE CallbackHandle,\r
71 IN UINT8 *NvMapOverride,\r
72 IN SCREEN_DESCRIPTOR * ScreenDimensions,\r
73 OUT BOOLEAN *ResetRequired OPTIONAL\r
74 );\r
75\r
76typedef\r
77EFI_STATUS\r
78(EFIAPI *EFI_CREATE_POP_UP) (\r
79 IN UINTN NumberOfLines,\r
80 IN BOOLEAN HotKey,\r
81 IN UINTN MaximumStringSize,\r
82 OUT CHAR16 *StringBuffer,\r
83 OUT EFI_INPUT_KEY * KeyValue,\r
84 IN CHAR16 *String,\r
85 ...\r
86 );\r
87\r
5d46191d 88struct _EFI_FORM_BROWSER_PROTOCOL {\r
3eb9473e 89 EFI_SEND_FORM SendForm;\r
90 EFI_CREATE_POP_UP CreatePopUp;\r
5d46191d 91};\r
3eb9473e 92\r
93extern EFI_GUID gEfiFormBrowserProtocolGuid;\r
94\r
95#endif\r