From eaa8a2348676f92f766778ea11e293412923f24e Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Thu, 10 Sep 2009 07:19:44 +0000 Subject: [PATCH] 1. Add a new Capsule initiate reset flag 2. Clarify return value for UEFI runtime service UpdateCapsule git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9253 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Include/Library/UefiRuntimeLib.h | 5 +++-- MdePkg/Include/Uefi/UefiSpec.h | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/MdePkg/Include/Library/UefiRuntimeLib.h b/MdePkg/Include/Library/UefiRuntimeLib.h index 02be8ea5e4..c0720a3764 100644 --- a/MdePkg/Include/Library/UefiRuntimeLib.h +++ b/MdePkg/Include/Library/UefiRuntimeLib.h @@ -2,7 +2,7 @@ Provides library functions for each of the UEFI Runtime Services. Only available to DXE and UEFI module types. -Copyright (c) 2006 - 2008, Intel Corporation
+Copyright (c) 2006 - 2009, Intel Corporation
All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -480,7 +480,8 @@ EfiConvertList ( @retval EFI_SUCCESS Valid capsule was passed. If CAPSULE_FLAGS_PERSIT_ACROSS_RESET is not set, the capsule has been successfully processed by the firmware. - @retval EFI_INVALID_PARAMETER CapsuleSize or HeaderSize is NULL. + @retval EFI_INVALID_PARAMETER CapsuleSize is NULL, or an incompatible set of flags were + set in the capsule header. @retval EFI_INVALID_PARAMETER CapsuleCount is 0 @retval EFI_DEVICE_ERROR The capsule update was started, but failed due to a device error. @retval EFI_UNSUPPORTED The capsule type is not supported on this platform. diff --git a/MdePkg/Include/Uefi/UefiSpec.h b/MdePkg/Include/Uefi/UefiSpec.h index bc5f5c2a8d..da3d2fb264 100644 --- a/MdePkg/Include/Uefi/UefiSpec.h +++ b/MdePkg/Include/Uefi/UefiSpec.h @@ -5,7 +5,7 @@ If a code construct is defined in the UEFI 2.1 specification it must be included by this include file. - Copyright (c) 2006 - 2008, Intel Corporation
+ Copyright (c) 2006 - 2009, Intel Corporation
Portions copyright (c) 2008-2009 Apple Inc. All rights reserved.
All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -1615,6 +1615,7 @@ typedef struct { #define CAPSULE_FLAGS_PERSIST_ACROSS_RESET 0x00010000 #define CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE 0x00020000 +#define CAPSULE_FLAGS_INITIATE_RESET 0x00040000 /** Passes capsules to the firmware with both virtual and physical mapping. Depending on the intended @@ -1634,7 +1635,8 @@ typedef struct { @retval EFI_SUCCESS Valid capsule was passed. If CAPSULE_FLAGS_PERSIT_ACROSS_RESET is not set, the capsule has been successfully processed by the firmware. - @retval EFI_INVALID_PARAMETER CapsuleSize or HeaderSize is NULL. + @retval EFI_INVALID_PARAMETER CapsuleSize is NULL, or an incompatible set of flags were + set in the capsule header. @retval EFI_INVALID_PARAMETER CapsuleCount is 0. @retval EFI_DEVICE_ERROR The capsule update was started, but failed due to a device error. @retval EFI_UNSUPPORTED The capsule type is not supported on this platform. -- 2.39.2