]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg/LockBoxLib: Update the comments for API UpdateLockBox()
authorHao Wu <hao.a.wu@intel.com>
Mon, 11 Feb 2019 07:39:50 +0000 (15:39 +0800)
committerHao Wu <hao.a.wu@intel.com>
Fri, 22 Feb 2019 00:20:08 +0000 (08:20 +0800)
The previous commit:
MdeModulePkg/SmmLockBoxLib: Support LockBox enlarge in UpdateLockBox()

adds the support to enlarge a LockBox when using the LockBoxLib API
UpdateLockBox().

This commit is to sync the API description comment of UpdateLockBox() with
its counterparts in MdeModulePkg.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
OvmfPkg/Library/LockBoxLib/LockBoxLib.c

index 45481b9230d2c16de4dfdf616b949b6f368e4dbd..04233059f18b485a02e0a06b1962d2e84e89889e 100644 (file)
@@ -3,7 +3,7 @@
   Library implementing the LockBox interface for OVMF\r
 \r
   Copyright (C) 2013, Red Hat, Inc.\r
-  Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials are licensed and made available\r
   under the terms and conditions of the BSD License which accompanies this\r
@@ -224,8 +224,13 @@ SetLockBoxAttributes (
   @retval RETURN_INVALID_PARAMETER  the Guid is NULL, or Buffer is NULL, or\r
                                     Length is 0.\r
   @retval RETURN_NOT_FOUND          the requested GUID not found.\r
-  @retval RETURN_BUFFER_TOO_SMALL   the original buffer to too small to hold\r
-                                    new information.\r
+  @retval RETURN_BUFFER_TOO_SMALL   for lockbox without attribute\r
+                                    LOCK_BOX_ATTRIBUTE_RESTORE_IN_S3_ONLY, the\r
+                                    original buffer to too small to hold new\r
+                                    information.\r
+  @retval RETURN_OUT_OF_RESOURCES   for lockbox with attribute\r
+                                    LOCK_BOX_ATTRIBUTE_RESTORE_IN_S3_ONLY, no\r
+                                    enough resource to save the information.\r
   @retval RETURN_ACCESS_DENIED      it is too late to invoke this interface\r
   @retval RETURN_NOT_STARTED        it is too early to invoke this interface\r
   @retval RETURN_UNSUPPORTED        the service is not supported by\r