]>
Commit | Line | Data |
---|---|---|
44788bae | 1 | /** @file\r |
2 | *\r | |
3 | * Copyright (c) 2011, ARM Limited. All rights reserved.\r | |
4 | *\r | |
4059386c | 5 | * SPDX-License-Identifier: BSD-2-Clause-Patent\r |
44788bae | 6 | *\r |
7 | **/\r | |
8 | \r | |
cc15a619 PG |
9 | #ifndef ARM_MP_CORE_INFO_PPI_H_\r |
10 | #define ARM_MP_CORE_INFO_PPI_H_\r | |
44788bae | 11 | \r |
12 | #include <Guid/ArmMpCoreInfo.h>\r | |
13 | \r | |
14 | #define ARM_MP_CORE_INFO_PPI_GUID \\r | |
15 | { 0x6847cc74, 0xe9ec, 0x4f8f, {0xa2, 0x9d, 0xab, 0x44, 0xe7, 0x54, 0xa8, 0xfc} }\r | |
16 | \r | |
17 | /**\r | |
18 | This service of the EFI_PEI_TEMPORARY_RAM_SUPPORT_PPI that migrates temporary RAM into\r | |
19 | permanent memory.\r | |
20 | \r | |
21 | @param PeiServices Pointer to the PEI Services Table.\r | |
22 | @param TemporaryMemoryBase Source Address in temporary memory from which the SEC or PEIM will copy the\r | |
23 | Temporary RAM contents.\r | |
24 | @param PermanentMemoryBase Destination Address in permanent memory into which the SEC or PEIM will copy the\r | |
25 | Temporary RAM contents.\r | |
26 | @param CopySize Amount of memory to migrate from temporary to permanent memory.\r | |
27 | \r | |
28 | @retval EFI_SUCCESS The data was successfully returned.\r | |
29 | @retval EFI_INVALID_PARAMETER PermanentMemoryBase + CopySize > TemporaryMemoryBase when\r | |
30 | TemporaryMemoryBase > PermanentMemoryBase.\r | |
31 | \r | |
32 | **/\r | |
33 | typedef\r | |
34 | EFI_STATUS\r | |
429309e0 | 35 | (EFIAPI *ARM_MP_CORE_INFO_GET)(\r |
44788bae | 36 | OUT UINTN *ArmCoreCount,\r |
37 | OUT ARM_CORE_INFO **ArmCoreTable\r | |
429309e0 | 38 | );\r |
44788bae | 39 | \r |
40 | ///\r | |
41 | /// This service abstracts the ability to migrate contents of the platform early memory store.\r | |
42 | /// Note: The name EFI_PEI_TEMPORARY_RAM_SUPPORT_PPI is different from the current PI 1.2 spec.\r | |
43 | /// This PPI was optional.\r | |
44 | ///\r | |
45 | typedef struct {\r | |
429309e0 | 46 | ARM_MP_CORE_INFO_GET GetMpCoreInfo;\r |
44788bae | 47 | } ARM_MP_CORE_INFO_PPI;\r |
48 | \r | |
429309e0 MK |
49 | extern EFI_GUID gArmMpCoreInfoPpiGuid;\r |
50 | extern EFI_GUID gArmMpCoreInfoGuid;\r | |
44788bae | 51 | \r |
cc15a619 | 52 | #endif // ARM_MP_CORE_INFO_PPI_H_\r |