mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-11 13:56:30 +00:00
cf7e399fb3
Rather than have the board code initialize SATA automatically during boot, make the user manually run "sata init". This brings the SATA subsystem in line with common U-Boot policy. Rather than having a dedicated weak function "is_sata_supported", people can override sata_initialize() to do their weird board stuff. Then they can call the actual __sata_initialize(). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 lines
293 B
C
12 lines
293 B
C
#ifndef __SATA_H__
|
|
#define __SATA_H__
|
|
|
|
int init_sata(int dev);
|
|
int scan_sata(int dev);
|
|
ulong sata_read(int dev, ulong blknr, ulong blkcnt, void *buffer);
|
|
ulong sata_write(int dev, ulong blknr, ulong blkcnt, const void *buffer);
|
|
|
|
int sata_initialize(void);
|
|
int __sata_initialize(void);
|
|
|
|
#endif
|