blob: 38f4b4acf6ca4e6f0e4804778674c39c42ac5c65 [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);
6int scan_sata(int dev);
Pavel Herrmann9e9f6282012-09-27 23:18:04 +00007ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer);
8ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer);
Dave Liu76596ba2008-03-26 22:49:44 +08009
10int sata_initialize(void);
Mike Frysingere66dc082009-01-27 16:12:21 -050011int __sata_initialize(void);
Nikita Kiryanov66914042014-08-20 15:08:53 +030012int sata_port_status(int dev, int port);
Dave Liuf17c9632008-03-27 18:51:17 +080013
Pavel Herrmann9e9f6282012-09-27 23:18:04 +000014extern block_dev_desc_t sata_dev_desc[];
15
Dave Liuf17c9632008-03-27 18:51:17 +080016#endif