From b95eb5e097c74239abbbec38f9fde5faa1a68c98 Mon Sep 17 00:00:00 2001 From: "Tian, Feng" Date: Wed, 30 Apr 2014 03:38:05 +0000 Subject: [PATCH] MdePkg/UefiScsiLib: Wrong function parameter comments in UefiScsiLib. It should be the number of transferred blocks rather than block size. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tian, Feng Reviewed-by: Zeng, Star Reviewed-by: Fu, Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15492 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Include/Library/UefiScsiLib.h | 10 +++++----- MdePkg/Library/UefiScsiLib/UefiScsiLib.c | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/MdePkg/Include/Library/UefiScsiLib.h b/MdePkg/Include/Library/UefiScsiLib.h index d6907c4060..768a912a22 100644 --- a/MdePkg/Include/Library/UefiScsiLib.h +++ b/MdePkg/Include/Library/UefiScsiLib.h @@ -5,7 +5,7 @@ for hard drive, CD and DVD devices that are the most common SCSI boot targets used by UEFI platforms. This library class depends on SCSI I/O Protocol defined in UEFI Specification and SCSI-2 industry standard. -Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2014, 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 @@ -547,7 +547,7 @@ ScsiReadCapacity16Command ( @param[in, out] DataBuffer Read 10 command data. @param[in, out] DataLength The length of data buffer. @param[in] StartLba The start address of LBA. - @param[in] SectorSize The sector size. + @param[in] SectorSize The number of contiguous logical blocks of data that shall be transferred. @retval EFI_SUCCESS Command is executed successfully. @retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire DataBuffer could @@ -599,7 +599,7 @@ ScsiRead10Command ( @param[in, out] DataBuffer A pointer to a data buffer. @param[in, out] DataLength The length of data buffer. @param[in] StartLba The start address of LBA. - @param[in] SectorSize The sector size. + @param[in] SectorSize The number of contiguous logical blocks of data that shall be transferred. @retval EFI_SUCCESS Command is executed successfully. @retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire DataBuffer could @@ -651,7 +651,7 @@ ScsiWrite10Command ( @param[in, out] DataBuffer Read 16 command data. @param[in, out] DataLength The length of data buffer. @param[in] StartLba The start address of LBA. - @param[in] SectorSize The sector size. + @param[in] SectorSize The number of contiguous logical blocks of data that shall be transferred. @retval EFI_SUCCESS Command is executed successfully. @retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire DataBuffer could @@ -703,7 +703,7 @@ ScsiRead16Command ( @param[in, out] DataBuffer A pointer to a data buffer. @param[in, out] DataLength The length of data buffer. @param[in] StartLba The start address of LBA. - @param[in] SectorSize The sector size. + @param[in] SectorSize The number of contiguous logical blocks of data that shall be transferred. @retval EFI_SUCCESS Command is executed successfully. @retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire DataBuffer could diff --git a/MdePkg/Library/UefiScsiLib/UefiScsiLib.c b/MdePkg/Library/UefiScsiLib/UefiScsiLib.c index ff4d8da507..bd838c4ff4 100644 --- a/MdePkg/Library/UefiScsiLib/UefiScsiLib.c +++ b/MdePkg/Library/UefiScsiLib/UefiScsiLib.c @@ -874,7 +874,7 @@ ScsiReadCapacity16Command ( @param[in, out] DataBuffer Read 10 command data. @param[in, out] DataLength The length of data buffer. @param[in] StartLba The start address of LBA. - @param[in] SectorSize The sector size. + @param[in] SectorSize The number of contiguous logical blocks of data that shall be transferred. @retval EFI_SUCCESS The command is executed successfully. @retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire DataBuffer could @@ -972,7 +972,7 @@ ScsiRead10Command ( @param[in, out] DataBuffer A pointer to a data buffer. @param[in, out] DataLength The length of data buffer. @param[in] StartLba The start address of LBA. - @param[in] SectorSize The sector size. + @param[in] SectorSize The number of contiguous logical blocks of data that shall be transferred. @retval EFI_SUCCESS The command executed successfully. @retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire DataBuffer could @@ -1070,7 +1070,7 @@ ScsiWrite10Command ( @param[in, out] DataBuffer Read 16 command data. @param[in, out] DataLength The length of data buffer. @param[in] StartLba The start address of LBA. - @param[in] SectorSize The sector size. + @param[in] SectorSize The number of contiguous logical blocks of data that shall be transferred. @retval EFI_SUCCESS The command executed successfully. @retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire DataBuffer could @@ -1168,7 +1168,7 @@ ScsiRead16Command ( @param[in, out] DataBuffer A pointer to a data buffer. @param[in, out] DataLength The length of data buffer. @param[in] StartLba The start address of LBA. - @param[in] SectorSize The sector size. + @param[in] SectorSize The number of contiguous logical blocks of data that shall be transferred. @retval EFI_SUCCESS The command is executed successfully. @retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire DataBuffer could -- 2.39.2