]>
Commit | Line | Data |
---|---|---|
d2a16030 JY |
1 | /** @file\r |
2 | DXE capsule process.\r | |
3 | Dummy function for runtime module, because CapsuleDxeRuntime\r | |
4 | does not need call ProcessCapsules().\r | |
5 | \r | |
6 | Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r | |
7 | This program and the accompanying materials\r | |
8 | are licensed and made available under the terms and conditions of the BSD License\r | |
9 | which accompanies this distribution. The full text of the license may be found at\r | |
10 | http://opensource.org/licenses/bsd-license.php\r | |
11 | \r | |
12 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
13 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
14 | \r | |
15 | **/\r | |
16 | \r | |
17 | #include <PiDxe.h>\r | |
18 | #include <Library/CapsuleLib.h>\r | |
19 | \r | |
20 | /**\r | |
21 | \r | |
22 | This routine is called to process capsules.\r | |
23 | \r | |
24 | Caution: This function may receive untrusted input.\r | |
25 | \r | |
26 | The capsules reported in EFI_HOB_UEFI_CAPSULE are processed.\r | |
27 | If there is no EFI_HOB_UEFI_CAPSULE, this routine does nothing.\r | |
28 | \r | |
29 | This routine should be called twice in BDS.\r | |
30 | 1) The first call must be before EndOfDxe. The system capsules is processed.\r | |
31 | If device capsule FMP protocols are exposted at this time and device FMP\r | |
32 | capsule has zero EmbeddedDriverCount, the device capsules are processed.\r | |
33 | Each individual capsule result is recorded in capsule record variable.\r | |
34 | System may reset in this function, if reset is required by capsule and\r | |
35 | all capsules are processed.\r | |
36 | If not all capsules are processed, reset will be defered to second call.\r | |
37 | \r | |
38 | 2) The second call must be after EndOfDxe and after ConnectAll, so that all\r | |
39 | device capsule FMP protocols are exposed.\r | |
40 | The system capsules are skipped. If the device capsules are NOT processed\r | |
41 | in first call, they are processed here.\r | |
42 | Each individual capsule result is recorded in capsule record variable.\r | |
43 | System may reset in this function, if reset is required by capsule\r | |
44 | processed in first call and second call.\r | |
45 | \r | |
46 | @retval EFI_SUCCESS There is no error when processing capsules.\r | |
47 | @retval EFI_OUT_OF_RESOURCES No enough resource to process capsules.\r | |
48 | \r | |
49 | **/\r | |
50 | EFI_STATUS\r | |
51 | EFIAPI\r | |
52 | ProcessCapsules (\r | |
53 | VOID\r | |
54 | )\r | |
55 | {\r | |
56 | return EFI_UNSUPPORTED;\r | |
57 | }\r |