TianoCore EDK2 master
Loading...
Searching...
No Matches
PlatformHostInterfaceLibNull.c File Reference

Go to the source code of this file.

Functions

EFI_STATUS RedfishPlatformHostInterfaceDeviceDescriptor (OUT UINT8 *DeviceType, OUT REDFISH_INTERFACE_DATA **DeviceDescriptor)
 
EFI_STATUS RedfishPlatformHostInterfaceProtocolData (IN OUT MC_HOST_INTERFACE_PROTOCOL_RECORD **ProtocolRecord, IN UINT8 IndexOfProtocolData)
 
EFI_STATUS RedfishPlatformHostInterfaceNotification (OUT EFI_GUID **InformationReadinessGuid)
 

Detailed Description

NULL instace of RedfishPlatformHostInterfaceLib

(C) Copyright 2020 Hewlett Packard Enterprise Development LP
Copyright (C) 2022 Advanced Micro Devices, Inc. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file PlatformHostInterfaceLibNull.c.

Function Documentation

◆ RedfishPlatformHostInterfaceDeviceDescriptor()

EFI_STATUS RedfishPlatformHostInterfaceDeviceDescriptor ( OUT UINT8 *  DeviceType,
OUT REDFISH_INTERFACE_DATA **  DeviceDescriptor 
)

Get platform Redfish host interface device descriptor.

Parameters
[in]DeviceTypePointer to retrieve device type.
[out]DeviceDescriptorPointer to retrieve REDFISH_INTERFACE_DATA, caller has to free this memory using FreePool().
Return values
EFI_NOT_FOUNDNo Redfish host interface descriptor provided on this platform.

Definition at line 26 of file PlatformHostInterfaceLibNull.c.

◆ RedfishPlatformHostInterfaceNotification()

EFI_STATUS RedfishPlatformHostInterfaceNotification ( OUT EFI_GUID **  InformationReadinessGuid)

Get the EFI protocol GUID installed by platform library which indicates the necessary information is ready for building SMBIOS 42h record.

Parameters
[out]InformationReadinessGuidPointer to retrive the protocol GUID.
Return values
EFI_SUCCESSNotification is required for building up SMBIOS type 42h record.
EFI_UNSUPPORTEDNotification is not required for building up SMBIOS type 42h record.
EFI_ALREADY_STARTEDPlatform host information is already ready.
OthersOther errors.

Definition at line 72 of file PlatformHostInterfaceLibNull.c.

◆ RedfishPlatformHostInterfaceProtocolData()

EFI_STATUS RedfishPlatformHostInterfaceProtocolData ( IN OUT MC_HOST_INTERFACE_PROTOCOL_RECORD **  ProtocolRecord,
IN UINT8  IndexOfProtocolData 
)

Get platform Redfish host interface protocol data. Caller should pass NULL in ProtocolRecord to retrive the first protocol record. Then continuously pass previous ProtocolRecord for retrieving the next ProtocolRecord.

Parameters
[in,out]ProtocolRecordPointer to retrieve the first or the next protocol record. caller has to free the new protocol record returned from this function using FreePool().
[in]IndexOfProtocolDataThe index of protocol data.
Return values
EFI_NOT_FOUNDNo more protocol records.

Definition at line 48 of file PlatformHostInterfaceLibNull.c.