From 2d10d6bb26cf8e312219824e0168d9cc9e9717c4 Mon Sep 17 00:00:00 2001 From: Tom Zimmerman Date: Fri, 3 Oct 2003 16:56:53 +0000 Subject: [PATCH] This was a missing file that was needed for the build. --- src/include/ide.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/include/ide.h diff --git a/src/include/ide.h b/src/include/ide.h new file mode 100644 index 0000000000..a7a378a6db --- /dev/null +++ b/src/include/ide.h @@ -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 */