blob: c2bbe1a9936db68967348dfd43be91c09dc7a004 [file] [log] [blame]
Dave Liuf297b7a2008-03-27 18:51:17 +08001#ifndef __SATA_H__
2#define __SATA_H__
Pavel Herrmanne46a4352012-09-27 23:18:04 +00003#include <part.h>
Dave Liuf297b7a2008-03-27 18:51:17 +08004
Dave Liuc7057b52008-03-26 22:49:44 +08005int init_sata(int dev);
Nikita Kiryanov10ee8ec2014-11-21 12:47:23 +02006int reset_sata(int dev);
Dave Liuc7057b52008-03-26 22:49:44 +08007int scan_sata(int dev);
Pavel Herrmanne46a4352012-09-27 23:18:04 +00008ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer);
9ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer);
Dave Liuc7057b52008-03-26 22:49:44 +080010
11int sata_initialize(void);
Mike Frysingercf7e3992009-01-27 16:12:21 -050012int __sata_initialize(void);
Nikita Kiryanovdc383dd2014-08-20 15:08:53 +030013int sata_port_status(int dev, int port);
Dave Liuf297b7a2008-03-27 18:51:17 +080014
Pavel Herrmanne46a4352012-09-27 23:18:04 +000015extern block_dev_desc_t sata_dev_desc[];
16
Dave Liuf297b7a2008-03-27 18:51:17 +080017#endif