]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkPkg/Include/Ppi/DeviceRecoveryModule.h
Add the following PI 1.2 PPIs to the MdePkg
[mirror_edk2.git] / IntelFrameworkPkg / Include / Ppi / DeviceRecoveryModule.h
index 2139d158bf1847c5189cf0092cf3e7ad2b068056..b59726f19ea80944554dd8b40e00687339cbf293 100644 (file)
@@ -1,14 +1,16 @@
 /** @file\r
-  This file declares Device Recovery Module PPI.\r
+  This file declares the Device Recovery Module PPI.\r
+\r
   The interface of this PPI does the following:\r
     - Reports the number of recovery DXE capsules that exist on the associated device(s)\r
     - Finds the requested firmware binary capsule\r
     - Loads that capsule into memory\r
-  A device can be either a group of devices, such as a block device, or an individual device.T he\r
-  module determines the internal search order, with capsule number 1 as the highest load priority and\r
-  number N as the lowest priority.\r
 \r
-  Copyright (c) 2007, Intel Corporation\r
+  A device can be either a group of devices, such as a block device, or an individual device.\r
+  The module determines the internal search order, with capsule number 1 as the highest load\r
+  priority and number N as the lowest priority.\r
+\r
+  Copyright (c) 2007 - 2009, 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:  DeviceRecoveryModule.h\r
-\r
   @par Revision Reference:\r
-  This PPI is defined in Framework of EFI Recovery spec.\r
+  This PPI is defined in the "EFI Recovery" Framework spec.\r
   Version 0.9\r
 \r
 **/\r
@@ -28,8 +28,6 @@
 #ifndef _PEI_DEVICE_RECOVERY_MODULE_PPI_H_\r
 #define _PEI_DEVICE_RECOVERY_MODULE_PPI_H_\r
 \r
