GenericIpmi.c 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /** @file
  2. Generic IPMI Transport functions..
  3. @copyright
  4. Copyright 1999 - 2021 Intel Corporation. <BR>
  5. SPDX-License-Identifier: BSD-2-Clause-Patent
  6. **/
  7. #include <IndustryStandard/Ipmi.h>
  8. #include <Library/UefiBootServicesTableLib.h>
  9. #include <Library/MemoryAllocationLib.h>
  10. #include <Library/UefiDriverEntryPoint.h>
  11. #include <Library/BaseMemoryLib.h>
  12. #include <Library/DebugLib.h>
  13. #include <Library/PcdLib.h>
  14. #include <Library/UefiLib.h>
  15. #include <Library/BaseLib.h>
  16. #include "IpmiPhysicalLayer.h"
  17. /*****************************************************************************
  18. @brief
  19. This is entry point for IPMI service for BIOS POST.
  20. @param[in] ImageHandle a handle to driver image
  21. @param[in] SystemTable a pointer to system table
  22. @retval EFI_SUCCESS The function completed successfully.
  23. @retval EFI_UNSUPPORTED IPMI is not available.
  24. **/
  25. EFI_STATUS
  26. EFIAPI
  27. LocateIpmiInterface (
  28. IN EFI_HANDLE ImageHandle,
  29. IN EFI_SYSTEM_TABLE *SystemTable
  30. )
  31. {
  32. EFI_STATUS Status;
  33. Status = InitializeIpmiKcsPhysicalLayer (ImageHandle, SystemTable);
  34. //
  35. // keep this interface for other Physical Layer as new interface.
  36. //
  37. return Status;
  38. } // LocateIpmiInterface()