ata_max_umode
if (maxmode >= ATA_UDMA0 && ata_max_umode(ap) > 0)
return (min(maxmode, ata_max_umode(ap)));
int ata_max_umode(struct ata_params *ap);