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);
|
|
|
|
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-08-20 12:08:53 +00:00
|
|
|
int sata_port_status(int dev, int port);
|
2008-03-27 10:51:17 +00:00
|
|
|
|
2012-09-27 23:18:04 +00:00
|
|
|
extern block_dev_desc_t sata_dev_desc[];
|
|
|
|
|
2008-03-27 10:51:17 +00:00
|
|
|
#endif
|