]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/Include/Library/ArmPlatformLib.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / ArmPlatformPkg / Include / Library / ArmPlatformLib.h
index 77561a3d05b3dcdafd2e8a27b6cdb87ec057afbf..cd87743eba521fd097c04fd0ac49ce1691b9203b 100644 (file)
@@ -1,15 +1,9 @@
 /** @file\r
-*\r
-*  Copyright (c) 2011-2013, ARM Limited. All rights reserved.\r
-*\r
-*  This program and the accompanying materials\r
-*  are licensed and made available under the terms and conditions of the BSD License\r
-*  which accompanies this distribution.  The full text of the license may be found at\r
-*  http://opensource.org/licenses/bsd-license.php\r
-*\r
-*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-*\r
+\r
+  Copyright (c) 2011-2013, ARM Limited. All rights reserved.\r
+\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
+\r
 **/\r
 \r
 #ifndef _ARMPLATFORMLIB_H_\r
 //\r
 #include <PiPei.h>\r
 //\r
-// The protocols, PPI and GUID defintions for this module\r
+// The protocols, PPI and GUID definitions for this module\r
 //\r
 #include <Ppi/MasterBootMode.h>\r
 #include <Ppi/BootInRecoveryMode.h>\r
 \r
 #include <Library/ArmLib.h>\r
 \r
-/**\r
-  This structure is used to describe a region of the EFI memory map\r
-\r
-  Every EFI regions of the system memory described by their physical start address and their size\r
-  can have different attributes. Some regions can be tested and other untested.\r
-\r
-**/\r
-typedef struct {\r
-  EFI_RESOURCE_ATTRIBUTE_TYPE  ResourceAttribute;\r
-  EFI_PHYSICAL_ADDRESS         PhysicalStart;\r
-  UINT64                       NumberOfBytes;\r
-} ARM_SYSTEM_MEMORY_REGION_DESCRIPTOR;\r
-\r
 /**\r
   Return the core position from the value of its MpId register\r
 \r
@@ -51,7 +32,7 @@ typedef struct {
 **/\r
 UINTN\r
 ArmPlatformGetCorePosition (\r
-  IN UINTN MpId\r
+  IN UINTN  MpId\r
   );\r
 \r
 /**\r
@@ -66,7 +47,7 @@ ArmPlatformGetCorePosition (
 **/\r
 UINTN\r
 ArmPlatformIsPrimaryCore (\r
-  IN UINTN MpId\r
+  IN UINTN  MpId\r
   );\r
 \r
 /**\r
@@ -121,18 +102,7 @@ ArmPlatformPeiBootAction (
 **/\r
 RETURN_STATUS\r
 ArmPlatformInitialize (\r
-  IN  UINTN                     MpId\r
-  );\r
-\r
-/**\r
-  Initialize the system (or sometimes called permanent) memory\r
-\r
-  This memory is generally represented by the DRAM.\r
-\r
-**/\r
-VOID\r
-ArmPlatformInitializeSystemMemory (\r
-  VOID\r
+  IN  UINTN  MpId\r
   );\r
 \r
 /**\r
@@ -147,7 +117,7 @@ ArmPlatformInitializeSystemMemory (
 **/\r
 VOID\r
 ArmPlatformGetVirtualMemoryMap (\r
-  OUT ARM_MEMORY_REGION_DESCRIPTOR** VirtualMemoryMap\r
+  OUT ARM_MEMORY_REGION_DESCRIPTOR  **VirtualMemoryMap\r
   );\r
 \r
 /**\r