diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2013-09-14 23:57:26 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2013-09-18 20:48:34 -0400 |
commit | 135f3f676de1416f0cd0fa7f0c886cf1b72222cb (patch) | |
tree | 805d962c2b66daffcb30b0816cce8faf67e8a809 /src/disk.c | |
parent | b18557ab09a60476b4269c3a473d8aebeaaa002f (diff) | |
download | qemu-seabios-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/disk.c')
-rw-r--r-- | src/disk.c | 28 |
1 files changed, 2 insertions, 26 deletions
@@ -8,44 +8,20 @@ #include "biosvar.h" // SET_BDA #include "bregs.h" // struct bregs #include "config.h" // CONFIG_* -#include "disk.h" // floppy_13 #include "hw/ata.h" // ATA_CB_DC #include "hw/pci.h" // pci_bdf_to_bus #include "hw/pic.h" // pic_eoi2 #include "output.h" // debug_enter #include "stacks.h" // call16_int +#include "std/disk.h" // DISK_RET_SUCCESS #include "string.h" // memset +#include "util.h" // CDRom_locks /**************************************************************** * Helper functions ****************************************************************/ -void -__disk_ret(struct bregs *regs, u32 linecode, const char *fname) -{ - u8 code = linecode; - if (regs->dl < EXTSTART_HD) - SET_BDA(floppy_last_status, code); - else - SET_BDA(disk_last_status, code); - if (code) - __set_code_invalid(regs, linecode, fname); - else - set_code_success(regs); -} - -void -__disk_ret_unimplemented(struct bregs *regs, u32 linecode, const char *fname) -{ - u8 code = linecode; - if (regs->dl < EXTSTART_HD) - SET_BDA(floppy_last_status, code); - else - SET_BDA(disk_last_status, code); - __set_code_unimplemented(regs, linecode, fname); -} - static void __disk_stub(struct bregs *regs, int lineno, const char *fname) { |