aboutsummaryrefslogtreecommitdiffstats
path: root/src/cdrom.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2013-09-14 23:57:26 -0400
committerKevin O'Connor <kevin@koconnor.net>2013-09-18 20:48:34 -0400
commit135f3f676de1416f0cd0fa7f0c886cf1b72222cb (patch)
tree805d962c2b66daffcb30b0816cce8faf67e8a809 /src/cdrom.c
parentb18557ab09a60476b4269c3a473d8aebeaaa002f (diff)
downloadseabios-135f3f676de1416f0cd0fa7f0c886cf1b72222cb.tar.gz
Split disk.h into block.h and std/disk.h.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/cdrom.c')
-rw-r--r--src/cdrom.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/src/cdrom.c b/src/cdrom.c
index c499cf9a..827ffdbc 100644
--- a/src/cdrom.c
+++ b/src/cdrom.c
@@ -6,13 +6,15 @@
// This file may be distributed under the terms of the GNU LGPLv3 license.
#include "biosvar.h" // GET_GLOBAL
+#include "block.h" // struct drive_s
#include "bregs.h" // struct bregs
-#include "disk.h" // cdrom_13
#include "hw/ata.h" // ATA_CMD_REQUEST_SENSE
#include "hw/blockcmd.h" // CDB_CMD_REQUEST_SENSE
#include "malloc.h" // free
#include "output.h" // dprintf
+#include "std/disk.h" // DISK_RET_SUCCESS
#include "string.h" // memset
+#include "util.h" // cdrom_prepboot
// Locks for removable devices
u8 CDRom_locks[BUILD_MAX_EXTDRIVE] VARLOW;
@@ -131,21 +133,6 @@ cdrom_prepboot(void)
drive_g->sectors = (u64)-1;
}
-struct eltorito_s {
- u8 size;
- u8 media;
- u8 emulated_drive;
- u8 controller_index;
- u32 ilba;
- u16 device_spec;
- u16 buffer_segment;
- u16 load_segment;
- u16 sector_count;
- u8 cylinders;
- u8 sectors;
- u8 heads;
-};
-
#define SET_INT13ET(regs,var,val) \
SET_FARVAR((regs)->ds, ((struct eltorito_s*)((regs)->si+0))->var, (val))