From 7a5ea200bb6545f72ff12e5912e561c9e4dd45d6 Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 25 Oct 2022 02:38:06 +0200 Subject: [PATCH] Made the QDI FMB's PIIX no longer use MIRQ for the secondary IDE controller, makes the secondary IDE controller work. --- src/chipset/intel_piix.c | 14 ++++++++++++++ src/include/86box/chipset.h | 1 + src/machine/m_at_socket7_3v.c | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/chipset/intel_piix.c b/src/chipset/intel_piix.c index 8670de9e0..7347be38e 100644 --- a/src/chipset/intel_piix.c +++ b/src/chipset/intel_piix.c @@ -1697,6 +1697,20 @@ const device_t piix_device = { .config = NULL }; +const device_t piix_no_mirq_device = { + .name = "Intel 82371FB (PIIX) (No MIRQ)", + .internal_name = "piix_no_mirq", + .flags = DEVICE_PCI, + .local = 0x122e1101, + .init = piix_init, + .close = piix_close, + .reset = piix_reset, + { .available = NULL }, + .speed_changed = piix_speed_changed, + .force_redraw = NULL, + .config = NULL +}; + const device_t piix_rev02_device = { .name = "Intel 82371FB (PIIX) (Faulty BusMastering!!)", .internal_name = "piix_rev02", diff --git a/src/include/86box/chipset.h b/src/include/86box/chipset.h index f7ae00f87..6cd49b2f1 100644 --- a/src/include/86box/chipset.h +++ b/src/include/86box/chipset.h @@ -91,6 +91,7 @@ extern const device_t sio_device; extern const device_t sio_zb_device; extern const device_t piix_device; +extern const device_t piix_no_mirq_device; extern const device_t piix_old_device; extern const device_t piix_rev02_device; extern const device_t piix3_device; diff --git a/src/machine/m_at_socket7_3v.c b/src/machine/m_at_socket7_3v.c index 8983b7c43..3a7505a38 100644 --- a/src/machine/m_at_socket7_3v.c +++ b/src/machine/m_at_socket7_3v.c @@ -287,7 +287,7 @@ machine_at_fmb_init(const machine_t *model) pci_register_slot(0x11, PCI_CARD_NORMAL, 4, 3, 2, 1); device_add(&i430fx_device); - device_add(&piix_device); + device_add(&piix_no_mirq_device); device_add(&keyboard_at_ami_device); device_add(&w83787f_device); device_add(&intel_flash_bxt_device);