mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-30 00:21:06 +00:00
d957c28a7e
Implement sata stop command. This introduces the __sata_stop() weak function, which mirrors the weak __sata_initialize() function, giving users the option of undoing the custom steps performed in overrides of sata_initialize(). Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Cc: Marek Vasut <marex@denx.de> Cc: Tom Rini <trini@ti.com>
19 lines
469 B
C
19 lines
469 B
C
#ifndef __SATA_H__
|
|
#define __SATA_H__
|
|
#include <part.h>
|
|
|
|
int init_sata(int dev);
|
|
int reset_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_stop(void);
|
|
int __sata_stop(void);
|
|
int sata_port_status(int dev, int port);
|
|
|
|
extern block_dev_desc_t sata_dev_desc[];
|
|
|
|
#endif
|