blob: fa61da8ddd0431e7e34c12682a27bb7fc3a585ef [file] [log] [blame]
Dave Liuf17c9632008-03-27 18:51:17 +08001#ifndef __SATA_H__
2#define __SATA_H__
Pavel Herrmann9e9f6282012-09-27 23:18:04 +00003#include <part.h>
Dave Liuf17c9632008-03-27 18:51:17 +08004
Dave Liu76596ba2008-03-26 22:49:44 +08005int init_sata(int dev);
Nikita Kiryanovb9666d62014-11-21 12:47:23 +02006int reset_sata(int dev);
Dave Liu76596ba2008-03-26 22:49:44 +08007int scan_sata(int dev);
Pavel Herrmann9e9f6282012-09-27 23:18:04 +00008ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer);
9ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer);
Dave Liu76596ba2008-03-26 22:49:44 +080010
11int sata_initialize(void);
Mike Frysingere66dc082009-01-27 16:12:21 -050012int __sata_initialize(void);
Nikita Kiryanov44fd1f92014-11-21 12:47:24 +020013int sata_stop(void);
14int __sata_stop(void);
Nikita Kiryanov66914042014-08-20 15:08:53 +030015int sata_port_status(int dev, int port);
Dave Liuf17c9632008-03-27 18:51:17 +080016
Pavel Herrmann9e9f6282012-09-27 23:18:04 +000017extern block_dev_desc_t sata_dev_desc[];
18
Dave Liuf17c9632008-03-27 18:51:17 +080019#endif