diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2015-07-07 09:53:54 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2015-07-14 14:40:07 -0400 |
commit | 4dbe82905992f6c6b87ec79ce6b568c57304b0e5 (patch) | |
tree | cabd8bc35e9d2d80399714767f687bbdd6761c6c /src/cdrom.c | |
parent | 85c72c6febbf7f4654c9ac57a8506dc5e1a5cba1 (diff) | |
download | seabios-hppa-4dbe82905992f6c6b87ec79ce6b568c57304b0e5.zip seabios-hppa-4dbe82905992f6c6b87ec79ce6b568c57304b0e5.tar.gz seabios-hppa-4dbe82905992f6c6b87ec79ce6b568c57304b0e5.tar.bz2 |
block: Route scsi style commands through 'struct disk_op_s'
Support sending scsi style "command data block" commands (cdbcmd)
through the 'struct disk_op_s' command request structure. And change
the blockcmd.c and cdrom.c code to route these commands through the
process_op() code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/cdrom.c')
-rw-r--r-- | src/cdrom.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cdrom.c b/src/cdrom.c index bf1d2a6..60964bd 100644 --- a/src/cdrom.c +++ b/src/cdrom.c @@ -153,7 +153,7 @@ cdrom_boot(struct drive_s *drive) dop.lba = 0x11; dop.count = 1; dop.buf_fl = buffer; - ret = scsi_process_op(&dop); + ret = process_op(&dop); if (ret) return 3; @@ -169,7 +169,7 @@ cdrom_boot(struct drive_s *drive) // And we read the Boot Catalog dop.lba = lba; dop.count = 1; - ret = scsi_process_op(&dop); + ret = process_op(&dop); if (ret) return 7; @@ -218,7 +218,7 @@ cdrom_boot(struct drive_s *drive) if (count > 64*1024/CDROM_SECTOR_SIZE) count = 64*1024/CDROM_SECTOR_SIZE; dop.count = count; - ret = scsi_process_op(&dop); + ret = process_op(&dop); if (ret) return 12; nbsectors -= count; |