/* The actual rules for the ALi are: No UDMA on revisions <= 0x20 Disk only for revisions < 0xC2 Not WDC drives on M1543C-E (?)  */
static u8 ali_udma_filter(ide_drive_t *drive)
/* The actual rules for the ALi are: No UDMA on revisions <= 0x20 Disk only for revisions < 0xC2 Not WDC drives on M1543C-E (?)  */
static u8 ali_udma_filter(ide_drive_t *drive)
{
	if (m5229_revision > 0x20 && m5229_revision < 0xC2) {
		if (drive->media != ide_disk)
			return 0;
		if (chip_is_1543c_e &&
		    strstr((char *)&drive->id[ATA_ID_PROD], "WDC "))
			return 0;
	}
	return drive->hwif->ultra_mask;
}