]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Pi/PiPeiCis.h
MdePkg: Clean up source files
[mirror_edk2.git] / MdePkg / Include / Pi / PiPeiCis.h
index eace494ecf509bd2e20ea81a56ee095a7db20def..27e0ba348907470f3b583a09a91d158fbab39456 100644 (file)
@@ -1,15 +1,15 @@
 /** @file\r
   PI PEI master include file. This file should match the PI spec.\r
 \r
-Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available under \r
-the terms and conditions of the BSD License that accompanies this distribution.  \r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under\r
+the terms and conditions of the BSD License that accompanies this distribution.\r
 The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php.                                            \r
-                                           \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
+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
   @par Revision Reference:\r
   PI Version 1.6.\r
@@ -24,22 +24,22 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 ///\r
 /// The handles of EFI FV.\r
-/// \r
+///\r
 typedef VOID    *EFI_PEI_FV_HANDLE;\r
 \r
 ///\r
 /// The handles of EFI FFS.\r
-/// \r
+///\r
 typedef VOID    *EFI_PEI_FILE_HANDLE;\r
 \r
 ///\r
 /// Declare the forward reference data structure for EFI_PEI_SERVICE.\r
-/// \r
+///\r
 typedef struct _EFI_PEI_SERVICES          EFI_PEI_SERVICES;\r
 \r
 ///\r
 /// Declare the forward reference data structure for EFI_PEI_NOTIFY_DESCRIPTOR.\r
-/// \r
+///\r
 typedef struct _EFI_PEI_NOTIFY_DESCRIPTOR EFI_PEI_NOTIFY_DESCRIPTOR;\r
 \r
 \r
@@ -48,8 +48,8 @@ typedef struct _EFI_PEI_NOTIFY_DESCRIPTOR EFI_PEI_NOTIFY_DESCRIPTOR;
 \r
 \r
 /**\r
-  The PEI Dispatcher will invoke each PEIM one time.  During this pass, the PEI \r
-  Dispatcher will pass control to the PEIM at the AddressOfEntryPoint in the PE Header. \r
+  The PEI Dispatcher will invoke each PEIM one time.  During this pass, the PEI\r
+  Dispatcher will pass control to the PEIM at the AddressOfEntryPoint in the PE Header.\r
 \r
   @param  FileHandle       Pointer to the FFS file header.\r
   @param  PeiServices      Describes the list of possible PEI Services.\r
@@ -95,7 +95,7 @@ EFI_STATUS
 \r
 ///\r
 /// The data structure through which a PEIM describes available services to the PEI Foundation.\r
-/// \r
+///\r
 typedef struct {\r
   ///\r
   /// This field is a set of flags describing the characteristics of this imported table entry.\r
@@ -112,10 +112,10 @@ typedef struct {
   VOID      *Ppi;\r
 } EFI_PEI_PPI_DESCRIPTOR;\r
 \r
-/// \r
-/// The data structure in a given PEIM that tells the PEI \r
+///\r
+/// The data structure in a given PEIM that tells the PEI\r
 /// Foundation where to invoke the notification service.\r
-/// \r
+///\r
 struct _EFI_PEI_NOTIFY_DESCRIPTOR {\r
   ///\r
   /// Details if the type of notification are callback or dispatch.\r
@@ -147,9 +147,9 @@ typedef union {
 } EFI_PEI_DESCRIPTOR;\r
 \r
 /**\r
-  This service is the first one provided by the PEI Foundation.  This function \r
-  installs an interface in the PEI PPI database by GUID.  The purpose of the \r
-  service is to publish an interface that other parties can use to call \r
+  This service is the first one provided by the PEI Foundation.  This function\r
+  installs an interface in the PEI PPI database by GUID.  The purpose of the\r
+  service is to publish an interface that other parties can use to call\r
   additional PEIMs.\r
 \r
   @param  PeiServices      An indirect pointer to the EFI_PEI_SERVICES table\r
@@ -157,8 +157,8 @@ typedef union {
   @param  PpiList          A pointer to the list of interfaces that the caller shall install.\r
 \r
   @retval EFI_SUCCESS           The interface was successfully installed.\r
-  @retval EFI_INVALID_PARAMETER The PpiList pointer is NULL or Any of the PEI PPI \r
-                                descriptors in the list do not have the \r
+  @retval EFI_INVALID_PARAMETER The PpiList pointer is NULL or Any of the PEI PPI\r
+                                descriptors in the list do not have the\r
                                 EFI_PEI_PPI_DESCRIPTOR_PPI bit set in the Flags field.\r
   @retval EFI_OUT_OF_RESOURCES  There is no additional space in the PPI database.\r
 \r
@@ -171,10 +171,10 @@ EFI_STATUS
   );\r
 \r
 /**\r
-  This function reinstalls an interface in the PEI PPI database by GUID. \r
-  The purpose of the service is to publish an interface that other parties \r
-  can use to replace a same-named interface in the protocol database \r
-  with a different interface. \r
+  This function reinstalls an interface in the PEI PPI database by GUID.\r
+  The purpose of the service is to publish an interface that other parties\r
+  can use to replace a same-named interface in the protocol database\r
+  with a different interface.\r
 \r
   @param  PeiServices      An indirect pointer to the EFI_PEI_SERVICES table\r
                            published by the PEI Foundation.\r
@@ -182,7 +182,7 @@ EFI_STATUS
   @param  NewPpi           A pointer to the new interfaces that the caller shall install.\r
 \r
   @retval EFI_SUCCESS           The interface was successfully installed.\r
-  @retval EFI_INVALID_PARAMETER The PpiList pointer is NULL or Any of the PEI PPI descriptors in the \r
+  @retval EFI_INVALID_PARAMETER The PpiList pointer is NULL or Any of the PEI PPI descriptors in the\r
                                 list do not have the EFI_PEI_PPI_DESCRIPTOR_PPI bit set in the Flags field.\r
   @retval EFI_OUT_OF_RESOURCES  There is no additional space in the PPI database.\r
   @retval EFI_NOT_FOUND         The PPI for which the reinstallation was requested has not been installed.\r
@@ -197,7 +197,7 @@ EFI_STATUS
   );\r
 \r
 /**\r
-  This function locates an interface in the PEI PPI database by GUID. \r
+  This function locates an interface in the PEI PPI database by GUID.\r
 \r
   @param  PeiServices      An indirect pointer to the EFI_PEI_SERVICES published by the PEI Foundation.\r
   @param  Guid             A pointer to the GUID whose corresponding interface needs to be found.\r
@@ -220,16 +220,16 @@ EFI_STATUS
   );\r
 \r
 /**\r
-  This function installs a notification service to be called back when a \r
-  given interface is installed or reinstalled.  The purpose of the service \r
-  is to publish an interface that other parties can use to call additional PPIs \r
+  This function installs a notification service to be called back when a\r
+  given interface is installed or reinstalled.  The purpose of the service\r
+  is to publish an interface that other parties can use to call additional PPIs\r
   that may materialize later.\r
 \r
   @param  PeiServices      An indirect pointer to the EFI_PEI_SERVICES table published by the PEI Foundation\r
   @param  NotifyList       A pointer to the list of notification interfaces that the caller shall install.\r
 \r
   @retval EFI_SUCCESS           The interface was successfully installed.\r
-  @retval EFI_INVALID_PARAMETER The PpiList pointer is NULL, or any of the PEI PPI descriptors in the \r
+  @retval EFI_INVALID_PARAMETER The PpiList pointer is NULL, or any of the PEI PPI descriptors in the\r
                                 list do not have the EFI_PEI_PPI_DESCRIPTOR_NOTIFY_TYPES bit set in the Flags field.\r
   @retval EFI_OUT_OF_RESOURCES  There is no additional space in the PPI database.\r
 \r
@@ -274,7 +274,7 @@ EFI_STATUS
   );\r
 \r
 /**\r
-  This function returns the pointer to the list of Hand-Off Blocks (HOBs) in memory. \r
+  This function returns the pointer to the list of Hand-Off Blocks (HOBs) in memory.\r
 \r
   @param  PeiServices      An indirect pointer to the EFI_PEI_SERVICES table published by the PEI Foundation\r
   @param  HobList          A pointer to the list of HOBs that the PEI Foundation will initialize\r
@@ -312,8 +312,8 @@ EFI_STATUS
   );\r
 \r
 /**\r
-  The purpose of the service is to abstract the capability of the PEI \r
-  Foundation to discover instances of firmware volumes in the system. \r
+  The purpose of the service is to abstract the capability of the PEI\r
+  Foundation to discover instances of firmware volumes in the system.\r
 \r
   This service enables PEIMs to discover additional firmware volumes. The PEI Foundation uses this\r
   service to abstract the locations and formats of various firmware volumes. These volumes include\r
@@ -449,7 +449,7 @@ EFI_STATUS
   );\r
 \r
 /**\r
-  The purpose of the service is to publish an interface that allows \r
+  The purpose of the service is to publish an interface that allows\r
   PEIMs to allocate memory ranges that are managed by the PEI Foundation.\r
 \r
   Prior to InstallPeiMemory() being called, PEI will allocate pages from the heap.\r
@@ -460,12 +460,12 @@ EFI_STATUS
   @param  PeiServices      An indirect pointer to the EFI_PEI_SERVICES table published by the PEI Foundation.\r
   @param  MemoryType       The type of memory to allocate.\r
   @param  Pages            The number of contiguous 4 KB pages to allocate.\r
-  @param  Memory           A pointer to a physical address. On output, the address is set to the base \r
+  @param  Memory           A pointer to a physical address. On output, the address is set to the base\r
                            of the page range that was allocated.\r
 \r
   @retval EFI_SUCCESS           The memory range was successfully allocated.\r
   @retval EFI_OUT_OF_RESOURCES  The pages could not be allocated.\r
-  @retval EFI_INVALID_PARAMETER The type is not equal to EfiLoaderCode, EfiLoaderData, EfiRuntimeServicesCode, \r
+  @retval EFI_INVALID_PARAMETER The type is not equal to EfiLoaderCode, EfiLoaderData, EfiRuntimeServicesCode,\r
                                 EfiRuntimeServicesData, EfiBootServicesCode, EfiBootServicesData,\r
                                 EfiACPIReclaimMemory, EfiReservedMemoryType, or EfiACPIMemoryNVS.\r
 \r
@@ -501,7 +501,7 @@ EFI_STATUS
   );\r
 \r
 /**\r
-  The purpose of this service is to publish an interface that \r
+  The purpose of this service is to publish an interface that\r
   allows PEIMs to allocate memory ranges that are managed by the PEI Foundation.\r
 \r
   @param  PeiServices      An indirect pointer to the EFI_PEI_SERVICES table published by the PEI Foundation.\r
@@ -597,7 +597,7 @@ EFI_STATUS
 \r
   This service resets the entire platform, including all processors\r
   and devices, and reboots the system.\r
-  This service will never return EFI_SUCCESS.  \r
+  This service will never return EFI_SUCCESS.\r
 \r
   @param  PeiServices      An indirect pointer to the EFI_PEI_SERVICES\r
                            table published by the PEI Foundation.\r
@@ -739,7 +739,7 @@ typedef struct {
   @retval EFI_INVALID_PARAMETER   FileHandle does not\r
                                   represent a valid file.\r
   @retval EFI_INVALID_PARAMETER   FileInfo is NULL.\r
-  \r
+\r
 **/\r
 typedef\r
 EFI_STATUS\r
