Moved the IBM PS/1 Model 2133 out of dev branch.

Added the VLSI VL82c480 chipset and the unknown sio that the PS/1 2133 EMEA 451 uses.
Added on-board Cirrus GD5426 video card
This commit is contained in:
TC1995
2020-06-25 22:43:20 +02:00
parent 1ae91c6eff
commit dd0180afcb
10 changed files with 378 additions and 21 deletions

View File

@@ -48,6 +48,8 @@
#include <86box/nmi.h>
#include <86box/rom.h>
#include <86box/device.h>
#include <86box/chipset.h>
#include <86box/sio.h>
#include <86box/nvr.h>
#include <86box/gameport.h>
#include <86box/lpt.h>
@@ -490,14 +492,6 @@ ps1_setup(int model)
device_add(&snd_device);
}
#if defined(DEV_BRANCH) && defined(USE_PS1M2133)
if (model == 2133) {
device_add(&fdc_at_device);
device_add(&ide_isa_device);
}
#endif
/* Enable the PS/1 VGA controller. */
if (model == 2011)
device_add(&ps1vga_device);
@@ -505,7 +499,6 @@ ps1_setup(int model)
device_add(&ibm_ps1_2121_device);
}
static void
ps1_common_init(const machine_t *model)
{
@@ -565,8 +558,6 @@ machine_ps1_m2121_init(const machine_t *model)
return ret;
}
#if defined(DEV_BRANCH) && defined(USE_PS1M2133)
int
machine_ps1_m2133_init(const machine_t *model)
{
@@ -578,12 +569,24 @@ machine_ps1_m2133_init(const machine_t *model)
if (bios_only || !ret)
return ret;
ps1_common_init(model);
machine_at_common_init(model);
ps1_setup(2133);
if (gfxcard == VID_INTERNAL)
device_add(&gd5426_onboard_device);
device_add(&vl82c480_device);
device_add(&keyboard_at_device);
device_add(&fdc_at_device);
device_add(&ide_isa_device);
nmi_mask = 0x80;
return ret;
}
#endif
const device_t *
ps1_m2133_get_device(void)
{
return &gd5426_onboard_device;
}