From: Alan Cox We can use the ACPI mode information with several drivers as a hint to cable type. If the ACPI mode set by the BIOS is faster than UDMA33 then we know the BIOS thinks there are 80wire cables. If it doesn't set such a mode or it has no ACPI method then we get no further information and can rely on existing approaches Introduce the function headers needed. Null it out for non ACPI boxes Signed-off-by: Alan Cox Signed-off-by: Andrew Morton --- include/linux/libata.h | 6 ++++++ 1 file changed, 6 insertions(+) diff -puN include/linux/libata.h~libata-acpi-checks-for-80wire-cable-headers include/linux/libata.h --- a/include/linux/libata.h~libata-acpi-checks-for-80wire-cable-headers +++ a/include/linux/libata.h @@ -883,6 +883,12 @@ enum { ATA_TIMING_CYCLE | ATA_TIMING_UDMA, }; +/* libata-acpi.c */ +#ifdef CONFIG_ATA_ACPI +extern int ata_acpi_cbl_80wire(struct ata_port *ap); +#else +static inline int ata_acpi_cbl_80wire(struct ata_port *ap) { return 0; } +#endif #ifdef CONFIG_PCI struct pci_bits { _