diff options
-rw-r--r-- | MdePkg/Include/Dxe.h | 8 | ||||
-rw-r--r-- | MdePkg/Include/Dxe/DxeCis.h | 10 | ||||
-rw-r--r-- | MdePkg/Include/Dxe/SmmCis.h | 6 | ||||
-rw-r--r-- | MdePkg/Include/DxeCore.h | 6 | ||||
-rw-r--r-- | MdePkg/Include/Ipf/ProcessorBind.h | 7 | ||||
-rw-r--r-- | MdePkg/Include/Ipf/SalApi.h | 20 | ||||
-rw-r--r-- | MdePkg/Include/PeiCore.h | 4 | ||||
-rw-r--r-- | MdePkg/Include/Peim.h | 4 | ||||
-rw-r--r-- | MdePkg/Include/Ppi/SecPlatformInformation.h | 7 | ||||
-rw-r--r-- | MdePkg/Include/Uefi.h | 4 |
10 files changed, 50 insertions, 26 deletions
diff --git a/MdePkg/Include/Dxe.h b/MdePkg/Include/Dxe.h index 42168297b9..781b8cf5c9 100644 --- a/MdePkg/Include/Dxe.h +++ b/MdePkg/Include/Dxe.h @@ -37,10 +37,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #error EDK_RELEASE_VERSION can not be zero
#endif
-
#include <Common/UefiBaseTypes.h>
#include <Dxe/DxeCis.h>
+
+#if defined(MDE_CPU_IA32) || defined(MDE_CPU_X64)
#include <Dxe/SmmCis.h>
+#endif
+
+#if defined(MDE_CPU_IPF)
+#include <SalApi.h>
+#endif
#include <Common/DataHubRecords.h>
#include <Guid/DataHubRecords.h>
diff --git a/MdePkg/Include/Dxe/DxeCis.h b/MdePkg/Include/Dxe/DxeCis.h index 9b1d5ce966..e1d794fffd 100644 --- a/MdePkg/Include/Dxe/DxeCis.h +++ b/MdePkg/Include/Dxe/DxeCis.h @@ -484,6 +484,16 @@ typedef struct { } EFI_DXE_SERVICES;
+//
+// Function prototype for invoking a function on an Application Processor
+// Used by both the SMM infrastructure and the MP Services Protocol
+//
+typedef
+VOID
+(EFIAPI *EFI_AP_PROCEDURE) (
+ IN VOID *Buffer
+ );
+
#include <Common/BootMode.h>
#include <Common/BootScript.h>
#include <Common/Capsule.h>
diff --git a/MdePkg/Include/Dxe/SmmCis.h b/MdePkg/Include/Dxe/SmmCis.h index d2f2e17de5..aeb8f110fe 100644 --- a/MdePkg/Include/Dxe/SmmCis.h +++ b/MdePkg/Include/Dxe/SmmCis.h @@ -167,12 +167,6 @@ EFI_STATUS );
typedef
-VOID
-(EFIAPI *EFI_AP_PROCEDURE) (
- IN VOID *Buffer
- );
-
-typedef
EFI_STATUS
(EFIAPI *EFI_SMM_STARTUP_THIS_AP) (
IN EFI_AP_PROCEDURE Procedure,
diff --git a/MdePkg/Include/DxeCore.h b/MdePkg/Include/DxeCore.h index f4f57f5d4f..fde6168131 100644 --- a/MdePkg/Include/DxeCore.h +++ b/MdePkg/Include/DxeCore.h @@ -40,9 +40,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #error EDK_RELEASE_VERSION can not be zero
#endif
-
-
#include <Common/UefiBaseTypes.h>
#include <Dxe/DxeCis.h>
+#if defined(MDE_CPU_IPF)
+#include <SalApi.h>
+#endif
+
#endif
diff --git a/MdePkg/Include/Ipf/ProcessorBind.h b/MdePkg/Include/Ipf/ProcessorBind.h index a7fc3a9d8e..119b5913c4 100644 --- a/MdePkg/Include/Ipf/ProcessorBind.h +++ b/MdePkg/Include/Ipf/ProcessorBind.h @@ -215,12 +215,5 @@ typedef struct { UINT64 GP;
} EFI_PLABEL;
-typedef struct {
- UINTN BootPhase; // entry r20 value
- UINTN UniqueId; // PAL arbitration ID
- UINTN HealthStat; // Health Status
- UINTN PALRetAddress; // return address to PAL
-} IPF_HANDOFF_STATUS;
-
#endif
diff --git a/MdePkg/Include/Ipf/SalApi.h b/MdePkg/Include/Ipf/SalApi.h index a9520c1b20..ae3c77bf08 100644 --- a/MdePkg/Include/Ipf/SalApi.h +++ b/MdePkg/Include/Ipf/SalApi.h @@ -32,6 +32,16 @@ typedef UINTN EFI_SAL_STATUS; #define EFI_SAL_NOT_ENOUGH_SCRATCH ((EFI_SAL_STATUS) - 9)
//
+// Return values from SAL
+//
+typedef struct {
+ EFI_SAL_STATUS Status; // register r8
+ UINTN r9;
+ UINTN r10;
+ UINTN r11;
+} SAL_RETURN_REGS;
+
+//
// Delivery Mode of IPF CPU.
//
typedef enum {
@@ -45,16 +55,6 @@ typedef enum { EFI_DELIVERY_MODE_ExtINT
} EFI_DELIVERY_MODE;
-//
-// Return values from SAL
-//
-typedef struct {
- EFI_SAL_STATUS Status; // register r8
- UINTN r9;
- UINTN r10;
- UINTN r11;
-} SAL_RETURN_REGS;
-
typedef SAL_RETURN_REGS (EFIAPI *SAL_PROC)
(
IN UINT64 FunctionId,
diff --git a/MdePkg/Include/PeiCore.h b/MdePkg/Include/PeiCore.h index f0879c7c47..4a22c78a29 100644 --- a/MdePkg/Include/PeiCore.h +++ b/MdePkg/Include/PeiCore.h @@ -36,6 +36,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include <Common/UefiBaseTypes.h>
#include <Peim/PeiCis.h>
+#if defined(MDE_CPU_IPF)
+#include <SalApi.h>
+#endif
+
//
//StatusCodeDataTypeId needs DebugSupport Protocol definition
//
diff --git a/MdePkg/Include/Peim.h b/MdePkg/Include/Peim.h index 97c934b694..f5b263ab98 100644 --- a/MdePkg/Include/Peim.h +++ b/MdePkg/Include/Peim.h @@ -38,6 +38,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include <Common/UefiBaseTypes.h>
#include <Peim/PeiCis.h>
+#if defined(MDE_CPU_IPF)
+#include <SalApi.h>
+#endif
+
#include <Protocol/Decompress.h>
//
diff --git a/MdePkg/Include/Ppi/SecPlatformInformation.h b/MdePkg/Include/Ppi/SecPlatformInformation.h index b7dd03e6ce..bcba5dbf2a 100644 --- a/MdePkg/Include/Ppi/SecPlatformInformation.h +++ b/MdePkg/Include/Ppi/SecPlatformInformation.h @@ -30,6 +30,13 @@ typedef struct _EFI_SEC_PLATFORM_INFORMATION_PPI EFI_SEC_PLATFORM_INFORMATION_PP extern EFI_GUID gEfiSecPlatformInformationPpiGuid;
+typedef struct {
+ UINTN BootPhase; // entry r20 value
+ UINTN UniqueId; // PAL arbitration ID
+ UINTN HealthStat; // Health Status
+ UINTN PALRetAddress; // return address to PAL
+} IPF_HANDOFF_STATUS;
+
///
/// EFI_HEALTH_FLAGS
///
diff --git a/MdePkg/Include/Uefi.h b/MdePkg/Include/Uefi.h index bb2599583f..1912f857d9 100644 --- a/MdePkg/Include/Uefi.h +++ b/MdePkg/Include/Uefi.h @@ -49,4 +49,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include <Common/UefiBaseTypes.h>
#include <Uefi/UefiSpec.h>
+#if defined(MDE_CPU_IPF)
+#include <SalApi.h>
+#endif
+
#endif
|