Set the correct SCSI data direction mask.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25651 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marcus Overhagen 2008-05-24 21:46:30 +00:00
parent b54c709405
commit ad36dc4f21
3 changed files with 8 additions and 4 deletions

View File

@ -39,7 +39,7 @@ scsi_scan_send_tur(scsi_ccb *worker_req)
worker_req->cdb_length = sizeof(*cmd);
worker_req->timeout = 0;
worker_req->sort = -1;
worker_req->flags = 0;
worker_req->flags = SCSI_DIR_NONE;
scsi_sync_io( worker_req );

View File

@ -84,8 +84,10 @@ raw_command(raw_device_info *device, raw_device_command *cmd)
if (cmd->flags & B_RAW_DEVICE_DATA_IN)
request->flags |= SCSI_DIR_IN;
else
else if (cmd->data_length)
request->flags |= SCSI_DIR_OUT;
else
request->flags |= SCSI_DIR_NONE;
request->data = cmd->data;
request->sg_list = NULL;

View File

@ -230,8 +230,10 @@ raw_command(scsi_periph_device_info *device, raw_device_command *cmd)
if (cmd->flags & B_RAW_DEVICE_DATA_IN)
request->flags |= SCSI_DIR_IN;
else
else if (cmd->data_length)
request->flags |= SCSI_DIR_OUT;
else
request->flags |= SCSI_DIR_NONE;
request->data = cmd->data;
request->sg_list = NULL;