blob: 04600f57e000982c3abfc3dbe43971af6534f871 [file] [log] [blame]
// Definitions for X86 bios disks.
//
// Copyright (C) 2008 Kevin O'Connor <kevin@koconnor.net>
//
// This file may be distributed under the terms of the GNU GPLv3 license.
#include "ioport.h" // outb
#define DISK_RET_SUCCESS 0x00
#define DISK_RET_EPARAM 0x01
#define DISK_RET_ECHANGED 0x06
#define DISK_RET_EBOUNDARY 0x09
#define DISK_RET_ECONTROLLER 0x20
#define DISK_RET_ETIMEOUT 0x80
#define DISK_RET_EMEDIA 0xC0
// floppy.c
struct bregs;
void floppy_13(struct bregs *regs, u8 drive);
void floppy_tick();