]>
Commit | Line | Data |
---|---|---|
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 - 2018, Intel Corporation. All rights reserved.<BR>\r | |
7 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
8 | \r | |
9 | **/\r | |
10 | \r | |
11 | #include <PiDxe.h>\r | |
12 | #include <Library/CapsuleLib.h>\r | |
13 | \r | |
14 | /**\r | |
15 | Function indicate the current completion progress of the firmware\r | |
16 | update. Platform may override with own specific progress function.\r | |
17 | \r | |
18 | @param[in] Completion A value between 1 and 100 indicating the current\r | |
19 | completion progress of the firmware update\r | |
20 | \r | |
21 | @retval EFI_SUCESS The capsule update progress was updated.\r | |
22 | @retval EFI_INVALID_PARAMETER Completion is greater than 100%.\r | |
23 | **/\r | |
24 | EFI_STATUS\r | |
25 | EFIAPI\r | |
26 | UpdateImageProgress (\r | |
27 | IN UINTN Completion\r | |
28 | )\r | |
29 | {\r | |
30 | return EFI_SUCCESS;\r | |
31 | }\r | |
32 | \r | |
33 | /**\r | |
34 | \r | |
35 | This routine is called to process capsules.\r | |
36 | \r | |
37 | Caution: This function may receive untrusted input.\r | |
38 | \r | |
39 | The capsules reported in EFI_HOB_UEFI_CAPSULE are processed.\r | |
40 | If there is no EFI_HOB_UEFI_CAPSULE, this routine does nothing.\r | |
41 | \r | |
42 | This routine should be called twice in BDS.\r | |
43 | 1) The first call must be before EndOfDxe. The system capsules is processed.\r | |
44 | If device capsule FMP protocols are exposted at this time and device FMP\r | |
45 | capsule has zero EmbeddedDriverCount, the device capsules are processed.\r | |
46 | Each individual capsule result is recorded in capsule record variable.\r | |
47 | System may reset in this function, if reset is required by capsule and\r | |
48 | all capsules are processed.\r | |
49 | If not all capsules are processed, reset will be defered to second call.\r | |
50 | \r | |
51 | 2) The second call must be after EndOfDxe and after ConnectAll, so that all\r | |
52 | device capsule FMP protocols are exposed.\r | |
53 | The system capsules are skipped. If the device capsules are NOT processed\r | |
54 | in first call, they are processed here.\r | |
55 | Each individual capsule result is recorded in capsule record variable.\r | |
56 | System may reset in this function, if reset is required by capsule\r | |
57 | processed in first call and second call.\r | |
58 | \r | |
59 | @retval EFI_SUCCESS There is no error when processing capsules.\r | |
60 | @retval EFI_OUT_OF_RESOURCES No enough resource to process capsules.\r | |
61 | \r | |
62 | **/\r | |
63 | EFI_STATUS\r | |
64 | EFIAPI\r | |
65 | ProcessCapsules (\r | |
66 | VOID\r | |
67 | )\r | |
68 | {\r | |
69 | return EFI_UNSUPPORTED;\r | |
70 | }\r |