Extensively cleaned up and changed the CD-ROM code; Removed CD-ROM IOCTTL (it was causing performance and stability issues); Turned a lot of things into device_t's; Added the PS/1 Model 2011 XTA and standalone XTA hard disk controllers, ported from Varcem; Numerous FDC fixes for the PS/1 Model 2121; NVR changes ported from Varcem; The PCap code no longer requires libpcap to be compiled; Numerous fixes to various SCSI controllers; Updated NukedOPL to 1.8; Fixes to OpenAL initialization and closing, should give less Audio issues now; Revorked parts of the common (S)VGA code (also based on code from QEMU); Removed the Removable SCSI hard disks (they were a never finished experiment so there was no need to keep them there); Cleaned up the SCSI hard disk and Iomega ZIP code (but more cleanups of that are coming in the future); In some occasions (IDE hard disks in multiple sector mode and SCSI hard disks) the status bar icon is no longer updated, should improve performance a bit; Redid the way the tertiary and quaternary IDE controllers are configured (and they are now device_t's); Extensively reworked the IDE code and fixed quite a few bugs; Fixes to XT MFM, AT MFM, and AT ESDI code; Some changes to XTIDE and MCA ESDI code; Some fixes to the CD-ROM image handler.
110 lines
1.7 KiB
C
110 lines
1.7 KiB
C
#include <stdio.h>
|
|
#include <stdint.h>
|
|
#include <string.h>
|
|
#include <wchar.h>
|
|
#include "../86box.h"
|
|
#include "../pic.h"
|
|
#include "../pit.h"
|
|
#include "../dma.h"
|
|
#include "../mem.h"
|
|
#include "../device.h"
|
|
#include "../floppy/fdd.h"
|
|
#include "../floppy/fdc.h"
|
|
#include "../nvr.h"
|
|
#include "../game/gameport.h"
|
|
#include "../keyboard.h"
|
|
#include "../lpt.h"
|
|
#include "../disk/hdc.h"
|
|
#include "machine.h"
|
|
|
|
|
|
void
|
|
machine_at_common_init(const machine_t *model)
|
|
{
|
|
machine_common_init(model);
|
|
|
|
pit_set_out_func(&pit, 1, pit_refresh_timer_at);
|
|
pic2_init();
|
|
dma16_init();
|
|
|
|
if (lpt_enabled)
|
|
lpt2_remove();
|
|
|
|
device_add(&at_nvr_device);
|
|
|
|
if (joystick_type != 7)
|
|
device_add(&gameport_device);
|
|
}
|
|
|
|
|
|
void
|
|
machine_at_init(const machine_t *model)
|
|
{
|
|
machine_at_common_init(model);
|
|
|
|
device_add(&keyboard_at_device);
|
|
}
|
|
|
|
|
|
void
|
|
machine_at_ps2_init(const machine_t *model)
|
|
{
|
|
machine_at_common_init(model);
|
|
|
|
device_add(&keyboard_ps2_device);
|
|
}
|
|
|
|
|
|
void
|
|
machine_at_common_ide_init(const machine_t *model)
|
|
{
|
|
machine_at_common_init(model);
|
|
|
|
device_add(&ide_isa_2ch_opt_device);
|
|
}
|
|
|
|
|
|
void
|
|
machine_at_ide_init(const machine_t *model)
|
|
{
|
|
machine_at_init(model);
|
|
|
|
device_add(&ide_isa_2ch_opt_device);
|
|
}
|
|
|
|
|
|
void
|
|
machine_at_ps2_ide_init(const machine_t *model)
|
|
{
|
|
machine_at_ps2_init(model);
|
|
|
|
device_add(&ide_isa_2ch_opt_device);
|
|
}
|
|
|
|
|
|
void
|
|
machine_at_top_remap_init(const machine_t *model)
|
|
{
|
|
machine_at_init(model);
|
|
|
|
mem_remap_top_384k();
|
|
}
|
|
|
|
|
|
void
|
|
machine_at_ide_top_remap_init(const machine_t *model)
|
|
{
|
|
machine_at_ide_init(model);
|
|
|
|
mem_remap_top_384k();
|
|
}
|
|
|
|
|
|
void
|
|
machine_at_ibm_init(const machine_t *model)
|
|
{
|
|
machine_at_top_remap_init(model);
|
|
|
|
device_add(&fdc_at_device);
|
|
}
|