2021-07-04 17:40:39 +02:00
|
|
|
/*
|
2022-11-13 16:37:58 -05:00
|
|
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
|
|
|
|
* running old operating systems and software designed for IBM
|
|
|
|
|
* PC systems and compatibles from 1981 through fairly recent
|
|
|
|
|
* system designs based on the PCI bus.
|
2021-07-04 17:40:39 +02:00
|
|
|
*
|
2022-11-13 16:37:58 -05:00
|
|
|
* This file is part of the 86Box distribution.
|
2021-07-04 17:40:39 +02:00
|
|
|
*
|
2022-11-13 16:37:58 -05:00
|
|
|
* Implementation of Socket 5 machines.
|
2021-07-04 17:40:39 +02:00
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*
|
2023-08-14 21:51:47 +02:00
|
|
|
* Authors: Miran Grca, <mgrca8@gmail.com>
|
2021-07-04 17:40:39 +02:00
|
|
|
*
|
2022-11-13 16:37:58 -05:00
|
|
|
* Copyright 2016-2019 Miran Grca.
|
2021-07-04 17:40:39 +02:00
|
|
|
*/
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
#include <string.h>
|
|
|
|
|
#include <wchar.h>
|
|
|
|
|
#include <86box/86box.h>
|
|
|
|
|
#include <86box/mem.h>
|
|
|
|
|
#include <86box/io.h>
|
|
|
|
|
#include <86box/rom.h>
|
|
|
|
|
#include <86box/pci.h>
|
|
|
|
|
#include <86box/device.h>
|
|
|
|
|
#include <86box/chipset.h>
|
|
|
|
|
#include <86box/fdc_ext.h>
|
|
|
|
|
#include <86box/hdc.h>
|
|
|
|
|
#include <86box/hdc_ide.h>
|
2025-03-06 19:26:11 +06:00
|
|
|
#include "cpu.h"
|
2021-07-04 17:40:39 +02:00
|
|
|
#include <86box/timer.h>
|
|
|
|
|
#include <86box/fdd.h>
|
|
|
|
|
#include <86box/fdc.h>
|
|
|
|
|
#include <86box/keyboard.h>
|
|
|
|
|
#include <86box/flash.h>
|
|
|
|
|
#include <86box/nvr.h>
|
|
|
|
|
#include <86box/scsi_ncr53c8xx.h>
|
|
|
|
|
#include <86box/sio.h>
|
|
|
|
|
#include <86box/video.h>
|
|
|
|
|
#include <86box/machine.h>
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
|
machine_at_plato_init(const machine_t *model)
|
|
|
|
|
{
|
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
|
|
ret = bios_load_linear_combined("roms/machines/plato/1016ax1_.bio",
|
2023-01-06 15:36:05 -05:00
|
|
|
"roms/machines/plato/1016ax1_.bi1",
|
|
|
|
|
0x1d000, 128);
|
2021-07-04 17:40:39 +02:00
|
|
|
|
|
|
|
|
if (bios_only || !ret)
|
2022-07-27 15:17:53 -04:00
|
|
|
return ret;
|
2021-07-04 17:40:39 +02:00
|
|
|
|
|
|
|
|
machine_at_premiere_common_init(model, PCI_CAN_SWITCH_TYPE);
|
|
|
|
|
|
|
|
|
|
device_add(&i430nx_device);
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-11 20:44:33 +02:00
|
|
|
int
|
|
|
|
|
machine_at_dellplato_init(const machine_t *model)
|
|
|
|
|
{
|
|
|
|
|
int ret;
|
|
|
|
|
|
2024-04-16 00:43:32 -04:00
|
|
|
ret = bios_load_linear_combined("roms/machines/dellplato/1016AX1J.BIO",
|
|
|
|
|
"roms/machines/dellplato/1016AX1J.BI1",
|
2023-08-11 20:44:33 +02:00
|
|
|
0x1d000, 128);
|
|
|
|
|
|
|
|
|
|
if (bios_only || !ret)
|
|
|
|
|
return ret;
|
|
|
|
|
|
|
|
|
|
machine_at_premiere_common_init(model, PCI_CAN_SWITCH_TYPE);
|
|
|
|
|
|
|
|
|
|
device_add(&i430nx_device);
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-04 17:40:39 +02:00
|
|
|
int
|
|
|
|
|
machine_at_ambradp90_init(const machine_t *model)
|
|
|
|
|
{
|
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
|
|
ret = bios_load_linear_combined("roms/machines/ambradp90/1002AX1P.BIO",
|
2023-01-06 15:36:05 -05:00
|
|
|
"roms/machines/ambradp90/1002AX1P.BI1",
|
|
|
|
|
0x1d000, 128);
|
2021-07-04 17:40:39 +02:00
|
|
|
|
|
|
|
|
if (bios_only || !ret)
|
2022-07-27 15:17:53 -04:00
|
|
|
return ret;
|
2021-07-04 17:40:39 +02:00
|
|
|
|
|
|
|
|
machine_at_premiere_common_init(model, PCI_CAN_SWITCH_TYPE);
|
|
|
|
|
|
|
|
|
|
device_add(&i430nx_device);
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-01 23:06:19 +01:00
|
|
|
int
|
|
|
|
|
machine_at_p54np4_init(const machine_t *model)
|
|
|
|
|
{
|
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
|
|
ret = bios_load_linear("roms/machines/p54np4/asus-642accdebcb75833703472.bin",
|
|
|
|
|
0x000e0000, 131072, 0);
|
|
|
|
|
|
|
|
|
|
if (bios_only || !ret)
|
|
|
|
|
return ret;
|
|
|
|
|
|
|
|
|
|
machine_at_common_init(model);
|
|
|
|
|
|
|
|
|
|
pci_init(PCI_CONFIG_TYPE_2 | PCI_NO_IRQ_STEERING);
|
|
|
|
|
pci_register_slot(0x00, PCI_CARD_NORTHBRIDGE, 0, 0, 0, 0);
|
|
|
|
|
pci_register_slot(0x03, PCI_CARD_NORMAL, 1, 2, 3, 4); /* 03 = Slot 1 */
|
|
|
|
|
pci_register_slot(0x04, PCI_CARD_NORMAL, 2, 3, 4, 1); /* 04 = Slot 2 */
|
|
|
|
|
pci_register_slot(0x05, PCI_CARD_NORMAL, 3, 4, 1, 2); /* 05 = Slot 3 */
|
|
|
|
|
pci_register_slot(0x06, PCI_CARD_NORMAL, 4, 1, 2, 3); /* 06 = Slot 4 */
|
|
|
|
|
pci_register_slot(0x07, PCI_CARD_SCSI, 1, 2, 3, 4); /* 07 = SCSI */
|
|
|
|
|
pci_register_slot(0x02, PCI_CARD_SOUTHBRIDGE, 0, 0, 0, 0);
|
|
|
|
|
device_add(&i430nx_device);
|
|
|
|
|
device_add(&keyboard_ps2_ami_pci_device);
|
|
|
|
|
device_add(&fdc37c665_ide_pri_device);
|
|
|
|
|
device_add(&ncr53c810_onboard_pci_device);
|
|
|
|
|
device_add(&intel_flash_bxt_device);
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-04 17:40:39 +02:00
|
|
|
int
|
2024-02-02 05:34:38 +01:00
|
|
|
machine_at_586ip_init(const machine_t *model)
|
2021-07-04 17:40:39 +02:00
|
|
|
{
|
|
|
|
|
int ret;
|
|
|
|
|
|
2024-02-02 05:34:38 +01:00
|
|
|
ret = bios_load_linear("roms/machines/586ip/IP.20",
|
2022-07-27 15:17:53 -04:00
|
|
|
0x000e0000, 131072, 0);
|
2021-07-04 17:40:39 +02:00
|
|
|
|
|
|
|
|
if (bios_only || !ret)
|
2022-07-27 15:17:53 -04:00
|
|
|
return ret;
|
2021-07-04 17:40:39 +02:00
|
|
|
|
|
|
|
|
machine_at_award_common_init(model);
|
|
|
|
|
|
|
|
|
|
device_add(&i430nx_device);
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
2024-01-19 14:57:51 +01:00
|
|
|
int
|
|
|
|
|
machine_at_tek932_init(const machine_t *model)
|
|
|
|
|
{
|
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
|
|
ret = bios_load_linear("roms/machines/tek932/B932_019.BIN",
|
|
|
|
|
0x000e0000, 131072, 0);
|
|
|
|
|
|
|
|
|
|
if (bios_only || !ret)
|
|
|
|
|
return ret;
|
|
|
|
|
|
|
|
|
|
machine_at_common_init(model);
|
|
|
|
|
|
|
|
|
|
pci_init(PCI_CONFIG_TYPE_2 | PCI_CAN_SWITCH_TYPE);
|
|
|
|
|
pci_register_slot(0x00, PCI_CARD_NORTHBRIDGE, 0, 0, 0, 0);
|
|
|
|
|
pci_register_slot(0x02, PCI_CARD_SOUTHBRIDGE, 0, 0, 0, 0);
|
|
|
|
|
pci_register_slot(0x0F, PCI_CARD_NORMAL, 2, 3, 4, 1);
|
|
|
|
|
pci_register_slot(0x0E, PCI_CARD_NORMAL, 3, 4, 1, 2);
|
|
|
|
|
pci_register_slot(0x0D, PCI_CARD_NORMAL, 4, 1, 2, 3);
|
|
|
|
|
pci_register_slot(0x0C, PCI_CARD_NORMAL, 1, 3, 2, 4);
|
|
|
|
|
device_add(&keyboard_ps2_intel_ami_pci_device);
|
|
|
|
|
device_add(&i430nx_device);
|
|
|
|
|
device_add(&sio_zb_device);
|
|
|
|
|
device_add(&fdc37c665_ide_device);
|
|
|
|
|
device_add(&ide_vlb_device);
|
|
|
|
|
device_add(&intel_flash_bxt_ami_device);
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-04 17:40:39 +02:00
|
|
|
int
|
|
|
|
|
machine_at_acerv30_init(const machine_t *model)
|
|
|
|
|
{
|
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
|
|
ret = bios_load_linear("roms/machines/acerv30/V30R01N9.BIN",
|
2022-07-27 15:17:53 -04:00
|
|
|
0x000e0000, 131072, 0);
|
2021-07-04 17:40:39 +02:00
|
|
|
|
|
|
|
|
if (bios_only || !ret)
|
2022-07-27 15:17:53 -04:00
|
|
|
return ret;
|
2021-07-04 17:40:39 +02:00
|
|
|
|
|
|
|
|
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(0x07, PCI_CARD_SOUTHBRIDGE, 0, 0, 0, 0);
|
2023-01-06 15:36:05 -05:00
|
|
|
pci_register_slot(0x12, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
|
|
|
pci_register_slot(0x11, PCI_CARD_NORMAL, 2, 3, 4, 1);
|
|
|
|
|
pci_register_slot(0x14, PCI_CARD_NORMAL, 3, 4, 1, 2);
|
|
|
|
|
pci_register_slot(0x13, PCI_CARD_NORMAL, 4, 1, 2, 3);
|
2021-07-04 17:40:39 +02:00
|
|
|
device_add(&i430fx_device);
|
|
|
|
|
device_add(&piix_device);
|
|
|
|
|
device_add(&keyboard_ps2_acer_pci_device);
|
|
|
|
|
device_add(&fdc37c665_device);
|
|
|
|
|
|
|
|
|
|
device_add(&sst_flash_29ee010_device);
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
|
machine_at_apollo_init(const machine_t *model)
|
|
|
|
|
{
|
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
|
|
ret = bios_load_linear("roms/machines/apollo/S728P.ROM",
|
2022-07-27 15:17:53 -04:00
|
|
|
0x000e0000, 131072, 0);
|
2021-07-04 17:40:39 +02:00
|
|
|
|
|
|
|
|
if (bios_only || !ret)
|
2022-07-27 15:17:53 -04:00
|
|
|
return ret;
|
2021-07-04 17:40:39 +02:00
|
|
|
|
|
|
|
|
machine_at_common_init_ex(model, 2);
|
2021-11-30 00:25:03 +01:00
|
|
|
device_add(&ami_1995_nvr_device);
|
2021-07-04 17:40:39 +02:00
|
|
|
|
|
|
|
|
pci_init(PCI_CONFIG_TYPE_1);
|
|
|
|
|
pci_register_slot(0x00, PCI_CARD_NORTHBRIDGE, 0, 0, 0, 0);
|
2023-01-06 15:36:05 -05:00
|
|
|
pci_register_slot(0x08, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
|
|
|
pci_register_slot(0x09, PCI_CARD_NORMAL, 2, 3, 4, 1);
|
|
|
|
|
pci_register_slot(0x0A, PCI_CARD_NORMAL, 3, 4, 1, 2);
|
|
|
|
|
pci_register_slot(0x0B, PCI_CARD_NORMAL, 4, 1, 2, 3);
|
2021-07-04 17:40:39 +02:00
|
|
|
pci_register_slot(0x07, PCI_CARD_SOUTHBRIDGE, 0, 0, 0, 0);
|
|
|
|
|
device_add(&keyboard_ps2_ami_pci_device);
|
|
|
|
|
device_add(&i430fx_device);
|
|
|
|
|
device_add(&piix_device);
|
|
|
|
|
device_add(&pc87332_398_device);
|
|
|
|
|
device_add(&intel_flash_bxt_device);
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
2023-10-08 01:32:10 +02:00
|
|
|
static void
|
|
|
|
|
machine_at_zappa_gpio_init(void)
|
|
|
|
|
{
|
2023-10-08 06:11:32 +02:00
|
|
|
uint32_t gpio = 0xffffe6ff;
|
2023-10-08 01:32:10 +02:00
|
|
|
|
|
|
|
|
/* Register 0x0079: */
|
|
|
|
|
/* Bit 7: 0 = Clear password, 1 = Keep password. */
|
|
|
|
|
/* Bit 6: 0 = NVRAM cleared by jumper, 1 = NVRAM normal. */
|
|
|
|
|
/* Bit 5: 0 = CMOS Setup disabled, 1 = CMOS Setup enabled. */
|
|
|
|
|
/* Bit 4: External CPU clock (Switch 8). */
|
|
|
|
|
/* Bit 3: External CPU clock (Switch 7). */
|
|
|
|
|
/* 50 MHz: Switch 7 = Off, Switch 8 = Off. */
|
|
|
|
|
/* 60 MHz: Switch 7 = On, Switch 8 = Off. */
|
|
|
|
|
/* 66 MHz: Switch 7 = Off, Switch 8 = On. */
|
|
|
|
|
/* Bit 2: No Connect. */
|
|
|
|
|
/* Bit 1: No Connect. */
|
2023-10-08 05:21:12 +02:00
|
|
|
/* Bit 0: 2x multiplier, 1 = 1.5x multiplier (Switch 6). */
|
2023-10-08 01:32:10 +02:00
|
|
|
/* NOTE: A bit is read as 1 if switch is off, and as 0 if switch is on. */
|
|
|
|
|
if (cpu_busspeed <= 50000000)
|
2023-10-10 06:43:07 +02:00
|
|
|
gpio |= 0xffff00ff;
|
2023-10-08 01:32:10 +02:00
|
|
|
else if ((cpu_busspeed > 50000000) && (cpu_busspeed <= 60000000))
|
2023-10-10 06:43:07 +02:00
|
|
|
gpio |= 0xffff08ff;
|
2023-10-08 01:32:10 +02:00
|
|
|
else if (cpu_busspeed > 60000000)
|
2023-10-10 06:43:07 +02:00
|
|
|
gpio |= 0xffff10ff;
|
2023-10-08 01:32:10 +02:00
|
|
|
|
|
|
|
|
if (cpu_dmulti <= 1.5)
|
|
|
|
|
gpio |= 0xffff01ff;
|
|
|
|
|
else
|
|
|
|
|
gpio |= 0xffff00ff;
|
|
|
|
|
|
|
|
|
|
machine_set_gpio_default(gpio);
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-04 17:40:39 +02:00
|
|
|
int
|
|
|
|
|
machine_at_zappa_init(const machine_t *model)
|
|
|
|
|
{
|
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
|
|
ret = bios_load_linear_combined("roms/machines/zappa/1006bs0_.bio",
|
2023-01-06 15:36:05 -05:00
|
|
|
"roms/machines/zappa/1006bs0_.bi1",
|
|
|
|
|
0x20000, 128);
|
2021-07-04 17:40:39 +02:00
|
|
|
|
|
|
|
|
if (bios_only || !ret)
|
2022-07-27 15:17:53 -04:00
|
|
|
return ret;
|
2021-07-04 17:40:39 +02:00
|
|
|
|
2023-08-15 06:45:02 +02:00
|
|
|
machine_at_common_init_ex(model, 2);
|
2023-10-08 01:32:10 +02:00
|
|
|
machine_at_zappa_gpio_init();
|
2021-07-04 17:40:39 +02:00
|
|
|
|
|
|
|
|
pci_init(PCI_CONFIG_TYPE_1);
|
|
|
|
|
pci_register_slot(0x00, PCI_CARD_NORTHBRIDGE, 0, 0, 0, 0);
|
2023-01-06 15:36:05 -05:00
|
|
|
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);
|
2021-07-04 17:40:39 +02:00
|
|
|
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_powermatev_init(const machine_t *model)
|
|
|
|
|
{
|
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
|
|
ret = bios_load_linear("roms/machines/powermatev/BIOS.ROM",
|
2022-07-27 15:17:53 -04:00
|
|
|
0x000e0000, 131072, 0);
|
2021-07-04 17:40:39 +02:00
|
|
|
|
|
|
|
|
if (bios_only || !ret)
|
2022-07-27 15:17:53 -04:00
|
|
|
return ret;
|
2021-07-04 17:40:39 +02:00
|
|
|
|
|
|
|
|
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(0x07, PCI_CARD_SOUTHBRIDGE, 0, 0, 0, 0);
|
2023-01-06 15:36:05 -05:00
|
|
|
pci_register_slot(0x08, PCI_CARD_NORMAL, 0, 0, 0, 0);
|
|
|
|
|
pci_register_slot(0x11, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
|
|
|
pci_register_slot(0x13, PCI_CARD_NORMAL, 2, 3, 4, 1);
|
2021-07-04 17:40:39 +02:00
|
|
|
device_add(&keyboard_ps2_ami_pci_device);
|
|
|
|
|
device_add(&i430fx_device);
|
|
|
|
|
device_add(&piix_device);
|
|
|
|
|
device_add(&fdc37c665_device);
|
|
|
|
|
device_add(&intel_flash_bxt_device);
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
|
machine_at_hawk_init(const machine_t *model)
|
|
|
|
|
{
|
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
|
|
ret = bios_load_linear("roms/machines/hawk/HAWK.ROM",
|
2022-07-27 15:17:53 -04:00
|
|
|
0x000e0000, 131072, 0);
|
2021-07-04 17:40:39 +02:00
|
|
|
|
|
|
|
|
if (bios_only || !ret)
|
2022-07-27 15:17:53 -04:00
|
|
|
return ret;
|
2021-07-04 17:40:39 +02:00
|
|
|
|
2021-11-30 00:25:03 +01:00
|
|
|
machine_at_common_init_ex(model, 2);
|
|
|
|
|
device_add(&ami_1994_nvr_device);
|
2021-07-04 17:40:39 +02:00
|
|
|
|
|
|
|
|
pci_init(PCI_CONFIG_TYPE_1);
|
|
|
|
|
pci_register_slot(0x00, PCI_CARD_NORTHBRIDGE, 0, 0, 0, 0);
|
2023-01-06 15:36:05 -05:00
|
|
|
pci_register_slot(0x14, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
|
|
|
pci_register_slot(0x13, PCI_CARD_NORMAL, 2, 3, 4, 1);
|
|
|
|
|
pci_register_slot(0x12, PCI_CARD_NORMAL, 3, 4, 1, 2);
|
2021-07-04 17:40:39 +02:00
|
|
|
pci_register_slot(0x07, PCI_CARD_SOUTHBRIDGE, 0, 0, 0, 0);
|
2023-04-08 02:44:12 +02:00
|
|
|
device_add(&keyboard_ps2_tg_ami_pci_device);
|
2021-07-04 17:40:39 +02:00
|
|
|
device_add(&i430fx_device);
|
|
|
|
|
device_add(&piix_device);
|
|
|
|
|
device_add(&fdc37c665_device);
|
|
|
|
|
device_add(&intel_flash_bxt_device);
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
2024-01-19 17:53:36 +01:00
|
|
|
int
|
|
|
|
|
machine_at_pt2000_init(const machine_t *model)
|
|
|
|
|
{
|
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
|
|
ret = bios_load_linear("roms/machines/ficpt2000/PT2000_v1.01.BIN",
|
|
|
|
|
0x000e0000, 131072, 0);
|
|
|
|
|
|
|
|
|
|
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(0x08, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
|
|
|
pci_register_slot(0x09, PCI_CARD_NORMAL, 2, 3, 4, 1);
|
|
|
|
|
pci_register_slot(0x0A, PCI_CARD_NORMAL, 3, 4, 1, 2);
|
|
|
|
|
pci_register_slot(0x0B, PCI_CARD_NORMAL, 4, 1, 2, 3);
|
|
|
|
|
pci_register_slot(0x07, PCI_CARD_SOUTHBRIDGE, 0, 0, 0, 0);
|
2024-07-21 04:53:54 +02:00
|
|
|
/* Should be VIA, but we do not emulate that yet. */
|
|
|
|
|
device_add(&keyboard_ps2_holtek_device);
|
2024-01-19 17:53:36 +01:00
|
|
|
device_add(&i430fx_device);
|
|
|
|
|
device_add(&piix_device);
|
|
|
|
|
device_add(&pc87332_398_device);
|
|
|
|
|
device_add(&intel_flash_bxt_device);
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-04 17:40:39 +02:00
|
|
|
int
|
|
|
|
|
machine_at_pat54pv_init(const machine_t *model)
|
|
|
|
|
{
|
|
|
|
|
int ret;
|
|
|
|
|
|
2021-11-21 13:33:22 -03:00
|
|
|
ret = bios_load_linear("roms/machines/pat54pv/PAT54PV.bin",
|
2022-07-27 15:17:53 -04:00
|
|
|
0x000f0000, 65536, 0);
|
2021-07-04 17:40:39 +02:00
|
|
|
|
|
|
|
|
if (bios_only || !ret)
|
2022-07-27 15:17:53 -04:00
|
|
|
return ret;
|
2021-07-04 17:40:39 +02:00
|
|
|
|
|
|
|
|
machine_at_common_init(model);
|
|
|
|
|
|
|
|
|
|
device_add(&opti5x7_device);
|
|
|
|
|
device_add(&keyboard_ps2_intel_ami_pci_device);
|
2022-02-20 02:26:27 -05:00
|
|
|
|
2024-07-20 01:14:35 -04:00
|
|
|
if (fdc_current[0] == FDC_INTERNAL)
|
2022-07-27 15:17:53 -04:00
|
|
|
device_add(&fdc_at_device);
|
2021-07-04 17:40:39 +02:00
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
|
machine_at_hot543_init(const machine_t *model)
|
|
|
|
|
{
|
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
|
|
ret = bios_load_linear("roms/machines/hot543/543_R21.BIN",
|
2022-07-27 15:17:53 -04:00
|
|
|
0x000e0000, 131072, 0);
|
2021-07-04 17:40:39 +02:00
|
|
|
|
|
|
|
|
if (bios_only || !ret)
|
2022-07-27 15:17:53 -04:00
|
|
|
return ret;
|
2021-07-04 17:40:39 +02:00
|
|
|
|
|
|
|
|
machine_at_common_init(model);
|
2022-11-02 04:03:55 +01:00
|
|
|
|
2022-11-02 05:19:28 +01:00
|
|
|
pci_init(PCI_CONFIG_TYPE_1);
|
2021-07-04 17:40:39 +02:00
|
|
|
pci_register_slot(0x10, PCI_CARD_NORTHBRIDGE, 0, 0, 0, 0);
|
2023-01-06 15:36:05 -05:00
|
|
|
pci_register_slot(0x11, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
|
|
|
pci_register_slot(0x12, PCI_CARD_NORMAL, 2, 3, 4, 1);
|
|
|
|
|
pci_register_slot(0x13, PCI_CARD_NORMAL, 3, 4, 1, 2);
|
2022-11-02 04:03:55 +01:00
|
|
|
|
2022-10-31 05:44:32 +01:00
|
|
|
device_add(&opti5x7_pci_device);
|
2021-07-04 17:40:39 +02:00
|
|
|
device_add(&opti822_device);
|
|
|
|
|
device_add(&sst_flash_29ee010_device);
|
|
|
|
|
device_add(&keyboard_at_device);
|
|
|
|
|
|
2024-07-20 01:14:35 -04:00
|
|
|
if (fdc_current[0] == FDC_INTERNAL)
|
2022-07-27 15:17:53 -04:00
|
|
|
device_add(&fdc_at_device);
|
2021-07-04 17:40:39 +02:00
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
2024-01-19 12:34:56 +01:00
|
|
|
int
|
|
|
|
|
machine_at_ncselp90_init(const machine_t *model)
|
|
|
|
|
{
|
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
|
|
ret = bios_load_linear("roms/machines/ncselp90/elegancep90.bin",
|
|
|
|
|
0x000e0000, 131072, 0);
|
|
|
|
|
|
|
|
|
|
if (bios_only || !ret)
|
|
|
|
|
return ret;
|
|
|
|
|
|
|
|
|
|
machine_at_common_init(model);
|
|
|
|
|
|
|
|
|
|
pci_init(PCI_CONFIG_TYPE_1);
|
|
|
|
|
pci_register_slot(0x10, PCI_CARD_NORTHBRIDGE, 0, 0, 0, 0);
|
|
|
|
|
pci_register_slot(0x11, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
|
|
|
pci_register_slot(0x12, PCI_CARD_NORMAL, 2, 3, 4, 1);
|
|
|
|
|
pci_register_slot(0x13, PCI_CARD_NORMAL, 3, 4, 1, 2);
|
|
|
|
|
|
|
|
|
|
device_add(&opti5x7_pci_device);
|
|
|
|
|
device_add(&opti822_device);
|
|
|
|
|
device_add(&sst_flash_29ee010_device);
|
|
|
|
|
device_add(&keyboard_ps2_ami_pci_device);
|
|
|
|
|
device_add(&ide_opti611_vlb_device);
|
|
|
|
|
device_add(&fdc37c665_ide_sec_device);
|
|
|
|
|
device_add(&ide_vlb_2ch_device);
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-04 17:40:39 +02:00
|
|
|
int
|
|
|
|
|
machine_at_p54sp4_init(const machine_t *model)
|
|
|
|
|
{
|
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
|
|
ret = bios_load_linear("roms/machines/p54sp4/SI5I0204.AWD",
|
2022-07-27 15:17:53 -04:00
|
|
|
0x000e0000, 131072, 0);
|
2021-07-04 17:40:39 +02:00
|
|
|
|
|
|
|
|
if (bios_only || !ret)
|
2022-07-27 15:17:53 -04:00
|
|
|
return ret;
|
2021-07-04 17:40:39 +02:00
|
|
|
|
|
|
|
|
machine_at_sp4_common_init(model);
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
|
machine_at_sq588_init(const machine_t *model)
|
|
|
|
|
{
|
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
|
|
ret = bios_load_linear("roms/machines/sq588/sq588b03.rom",
|
2022-07-27 15:17:53 -04:00
|
|
|
0x000e0000, 131072, 0);
|
2021-07-04 17:40:39 +02:00
|
|
|
|
|
|
|
|
if (bios_only || !ret)
|
2022-07-27 15:17:53 -04:00
|
|
|
return ret;
|
2021-07-04 17:40:39 +02:00
|
|
|
|
|
|
|
|
machine_at_common_init(model);
|
|
|
|
|
|
2024-04-04 03:10:29 +02:00
|
|
|
pci_init(PCI_CONFIG_TYPE_1 | FLAG_TRC_CONTROLS_CPURST);
|
2021-07-04 17:40:39 +02:00
|
|
|
pci_register_slot(0x00, PCI_CARD_NORTHBRIDGE, 0, 0, 0, 0);
|
|
|
|
|
pci_register_slot(0x01, PCI_CARD_SOUTHBRIDGE, 0, 0, 0, 0);
|
|
|
|
|
/* Correct: 0D (01), 0F (02), 11 (03), 13 (04) */
|
2023-01-06 15:36:05 -05:00
|
|
|
pci_register_slot(0x02, PCI_CARD_IDE, 1, 2, 3, 4);
|
|
|
|
|
pci_register_slot(0x0D, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
|
|
|
pci_register_slot(0x0F, PCI_CARD_NORMAL, 2, 3, 4, 1);
|
|
|
|
|
pci_register_slot(0x11, PCI_CARD_NORMAL, 3, 4, 1, 2);
|
|
|
|
|
pci_register_slot(0x13, PCI_CARD_NORMAL, 4, 1, 2, 3);
|
2021-07-04 17:40:39 +02:00
|
|
|
device_add(&sis_85c50x_device);
|
|
|
|
|
device_add(&ide_cmd640_pci_single_channel_device);
|
|
|
|
|
device_add(&keyboard_ps2_ami_pci_device);
|
|
|
|
|
device_add(&fdc37c665_ide_device);
|
|
|
|
|
device_add(&sst_flash_29ee010_device);
|
|
|
|
|
|
|
|
|
|
return ret;
|
2022-02-18 21:38:51 -05:00
|
|
|
}
|
2023-01-31 20:49:06 +03:00
|
|
|
|
|
|
|
|
int
|
|
|
|
|
machine_at_p54sps_init(const machine_t *model)
|
|
|
|
|
{
|
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
|
|
ret = bios_load_linear("roms/machines/p54sps/35s106.bin",
|
|
|
|
|
0x000e0000, 131072, 0);
|
|
|
|
|
|
|
|
|
|
if (bios_only || !ret)
|
|
|
|
|
return ret;
|
|
|
|
|
|
|
|
|
|
machine_at_common_init(model);
|
|
|
|
|
|
2024-04-04 03:10:29 +02:00
|
|
|
pci_init(PCI_CONFIG_TYPE_1 | FLAG_TRC_CONTROLS_CPURST);
|
2023-01-31 20:49:06 +03:00
|
|
|
pci_register_slot(0x00, PCI_CARD_NORTHBRIDGE, 0, 0, 0, 0);
|
|
|
|
|
pci_register_slot(0x01, PCI_CARD_SOUTHBRIDGE, 0, 0, 0, 0);
|
|
|
|
|
pci_register_slot(0x06, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
|
|
|
pci_register_slot(0x07, PCI_CARD_NORMAL, 2, 3, 4, 1);
|
|
|
|
|
pci_register_slot(0x08, PCI_CARD_NORMAL, 3, 4, 1, 2);
|
|
|
|
|
pci_register_slot(0x09, PCI_CARD_NORMAL, 4, 1, 2, 3);
|
|
|
|
|
device_add(&sis_85c50x_device);
|
|
|
|
|
device_add(&ide_pci_2ch_device);
|
|
|
|
|
device_add(&keyboard_at_ami_device);
|
|
|
|
|
device_add(&w83787f_device);
|
|
|
|
|
device_add(&sst_flash_29ee010_device);
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
2024-02-22 00:52:20 +01:00
|
|
|
|
|
|
|
|
int
|
|
|
|
|
machine_at_ms5109_init(const machine_t *model)
|
|
|
|
|
{
|
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
|
|
ret = bios_load_linear("roms/machines/ms5109/A778.ROM",
|
|
|
|
|
0x000e0000, 131072, 0);
|
|
|
|
|
|
|
|
|
|
if (bios_only || !ret)
|
|
|
|
|
return ret;
|
|
|
|
|
|
|
|
|
|
machine_at_common_init_ex(model, 2);
|
|
|
|
|
device_add(&ami_1994_nvr_device);
|
|
|
|
|
|
2024-04-04 03:10:29 +02:00
|
|
|
pci_init(PCI_CONFIG_TYPE_1 | FLAG_TRC_CONTROLS_CPURST);
|
2024-02-22 00:52:20 +01:00
|
|
|
pci_register_slot(0x00, PCI_CARD_NORTHBRIDGE, 0, 0, 0, 0);
|
|
|
|
|
pci_register_slot(0x01, PCI_CARD_SOUTHBRIDGE, 0, 0, 0, 0);
|
|
|
|
|
pci_register_slot(0x07, PCI_CARD_IDE, 0, 0, 0, 0);
|
|
|
|
|
pci_register_slot(0x0D, PCI_CARD_NORMAL, 1, 3, 2, 4);
|
|
|
|
|
pci_register_slot(0x0F, PCI_CARD_NORMAL, 2, 1, 3, 4);
|
|
|
|
|
pci_register_slot(0x11, PCI_CARD_NORMAL, 3, 3, 2, 4);
|
|
|
|
|
pci_register_slot(0x13, PCI_CARD_NORMAL, 4, 1, 2, 3);
|
|
|
|
|
device_add(&sis_550x_85c503_device);
|
|
|
|
|
device_add(&ide_w83769f_pci_device);
|
|
|
|
|
device_add(&keyboard_ps2_ami_device);
|
|
|
|
|
device_add(&w83787f_device);
|
|
|
|
|
device_add(&sst_flash_29ee010_device);
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
|
machine_at_torino_init(const machine_t *model)
|
|
|
|
|
{
|
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
|
|
ret = bios_load_linear_inverted("roms/machines/torino/PER113.ROM",
|
|
|
|
|
0x000e0000, 131072, 0);
|
|
|
|
|
|
|
|
|
|
if (bios_only || !ret)
|
|
|
|
|
return ret;
|
|
|
|
|
|
|
|
|
|
machine_at_common_init_ex(model, 2);
|
|
|
|
|
device_add(&ami_1994_nvr_device);
|
|
|
|
|
|
2024-04-04 03:10:29 +02:00
|
|
|
pci_init(PCI_CONFIG_TYPE_1 | FLAG_TRC_CONTROLS_CPURST);
|
2024-02-22 00:52:20 +01:00
|
|
|
pci_register_slot(0x00, PCI_CARD_NORTHBRIDGE, 0, 0, 0, 0);
|
|
|
|
|
pci_register_slot(0x01, PCI_CARD_SOUTHBRIDGE, 0, 0, 0, 0);
|
|
|
|
|
pci_register_slot(0x08, PCI_CARD_VIDEO, 0, 0, 0, 0);
|
|
|
|
|
pci_register_slot(0x03, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
|
|
|
pci_register_slot(0x0A, PCI_CARD_NORMAL, 4, 1, 2, 3);
|
|
|
|
|
pci_register_slot(0x0B, PCI_CARD_NORMAL, 3, 4, 1, 2);
|
|
|
|
|
|
|
|
|
|
if (gfxcard[0] == VID_INTERNAL)
|
|
|
|
|
device_add(machine_get_vid_device(machine));
|
|
|
|
|
|
|
|
|
|
device_add(&sis_550x_85c503_device);
|
|
|
|
|
device_add(&ide_um8673f_device);
|
|
|
|
|
device_add(&keyboard_ps2_tg_ami_device);
|
|
|
|
|
device_add(&fdc37c665_device);
|
|
|
|
|
device_add(&intel_flash_bxt_ami_device);
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
|
machine_at_hot539_init(const machine_t *model)
|
|
|
|
|
{
|
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
|
|
ret = bios_load_linear("roms/machines/hot539/539_R17.ROM",
|
|
|
|
|
0x000e0000, 131072, 0);
|
|
|
|
|
|
|
|
|
|
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(0x12, PCI_CARD_SOUTHBRIDGE, 0, 0, 0, 0);
|
|
|
|
|
pci_register_slot(0x0C, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
|
|
|
pci_register_slot(0x15, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
|
|
|
pci_register_slot(0x0D, PCI_CARD_NORMAL, 2, 3, 4, 1);
|
|
|
|
|
pci_register_slot(0x16, PCI_CARD_NORMAL, 2, 3, 4, 1);
|
|
|
|
|
pci_register_slot(0x0E, PCI_CARD_NORMAL, 3, 4, 1, 2);
|
|
|
|
|
pci_register_slot(0x0F, PCI_CARD_NORMAL, 4, 1, 2, 3);
|
|
|
|
|
device_add(&umc_8890_device);
|
|
|
|
|
device_add(&umc_8886af_device);
|
|
|
|
|
device_add(&sst_flash_29ee010_device);
|
|
|
|
|
device_add(&keyboard_ps2_ami_pci_device);
|
|
|
|
|
device_add(&um8663af_device);
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|