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/esp-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/esp-scsi.c')
-rw-r--r-- | src/hw/esp-scsi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/hw/esp-scsi.c b/src/hw/esp-scsi.c index 0266492b..d4e47e3c 100644 --- a/src/hw/esp-scsi.c +++ b/src/hw/esp-scsi.c @@ -122,8 +122,7 @@ esp_scsi_process_op(struct disk_op_s *op) if (op->count && blocksize) { /* Data phase. */ u32 count = (u32)op->count * blocksize; - esp_scsi_dma(iobase, (u32)op->buf_fl, count, - cdb_is_read(cdbcmd, blocksize)); + esp_scsi_dma(iobase, (u32)op->buf_fl, count, scsi_is_read(op)); outb(ESP_CMD_TI | ESP_CMD_DMA, iobase + ESP_CMD); continue; } |