-#include <PiPei.h>\r
-\r
 #define EFI_PEI_DEVICE_RECOVERY_MODULE_PPI_GUID \\r
   { \\r
     0x0DE2CE25, 0x446A, 0x45a7, {0xBF, 0xC9, 0x37, 0xDA, 0x26, 0x34, 0x4B, 0x37 } \\r
 typedef struct _EFI_PEI_DEVICE_RECOVERY_MODULE_PPI EFI_PEI_DEVICE_RECOVERY_MODULE_PPI;\r
 \r
 /**\r
-  This function, by whatever mechanism, searches for DXE capsules from the\r
-  associated device and returns the number and maximum size in bytes of\r
-  the capsules discovered. Entry 1 is assumed to be the highest load priority\r
-  and entry N is assumed to be the lowest priority.\r
+  Returns the number of DXE capsules residing on the device.\r
 \r
-  @param  PeiServices            General-purpose services that are available to every PEIM\r
-  @param  This                   Indicates the EFI_PEI_DEVICE_RECOVERY_MODULE_PPI instance.\r
-  @param  NumberRecoveryCapsules Pointer to a caller-allocated UINTN. On output,\r
-                                 *NumberRecoveryCapsules contains the number of recovery capsule\r
-                                 images available for retrieval from this PEIM instance.\r
+  This function searches for DXE capsules from the associated device and returns the number\r
+  and maximum size in bytes of the capsules discovered. Entry 1 is assumed to be the\r
+  highest load priority and entry N is assumed to be the lowest priority.\r
+\r
+  @param[in]  PeiServices            General-purpose services that are available to every PEIM\r
+  @param[in]  This                   Indicates the EFI_PEI_DEVICE_RECOVERY_MODULE_PPI instance.\r
+  @param[out] NumberRecoveryCapsules Pointer to a caller-allocated UINTN. On output,\r
+                                     *NumberRecoveryCapsules contains the number of recovery capsule\r
+                                     images available for retrieval from this PEIM instance.\r
 \r
   @retval EFI_SUCCESS           One or more capsules were discovered.\r
   @retval EFI_DEVICE_ERROR      A device error occurred.\r
@@ -56,22 +55,26 @@ typedef struct _EFI_PEI_DEVICE_RECOVERY_MODULE_PPI EFI_PEI_DEVICE_RECOVERY_MODUL
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_PEI_DEVICE_GET_NUMBER_RECOVERY_CAPSULE) (\r
-  IN EFI_PEI_SERVICES                               **PeiServices,\r
-  IN EFI_PEI_DEVICE_RECOVERY_MODULE_PPI             *This,\r
-  OUT UINTN                                         *NumberRecoveryCapsules\r
+(EFIAPI *EFI_PEI_DEVICE_GET_NUMBER_RECOVERY_CAPSULE)(\r
+  IN     EFI_PEI_SERVICES                               **PeiServices,\r
+  IN     EFI_PEI_DEVICE_RECOVERY_MODULE_PPI             *This,\r
+     OUT UINTN                                          *NumberRecoveryCapsules\r
   );\r
 \r
 /**\r
+  Returns the size and type of the requested recovery capsule.\r
+\r
   This function gets the size and type of the requested recovery capsule.\r
 \r
-  @param  PeiServices     General-purpose services that are available to every PEIM\r
-  @param  This            Indicates the EFI_PEI_DEVICE_RECOVERY_MODULE_PPI instance.\r
-  @param  CapsuleInstance Specifies for which capsule instance to retrieve the information.\r
-  @param  Size            A pointer to a caller-allocated UINTN in which the size of\r
-                          the requested recovery module is returned.\r
-  @param  CapsuleType     A pointer to a caller-allocated EFI_GUID in\r
-                          which the type of the requested recovery capsule is returned.\r
+  @param[in]  PeiServices     General-purpose services that are available to every PEIM\r
+  @param[in]  This            Indicates the EFI_PEI_DEVICE_RECOVERY_MODULE_PPI instance.\r
+  @param[in]  CapsuleInstance Specifies for which capsule instance to retrieve the information.\r
+                              This parameter must be between one and the value returned by\r
+                              GetNumberRecoveryCapsules() in NumberRecoveryCapsules.\r
+  @param[out] Size            A pointer to a caller-allocated UINTN in which the size of\r
+                              the requested recovery module is returned.\r
+  @param[out] CapsuleType     A pointer to a caller-allocated EFI_GUID in\r
+                              which the type of the requested recovery capsule is returned.\r
 \r
   @retval EFI_SUCCESS           One or more capsules were discovered.\r
   @retval EFI_DEVICE_ERROR      A device error occurred.\r
@@ -80,23 +83,27 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_PEI_DEVICE_GET_RECOVERY_CAPSULE_INFO) (\r
-  IN  EFI_PEI_SERVICES                              **PeiServices,\r
-  IN  EFI_PEI_DEVICE_RECOVERY_MODULE_PPI            *This,\r
-  IN  UINTN                                         CapsuleInstance,\r
-  OUT UINTN                                         *Size,\r
-  OUT EFI_GUID                                      *CapsuleType\r
+(EFIAPI *EFI_PEI_DEVICE_GET_RECOVERY_CAPSULE_INFO)(\r
+  IN     EFI_PEI_SERVICES                              **PeiServices,\r
+  IN     EFI_PEI_DEVICE_RECOVERY_MODULE_PPI            *This,\r
+  IN     UINTN                                         CapsuleInstance,\r
+     OUT UINTN                                         *Size,\r
+     OUT EFI_GUID                                      *CapsuleType\r
   );\r
 \r
 /**\r
-  This function, by whatever mechanism, retrieves a DXE capsule from some device\r
-  and loads it into memory. Note that the published interface is device neutral.\r
+  Loads a DXE capsule from some media into memory.\r
+\r
+  This function retrieves a DXE capsule from some device and loads it into memory.\r
+  Note that the published interface is device neutral.\r
 \r
-  @param  PeiServices     General-purpose services that are available to every PEIM\r
-  @param  This            Indicates the EFI_PEI_DEVICE_RECOVERY_MODULE_PPI instance.\r
-  @param  CapsuleInstance Specifies which capsule instance to retrieve.\r
-  @param  Buffer          Specifies a caller-allocated buffer in which the requested\r
-                          recovery capsule will be returned.\r
+  @param[in, out] PeiServices     General-purpose services that are available to every PEIM\r
+  @param[in]      This            Indicates the EFI_PEI_DEVICE_RECOVERY_MODULE_PPI instance.\r
+  @param[in]      CapsuleInstance Specifies which capsule instance to retrieve.\r
+                                  This parameter must be between one and the value returned by\r
+                                  GetNumberRecoveryCapsules() in NumberRecoveryCapsules.\r
+  @param[out]     Buffer          Specifies a caller-allocated buffer in which the requested\r
+                                  recovery capsule will be returned.\r
 \r
   @retval EFI_SUCCESS           One or more capsules were discovered.\r
   @retval EFI_DEVICE_ERROR      A device error occurred.\r
@@ -105,34 +112,23 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_PEI_DEVICE_LOAD_RECOVERY_CAPSULE) (\r
+(EFIAPI *EFI_PEI_DEVICE_LOAD_RECOVERY_CAPSULE)(\r
   IN OUT EFI_PEI_SERVICES                         **PeiServices,\r
-  IN EFI_PEI_DEVICE_RECOVERY_MODULE_PPI           *This,\r
-  IN UINTN                                        CapsuleInstance,\r
-  OUT VOID                                        *Buffer\r
+  IN     EFI_PEI_DEVICE_RECOVERY_MODULE_PPI       *This,\r
+  IN     UINTN                                    CapsuleInstance,\r
+     OUT VOID                                     *Buffer\r
   );\r
 \r
-/**\r
-  @par Ppi Description:\r
-  Presents a standard interface to EFI_PEI_DEVICE_RECOVERY_MODULE_PPI,\r
-  regardless of the underlying device(s).\r
-\r
-  @param GetNumberRecoveryCapsules\r
-  Returns the number of DXE capsules that were found.\r
-\r
-  @param GetRecoveryCapsuleInfo\r
-  Returns the capsule image type and the size of a given image.\r
-\r
-  @param LoadRecoveryCapsule\r
-  Loads a DXE capsule into memory\r
-\r
-**/\r
+///\r
+/// Presents a standard interface to EFI_PEI_DEVICE_RECOVERY_MODULE_PPI,\r
+/// regardless of the underlying device(s).\r
+///\r
 struct _EFI_PEI_DEVICE_RECOVERY_MODULE_PPI {\r
-  EFI_PEI_DEVICE_GET_NUMBER_RECOVERY_CAPSULE  GetNumberRecoveryCapsules;\r
-  EFI_PEI_DEVICE_GET_RECOVERY_CAPSULE_INFO    GetRecoveryCapsuleInfo;\r
-  EFI_PEI_DEVICE_LOAD_RECOVERY_CAPSULE        LoadRecoveryCapsule;\r
+  EFI_PEI_DEVICE_GET_NUMBER_RECOVERY_CAPSULE  GetNumberRecoveryCapsules;    ///< Returns the number of DXE capsules residing on the device.\r
+  EFI_PEI_DEVICE_GET_RECOVERY_CAPSULE_INFO    GetRecoveryCapsuleInfo;       ///< Returns the size and type of the requested recovery capsule.\r
+  EFI_PEI_DEVICE_LOAD_RECOVERY_CAPSULE        LoadRecoveryCapsule;          ///< Loads a DXE capsule from some media into memory.\r
 };\r
 \r
 extern EFI_GUID gEfiPeiDeviceRecoveryModulePpiGuid;\r
 \r
-#endif\r
+#endif  /* _PEI_DEVICE_RECOVERY_MODULE_PPI_H_ */\r