AmdMpCoreInfo.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /** @file
  2. Copyright (c) 2016, AMD Inc. All rights reserved.<BR>
  3. This program and the accompanying materials
  4. are licensed and made available under the terms and conditions of the BSD License
  5. which accompanies this distribution. The full text of the license may be found at
  6. http://opensource.org/licenses/bsd-license.php
  7. THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
  8. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
  9. **/
  10. #ifndef _AMD_MP_CORE_INFO_H_
  11. #define _AMD_MP_CORE_INFO_H_
  12. extern EFI_GUID gAmdMpCoreInfoProtocolGuid;
  13. typedef
  14. ARM_CORE_INFO *
  15. (EFIAPI *GET_ARM_CORE_INFO_TABLE) (
  16. OUT UINTN *NumEntries
  17. );
  18. typedef
  19. EFI_STATUS
  20. (EFIAPI *GET_PMU_SPI_FROM_MPID) (
  21. IN UINT32 MpId,
  22. OUT UINT32 *PmuSpi
  23. );
  24. typedef
  25. EFI_PHYSICAL_ADDRESS
  26. (EFIAPI *GET_MP_PARKING_BASE) (
  27. OUT UINTN *MpParkingSize
  28. );
  29. typedef struct _AMD_MP_CORE_INFO_PROTOCOL {
  30. GET_ARM_CORE_INFO_TABLE GetArmCoreInfoTable;
  31. GET_PMU_SPI_FROM_MPID GetPmuSpiFromMpId;
  32. GET_MP_PARKING_BASE GetMpParkingBase;
  33. } AMD_MP_CORE_INFO_PROTOCOL;
  34. #endif // _AMD_MP_CORE_INFO_H_