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
|
|
|
|
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[];
|
2012-09-27 23:18:04 +00:00
|
|
|
|
2008-03-27 10:51:17 +00:00
|
|
|
#endif
|