Abstract:\r
\r
--*/\r
-//\r
-// The package level header files this module uses\r
-//\r
+\r
#include <PiDxe.h>\r
\r
-//\r
-// The protocols, PPI and GUID defintions for this module\r
-//\r
+\r
#include <Protocol/ScsiIo.h>\r
#include <Protocol/ComponentName.h>\r
#include <Protocol/BlockIo.h>\r
#include <Protocol/DriverBinding.h>\r
-//\r
-// The Library classes this module consumes\r
-//\r
+\r
#include <Library/DebugLib.h>\r
#include <Library/UefiDriverEntryPoint.h>\r
#include <Library/UefiLib.h>\r
InquiryDataLength = sizeof (EFI_SCSI_INQUIRY_DATA);\r
SenseDataLength = 0;\r
\r
- Status = SubmitInquiryCommand (\r
+ Status = ScsiInquiryCommand (\r
ScsiDiskDevice->ScsiIo,\r
EfiScsiStallSeconds (1),\r
NULL,\r
}\r
\r
//\r
- // if goes here, meant SubmitInquiryCommand() failed.\r
+ // if goes here, meant ScsiInquiryCommand() failed.\r
// if ScsiDiskRequestSenseKeys() succeeds at last,\r
- // better retry SubmitInquiryCommand(). (by setting *NeedRetry = TRUE)\r
+ // better retry ScsiInquiryCommand(). (by setting *NeedRetry = TRUE)\r
//\r
MaxRetry = 3;\r
for (Index = 0; Index < MaxRetry; Index++) {\r
//\r
// Parameter 3 and 4: do not require sense data, retrieve it when needed.\r
//\r
- Status = SubmitTestUnitReadyCommand (\r
+ Status = ScsiTestUnitReadyCommand (\r
ScsiDiskDevice->ScsiIo,\r
EfiScsiStallSeconds (1),\r
NULL,\r
//\r
// submit Read Capacity Command. in this call,not request sense data\r
//\r
- CommandStatus = SubmitReadCapacityCommand (\r
+ CommandStatus = ScsiReadCapacityCommand (\r
ScsiDiskDevice->ScsiIo,\r
EfiScsiStallSeconds (1),\r
NULL,\r
}\r
\r
//\r
- // if goes here, meant SubmitReadCapacityCommand() failed.\r
+ // if goes here, meant ScsiReadCapacityCommand() failed.\r
// if ScsiDiskRequestSenseKeys() succeeds at last,\r
- // better retry SubmitReadCapacityCommand(). (by setting *NeedRetry = TRUE)\r
+ // better retry ScsiReadCapacityCommand(). (by setting *NeedRetry = TRUE)\r
//\r
MaxRetry = 3;\r
for (Index = 0; Index < MaxRetry; Index++) {\r
\r
for (SenseReq = TRUE; SenseReq;) {\r
\r
- Status = SubmitRequestSenseCommand (\r
+ Status = ScsiRequestSenseCommand (\r
ScsiDiskDevice->ScsiIo,\r
EfiScsiStallSeconds (2),\r
PtrSenseData,\r
*NeedRetry = FALSE;\r
*NumberOfSenseKeys = 0;\r
SenseDataLength = 0;\r
- Status = SubmitRead10Command (\r
+ Status = ScsiRead10Command (\r
ScsiDiskDevice->ScsiIo,\r
Timeout,\r
NULL,\r
*NeedRetry = FALSE;\r
*NumberOfSenseKeys = 0;\r
SenseDataLength = 0;\r
- Status = SubmitWrite10Command (\r
+ Status = ScsiWrite10Command (\r
ScsiDiskDevice->ScsiIo,\r
Timeout,\r
NULL,\r