]> xenbits.xensource.com Git - seabios.git/commitdiff
blockcmd: Remove unused scsi_process_op() and cdb_cmd_data()
authorKevin O'Connor <kevin@koconnor.net>
Tue, 7 Jul 2015 16:46:20 +0000 (12:46 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Tue, 14 Jul 2015 18:40:08 +0000 (14:40 -0400)
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/hw/blockcmd.c
src/hw/blockcmd.h

index 4b4798b41c85f3afb0aaadd78b87912bf12f5082..c56f7f5fd4257541b6d2e9176b51f611dc6c92ba 100644 (file)
 #include "string.h" // memset
 #include "util.h" // timer_calc
 
-// Route command to low-level handler.
-static int
-cdb_cmd_data(struct disk_op_s *op, void *cdbcmd, u16 blocksize)
-{
-    u8 type = GET_GLOBALFLAT(op->drive_gf->type);
-    switch (type) {
-    default:
-        return DISK_RET_EPARAM;
-    }
-}
-
 // Determine if the command is a request to pull data from the device
 int
 cdb_is_read(u8 *cdbcmd, u16 blocksize)
@@ -143,16 +132,6 @@ scsi_fill_cmd(struct disk_op_s *op, void *cdbcmd, int maxcdb)
     }
 }
 
-int
-scsi_process_op(struct disk_op_s *op)
-{
-    char cdbcmd[16];
-    int blocksize = scsi_fill_cmd(op, cdbcmd, sizeof(cdbcmd));
-    if (blocksize < 0)
-        return default_process_op(op);
-    return cdb_cmd_data(op, cdbcmd, blocksize);
-}
-
 int
 scsi_is_ready(struct disk_op_s *op)
 {
index 9077e82f61e31439296aa05c6be4a7e8beec3bff..52b72bc4d83a8ac80211693a6e7fd9b8c54ef1d3 100644 (file)
@@ -103,7 +103,6 @@ struct cdbres_mode_sense_geom {
 int cdb_is_read(u8 *cdbcmd, u16 blocksize);
 struct disk_op_s;
 int scsi_fill_cmd(struct disk_op_s *op, void *cdbcmd, int maxcdb);
-int scsi_process_op(struct disk_op_s *op);
 int scsi_is_ready(struct disk_op_s *op);
 struct drive_s;
 int scsi_drive_setup(struct drive_s *drive, const char *s, int prio);