summaryrefslogtreecommitdiffstats
path: root/include/ata_drive.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-03-08 10:18:08 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-03-08 11:33:27 +0100
commit1cb110fb034e4edb5b7c72fbea72f3140d7f17ed (patch)
tree1a9c4bedb1c01870a31fe99ae5f6bd47cb8729b9 /include/ata_drive.h
parenta2063d101598686490ce990e74dd20c72c309720 (diff)
downloadbarebox-1cb110fb034e4edb5b7c72fbea72f3140d7f17ed.tar.gz
barebox-1cb110fb034e4edb5b7c72fbea72f3140d7f17ed.tar.xz
ata: Add init callback to ata_port_operations
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/ata_drive.h')
-rw-r--r--include/ata_drive.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ata_drive.h b/include/ata_drive.h
index 876aa74970..4f8b6c05fd 100644
--- a/include/ata_drive.h
+++ b/include/ata_drive.h
@@ -80,6 +80,7 @@ struct ata_ioports {
struct ata_port;
struct ata_port_operations {
+ int (*init)(struct ata_port *port);
int (*read)(struct ata_port *port, void *buf, unsigned int block, int num_blocks);
int (*write)(struct ata_port *port, const void *buf, unsigned int block, int num_blocks);
int (*read_id)(struct ata_port *port, void *buf);