]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | This file declares Capsule On Disk PPI. This PPI is used to find and load the\r | |
3 | capsule on files that are relocated into a temp file under rootdir.\r | |
4 | \r | |
5 | Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>\r | |
6 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
7 | \r | |
8 | **/\r | |
9 | \r | |
10 | #ifndef __PEI_CAPSULE_ON_DISK_PPI_H__\r | |
11 | #define __PEI_CAPSULE_ON_DISK_PPI_H__\r | |
12 | \r | |
13 | #define EDKII_PEI_CAPSULE_ON_DISK_PPI_GUID \\r | |
14 | { \\r | |
15 | 0x71a9ea61, 0x5a35, 0x4a5d, {0xac, 0xef, 0x9c, 0xf8, 0x6d, 0x6d, 0x67, 0xe0 } \\r | |
16 | }\r | |
17 | \r | |
18 | typedef struct _EDKII_PEI_CAPSULE_ON_DISK_PPI EDKII_PEI_CAPSULE_ON_DISK_PPI;\r | |
19 | \r | |
20 | /**\r | |
21 | Loads a DXE capsule from some media into memory and updates the HOB table\r | |
22 | with the DXE firmware volume information.\r | |
23 | \r | |
24 | @param PeiServices General-purpose services that are available to every PEIM.\r | |
25 | @param This Indicates the EFI_PEI_RECOVERY_MODULE_PPI instance.\r | |
26 | \r | |
27 | @retval EFI_SUCCESS The capsule was loaded correctly.\r | |
28 | @retval EFI_DEVICE_ERROR A device error occurred.\r | |
29 | @retval EFI_NOT_FOUND A recovery DXE capsule cannot be found.\r | |
30 | \r | |
31 | **/\r | |
32 | typedef\r | |
33 | EFI_STATUS\r | |
34 | (EFIAPI *EDKII_PEI_LOAD_CAPSULE_ON_DISK)(\r | |
35 | IN EFI_PEI_SERVICES **PeiServices,\r | |
36 | IN EDKII_PEI_CAPSULE_ON_DISK_PPI *This\r | |
37 | );\r | |
38 | \r | |
39 | ///\r | |
40 | /// Finds and loads the recovery files.\r | |
41 | ///\r | |
42 | struct _EDKII_PEI_CAPSULE_ON_DISK_PPI {\r | |
43 | EDKII_PEI_LOAD_CAPSULE_ON_DISK LoadCapsuleOnDisk; ///< Loads a DXE binary capsule into memory.\r | |
44 | };\r | |
45 | \r | |
46 | extern EFI_GUID gEdkiiPeiCapsuleOnDiskPpiGuid;\r | |
47 | \r | |
48 | #define EDKII_PEI_BOOT_IN_CAPSULE_ON_DISK_MODE_PPI \\r | |
49 | { \\r | |
50 | 0xb08a11e4, 0xe2b7, 0x4b75, { 0xb5, 0x15, 0xaf, 0x61, 0x6, 0x68, 0xbf, 0xd1 } \\r | |
51 | }\r | |
52 | \r | |
53 | extern EFI_GUID gEdkiiPeiBootInCapsuleOnDiskModePpiGuid;\r | |
54 | \r | |
55 | #endif\r |