/* Prototype: cmdtype_t acornscsi_cmdtype(int command) Purpose : differentiate READ from WRITE from other commands Params : command - command to interpret Returns : CMD_READ - command reads data, CMD_WRITE - command writes data, CMD_MISC - everything else  */
static cmdtype_t acornscsi_cmdtype(int command)
/* Prototype: cmdtype_t acornscsi_cmdtype(int command) Purpose : differentiate READ from WRITE from other commands Params : command - command to interpret Returns : CMD_READ - command reads data, CMD_WRITE - command writes data, CMD_MISC - everything else  */
static cmdtype_t acornscsi_cmdtype(int command)
{
    switch (command) {
    case WRITE_6:  case WRITE_10:  case WRITE_12:
	return CMD_WRITE;
    case READ_6:   case READ_10:   case READ_12:
	return CMD_READ;
    default:
	return CMD_MISC;
    }
}