]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - MdeModulePkg/Universal/Capsule/RuntimeDxe/Capsule.c
Add EBC, FTW, Crc32SectionExtract, NullMemoryTest modules.
[mirror_edk2.git] / MdeModulePkg / Universal / Capsule / RuntimeDxe / Capsule.c
... / ...
CommitLineData
1/*++\r
2\r
3Copyright (c) 2006, Intel Corporation\r
4All rights reserved. This program and the accompanying materials\r
5are licensed and made available under the terms and conditions of the BSD License\r
6which accompanies this distribution. The full text of the license may be found at\r
7http://opensource.org/licenses/bsd-license.php\r
8\r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11\r
12Module Name:\r
13\r
14 Capsule.c\r
15\r
16Abstract:\r
17\r
18 Capsule Runtime Service Initialization\r
19\r
20--*/\r
21\r
22#include "CapsuleService.h"\r
23\r
24\r
25EFI_STATUS\r
26EFIAPI\r
27CapsuleServiceInitialize (\r
28 IN EFI_HANDLE ImageHandle,\r
29 IN EFI_SYSTEM_TABLE *SystemTable\r
30 )\r
31/*++\r
32\r
33Routine Description:\r
34\r
35 This code is capsule runtime service initialization.\r
36\r
37Arguments:\r
38\r
39 ImageHandle The image handle\r
40 SystemTable The system table.\r
41\r
42Returns:\r
43\r
44 EFI STATUS\r
45\r
46--*/\r
47{\r
48 EFI_STATUS Status;\r
49 EFI_HANDLE NewHandle;\r
50\r
51 SystemTable->RuntimeServices->UpdateCapsule = UpdateCapsule;\r
52 SystemTable->RuntimeServices->QueryCapsuleCapabilities = QueryCapsuleCapabilities;\r
53\r
54 //\r
55 // Now install the Capsule Architectural Protocol on a new handle\r
56 //\r
57 NewHandle = NULL;\r
58\r
59 Status = gBS->InstallMultipleProtocolInterfaces (\r
60 &NewHandle,\r
61 &gEfiCapsuleArchProtocolGuid,\r
62 NULL,\r
63 NULL\r
64 );\r
65 ASSERT_EFI_ERROR (Status);\r
66\r
67 return EFI_SUCCESS;\r
68}\r