UefiCpuPkg: Add CPU Hot Plug Data include file
authorMichael Kinney <michael.d.kinney@intel.com>
Mon, 19 Oct 2015 19:12:18 +0000 (19:12 +0000)
committermdkinney <mdkinney@Edk2>
Mon, 19 Oct 2015 19:12:18 +0000 (19:12 +0000)
Add CpuHotPlugData.h that defines a data structure that is shared between
modules and is required for to support hot plug CPUs.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18643 6f19259b-4bc3-4df7-8a09-765794883524

UefiCpuPkg/Include/CpuHotPlugData.h [new file with mode: 0644]

diff --git a/UefiCpuPkg/Include/CpuHotPlugData.h b/UefiCpuPkg/Include/CpuHotPlugData.h
new file mode 100644 (file)
index 0000000..2a0d9fa
--- /dev/null
@@ -0,0 +1,33 @@
+/** @file\r
+Definition for a structure sharing information for CPU hot plug.\r
+\r
+Copyright (c) 2013 - 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
+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
+\r
+#ifndef _CPU_HOT_PLUG_DATA_H_\r
+#define _CPU_HOT_PLUG_DATA_H_\r
+\r
+#define  CPU_HOT_PLUG_DATA_REVISION_1      0x00000001\r
+\r
+typedef struct {\r
+  UINT32    Revision;          // Used for version identification for this structure\r
+  UINT32    ArrayLength;       // The entries number of the following ApicId array and SmBase array\r
+  //\r
+  // Data required for SMBASE relocation\r
+  //\r
+  UINT64    *ApicId;           // Pointer to ApicId array\r
+  UINTN     *SmBase;           // Pointer to SmBase array\r
+  UINT32    Reserved;\r
+  UINT32    SmrrBase;\r
+  UINT32    SmrrSize;\r
+} CPU_HOT_PLUG_DATA;\r
+\r
+#endif\r