]> git.proxmox.com Git - mirror_edk2.git/blob - RedfishPkg/Library/PlatformHostInterfaceLibNull/PlatformHostInterfaceLibNull.c
RedfishPkg/PlatformHostInterfaceLib: Platform NULL lib
[mirror_edk2.git] / RedfishPkg / Library / PlatformHostInterfaceLibNull / PlatformHostInterfaceLibNull.c
1 /** @file
2 NULL instace of RedfishPlatformHostInterfaceLib
3
4 (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
5
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8 **/
9 #include <Uefi.h>
10 #include <Library/BaseLib.h>
11 #include <Library/RedfishHostInterfaceLib.h>
12 #include <Library/UefiLib.h>
13
14 /**
15 Get platform Redfish host interface device descriptor.
16
17 @param[in] DeviceType Pointer to retrieve device type.
18 @param[out] DeviceDescriptor Pointer to retrieve REDFISH_INTERFACE_DATA, caller has to free
19 this memory using FreePool().
20
21 @retval EFI_NOT_FOUND No Redfish host interface descriptor provided on this platform.
22
23 **/
24 EFI_STATUS
25 RedfishPlatformHostInterfaceDeviceDescriptor (
26 IN UINT8 *DeviceType,
27 OUT REDFISH_INTERFACE_DATA **DeviceDescriptor
28 )
29 {
30 return EFI_NOT_FOUND;
31 }
32 /**
33 Get platform Redfish host interface protocol data.
34 Caller should pass NULL in ProtocolRecord to retrive the first protocol record.
35 Then continuously pass previous ProtocolRecord for retrieving the next ProtocolRecord.
36
37 @param[in, out] ProtocolRecord Pointer to retrieve the first or the next protocol record.
38 caller has to free the new protocol record returned from
39 this function using FreePool().
40 @param[in] IndexOfProtocolData The index of protocol data.
41
42 @retval EFI_NOT_FOUND No more protocol records.
43
44 **/
45 EFI_STATUS
46 RedfishPlatformHostInterfaceProtocolData (
47 IN OUT MC_HOST_INTERFACE_PROTOCOL_RECORD **ProtocolRecord,
48 IN UINT8 IndexOfProtocolData
49 )
50 {
51 return EFI_NOT_FOUND;
52 }