mirror of
				https://source.denx.de/u-boot/u-boot.git
				synced 2025-11-04 02:11:25 +01:00 
			
		
		
		
	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
 |