sata.h 504 Bytes
Newer Older
Dave Liu's avatar
Dave Liu committed
1 2
#ifndef __SATA_H__
#define __SATA_H__
3
#include <part.h>
Dave Liu's avatar
Dave Liu committed
4

5
#if !defined(CONFIG_DM_SCSI)
6
int init_sata(int dev);
7
int reset_sata(int dev);
8
int scan_sata(int dev);
9 10
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);
11 12

int sata_initialize(void);
13
int __sata_initialize(void);
14 15
int sata_stop(void);
int __sata_stop(void);
16
int sata_port_status(int dev, int port);
Dave Liu's avatar
Dave Liu committed
17

18
extern struct blk_desc sata_dev_desc[];
19
#endif
20

Dave Liu's avatar
Dave Liu committed
21
#endif