From: Alan Cox <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---
include/linux/libata.h | 6 ++++++
1 files 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
@@ -1053,6 +1053,12 @@ static inline int ata_port_max_devices(c
return 1;
}
+/* 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
static inline u8 ata_chk_status(struct ata_port *ap)
{
_
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html