]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Ppi/SecPlatformInformation.h
1. Remove unnecessary CONST.
[mirror_edk2.git] / MdePkg / Include / Ppi / SecPlatformInformation.h
index 1e9625923c6e90048bcebf23ec2705feed5a7bff..fc5c366869132002bb0eea2942a8aaf858a43fad 100644 (file)
@@ -1,7 +1,12 @@
 /** @file\r
   This file declares Sec Platform Information PPI.\r
 \r
-  Copyright (c) 2006, Intel Corporation                                                         \r
+  This service is the primary handoff state into the PEI Foundation. \r
+  The Security (SEC) component creates the early, transitory memory \r
+  environment and also encapsulates knowledge of at least the \r
+  location of the Boot Firmware Volume (BFV).\r
+\r
+  Copyright (c) 2006 - 2008, Intel Corporation                                                         \r
   All rights reserved. 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
   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
-  Module Name:  SecPlatformInformation.h\r
-\r
   @par Revision Reference:\r
-  This PPI is defined in PEI CIS.\r
-  Version 0.91.\r
+  This PPI is defined in PI.\r
+  Version 1.00.\r
 \r
 **/\r
 \r
 \r
 typedef struct _EFI_SEC_PLATFORM_INFORMATION_PPI EFI_SEC_PLATFORM_INFORMATION_PPI;\r
 \r
-extern EFI_GUID gEfiSecPlatformInformationPpiGuid;\r
 \r
 ///\r
 /// EFI_HEALTH_FLAGS\r
+/// Contains information generated by microcode, hardware, and/or the Itanium\r
+/// processor PAL code about the state of the processor upon reset.\r
 ///\r
 typedef union {\r
   struct {\r
@@ -43,44 +47,75 @@ typedef union {
     UINT32   FloatingPointUnavailable : 1;\r
     UINT32   MiscFeaturesUnavailable  : 1;\r
     UINT32   Reserved2                :12;\r
-  }                     Bits;\r
-  UINT32                Uint32;\r
+  } Bits;\r
+  UINT32     Uint32;\r
 } EFI_HEALTH_FLAGS;\r
 \r
+#define NORMAL_BOOT_CALL    0x0\r
+#define RECOVERY_CHECK_CALL 0x3\r
+\r
+typedef struct {\r
+  UINT8 BootPhase;\r
+  UINT8 FWStatus;\r
+  UINT16 Reserved1;\r
+  UINT32 Reserved2;\r
+\r
+  UINT16 ProcId;\r
+  UINT16 Reserved3;\r
+  UINT8  IdMask;\r
+  UINT8  EidMask;\r
+  UINT16 Reserved4;\r
+\r
+  UINT64 PalCallAddress;\r
+  UINT64 PalSpecialAddress;\r
+  UINT64 SelfTestStatus;\r
+  UINT64 SelfTestControl;\r
+  UINT64 MemoryBufferRequired;\r
+\r
+} IPF_HANDOFF_STATUS;\r
+\r
+\r
 typedef struct {\r
   EFI_HEALTH_FLAGS HealthFlags;\r
 } EFI_SEC_PLATFORM_INFORMATION_RECORD;\r
 \r
+\r
+\r
 /**\r
   This interface conveys state information out of the Security (SEC) phase into PEI.\r
 \r
-  @param  PeiServices Pointer to the PEI Services Table.\r
-  \r
-  @param  StructureSize Pointer to the variable describing size of the input buffer.\r
-  \r
-  @param  PlatformInformationRecord Pointer to the EFI_SEC_PLATFORM_INFORMATION_RECORD. \r
+  @param  PeiServices               Pointer to the PEI Services Table.\r
+  @param  StructureSize             Pointer to the variable describing size of the input buffer.\r
+  @param  PlatformInformationRecord Pointer to the EFI_SEC_PLATFORM_INFORMATION_RECORD.\r
 \r
-  @retval EFI_SUCCESS The data was successfully returned.\r
-  \r
-  @retval EFI_BUFFER_TOO_SMALL The buffer was too small.\r
+  @retval EFI_SUCCESS           The data was successfully returned.\r
+  @retval EFI_BUFFER_TOO_SMALL  The buffer was too small.\r
 \r
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_SEC_PLATFORM_INFORMATION) (\r
-  IN EFI_PEI_SERVICES                      **PeiServices,\r
-  IN OUT UINT64                            *StructureSize,\r
-  OUT EFI_SEC_PLATFORM_INFORMATION_RECORD  *PlatformInformationRecord\r
-  );\r
+(EFIAPI *EFI_SEC_PLATFORM_INFORMATION)(\r
+  IN CONST  EFI_PEI_SERVICES                    **PeiServices,\r
+  IN OUT    UINT64                              *StructureSize,\r
+  OUT       EFI_SEC_PLATFORM_INFORMATION_RECORD *PlatformInformationRecord\r
+);\r
+\r
 \r
 /**\r
   @par Ppi Description:\r
+  This service abstracts platform-specific information. It is necessary \r
+  to convey this information to the PEI Foundation so that it can \r
+  discover where to begin dispatching PEIMs.\r
 \r
-  @param Name\r
+  @param PlatformInformation \r
+  Conveys state information out of the SEC phase into PEI.\r
 \r
 **/\r
 struct _EFI_SEC_PLATFORM_INFORMATION_PPI {\r
   EFI_SEC_PLATFORM_INFORMATION  PlatformInformation;\r
 };\r
 \r
+\r
+extern EFI_GUID gEfiSecPlatformInformationPpiGuid;\r
+\r
 #endif\r