Dave Liu | f297b7a | 2008-03-27 18:51:17 +0800 | [diff] [blame] | 1 | #ifndef __SATA_H__ |
| 2 | #define __SATA_H__ |
Pavel Herrmann | e46a435 | 2012-09-27 23:18:04 +0000 | [diff] [blame] | 3 | #include <part.h> |
Dave Liu | f297b7a | 2008-03-27 18:51:17 +0800 | [diff] [blame] | 4 | |
Dave Liu | c7057b5 | 2008-03-26 22:49:44 +0800 | [diff] [blame] | 5 | int init_sata(int dev); |
Nikita Kiryanov | 10ee8ec | 2014-11-21 12:47:23 +0200 | [diff] [blame] | 6 | int reset_sata(int dev); |
Dave Liu | c7057b5 | 2008-03-26 22:49:44 +0800 | [diff] [blame] | 7 | int scan_sata(int dev); |
Pavel Herrmann | e46a435 | 2012-09-27 23:18:04 +0000 | [diff] [blame] | 8 | ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer); |
| 9 | ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer); |
Dave Liu | c7057b5 | 2008-03-26 22:49:44 +0800 | [diff] [blame] | 10 | |
| 11 | int sata_initialize(void); |
Mike Frysinger | cf7e399 | 2009-01-27 16:12:21 -0500 | [diff] [blame] | 12 | int __sata_initialize(void); |
Nikita Kiryanov | d957c28 | 2014-11-21 12:47:24 +0200 | [diff] [blame] | 13 | int sata_stop(void); |
| 14 | int __sata_stop(void); |
Nikita Kiryanov | dc383dd | 2014-08-20 15:08:53 +0300 | [diff] [blame] | 15 | int sata_port_status(int dev, int port); |
Dave Liu | f297b7a | 2008-03-27 18:51:17 +0800 | [diff] [blame] | 16 | |
Pavel Herrmann | e46a435 | 2012-09-27 23:18:04 +0000 | [diff] [blame] | 17 | extern block_dev_desc_t sata_dev_desc[]; |
| 18 | |
Dave Liu | f297b7a | 2008-03-27 18:51:17 +0800 | [diff] [blame] | 19 | #endif |