From cea92984910d84ab1f07dc37e32616b2e1f4aee4 Mon Sep 17 00:00:00 2001 From: anabate123 <62159176+anabate123@users.noreply.github.com> Date: Wed, 10 Jun 2020 18:43:21 -0400 Subject: [PATCH] Update m_at_socket4_5.c I want to see if I can add the Gateway 2000 OEM-based Zappa ROM --- src/machine/m_at_socket4_5.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/src/machine/m_at_socket4_5.c b/src/machine/m_at_socket4_5.c index 0567a5d1a..685fa4572 100644 --- a/src/machine/m_at_socket4_5.c +++ b/src/machine/m_at_socket4_5.c @@ -342,6 +342,35 @@ machine_at_zappa_init(const machine_t *model) } +int +machine_at_gw2kzp_init(const machine_t *model) +{ + int ret; + + ret = bios_load_linear_combined(L"roms/machines/gw2k_zp/1011bs0t.bio", + L"roms/machines/gw2k_zp/1011bs0t.bi1", 0x20000, 128); + + if (bios_only || !ret) + return ret; + + machine_at_common_init(model); + + pci_init(PCI_CONFIG_TYPE_1); + pci_register_slot(0x00, PCI_CARD_NORTHBRIDGE, 0, 0, 0, 0); + pci_register_slot(0x0D, PCI_CARD_NORMAL, 1, 2, 3, 4); + pci_register_slot(0x0E, PCI_CARD_NORMAL, 3, 4, 1, 2); + pci_register_slot(0x0F, PCI_CARD_NORMAL, 2, 3, 4, 1); + pci_register_slot(0x07, PCI_CARD_SOUTHBRIDGE, 0, 0, 0, 0); + device_add(&keyboard_ps2_intel_ami_pci_device); + device_add(&i430fx_device); + device_add(&piix_device); + device_add(&pc87306_device); + device_add(&intel_flash_bxt_ami_device); + + return ret; +} + + int machine_at_mb500n_init(const machine_t *model) {