Kevin O'Connor | f076a3e | 2008-02-25 22:25:15 -0500 | [diff] [blame] | 1 | // Definitions for X86 bios disks. |
| 2 | // |
| 3 | // Copyright (C) 2008 Kevin O'Connor <kevin@koconnor.net> |
| 4 | // |
| 5 | // This file may be distributed under the terms of the GNU GPLv3 license. |
Kevin O'Connor | 786502d | 2008-02-27 10:41:41 -0500 | [diff] [blame^] | 6 | #ifndef __DISK_H |
| 7 | #define __DISK_H |
Kevin O'Connor | f076a3e | 2008-02-25 22:25:15 -0500 | [diff] [blame] | 8 | |
| 9 | #include "ioport.h" // outb |
Kevin O'Connor | 786502d | 2008-02-27 10:41:41 -0500 | [diff] [blame^] | 10 | #include "biosvar.h" // struct bregs |
Kevin O'Connor | f076a3e | 2008-02-25 22:25:15 -0500 | [diff] [blame] | 11 | |
| 12 | #define DISK_RET_SUCCESS 0x00 |
| 13 | #define DISK_RET_EPARAM 0x01 |
| 14 | #define DISK_RET_ECHANGED 0x06 |
| 15 | #define DISK_RET_EBOUNDARY 0x09 |
| 16 | #define DISK_RET_ECONTROLLER 0x20 |
| 17 | #define DISK_RET_ETIMEOUT 0x80 |
| 18 | #define DISK_RET_EMEDIA 0xC0 |
| 19 | |
Kevin O'Connor | f076a3e | 2008-02-25 22:25:15 -0500 | [diff] [blame] | 20 | // floppy.c |
Kevin O'Connor | f076a3e | 2008-02-25 22:25:15 -0500 | [diff] [blame] | 21 | void floppy_13(struct bregs *regs, u8 drive); |
| 22 | void floppy_tick(); |
Kevin O'Connor | 786502d | 2008-02-27 10:41:41 -0500 | [diff] [blame^] | 23 | |
| 24 | #endif // disk.h |