xref: /openbmc/u-boot/include/sata.h (revision 730d2544)
1 #ifndef __SATA_H__
2 #define __SATA_H__
3 #include <part.h>
4 
5 int init_sata(int dev);
6 int reset_sata(int dev);
7 int scan_sata(int dev);
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);
10 
11 int sata_initialize(void);
12 int __sata_initialize(void);
13 int sata_stop(void);
14 int __sata_stop(void);
15 int sata_port_status(int dev, int port);
16 
17 extern struct blk_desc sata_dev_desc[];
18 
19 #endif
20