/* RETURNS: 0 when ATAPI DMA can be used nonzero otherwise  */
int atapi_check_dma(struct ata_queued_cmd *qc)
/* RETURNS: 0 when ATAPI DMA can be used nonzero otherwise  */
int atapi_check_dma(struct ata_queued_cmd *qc)
{
	struct ata_port *ap = qc->ap;
	if (!(qc->dev->horkage & ATA_HORKAGE_ATAPI_MOD16_DMA) &&
	    unlikely(qc->nbytes & 15))
		return 1;
	if (ap->ops->check_atapi_dma)
		return ap->ops->check_atapi_dma(qc);
	return 0;
}