TianoCore EDK2 master
Loading...
Searching...
No Matches
EdkIIRedfishPlatformConfig.h
Go to the documentation of this file.
1
11#ifndef EDKII_REDFISH_PLATFORM_CONFIG_H_
12#define EDKII_REDFISH_PLATFORM_CONFIG_H_
13
15
16//
17// Redfish Platform Config Protocol interface version.
18//
19#define REDFISH_PLATFORM_CONFIG_VERSION 0x00010000
20
24typedef union {
25 INT64 Integer;
26 BOOLEAN Boolean;
27 CHAR8 *Buffer;
28 CHAR8 **StringArray;
29 INT64 *IntegerArray;
30 BOOLEAN *BooleanArray;
32
36typedef enum {
37 RedfishValueTypeUnknown = 0,
38 RedfishValueTypeInteger,
39 RedfishValueTypeBoolean,
40 RedfishValueTypeString,
41 RedfishValueTypeStringArray,
42 RedfishValueTypeIntegerArray,
43 RedfishValueTypeBooleanArray,
44 RedfishValueTypeMax
46
50typedef enum {
51 RedfishAttributeTypeUnknown = 0,
52 RedfishAttributeTypeEnumeration,
53 RedfishAttributeTypeString,
54 RedfishAttributeTypeInteger,
55 RedfishAttributeTypeBoolean,
56 RedfishAttributeTypePassword
58
62typedef struct {
65 UINTN ArrayCount;
67
71typedef struct {
72 CHAR8 *ValueName;
73 CHAR8 *ValueDisplayName;
75
79typedef struct {
80 UINTN ValueCount;
83
87typedef struct {
88 CHAR8 *AttributeName;
89 CHAR8 *DisplayName;
90 CHAR8 *HelpText;
91 CHAR8 *MenuPath;
93 BOOLEAN ResetRequired;
94 BOOLEAN ReadOnly;
95 BOOLEAN GrayedOut;
96 BOOLEAN Suppress;
97 UINT64 NumMaximum;
98 UINT64 NumMinimum;
99 UINT64 NumStep;
100 UINT8 StrMaxSize;
101 UINT8 StrMinSize;
104
118typedef
122 IN CHAR8 *Schema,
123 IN CHAR8 *Version,
124 IN EFI_STRING ConfigureLang,
126 );
127
128//
129// Default class standard
130//
131#define EDKII_REDFISH_DEFAULT_CLASS_STANDARD EFI_HII_DEFAULT_CLASS_STANDARD
132
148typedef
152 IN CHAR8 *Schema,
153 IN CHAR8 *Version,
154 IN EFI_STRING ConfigureLang,
155 IN UINT16 DefaultClass,
157 );
158
172typedef
176 IN CHAR8 *Schema,
177 IN CHAR8 *Version,
178 IN EFI_STRING ConfigureLang,
180 );
181
195typedef
199 IN CHAR8 *Schema,
200 IN CHAR8 *Version,
201 IN EFI_STRING ConfigureLang,
202 OUT EDKII_REDFISH_ATTRIBUTE *AttributeValue
203 );
204
219typedef
223 IN CHAR8 *Schema,
224 IN CHAR8 *Version,
225 IN EFI_STRING RegexPattern,
226 OUT EFI_STRING **ConfigureLangList,
227 OUT UINTN *Count
228 );
229
243typedef
247 OUT CHAR8 **SupportedSchema
248 );
249
251 UINT64 Revision;
258};
259
260extern EFI_GUID gEdkIIRedfishPlatformConfigProtocolGuid;
261
262#endif
UINT64 UINTN
EDKII_REDFISH_ATTRIBUTE_TYPES
EFI_STATUS(EFIAPI * EDKII_REDFISH_PLATFORM_CONFIG_GET_ATTRIBUTE)(IN EDKII_REDFISH_PLATFORM_CONFIG_PROTOCOL *This, IN CHAR8 *Schema, IN CHAR8 *Version, IN EFI_STRING ConfigureLang, OUT EDKII_REDFISH_ATTRIBUTE *AttributeValue)
EFI_STATUS(EFIAPI * EDKII_REDFISH_PLATFORM_CONFIG_SET_VALUE)(IN EDKII_REDFISH_PLATFORM_CONFIG_PROTOCOL *This, IN CHAR8 *Schema, IN CHAR8 *Version, IN EFI_STRING ConfigureLang, IN EDKII_REDFISH_VALUE Value)
EFI_STATUS(EFIAPI * EDKII_REDFISH_PLATFORM_CONFIG_GET_VALUE)(IN EDKII_REDFISH_PLATFORM_CONFIG_PROTOCOL *This, IN CHAR8 *Schema, IN CHAR8 *Version, IN EFI_STRING ConfigureLang, OUT EDKII_REDFISH_VALUE *Value)
EFI_STATUS(EFIAPI * EDKII_REDFISH_PLATFORM_CONFIG_GET_DEFAULT_VALUE)(IN EDKII_REDFISH_PLATFORM_CONFIG_PROTOCOL *This, IN CHAR8 *Schema, IN CHAR8 *Version, IN EFI_STRING ConfigureLang, IN UINT16 DefaultClass, OUT EDKII_REDFISH_VALUE *Value)
EFI_STATUS(EFIAPI * EDKII_REDFISH_PLATFORM_CONFIG_GET_CONFIG_LANG)(IN EDKII_REDFISH_PLATFORM_CONFIG_PROTOCOL *This, IN CHAR8 *Schema, IN CHAR8 *Version, IN EFI_STRING RegexPattern, OUT EFI_STRING **ConfigureLangList, OUT UINTN *Count)
EFI_STATUS(EFIAPI * EDKII_REDFISH_PLATFORM_CONFIG_GET_SUPPORTED_SCHEMA)(IN EDKII_REDFISH_PLATFORM_CONFIG_PROTOCOL *This, OUT CHAR8 **SupportedSchema)
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
Definition: Base.h:213