From nobody Sun May 5 13:11:31 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1500460131137594.60996155465; Wed, 19 Jul 2017 03:28:51 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 7D1232095D8CD; Wed, 19 Jul 2017 03:26:54 -0700 (PDT) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 924B021D0DE51 for ; Wed, 19 Jul 2017 03:26:52 -0700 (PDT) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP; 19 Jul 2017 03:28:47 -0700 Received: from shwdeopenpsi068.ccr.corp.intel.com ([10.239.9.12]) by orsmga005.jf.intel.com with ESMTP; 19 Jul 2017 03:28:46 -0700 X-Original-To: edk2-devel@lists.01.org X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,380,1496127600"; d="scan'208";a="126861425" From: Star Zeng To: edk2-devel@lists.01.org Date: Wed, 19 Jul 2017 18:28:44 +0800 Message-Id: <1500460124-292660-1-git-send-email-star.zeng@intel.com> X-Mailer: git-send-email 2.7.0.windows.1 MIME-Version: 1.0 Subject: [edk2] [PATCH] MdePkg UsbFunctionIo.h: Update comments for GetDeviceInfo return status X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Liming Gao , Star Zeng Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 UEFI spec 2.6 errata B update Status Codes Returned table of the EFI_USBFN_IO_PROTOCOL.GetDeviceInfo function as follows: 1. Update EFI_INVALID_PARAMETER description: Original text: A parameter is invalid. New text: One or more of the following conditions is TRUE: BufferSize is NULL. *BufferSize is not 0 and Buffer is NULL. Id in invalid. 2. Update EFI_BUFFER_TOO_SMALL description: Original text: Supplied buffer isn=E2=80=99t large enough to hold the request string. New text: The buffer is too small to hold the buffer. *BufferSize has been updated with the size needed to hold the request string. Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao --- MdePkg/Include/Protocol/UsbFunctionIo.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/MdePkg/Include/Protocol/UsbFunctionIo.h b/MdePkg/Include/Proto= col/UsbFunctionIo.h index 923c1d3527ed..ce556bdbaf31 100644 --- a/MdePkg/Include/Protocol/UsbFunctionIo.h +++ b/MdePkg/Include/Protocol/UsbFunctionIo.h @@ -11,7 +11,7 @@ or interrupt transfers, alternate interfaces, or USB 3.0 functionality. Future revisions of this protocol may support these or additional featur= es. =20 - Copyright (c) 2015, Intel Corporation. All rights reserved.
+ Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BS= D License which accompanies this distribution. The full text of the license may b= e found at @@ -273,9 +273,13 @@ EFI_STATUS as a Unicode string. =20 @retval EFI_SUCCESS The function returned successfully. - @retval EFI_INVALID_PARAMETER A parameter is invalid. + @retval EFI_INVALID_PARAMETER One or more of the following conditions is= TRUE: + BufferSize is NULL. + *BufferSize is not 0 and Buffer is NULL. + Id in invalid. @retval EFI_DEVICE_ERROR The physical device reported an error. - @retval EFI_BUFFER_TOO_SMALL Supplied buffer isn't large enough to hold= the request string. + @retval EFI_BUFFER_TOO_SMALL The buffer is too small to hold the buffer. + *BufferSize has been updated with the size= needed to hold the request string. =20 **/ typedef --=20 2.7.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel