]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add Capsule library
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 5 Dec 2007 07:07:13 +0000 (07:07 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 5 Dec 2007 07:07:13 +0000 (07:07 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4360 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Include/Guid/CapsuleVendor.h
MdeModulePkg/Include/Library/CapsuleLib.h [new file with mode: 0644]

index a97a9b546cb61b7c6b833b466ebcdffe66f5e3a5..8ac5d0cf46558d609187d91e66142c557d0035f1 100644 (file)
@@ -37,4 +37,12 @@ Abstract:
 \r
 extern EFI_GUID gEfiCapsuleVendorGuid;\r
 \r
+//\r
+// Data structure of capsule guid hob \r
+//\r
+typedef struct {\r
+  EFI_PHYSICAL_ADDRESS BaseAddress;\r
+  UINT32 Length;\r
+} CAPSULE_HOB_INFO;\r
+\r
 #endif // #ifndef _EFI_CAPSULE_VENDOR_GUID_H_\r
diff --git a/MdeModulePkg/Include/Library/CapsuleLib.h b/MdeModulePkg/Include/Library/CapsuleLib.h
new file mode 100644 (file)
index 0000000..b8691bc
--- /dev/null
@@ -0,0 +1,47 @@
+/** @file\r
+  Capsule Library. This library class defines a set of interfaces on \r
+  how to process capusle image update.\r
+\r
+  Copyright (c) 2007, Intel Corporation\r
+  All rights reserved. This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php\r
+  \r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#ifndef __CAPSULE_LIB_H__\r
+#define __CAPSULE_LIB_H__\r
+\r
+/**\r
+  Those capsules supported by the firmwares.\r
+  \r
+  @retval EFI_SUCESS       Input capsule is supported by firmware.\r
+  @retval EFI_UNSUPPORTED  Input capsule is not supported by the firmware.\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+SupportCapsuleImage (\r
+  IN EFI_CAPSULE_HEADER *CapsuleHeader\r
+  )\r
+;\r
+\r
+/**\r
+  The firmware implements to process the capsule image.\r
+  \r
+  @retval EFI_SUCESS       Process Capsule Image successfully. \r
+  @retval EFI_UNSUPPORTED  Capsule image is not supported by the firmware.\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+ProcessCapsuleImage (\r
+  IN EFI_CAPSULE_HEADER *CapsuleHeader\r
+  )\r
+;\r
+\r
+#endif\r
+\r
+\r