diff options
author | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-12-18 20:02:05 +0000 |
---|---|---|
committer | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-12-18 20:02:05 +0000 |
commit | 9c89ec98193e24eb9849a66c83f6a80b64a51c4c (patch) | |
tree | 8b83c17843b0bc0d5c640725fa6d2f674ed2bb6e /MdePkg/Include | |
parent | 3ff56e5e44cae2a05813df4819aee0f125a563f6 (diff) | |
download | edk2-9c89ec98193e24eb9849a66c83f6a80b64a51c4c.zip edk2-9c89ec98193e24eb9849a66c83f6a80b64a51c4c.tar.gz edk2-9c89ec98193e24eb9849a66c83f6a80b64a51c4c.tar.bz2 |
Only include SmmCis.h if the CPU Arch is IA32 or X64
Only include SalApi.h if the CPU Arch is IPF
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2108 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Include')
-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 4216829..781b8cf 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 9b1d5ce..e1d794f 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 d2f2e17..aeb8f11 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 f4f57f5..fde6168 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 a7fc3a9..119b591 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 a9520c1..ae3c77b 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 f0879c7..4a22c78 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 97c934b..f5b263a 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 b7dd03e..bcba5db 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 bb25995..1912f85 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
|