]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/Library/ExtendedIfrSupportLib.h
Code scrube for MdeModule Definitions.
[mirror_edk2.git] / MdeModulePkg / Include / Library / ExtendedIfrSupportLib.h
CommitLineData
9226efe5 1/** @file\r
2 Library header file defines APIs that is related to IFR operations but \r
3 specific to EDK II implementation.\r
4\r
1e354c03 5Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
6All rights reserved. This program and the accompanying materials\r
7are licensed and made available under the terms and conditions of the BSD License\r
8which accompanies this distribution. The full text of the license may be found at\r
9http://opensource.org/licenses/bsd-license.php\r
10\r
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
9226efe5 13\r
14**/\r
15\r
16#ifndef __EXTENDED_IFR_SUPPORT_LIB_H__\r
17#define __EXTENDED_IFR_SUPPORT_LIB_H__\r
18\r
19/**\r
20 Create GUIDed opcode for banner. Banner opcode\r
21 EFI_IFR_EXTEND_OP_BANNER is extended opcode specific\r
22 to Intel's implementation.\r
23\r
24 @param Title String ID for title\r
25 @param LineNumber Line number for this banner\r
26 @param Alignment Alignment for this banner, left, center or right\r
27 @param Data Destination for the created opcode binary\r
28\r
29 @retval EFI_SUCCESS Opcode create success\r
30 @retval EFI_BUFFER_TOO_SMALL The space reserved in Data field is too small.\r
31\r
32**/\r
33EFI_STATUS\r
5f597758 34EFIAPI\r
9226efe5 35CreateBannerOpCode (\r
36 IN EFI_STRING_ID Title,\r
37 IN UINT16 LineNumber,\r
38 IN UINT8 Alignment,\r
39 IN OUT EFI_HII_UPDATE_DATA *Data\r
40 )\r
41;\r
42\r
43/**\r
44 This function allows the caller to update a form that has\r
45 previously been registered with the EFI HII database.\r
46 The update make use of a extended opcode EFI_IFR_EXTEND_OP_LABEL\r
47 specific to Intel's implementation to complete the operation.\r
48 \r
49\r
50 @param Handle Hii Handle\r
51 @param FormSetGuid The formset should be updated.\r
52 @param FormId The form should be updated.\r
53 @param Label Update information starting immediately after this\r
54 label in the IFR\r
55 @param Insert If TRUE and Data is not NULL, insert data after\r
56 Label. If FALSE, replace opcodes between two\r
57 labels with Data.\r
58 @param Data The adding data; If NULL, remove opcodes between\r
59 two Label.\r
60\r
61 @retval EFI_SUCCESS Update success.\r
62 @retval Other Update fail.\r
63\r
64**/\r
65EFI_STATUS\r
5f597758 66EFIAPI\r
9226efe5 67IfrLibUpdateForm (\r
68 IN EFI_HII_HANDLE Handle,\r
69 IN EFI_GUID *FormSetGuid, OPTIONAL\r
70 IN EFI_FORM_ID FormId,\r
71 IN UINT16 Label,\r
72 IN BOOLEAN Insert,\r
73 IN EFI_HII_UPDATE_DATA *Data\r
74 )\r
75;\r
76\r
77/**\r
78 Extract formset class for given HII handle.\r
79\r
80 If Handle is not a valid EFI_HII_HANDLE in the default HII database, then\r
81 ASSERT.\r
82\r
83 If Class is NULL, then ASSERT.\r
84 IfFormSetTitle is NULL, then ASSERT.\r
85 If FormSetHelp is NULL, then ASSERT.\r
86\r
87 @param HiiHandle Hii handle\r
88 @param Class On output, Class of the formset\r
89 @param FormSetTitle On output, Formset title string\r
90 @param FormSetHelp On output, Formset help string\r
91\r
92 @retval EFI_SUCCESS Successfully extract Class for specified Hii\r
93 handle.\r
94\r
95**/\r
96EFI_STATUS\r
5f597758 97EFIAPI\r
9226efe5 98IfrLibExtractClassFromHiiHandle (\r
99 IN EFI_HII_HANDLE Handle,\r
100 OUT UINT16 *Class,\r
101 OUT EFI_STRING_ID *FormSetTitle,\r
102 OUT EFI_STRING_ID *FormSetHelp\r
103 )\r
104;\r
105\r
106/**\r
107 Configure the buffer accrording to ConfigBody strings in the format of\r
108 <Length:4 bytes>, <Offset: 2 bytes>, <Width:2 bytes>, <Data:n bytes>.\r
109\r
110 @param Buffer the start address of buffer.\r
111 @param BufferSize the size of buffer.\r
5f597758
LG
112 @param Number the number of the ConfigBody strings.\r
113 @param ... the ConfigBody strings\r
9226efe5 114\r
115 @retval EFI_BUFFER_TOO_SMALL the BufferSize is too small to operate.\r
116 @retval EFI_INVALID_PARAMETER Buffer is NULL or BufferSize is 0.\r
117 @retval EFI_SUCCESS Operation successful.\r
118\r
119**/\r
120EFI_STATUS\r
121EFIAPI\r
122IfrLibExtractDefault(\r
123 IN VOID *Buffer,\r
124 IN UINTN *BufferSize,\r
125 UINTN Number,\r
126 ...\r
127 )\r
128;\r
129\r
130#endif\r
131\r