1f297b7a1SDave Liu #ifndef __SATA_H__ 2f297b7a1SDave Liu #define __SATA_H__ 3e46a4350SPavel Herrmann #include <part.h> 4f297b7a1SDave Liu 5*f19f1ecbSSimon Glass #if !defined(CONFIG_DM_SCSI) && !defined(CONFIG_AHCI) 6c7057b52SDave Liu int init_sata(int dev); 710ee8ecaSNikita Kiryanov int reset_sata(int dev); 8c7057b52SDave Liu int scan_sata(int dev); 9e46a4350SPavel Herrmann ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer); 10e46a4350SPavel Herrmann ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer); 11c7057b52SDave Liu 12c7057b52SDave Liu int sata_initialize(void); 13cf7e399fSMike Frysinger int __sata_initialize(void); 14d957c28aSNikita Kiryanov int sata_stop(void); 15d957c28aSNikita Kiryanov int __sata_stop(void); 16dc383dd5SNikita Kiryanov int sata_port_status(int dev, int port); 17f297b7a1SDave Liu 184101f687SSimon Glass extern struct blk_desc sata_dev_desc[]; 19e8a016b5SMichal Simek #endif 20e46a4350SPavel Herrmann 21*f19f1ecbSSimon Glass int sata_probe(int devnum); 22*f19f1ecbSSimon Glass int sata_remove(int devnum); 23*f19f1ecbSSimon Glass 24f297b7a1SDave Liu #endif 25