#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)
}
}
-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)
{
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);