diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2015-07-07 14:43:01 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2015-07-14 14:40:08 -0400 |
commit | 5dcd1ee7c32dcd9187f95fabe5bd4770fa8e5072 (patch) | |
tree | 39062a4f589a1b9fc32f6ede96af9b2d4a8470cf /src/hw/lsi-scsi.c | |
parent | bb05a67220b8d37ac8fce216266bb1821939b3b1 (diff) | |
download | seabios-5dcd1ee7c32dcd9187f95fabe5bd4770fa8e5072.tar.gz |
blockcmd: Convert cdb_is_read() to scsi_is_read()
Convert the cdb_is_read() function to a new function scsi_is_read()
which takes a 'struct disk_op_s' as a paramter.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/hw/lsi-scsi.c')
-rw-r--r-- | src/hw/lsi-scsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hw/lsi-scsi.c b/src/hw/lsi-scsi.c index ad9c3bf6..ad335288 100644 --- a/src/hw/lsi-scsi.c +++ b/src/hw/lsi-scsi.c @@ -64,7 +64,7 @@ lsi_scsi_process_op(struct disk_op_s *op) if (blocksize < 0) return default_process_op(op); u32 iobase = GET_GLOBALFLAT(llun_gf->iobase); - u32 dma = ((cdb_is_read(cdbcmd, blocksize) ? 0x01000000 : 0x00000000) | + u32 dma = ((scsi_is_read(op) ? 0x01000000 : 0x00000000) | (op->count * blocksize)); u8 msgout[] = { 0x80 | lun, // select lun |