RedfishPkg/RedfishHostInterfaceDxe: Add Redfish HI readiness notification
Introduce gEdkIIRedfishHostInterfaceReadyProtocolGuid and produce it when Redfish Host Interface is installed on system. Signed-off-by: Abner Chang <abner.chang@amd.com> Cc: Nickle Wang <nicklew@nvidia.com> Cc: Igor Kulchytskyy <igork@ami.com> Cc: Mike Maslenkin <mike.maslenkin@gmail.com> Reviewed-by: Nickle Wang <nicklew@nvidia.com> Acked-by: Mike Maslenkin <mike.maslenkin@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
a3b56f93e1
commit
843ed20714
@@ -53,7 +53,9 @@ RedfishCreateSmbiosTable42 (
|
||||
SMBIOS_TABLE_TYPE42 *Type42Record;
|
||||
EFI_SMBIOS_PROTOCOL *Smbios;
|
||||
EFI_SMBIOS_HANDLE MemArrayMappedAddrSmbiosHandle;
|
||||
EFI_HANDLE Handle;
|
||||
|
||||
Handle = NULL;
|
||||
//
|
||||
// Get platform Redfish host interface device type descriptor data.
|
||||
//
|
||||
@@ -226,6 +228,22 @@ RedfishCreateSmbiosTable42 (
|
||||
goto ON_EXIT;
|
||||
}
|
||||
|
||||
//
|
||||
// Install Redfish Host Interface ready protocol.
|
||||
//
|
||||
Status = gBS->InstallProtocolInterface (
|
||||
&Handle,
|
||||
&gEdkIIRedfishHostInterfaceReadyProtocolGuid,
|
||||
EFI_NATIVE_INTERFACE,
|
||||
(VOID *)NULL
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((DEBUG_ERROR, "Failed to install gEdkIIRedfishHostInterfaceReadyProtocolGuid.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "PlatformConfigHandler driver may not be triggered to acquire Redfish service.\n"));
|
||||
}
|
||||
|
||||
// Set Status to EFI_SUCCESS that indicates SMBIOS 42 record was installed
|
||||
// on the platform sucessfully.
|
||||
Status = EFI_SUCCESS;
|
||||
|
||||
ON_EXIT:
|
||||
|
@@ -43,7 +43,8 @@
|
||||
UefiLib
|
||||
|
||||
[Protocols]
|
||||
gEfiSmbiosProtocolGuid ## TO_START
|
||||
gEfiSmbiosProtocolGuid ## TO_START
|
||||
gEdkIIRedfishHostInterfaceReadyProtocolGuid ## PRODUCED
|
||||
|
||||
[Depex]
|
||||
gEfiSmbiosProtocolGuid
|
||||
|
Reference in New Issue
Block a user