/* Try the modes available and see which ones the ACPI method will set up sensibly. From this we get a mask of ACPI modes we can use  */
static unsigned long pacpi_discover_modes(struct ata_port *ap, struct ata_device *adev)
/* Try the modes available and see which ones the ACPI method will set up sensibly. From this we get a mask of ACPI modes we can use  */
static unsigned long pacpi_discover_modes(struct ata_port *ap, struct ata_device *adev)
{
	struct pata_acpi *acpi = ap->private_data;
	struct ata_acpi_gtm probe;
	unsigned int xfer_mask;
	probe = acpi->gtm;
	ata_acpi_gtm(ap, &probe);
	xfer_mask = ata_acpi_gtm_xfermask(adev, &probe);
	if (xfer_mask & (0xF8 << ATA_SHIFT_UDMA))
		ap->cbl = ATA_CBL_PATA80;
	return xfer_mask;
}