xref: /openbmc/u-boot/include/sata.h (revision 87a62bce)
1 #ifndef __SATA_H__
2 #define __SATA_H__
3 #include <part.h>
4 
5 #if !defined(CONFIG_DM_SCSI) && !defined(CONFIG_AHCI)
6 int init_sata(int dev);
7 int reset_sata(int dev);
8 int scan_sata(int dev);
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);
11 
12 int sata_initialize(void);
13 int __sata_initialize(void);
14 int sata_stop(void);
15 int __sata_stop(void);
16 int sata_port_status(int dev, int port);
17 
18 extern struct blk_desc sata_dev_desc[];
19 #endif
20 
21 int sata_probe(int devnum);
22 int sata_remove(int devnum);
23 
24 #endif
25