summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBrad Campbell <brad@wasp.net.au>2005-05-12 15:07:47 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-05-12 15:07:47 -0400
commit6f2f38128170814e151cfedf79532e19cd179567 (patch)
tree6728b987c6d4199c4d03335407f5b55859b34a86 /include
parent88d7bd8cb9eb8d64bf7997600b0d64f7834047c5 (diff)
downloadkernel-crypto-6f2f38128170814e151cfedf79532e19cd179567.tar.gz
kernel-crypto-6f2f38128170814e151cfedf79532e19cd179567.tar.xz
kernel-crypto-6f2f38128170814e151cfedf79532e19cd179567.zip
[PATCH] libata basic detection and errata for PATA->SATA bridges
This patch works around an issue with WD drives (and possibly others) over SiL PATA->SATA Bridges on SATA controllers locking up with transfers > 200 sectors. Signed-off-by: Brad Campbell <brad@wasp.net.au>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ata.h1
-rw-r--r--include/linux/libata.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ata.h b/include/linux/ata.h
index f178894edd0..ca5fcadf998 100644
--- a/include/linux/ata.h
+++ b/include/linux/ata.h
@@ -224,6 +224,7 @@ struct ata_taskfile {
};
#define ata_id_is_ata(id) (((id)[0] & (1 << 15)) == 0)
+#define ata_id_is_sata(id) ((id)[93] == 0)
#define ata_id_rahead_enabled(id) ((id)[85] & (1 << 6))
#define ata_id_wcache_enabled(id) ((id)[85] & (1 << 5))
#define ata_id_has_flush(id) ((id)[83] & (1 << 12))
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 505160ab472..d33e70361a7 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -420,6 +420,7 @@ extern void ata_sg_init(struct ata_queued_cmd *qc, struct scatterlist *sg,
extern unsigned int ata_dev_classify(struct ata_taskfile *tf);
extern void ata_dev_id_string(u16 *id, unsigned char *s,
unsigned int ofs, unsigned int len);
+extern void ata_dev_config(struct ata_port *ap, unsigned int i);
extern void ata_bmdma_setup (struct ata_queued_cmd *qc);
extern void ata_bmdma_start (struct ata_queued_cmd *qc);
extern void ata_bmdma_stop(struct ata_port *ap);