| 1 | /** @file\r |
| 2 | This file declares Recovery Module PPI. \r |
| 3 | This PPI is used to find and load the recovery files.\r |
| 4 | \r |
| 5 | Copyright (c) 2007 - 2009, Intel Corporation\r |
| 6 | All rights reserved. This program and the accompanying materials\r |
| 7 | are licensed and made available under the terms and conditions of the BSD License\r |
| 8 | which accompanies this distribution. The full text of the license may be found at\r |
| 9 | http://opensource.org/licenses/bsd-license.php\r |
| 10 | \r |
| 11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r |
| 12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r |
| 13 | \r |
| 14 | @par Revision Reference:\r |
| 15 | This PPI is defined in Framework of EFI Recovery Spec.\r |
| 16 | Version 0.9\r |
| 17 | \r |
| 18 | **/\r |
| 19 | \r |
| 20 | #ifndef __PEI_RECOVERY_MODULE_PPI_H__\r |
| 21 | #define __PEI_RECOVERY_MODULE_PPI_H__\r |
| 22 | \r |
| 23 | ///\r |
| 24 | /// Inconsistent with specification here: \r |
| 25 | /// GUID marco name has been changed to the consistent PPI GUID macro name.\r |
| 26 | ///\r |
| 27 | #define EFI_PEI_RECOVERY_MODULE_PPI_GUID \\r |
| 28 | { \\r |
| 29 | 0xFB6D9542, 0x612D, 0x4f45, {0x87, 0x2F, 0x5C, 0xFF, 0x52, 0xE9, 0x3D, 0xCF } \\r |
| 30 | }\r |
| 31 | \r |
| 32 | typedef struct _EFI_PEI_RECOVERY_MODULE_PPI EFI_PEI_RECOVERY_MODULE_PPI;\r |
| 33 | \r |
| 34 | /**\r |
| 35 | Loads a DXE capsule from some media into memory and updates the HOB table\r |
| 36 | with the DXE firmware volume information.\r |
| 37 | \r |
| 38 | @param PeiServices General-purpose services that are available to every PEIM.\r |
| 39 | @param This Indicates the EFI_PEI_RECOVERY_MODULE_PPI instance.\r |
| 40 | \r |
| 41 | @retval EFI_SUCCESS The capsule was loaded correctly.\r |
| 42 | @retval EFI_DEVICE_ERROR A device error occurred.\r |
| 43 | @retval EFI_NOT_FOUND A recovery DXE capsule cannot be found.\r |
| 44 | \r |
| 45 | **/\r |
| 46 | typedef\r |
| 47 | EFI_STATUS\r |
| 48 | (EFIAPI *EFI_PEI_LOAD_RECOVERY_CAPSULE)(\r |
| 49 | IN EFI_PEI_SERVICES **PeiServices,\r |
| 50 | IN EFI_PEI_RECOVERY_MODULE_PPI *This\r |
| 51 | );\r |
| 52 | \r |
| 53 | /**\r |
| 54 | Finds and loads the recovery files.\r |
| 55 | **/\r |
| 56 | struct _EFI_PEI_RECOVERY_MODULE_PPI {\r |
| 57 | EFI_PEI_LOAD_RECOVERY_CAPSULE LoadRecoveryCapsule; ///< Loads a DXE binary capsule into memory.\r |
| 58 | };\r |
| 59 | \r |
| 60 | extern EFI_GUID gEfiPeiRecoveryModulePpiGuid;\r |
| 61 | \r |
| 62 | #endif\r |