mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-27 15:12:21 +00:00
dc383dd583
Define the new common function sata_port_status() which can be used to query the sata driver for the state of ports, and implement it for dwc_ahsata. Cc: Stefano Babic <sbabic@denx.de> Cc: Tom Rini <trini@ti.com> Cc: Marek Vasut <marex@denx.de> Reviewed-by: Marek Vasut <marex@denx.de> Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
16 lines
400 B
C
16 lines
400 B
C
#ifndef __SATA_H__
|
|
#define __SATA_H__
|
|
#include <part.h>
|
|
|
|
int init_sata(int dev);
|
|
int scan_sata(int dev);
|
|
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);
|
|
|
|
int sata_initialize(void);
|
|
int __sata_initialize(void);
|
|
int sata_port_status(int dev, int port);
|
|
|
|
extern block_dev_desc_t sata_dev_desc[];
|
|
|
|
#endif
|