/* Return 1 if the @gtm indicates the BIOS selected an 80wire mode.  */
int ata_acpi_cbl_80wire(struct ata_port *ap, const struct ata_acpi_gtm *gtm)
/* Return 1 if the @gtm indicates the BIOS selected an 80wire mode.  */
int ata_acpi_cbl_80wire(struct ata_port *ap, const struct ata_acpi_gtm *gtm)
{
	struct ata_device *dev;
	ata_for_each_dev(dev, &ap->link, ENABLED) {
		unsigned long xfer_mask, udma_mask;
		xfer_mask = ata_acpi_gtm_xfermask(dev, gtm);
		ata_unpack_xfermask(xfer_mask, NULL, NULL, &udma_mask);
		if (udma_mask & ~ATA_UDMA_MASK_40C)
			return 1;
	}
	return 0;
}