@@ -839,7 +839,7 @@ EFI_STATUS
 \r
   @param  FileHandle            PEIM's file handle. Must be the currently\r
                                 executing PEIM.\r
-  \r
+\r
   @retval EFI_SUCCESS           The PEIM was successfully registered for\r
                                 shadowing.\r
   @retval EFI_ALREADY_STARTED   The PEIM was previously\r
@@ -861,8 +861,8 @@ EFI_STATUS
 #define PEI_SPECIFICATION_MAJOR_REVISION  1\r
 #define PEI_SPECIFICATION_MINOR_REVISION  60\r
 ///\r
-/// Specification inconsistency here: \r
-/// In the PI1.0 spec, PEI_SERVICES_SIGNATURE is defined as 0x5652455320494550. But \r
+/// Specification inconsistency here:\r
+/// In the PI1.0 spec, PEI_SERVICES_SIGNATURE is defined as 0x5652455320494550. But\r
 /// to pass a multiple tool chain, it appends an ULL.\r
 ///\r
 //\r
@@ -870,14 +870,14 @@ EFI_STATUS
 //\r
 #define PEI_SERVICES_SIGNATURE  0x5652455320494550ULL\r
 ///\r
-/// Specification inconsistency here: \r
-/// In the PI1.0 specification, there is a typo error in PEI_SERVICES_REVISION. In the specification the defintion is \r
+/// Specification inconsistency here:\r
+/// In the PI1.0 specification, there is a typo error in PEI_SERVICES_REVISION. In the specification the defintion is\r
 /// #define ((PEI_SPECIFICATION_MAJOR_REVISION<<16) |(PEI_SPECIFICATION_MINOR_REVISION))\r
 /// and it should be as follows:\r
 ///\r
 #define PEI_SERVICES_REVISION   ((PEI_SPECIFICATION_MAJOR_REVISION<<16) | (PEI_SPECIFICATION_MINOR_REVISION))\r
 \r
