]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/CpuDxe/CpuMp.h
MdePkg: Add definition for new warning code EFI_WARN_FILE_SYSTEM.
[mirror_edk2.git] / UefiCpuPkg / CpuDxe / CpuMp.h
index a6478c087c607752f4a25e325c3949fe0c020250..503f3ae944fe850e1a2afeeb15aa6604ef2e0242 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   CPU DXE MP support\r
 \r
-  Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\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
 #ifndef _CPU_MP_H_\r
 #define _CPU_MP_H_\r
 \r
+#include <Ppi/SecPlatformInformation.h>\r
+#include <Ppi/SecPlatformInformation2.h>\r
 #include <Protocol/MpService.h>\r
 #include <Library/SynchronizationLib.h>\r
+#include <Library/HobLib.h>\r
+#include <Library/ReportStatusCodeLib.h>\r
 \r
 /**\r
   Initialize Multi-processor support.\r
@@ -80,7 +84,8 @@ typedef enum {
   CpuStateBlocked,\r
   CpuStateReady,\r
   CpuStateBusy,\r
-  CpuStateFinished\r
+  CpuStateFinished,\r
+  CpuStateSleeping\r
 } CPU_STATE;\r
 \r
 /**\r
@@ -93,8 +98,8 @@ typedef struct {
   INTN                           LockSelf;\r
   volatile CPU_STATE             State;\r
 \r
-  EFI_AP_PROCEDURE               Procedure;\r
-  VOID                           *Parameter;\r
+  volatile EFI_AP_PROCEDURE      Procedure;\r
+  volatile VOID*                 Parameter;\r
   BOOLEAN                        *Finished;\r
   INTN                           Timeout;\r
   EFI_EVENT                      WaitEvent;\r
@@ -638,5 +643,18 @@ ResetApStackless (
   IN UINT32 ProcessorId\r
   );\r
 \r
+/**\r
+  A minimal wrapper function that allows MtrrSetAllMtrrs() to be passed to\r
+  EFI_MP_SERVICES_PROTOCOL.StartupAllAPs() as Procedure.\r
+\r
+  @param[in] Buffer  Pointer to an MTRR_SETTINGS object, to be passed to\r
+                     MtrrSetAllMtrrs().\r
+**/\r
+VOID\r
+EFIAPI\r
+SetMtrrsFromBuffer (\r
+  IN VOID *Buffer\r
+  );\r
+\r
 #endif // _CPU_MP_H_\r
 \r