/* function handling both READ_6/WRITE_6 (non-scatter/gather mode) commands. Added  S.Eranian  */
static void simscsi_readwrite6(struct scsi_cmnd *sc, int mode)
/* function handling both READ_6/WRITE_6 (non-scatter/gather mode) commands. Added  S.Eranian  */
static void simscsi_readwrite6(struct scsi_cmnd *sc, int mode)
{
	unsigned long offset;
	offset = (((sc->cmnd[1] & 0x1f) << 16) | (sc->cmnd[2] << 8) | sc->cmnd[3])*512;
	simscsi_sg_readwrite(sc, mode, offset);
}