]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/Library/CapsuleLib.h
Add Capsule library
[mirror_edk2.git] / MdeModulePkg / Include / Library / CapsuleLib.h
CommitLineData
0537d50f
LG
1/** @file\r
2 Capsule Library. This library class defines a set of interfaces on \r
3 how to process capusle image update.\r
4\r
5 Copyright (c) 2007, 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**/\r
15\r
16#ifndef __CAPSULE_LIB_H__\r
17#define __CAPSULE_LIB_H__\r
18\r
19/**\r
20 Those capsules supported by the firmwares.\r
21 \r
22 @retval EFI_SUCESS Input capsule is supported by firmware.\r
23 @retval EFI_UNSUPPORTED Input capsule is not supported by the firmware.\r
24**/\r
25EFI_STATUS\r
26EFIAPI\r
27SupportCapsuleImage (\r
28 IN EFI_CAPSULE_HEADER *CapsuleHeader\r
29 )\r
30;\r
31\r
32/**\r
33 The firmware implements to process the capsule image.\r
34 \r
35 @retval EFI_SUCESS Process Capsule Image successfully. \r
36 @retval EFI_UNSUPPORTED Capsule image is not supported by the firmware.\r
37**/\r
38EFI_STATUS\r
39EFIAPI\r
40ProcessCapsuleImage (\r
41 IN EFI_CAPSULE_HEADER *CapsuleHeader\r
42 )\r
43;\r
44\r
45#endif\r
46\r
47\r