/* Most of the SCSI commands are supported directly by ATAPI devices. This transform handles the few exceptions.  */
static int ide_cdrom_prep_pc(struct request *rq)
/* Most of the SCSI commands are supported directly by ATAPI devices. This transform handles the few exceptions.  */
static int ide_cdrom_prep_pc(struct request *rq)
{
	u8 *c = rq->cmd;
	if (c[0] == READ_6 || c[0] == WRITE_6) {
		c[8] = c[4];
		c[5] = c[3];
		c[4] = c[2];
		c[3] = c[1] & 0x1f;
		c[2] = 0;
		c[1] &= 0xe0;
		c[0] += (READ_10 - READ_6);
		rq->cmd_len = 10;
		return BLKPREP_OK;
	}
	if (c[0] == MODE_SENSE || c[0] == MODE_SELECT) {
		rq->errors = ILLEGAL_REQUEST;
		return BLKPREP_KILL;
	}
	return BLKPREP_OK;
}