32 IN EFI_STRING ConfigureLang,
36 if (mRedfishPlatformConfigLibPrivate.Protocol ==
NULL) {
40 return mRedfishPlatformConfigLibPrivate.Protocol->GetValue (
41 mRedfishPlatformConfigLibPrivate.Protocol,
65 IN EFI_STRING ConfigureLang,
69 if (mRedfishPlatformConfigLibPrivate.Protocol ==
NULL) {
73 return mRedfishPlatformConfigLibPrivate.Protocol->GetAttribute (
74 mRedfishPlatformConfigLibPrivate.Protocol,
100 IN EFI_STRING ConfigureLang,
101 IN UINT16 DefaultClass,
105 if (mRedfishPlatformConfigLibPrivate.Protocol ==
NULL) {
106 return EFI_NOT_READY;
109 return mRedfishPlatformConfigLibPrivate.Protocol->GetDefaultValue (
110 mRedfishPlatformConfigLibPrivate.Protocol,
136 IN EFI_STRING ConfigureLang,
140 if (mRedfishPlatformConfigLibPrivate.Protocol ==
NULL) {
141 return EFI_NOT_READY;
144 return mRedfishPlatformConfigLibPrivate.Protocol->SetValue (
145 mRedfishPlatformConfigLibPrivate.Protocol,
171 IN EFI_STRING Pattern,
172 OUT EFI_STRING **ConfigureLangList,
176 if (mRedfishPlatformConfigLibPrivate.Protocol ==
NULL) {
177 return EFI_NOT_READY;
180 return mRedfishPlatformConfigLibPrivate.Protocol->GetConfigureLang (
181 mRedfishPlatformConfigLibPrivate.Protocol,
206 OUT CHAR8 **SupportedSchema
209 if (mRedfishPlatformConfigLibPrivate.Protocol ==
NULL) {
210 return EFI_NOT_READY;
213 return mRedfishPlatformConfigLibPrivate.Protocol->GetSupportedSchema (
214 mRedfishPlatformConfigLibPrivate.Protocol,
240 Status =
gBS->LocateProtocol (
241 &gEdkIIRedfishPlatformConfigProtocolGuid,
243 (VOID **)&mRedfishPlatformConfigLibPrivate.Protocol
245 if (EFI_ERROR (Status)) {
246 DEBUG ((DEBUG_ERROR,
"%a: locate EDKII_REDFISH_PLATFORM_CONFIG_PROTOCOL failure: %r\n", __func__, Status));
250 gBS->CloseEvent (Event);
273 &gEdkIIRedfishPlatformConfigProtocolGuid,
280 DEBUG ((DEBUG_ERROR,
"%a: failed to create protocol notify event\n", __func__));
307 mRedfishPlatformConfigLibPrivate.Protocol =
NULL;
VOID *EFIAPI ZeroMem(OUT VOID *Buffer, IN UINTN Length)
#define DEBUG(Expression)
EFI_EVENT EFIAPI EfiCreateProtocolNotifyEvent(IN EFI_GUID *ProtocolGuid, IN EFI_TPL NotifyTpl, IN EFI_EVENT_NOTIFY NotifyFunction, IN VOID *NotifyContext OPTIONAL, OUT VOID **Registration)
EFI_EVENT ProtocolEvent
Protocol notification event.
VOID * Registration
Protocol notification registration.