aboutsummaryrefslogtreecommitdiff
path: root/include/sata.h
diff options
context:
space:
mode:
authorNikita Kiryanov2014-08-20 15:08:53 +0300
committerStefano Babic2014-09-09 15:32:32 +0200
commitdc383dd58300e2430e9ad61f6aced2e2d42d16b7 (patch)
treec854e90dbc0d89bd3af647c1b26cfb34a9d5cf63 /include/sata.h
parent52658fda7abc4319ff7f8fe934d2e7c0a32202d7 (diff)
sata: dwc_ahsata: implement sata_port_status
Define the new common function sata_port_status() which can be used to query the sata driver for the state of ports, and implement it for dwc_ahsata. Cc: Stefano Babic <sbabic@denx.de> Cc: Tom Rini <trini@ti.com> Cc: Marek Vasut <marex@denx.de> Reviewed-by: Marek Vasut <marex@denx.de> Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
Diffstat (limited to 'include/sata.h')
-rw-r--r--include/sata.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sata.h b/include/sata.h
index c95dc56e944..38f4b4acf6c 100644
--- a/include/sata.h
+++ b/include/sata.h
@@ -9,6 +9,7 @@ ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer);
int sata_initialize(void);
int __sata_initialize(void);
+int sata_port_status(int dev, int port);
extern block_dev_desc_t sata_dev_desc[];