* [PATCH] MdePkg UsbFunctionIo.h: Update comments for GetDeviceInfo return status
@ 2017-07-19 10:28 Star Zeng
2017-07-21 9:46 ` Gao, Liming
0 siblings, 1 reply; 2+ messages in thread
From: Star Zeng @ 2017-07-19 10:28 UTC (permalink / raw)
To: edk2-devel; +Cc: Star Zeng, Liming Gao
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’t 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 <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
---
MdePkg/Include/Protocol/UsbFunctionIo.h | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/MdePkg/Include/Protocol/UsbFunctionIo.h b/MdePkg/Include/Protocol/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 features.
- Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>
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
@@ -273,9 +273,13 @@ EFI_STATUS
as a Unicode string.
@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.
**/
typedef
--
2.7.0.windows.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] MdePkg UsbFunctionIo.h: Update comments for GetDeviceInfo return status
2017-07-19 10:28 [PATCH] MdePkg UsbFunctionIo.h: Update comments for GetDeviceInfo return status Star Zeng
@ 2017-07-21 9:46 ` Gao, Liming
0 siblings, 0 replies; 2+ messages in thread
From: Gao, Liming @ 2017-07-21 9:46 UTC (permalink / raw)
To: Zeng, Star, edk2-devel@lists.01.org
Reviewed-by: Liming Gao <liming.gao@intel.com>
>-----Original Message-----
>From: Zeng, Star
>Sent: Wednesday, July 19, 2017 6:29 PM
>To: edk2-devel@lists.01.org
>Cc: Zeng, Star <star.zeng@intel.com>; Gao, Liming <liming.gao@intel.com>
>Subject: [PATCH] MdePkg UsbFunctionIo.h: Update comments for
>GetDeviceInfo return status
>
>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’t 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 <liming.gao@intel.com>
>Contributed-under: TianoCore Contribution Agreement 1.0
>Signed-off-by: Star Zeng <star.zeng@intel.com>
>---
> MdePkg/Include/Protocol/UsbFunctionIo.h | 10 +++++++---
> 1 file changed, 7 insertions(+), 3 deletions(-)
>
>diff --git a/MdePkg/Include/Protocol/UsbFunctionIo.h
>b/MdePkg/Include/Protocol/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 features.
>
>- Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
>+ Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>
> 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
>@@ -273,9 +273,13 @@ EFI_STATUS
> as a Unicode string.
>
> @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.
>
> **/
> typedef
>--
>2.7.0.windows.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-07-21 9:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-19 10:28 [PATCH] MdePkg UsbFunctionIo.h: Update comments for GetDeviceInfo return status Star Zeng
2017-07-21 9:46 ` Gao, Liming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox