]> xenbits.xensource.com Git - people/andrewcoop/seabios.git/commitdiff
cdrom: call scsi_process_op() instead of cdb_read()
authorKevin O'Connor <kevin@koconnor.net>
Mon, 29 Dec 2014 14:48:24 +0000 (09:48 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Mon, 29 Dec 2014 14:48:24 +0000 (09:48 -0500)
Use the scsi_process_op() function instead of the lower level
cdb_read() function.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/cdrom.c

index 86e3f0cd4ea6f2e23702ba41e40ab0ccf2a94137..de0e7defbd3cd55c203071868e8540f64345e853 100644 (file)
@@ -154,10 +154,11 @@ cdrom_boot(struct drive_s *drive)
 
     // Read the Boot Record Volume Descriptor
     u8 buffer[CDROM_SECTOR_SIZE];
+    dop.command = CMD_READ;
     dop.lba = 0x11;
     dop.count = 1;
     dop.buf_fl = buffer;
-    ret = cdb_read(&dop);
+    ret = scsi_process_op(&dop);
     if (ret)
         return 3;
 
@@ -173,7 +174,7 @@ cdrom_boot(struct drive_s *drive)
     // And we read the Boot Catalog
     dop.lba = lba;
     dop.count = 1;
-    ret = cdb_read(&dop);
+    ret = scsi_process_op(&dop);
     if (ret)
         return 7;
 
@@ -214,7 +215,7 @@ cdrom_boot(struct drive_s *drive)
     dop.lba = lba;
     dop.count = DIV_ROUND_UP(nbsectors, 4);
     dop.buf_fl = MAKE_FLATPTR(boot_segment, 0);
-    ret = cdb_read(&dop);
+    ret = scsi_process_op(&dop);
     if (ret)
         return 12;