PlatformHostInterfaceLibNull.c 1.7 KB

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