IpmiPlatformHookLib.c 640 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /** @file
  2. IPMI platform hook.
  3. Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #include <Library/IpmiPlatformHookLib.h>
  7. #include <Library/PchCycleDecodingLib.h>
  8. #include <Register/PchRegsLpc.h>
  9. //
  10. // Prototype definitions for IPMI Platform Update Library
  11. //
  12. EFI_STATUS
  13. EFIAPI
  14. PlatformIpmiIoRangeSet(
  15. UINT16 IpmiIoBase
  16. )
  17. /*++
  18. Routine Description:
  19. This function sets IPMI Io range
  20. Arguments:
  21. IpmiIoBase
  22. Returns:
  23. Status
  24. --*/
  25. {
  26. return PchLpcGenIoRangeSet((IpmiIoBase & 0xFF0), 0x10, LPC_ESPI_FIRST_SLAVE);
  27. }