/* Returns 1 if the DMA cannot be performed, zero on success.  */
static int ali_dma_check(ide_drive_t *drive, struct ide_cmd *cmd)
/* Returns 1 if the DMA cannot be performed, zero on success.  */
static int ali_dma_check(ide_drive_t *drive, struct ide_cmd *cmd)
{
	if (m5229_revision < 0xC2 && drive->media != ide_disk) {
		if (cmd->tf_flags & IDE_TFLAG_WRITE)
			return 1;
	}
	return 0;
}