mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
This was a missing file that was needed for the build.
This commit is contained in:
parent
25f2e09781
commit
2d10d6bb26
1 changed files with 20 additions and 0 deletions
20
src/include/ide.h
Normal file
20
src/include/ide.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
#ifndef IDE_H
|
||||
#define IDE_H
|
||||
|
||||
/* read a sector or a partial sector */
|
||||
extern int ide_read_sector(int drive, void * buffer, unsigned int block, int byte_offset,
|
||||
int n_bytes);
|
||||
extern int ide_init(void);
|
||||
|
||||
#define DRIVE_ABSENT 0
|
||||
#if 1
|
||||
#define DRIVE_PRESENT 1
|
||||
#else
|
||||
#define DRIVE_ATA 1
|
||||
#define DRIVE_ATAPI 2
|
||||
#endif
|
||||
#define DRIVE_SHIFT 16
|
||||
extern unsigned ide_probe(unsigned base, unsigned basedrive);
|
||||
extern unsigned ide_spinup(unsigned base, unsigned basedrive);
|
||||
|
||||
#endif /* IDE_H */
|
Loading…
Add table
Reference in a new issue