PlatformHostInterfaceLibNull.c 2.6 KB

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