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