/* RETURNS: 0 when ATAPI DMA can be used 1 otherwise  */
static int pdc2027x_check_atapi_dma(struct ata_queued_cmd *qc)
/* RETURNS: 0 when ATAPI DMA can be used 1 otherwise  */
static int pdc2027x_check_atapi_dma(struct ata_queued_cmd *qc)
{
	struct scsi_cmnd *cmd = qc->scsicmd;
	u8 *scsicmd = cmd->cmnd;
	int rc = 1;
	switch (scsicmd[0]) {
	case READ_10:
	case WRITE_10:
	case READ_12:
	case WRITE_12:
	case READ_6:
	case WRITE_6:
	case 0xad:
	case 0xbe:
		rc = 0;
		break;
	default:
		;
	}
	return rc;
}