[SeaBIOS] [PATCH 15/17] blockcmd: Remove unused scsi_process_op() and cdb_cmd_data()
Kevin O'Connor
kevin at koconnor.net
Tue Jul 7 21:26:19 CEST 2015
Signed-off-by: Kevin O'Connor <kevin at koconnor.net>
---
src/hw/blockcmd.c | 21 ---------------------
src/hw/blockcmd.h | 1 -
2 files changed, 22 deletions(-)
diff --git a/src/hw/blockcmd.c b/src/hw/blockcmd.c
index 4b4798b..c56f7f5 100644
--- a/src/hw/blockcmd.c
+++ b/src/hw/blockcmd.c
@@ -14,17 +14,6 @@
#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)
@@ -144,16 +133,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)
{
dprintf(6, "scsi_is_ready (drive=%p)\n", op->drive_gf);
diff --git a/src/hw/blockcmd.h b/src/hw/blockcmd.h
index 9077e82..52b72bc 100644
--- a/src/hw/blockcmd.h
+++ b/src/hw/blockcmd.h
@@ -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);
--
1.9.3
More information about the SeaBIOS
mailing list