2008-03-27 10:51:17 +00:00
|
|
|
#ifndef __SATA_H__
|
|
|
|
#define __SATA_H__
|
2012-09-27 23:18:04 +00:00
|
|
|
#include <part.h>
|
2008-03-27 10:51:17 +00:00
|
|
|
|
2017-07-29 17:35:13 +00:00
|
|
|
#if !defined(CONFIG_DM_SCSI) && !defined(CONFIG_AHCI)
|
2008-03-26 14:49:44 +00:00
|
|
|
int init_sata(int dev);
|
2014-11-21 10:47:23 +00:00
|
|
|
int reset_sata(int dev);
|
2008-03-26 14:49:44 +00:00
|
|
|
int scan_sata(int dev);
|
2012-09-27 23:18:04 +00:00
|
|
|
ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer);
|
|
|
|
ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer);
|
2008-03-26 14:49:44 +00:00
|
|
|
|
|
|
|
int sata_initialize(void);
|
2009-01-27 21:12:21 +00:00
|
|
|
int __sata_initialize(void);
|
2014-11-21 10:47:24 +00:00
|
|
|
int sata_stop(void);
|
|
|
|
int __sata_stop(void);
|
2014-08-20 12:08:53 +00:00
|
|
|
int sata_port_status(int dev, int port);
|
2008-03-27 10:51:17 +00:00
|
|
|
|
2016-02-29 22:25:34 +00:00
|
|
|
extern struct blk_desc sata_dev_desc[];
|
2016-09-08 13:06:45 +00:00
|
|
|
#endif
|
2012-09-27 23:18:04 +00:00
|
|
|
|
2017-07-29 17:35:13 +00:00
|
|
|
int sata_probe(int devnum);
|
|
|
|
int sata_remove(int devnum);
|
|
|
|
|
2008-03-27 10:51:17 +00:00
|
|
|
#endif
|