-/// \r
+///\r
 /// EFI_PEI_SERVICES is a collection of functions whose implementation is provided by the PEI\r
 /// Foundation. These services fall into various classes, including the following:\r
 /// - Managing the boot mode\r
@@ -963,63 +963,63 @@ struct _EFI_PEI_SERVICES {
 /// EFI_SEC_PEI_HAND_OFF structure holds information about\r
 /// PEI core's operating environment, such as the size of location of\r
 /// temporary RAM, the stack location and BFV location.\r
-/// \r
+///\r
 typedef struct _EFI_SEC_PEI_HAND_OFF {\r
   ///\r
   /// Size of the data structure.\r
-  /// \r
+  ///\r
   UINT16  DataSize;\r
 \r
   ///\r
-  /// Points to the first byte of the boot firmware volume, \r
-  /// which the PEI Dispatcher should search for \r
+  /// Points to the first byte of the boot firmware volume,\r
+  /// which the PEI Dispatcher should search for\r
   /// PEI modules.\r
-  /// \r
+  ///\r
   VOID    *BootFirmwareVolumeBase;\r
 \r
   ///\r
   /// Size of the boot firmware volume, in bytes.\r
-  /// \r
+  ///\r
   UINTN   BootFirmwareVolumeSize;\r
 \r
   ///\r
   /// Points to the first byte of the temporary RAM.\r
-  /// \r
+  ///\r
   VOID    *TemporaryRamBase;\r
 \r
   ///\r
   /// Size of the temporary RAM, in bytes.\r
-  /// \r
+  ///\r
   UINTN   TemporaryRamSize;\r
 \r
   ///\r
-  /// Points to the first byte of the temporary RAM \r
-  /// available for use by the PEI Foundation. The area \r
-  /// described by PeiTemporaryRamBase and PeiTemporaryRamSize \r
+  /// Points to the first byte of the temporary RAM\r
+  /// available for use by the PEI Foundation. The area\r
+  /// described by PeiTemporaryRamBase and PeiTemporaryRamSize\r
   /// must not extend outside beyond the area described by\r
   /// TemporaryRamBase & TemporaryRamSize. This area should not\r
-  /// overlap with the area reported by StackBase and \r
+  /// overlap with the area reported by StackBase and\r
   /// StackSize.\r
   ///\r
   VOID    *PeiTemporaryRamBase;\r
 \r
   ///\r
-  /// The size of the available temporary RAM available for \r
+  /// The size of the available temporary RAM available for\r
   /// use by the PEI Foundation, in bytes.\r
-  /// \r
+  ///\r
   UINTN   PeiTemporaryRamSize;\r
 \r
   ///\r
-  /// Points to the first byte of the stack. \r
-  /// This are may be part of the memory described by \r
-  /// TemporaryRamBase and TemporaryRamSize \r
+  /// Points to the first byte of the stack.\r
+  /// This are may be part of the memory described by\r
+  /// TemporaryRamBase and TemporaryRamSize\r
   /// or may be an entirely separate area.\r
-  /// \r
+  ///\r
   VOID    *StackBase;\r
 \r
   ///\r
   /// Size of the stack, in bytes.\r
-  /// \r
+  ///\r
   UINTN   StackSize;\r
 } EFI_SEC_PEI_HAND_OFF;\r
 \r