mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-17 23:48:52 +09:00
![Mike Frysinger](/assets/img/avatar_default.png)
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>
13 lines
293 B
C
13 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
|