VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/RedfishPkg/Library/PlatformHostInterfaceLibNull/PlatformHostInterfaceLibNull.c

Last change on this file was 99404, checked in by vboxsync, 2 years ago

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

  • Property svn:eol-style set to native
File size: 2.5 KB
Line 
1/** @file
2 NULL instace of RedfishPlatformHostInterfaceLib
3
4 (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
5 Copyright (C) 2022 Advanced Micro Devices, Inc. All rights reserved.<BR>
6
7 SPDX-License-Identifier: BSD-2-Clause-Patent
8
9**/
10#include <Uefi.h>
11#include <Library/BaseLib.h>
12#include <Library/RedfishHostInterfaceLib.h>
13#include <Library/UefiLib.h>
14
15/**
16 Get platform Redfish host interface device descriptor.
17
18 @param[in] DeviceType Pointer to retrieve device type.
19 @param[out] DeviceDescriptor Pointer to retrieve REDFISH_INTERFACE_DATA, caller has to free
20 this memory using FreePool().
21
22 @retval EFI_NOT_FOUND No Redfish host interface descriptor provided on this platform.
23
24**/
25EFI_STATUS
26RedfishPlatformHostInterfaceDeviceDescriptor (
27 OUT UINT8 *DeviceType,
28 OUT REDFISH_INTERFACE_DATA **DeviceDescriptor
29 )
30{
31 return EFI_NOT_FOUND;
32}
33
34/**
35 Get platform Redfish host interface protocol data.
36 Caller should pass NULL in ProtocolRecord to retrive the first protocol record.
37 Then continuously pass previous ProtocolRecord for retrieving the next ProtocolRecord.
38
39 @param[in, out] ProtocolRecord Pointer to retrieve the first or the next protocol record.
40 caller has to free the new protocol record returned from
41 this function using FreePool().
42 @param[in] IndexOfProtocolData The index of protocol data.
43
44 @retval EFI_NOT_FOUND No more protocol records.
45
46**/
47EFI_STATUS
48RedfishPlatformHostInterfaceProtocolData (
49 IN OUT MC_HOST_INTERFACE_PROTOCOL_RECORD **ProtocolRecord,
50 IN UINT8 IndexOfProtocolData
51 )
52{
53 return EFI_NOT_FOUND;
54}
55
56/**
57 Get the EFI protocol GUID installed by platform library which
58 indicates the necessary information is ready for building
59 SMBIOS 42h record.
60
61 @param[out] InformationReadinessGuid Pointer to retrive the protocol
62 GUID.
63
64 @retval EFI_SUCCESS Notification is required for building up
65 SMBIOS type 42h record.
66 @retval EFI_UNSUPPORTED Notification is not required for building up
67 SMBIOS type 42h record.
68 @retval EFI_ALREADY_STARTED Platform host information is already ready.
69 @retval Others Other errors.
70**/
71EFI_STATUS
72RedfishPlatformHostInterfaceNotification (
73 OUT EFI_GUID **InformationReadinessGuid
74 )
75{
76 return EFI_UNSUPPORTED;
77}
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette