/* Prototype: int acornscsi_datadirection(int command) Purpose : differentiate between commands that have a DATA IN phase and a DATA OUT phase Params : command - command to interpret Returns : DATADIR_OUT - data out phase expected DATADIR_IN - data in phase expected  */
static datadir_t acornscsi_datadirection(int command)
/* Prototype: int acornscsi_datadirection(int command) Purpose : differentiate between commands that have a DATA IN phase and a DATA OUT phase Params : command - command to interpret Returns : DATADIR_OUT - data out phase expected DATADIR_IN - data in phase expected  */
static datadir_t acornscsi_datadirection(int command)
{
    switch (command) {
    case CHANGE_DEFINITION:	case COMPARE:		case COPY:
    case COPY_VERIFY:		case LOG_SELECT:	case MODE_SELECT:
    case MODE_SELECT_10:	case SEND_DIAGNOSTIC:	case WRITE_BUFFER:
    case FORMAT_UNIT:		case REASSIGN_BLOCKS:	case RESERVE:
    case SEARCH_EQUAL:		case SEARCH_HIGH:	case SEARCH_LOW:
    case WRITE_6:		case WRITE_10:		case WRITE_VERIFY:
    case UPDATE_BLOCK:		case WRITE_LONG:	case WRITE_SAME:
    case SEARCH_HIGH_12:	case SEARCH_EQUAL_12:	case SEARCH_LOW_12:
    case WRITE_12:		case WRITE_VERIFY_12:	case SET_WINDOW:
    case MEDIUM_SCAN:		case SEND_VOLUME_TAG:	case 0xea:
	return DATADIR_OUT;
    default:
	return DATADIR_IN;
    }
}