]>
Commit | Line | Data |
---|---|---|
f297b7a1 DL |
1 | #ifndef __SATA_H__ |
2 | #define __SATA_H__ | |
e46a4350 | 3 | #include <part.h> |
f297b7a1 | 4 | |
f19f1ecb | 5 | #if !defined(CONFIG_DM_SCSI) && !defined(CONFIG_AHCI) |
c7057b52 | 6 | int init_sata(int dev); |
10ee8eca | 7 | int reset_sata(int dev); |
c7057b52 | 8 | int scan_sata(int dev); |
e46a4350 PH |
9 | ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer); |
10 | ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer); | |
c7057b52 DL |
11 | |
12 | int sata_initialize(void); | |
cf7e399f | 13 | int __sata_initialize(void); |
d957c28a NK |
14 | int sata_stop(void); |
15 | int __sata_stop(void); | |
dc383dd5 | 16 | int sata_port_status(int dev, int port); |
f297b7a1 | 17 | |
4101f687 | 18 | extern struct blk_desc sata_dev_desc[]; |
e8a016b5 | 19 | #endif |
e46a4350 | 20 | |
f19f1ecb SG |
21 | int sata_probe(int devnum); |
22 | int sata_remove(int devnum); | |
23 | ||
f297b7a1 | 24 | #endif |