Removed the file pointer from the hdd_t struct;
Partially split off the Logitech Serial Mouse emulation from Microsoft Serial Mouse; Slightly reworked serial port emulation (the two UART's are now device_t's, non-FIFO mode implemented and is now default, FIFO mode reimplemented from scratch so it's now actually correct); Added the emulation of the SiS 85c497 chip to the SiS 85c496/497 chipset; Bugfixes to the emulated Super I/O chips and made them all device_t's now.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
* Handling of the emulated machines.
|
||||
*
|
||||
* Version: @(#)machine.c 1.0.35 2018/10/22
|
||||
* Version: @(#)machine.c 1.0.36 2018/11/05
|
||||
*
|
||||
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
||||
* Miran Grca, <mgrca8@gmail.com>
|
||||
@@ -42,6 +42,8 @@ int machine;
|
||||
int AT, PCI;
|
||||
int romset;
|
||||
|
||||
static serial_t *uart[2];
|
||||
|
||||
|
||||
#ifdef ENABLE_MACHINE_LOG
|
||||
int machine_do_log = ENABLE_MACHINE_LOG;
|
||||
@@ -90,6 +92,12 @@ machine_init(void)
|
||||
/* All good, boot the machine! */
|
||||
machines[machine].init(&machines[machine]);
|
||||
|
||||
/* For non-PCI machines, add two regular 8250 UART's. */
|
||||
if (!PCI) {
|
||||
uart[0] = device_add_inst(&i8250_device, 1);
|
||||
uart[1] = device_add_inst(&i8250_device, 2);
|
||||
}
|
||||
|
||||
/* If it's a PCI or MCA machine, reset the video card
|
||||
after initializing the machine, so the slots work correctly. */
|
||||
if (PCI || MCA)
|
||||
@@ -97,6 +105,13 @@ machine_init(void)
|
||||
}
|
||||
|
||||
|
||||
serial_t *
|
||||
machine_get_serial(int port)
|
||||
{
|
||||
return uart[port];
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
machine_common_init(const machine_t *model)
|
||||
{
|
||||
@@ -113,10 +128,4 @@ machine_common_init(const machine_t *model)
|
||||
|
||||
if (lpt_enabled)
|
||||
lpt_init();
|
||||
|
||||
if (serial_enabled[0])
|
||||
serial_setup(1, SERIAL1_ADDR, SERIAL1_IRQ);
|
||||
|
||||
if (serial_enabled[1])
|
||||
serial_setup(2, SERIAL2_ADDR, SERIAL2_IRQ);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user