diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2007-08-16 02:33:36 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-10-12 14:55:34 -0400 |
commit | e1ddb4b6a2c9b2c72991eb8640ef2f50691ac502 (patch) | |
tree | fd9d0f14c5a5e329f4c1d2ee737177c5caf24b02 /include/linux/libata.h | |
parent | 6d32d30f55020d766388df7515f771f68c973033 (diff) |
[libata] add ACPI cable detect API
Combined from two Alan Cox patches:
1) libata: ACPI checks for 80wire cable
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 <alan@redhat.com>
2) libata: ACPI checks for 80wire cable
Provide actual methods for checking if the ACPI support thinks the cable
is 80wire, or doesn't know
Signed-off-by: Alan Cox <alan@redhat.com>
Combined into a single changeset and
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r-- | include/linux/libata.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index 9295cd541ffc..382898ef6545 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -885,6 +885,12 @@ enum { | |||
885 | ATA_TIMING_CYCLE | ATA_TIMING_UDMA, | 885 | ATA_TIMING_CYCLE | ATA_TIMING_UDMA, |
886 | }; | 886 | }; |
887 | 887 | ||
888 | /* libata-acpi.c */ | ||
889 | #ifdef CONFIG_ATA_ACPI | ||
890 | extern int ata_acpi_cbl_80wire(struct ata_port *ap); | ||
891 | #else | ||
892 | static inline int ata_acpi_cbl_80wire(struct ata_port *ap) { return 0; } | ||
893 | #endif | ||
888 | 894 | ||
889 | #ifdef CONFIG_PCI | 895 | #ifdef CONFIG_PCI |
890 | struct pci_bits { | 896 | struct pci_bits { |