Dave Liu | f17c963 | 2008-03-27 18:51:17 +0800 | [diff] [blame] | 1 | #ifndef __SATA_H__ |
| 2 | #define __SATA_H__ |
Pavel Herrmann | 9e9f628 | 2012-09-27 23:18:04 +0000 | [diff] [blame] | 3 | #include <part.h> |
Dave Liu | f17c963 | 2008-03-27 18:51:17 +0800 | [diff] [blame] | 4 | |
Dave Liu | 76596ba | 2008-03-26 22:49:44 +0800 | [diff] [blame] | 5 | int init_sata(int dev); |
| 6 | int scan_sata(int dev); |
Pavel Herrmann | 9e9f628 | 2012-09-27 23:18:04 +0000 | [diff] [blame] | 7 | ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer); |
| 8 | ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer); |
Dave Liu | 76596ba | 2008-03-26 22:49:44 +0800 | [diff] [blame] | 9 | |
| 10 | int sata_initialize(void); |
Mike Frysinger | e66dc08 | 2009-01-27 16:12:21 -0500 | [diff] [blame] | 11 | int __sata_initialize(void); |
Dave Liu | f17c963 | 2008-03-27 18:51:17 +0800 | [diff] [blame] | 12 | |
Pavel Herrmann | 9e9f628 | 2012-09-27 23:18:04 +0000 | [diff] [blame] | 13 | extern block_dev_desc_t sata_dev_desc[]; |
| 14 | |
Dave Liu | f17c963 | 2008-03-27 18:51:17 +0800 | [diff] [blame] | 15 | #endif |