aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlan Cox <alan@lxorguk.ukuu.org.uk>2006-03-27 12:46:37 -0500
committerJeff Garzik <jeff@garzik.org>2006-03-29 19:30:27 -0500
commite35a9e01f2a504871e70576a9e11dbe4d8dee456 (patch)
tree4761c2d8b9d827d95cc531376e5c02666734ecf6 /include
parent4e5ec5dba22ea509b1a004f9815751f0ffc815e5 (diff)
[PATCH] libata: Add ->set_mode hook for odd drivers
Some hardware doesn't want the usual mode setup logic running. This allows the hardware driver to replace it for special cases in the least invasive way possible. Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/libata.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index a5c213ce97c9..6a9316cbb70b 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -433,6 +433,7 @@ struct ata_port_operations {
433 void (*dev_select)(struct ata_port *ap, unsigned int device); 433 void (*dev_select)(struct ata_port *ap, unsigned int device);
434 434
435 void (*phy_reset) (struct ata_port *ap); /* obsolete */ 435 void (*phy_reset) (struct ata_port *ap); /* obsolete */
436 void (*set_mode) (struct ata_port *ap);
436 int (*probe_reset) (struct ata_port *ap, unsigned int *classes); 437 int (*probe_reset) (struct ata_port *ap, unsigned int *classes);
437 438
438 void (*post_set_mode) (struct ata_port *ap); 439 void (*post_set_mode) (struct ata_port *ap);