653 lines
18 KiB
C
653 lines
18 KiB
C
/*
|
|
* 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.
|
|
*
|
|
* This file is part of the 86Box distribution.
|
|
*
|
|
* Implementation of Socket 7 and Super Socket 7 machines.
|
|
*
|
|
* Version: @(#)m_at_socket7_s7.c 1.0.3 2020/01/24
|
|
*
|
|
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
|
* Miran Grca, <mgrca8@gmail.com>
|
|
* Melissa Goad, <mszoopers@protonmail.com>
|
|
*
|
|
* Copyright 2010-2020 Sarah Walker.
|
|
* Copyright 2016-2020 Miran Grca.
|
|
* Copyright 2020 Melissa Goad.
|
|
*/
|
|
#include <stdio.h>
|
|
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <wchar.h>
|
|
#include "86box.h"
|
|
#include "mem.h"
|
|
#include "io.h"
|
|
#include "rom.h"
|
|
#include "pci.h"
|
|
#include "device.h"
|
|
#include "chipset.h"
|
|
#include "hdc.h"
|
|
#include "hdc_ide.h"
|
|
#include "keyboard.h"
|
|
#include "intel_flash.h"
|
|
#include "intel_sio.h"
|
|
#include "piix.h"
|
|
#include "sio.h"
|
|
#include "sst_flash.h"
|
|
#include "via_vt82c586b.h"
|
|
#include "video.h"
|
|
#include "machine.h"
|
|
|
|
|
|
static void
|
|
machine_at_thor_common_init(const machine_t *model, int mr)
|
|
{
|
|
machine_at_common_init_ex(model, mr);
|
|
|
|
pci_init(PCI_CONFIG_TYPE_1);
|
|
pci_register_slot(0x00, PCI_CARD_NORTHBRIDGE, 0, 0, 0, 0);
|
|
pci_register_slot(0x08, PCI_CARD_ONBOARD, 4, 0, 0, 0);
|
|
pci_register_slot(0x0D, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
pci_register_slot(0x0E, PCI_CARD_NORMAL, 2, 3, 4, 1);
|
|
pci_register_slot(0x0F, PCI_CARD_NORMAL, 3, 4, 2, 1);
|
|
pci_register_slot(0x10, PCI_CARD_NORMAL, 4, 3, 2, 1);
|
|
pci_register_slot(0x07, PCI_CARD_SOUTHBRIDGE, 0, 0, 0, 0);
|
|
device_add(&i430fx_device);
|
|
device_add(&piix_device);
|
|
device_add(&keyboard_ps2_ami_pci_device);
|
|
device_add(&pc87306_device);
|
|
device_add(&intel_flash_bxt_ami_device);
|
|
}
|
|
|
|
|
|
int
|
|
machine_at_thor_init(const machine_t *model)
|
|
{
|
|
int ret;
|
|
|
|
ret = bios_load_linear_combined(L"roms/machines/thor/1006cn0_.bio",
|
|
L"roms/machines/thor/1006cn0_.bi1", 0x20000, 128);
|
|
|
|
if (bios_only || !ret)
|
|
return ret;
|
|
|
|
machine_at_thor_common_init(model, 0);
|
|
|
|
return ret;
|
|
}
|
|
|
|
|
|
#if defined(DEV_BRANCH) && defined(USE_MRTHOR)
|
|
int
|
|
machine_at_mrthor_init(const machine_t *model)
|
|
{
|
|
int ret;
|
|
|
|
ret = bios_load_linear(L"roms/machines/mrthor/mr_atx.bio",
|
|
0x000e0000, 131072, 0);
|
|
|
|
if (bios_only || !ret)
|
|
return ret;
|
|
|
|
machine_at_thor_common_init(model, 1);
|
|
|
|
return ret;
|
|
}
|
|
#endif
|
|
|
|
|
|
int
|
|
machine_at_pb640_init(const machine_t *model)
|
|
{
|
|
int ret;
|
|
|
|
ret = bios_load_linear_combined(L"roms/machines/pb640/1007CP0R.BIO",
|
|
L"roms/machines/pb640/1007CP0R.BI1", 0x1d000, 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(0x08, PCI_CARD_ONBOARD, 4, 0, 0, 0);
|
|
pci_register_slot(0x11, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
pci_register_slot(0x13, PCI_CARD_NORMAL, 2, 1, 3, 4);
|
|
pci_register_slot(0x0B, PCI_CARD_NORMAL, 3, 2, 1, 4);
|
|
pci_register_slot(0x07, PCI_CARD_SOUTHBRIDGE, 0, 0, 0, 0);
|
|
device_add(&i430fx_pb640_device);
|
|
device_add(&piix_pb640_device);
|
|
device_add(&ide_isa_2ch_device);
|
|
|
|
if (gfxcard == VID_INTERNAL)
|
|
device_add(&gd5440_onboard_pci_device);
|
|
|
|
device_add(&keyboard_ps2_ami_pci_device);
|
|
device_add(&pc87306_device);
|
|
device_add(&intel_flash_bxt_ami_device);
|
|
|
|
return ret;
|
|
}
|
|
|
|
|
|
const device_t *
|
|
at_pb640_get_device(void)
|
|
{
|
|
return &gd5440_onboard_pci_device;
|
|
}
|
|
|
|
|
|
int
|
|
machine_at_acerm3a_init(const machine_t *model)
|
|
{
|
|
int ret;
|
|
|
|
ret = bios_load_linear(L"roms/machines/acerm3a/r01-b3.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(0x07, PCI_CARD_SOUTHBRIDGE, 0, 0, 0, 0);
|
|
pci_register_slot(0x0C, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
pci_register_slot(0x0D, 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);
|
|
pci_register_slot(0x10, PCI_CARD_ONBOARD, 4, 0, 0, 0);
|
|
device_add(&i430hx_device);
|
|
device_add(&piix3_device);
|
|
device_add(&keyboard_ps2_pci_device);
|
|
device_add(&fdc37c932fr_device);
|
|
device_add(&acerm3a_device);
|
|
|
|
device_add(&intel_flash_bxb_device);
|
|
|
|
return ret;
|
|
}
|
|
|
|
|
|
int
|
|
machine_at_acerv35n_init(const machine_t *model)
|
|
{
|
|
int ret;
|
|
|
|
ret = bios_load_linear(L"roms/machines/acerv35n/v35nd1s1.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(0x07, PCI_CARD_SOUTHBRIDGE, 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);
|
|
pci_register_slot(0x14, PCI_CARD_NORMAL, 4, 1, 2, 3);
|
|
pci_register_slot(0x0D, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
device_add(&i430hx_device);
|
|
device_add(&piix3_device);
|
|
device_add(&keyboard_ps2_pci_device);
|
|
device_add(&fdc37c932fr_device);
|
|
device_add(&acerm3a_device);
|
|
|
|
device_add(&intel_flash_bxb_device);
|
|
|
|
return ret;
|
|
}
|
|
|
|
|
|
int
|
|
machine_at_ap53_init(const machine_t *model)
|
|
{
|
|
int ret;
|
|
|
|
ret = bios_load_linear(L"roms/machines/ap53/ap53r2c0.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(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);
|
|
pci_register_slot(0x14, PCI_CARD_NORMAL, 4, 1, 2, 3);
|
|
pci_register_slot(0x07, PCI_CARD_SOUTHBRIDGE, 0, 0, 0, 0);
|
|
pci_register_slot(0x06, PCI_CARD_ONBOARD, 1, 2, 3, 4);
|
|
device_add(&i430hx_device);
|
|
device_add(&piix3_device);
|
|
device_add(&keyboard_ps2_ami_pci_device);
|
|
device_add(&fdc37c669_device);
|
|
device_add(&intel_flash_bxt_device);
|
|
|
|
return ret;
|
|
}
|
|
|
|
|
|
int
|
|
machine_at_p55t2p4_init(const machine_t *model)
|
|
{
|
|
int ret;
|
|
|
|
ret = bios_load_linear(L"roms/machines/p55t2p4/0207_j2.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(0x0C, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
pci_register_slot(0x0B, PCI_CARD_NORMAL, 2, 3, 4, 1);
|
|
pci_register_slot(0x0A, PCI_CARD_NORMAL, 3, 4, 1, 2);
|
|
pci_register_slot(0x09, PCI_CARD_NORMAL, 4, 1, 2, 3);
|
|
pci_register_slot(0x07, PCI_CARD_SOUTHBRIDGE, 0, 0, 0, 0);
|
|
device_add(&i430hx_device);
|
|
device_add(&piix3_device);
|
|
device_add(&keyboard_ps2_pci_device);
|
|
device_add(&w83877f_device);
|
|
device_add(&intel_flash_bxt_device);
|
|
|
|
return ret;
|
|
}
|
|
|
|
|
|
int
|
|
machine_at_p55t2s_init(const machine_t *model)
|
|
{
|
|
int ret;
|
|
|
|
ret = bios_load_linear(L"roms/machines/p55t2s/s6y08t.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_NORMAL, 1, 2, 3, 4);
|
|
pci_register_slot(0x13, PCI_CARD_NORMAL, 4, 1, 2, 3);
|
|
pci_register_slot(0x14, PCI_CARD_NORMAL, 3, 4, 1, 2);
|
|
pci_register_slot(0x11, PCI_CARD_NORMAL, 2, 3, 4, 1);
|
|
pci_register_slot(0x07, PCI_CARD_SOUTHBRIDGE, 0, 0, 0, 0);
|
|
device_add(&i430hx_device);
|
|
device_add(&piix3_device);
|
|
device_add(&keyboard_ps2_ami_pci_device);
|
|
device_add(&pc87306_device);
|
|
device_add(&intel_flash_bxt_device);
|
|
|
|
return ret;
|
|
}
|
|
|
|
|
|
#if defined(DEV_BRANCH) && defined(USE_TC430HX)
|
|
int
|
|
machine_at_tc430hx_init(const machine_t *model)
|
|
{
|
|
int ret;
|
|
|
|
ret = bios_load_linear_combined2(L"roms/machines/tc430hx/1007dh0_.bio",
|
|
L"roms/machines/tc430hx/1007dh0_.bi1",
|
|
L"roms/machines/tc430hx/1007dh0_.bi2",
|
|
L"roms/machines/tc430hx/1007dh0_.bi3",
|
|
L"roms/machines/tc430hx/1007dh0_.rcv",
|
|
0x3a000, 128);
|
|
|
|
if (bios_only || !ret)
|
|
return ret;
|
|
|
|
machine_at_common_init_ex(model, 2);
|
|
|
|
pci_init(PCI_CONFIG_TYPE_1);
|
|
pci_register_slot(0x00, PCI_CARD_NORTHBRIDGE, 0, 0, 0, 0);
|
|
pci_register_slot(0x08, PCI_CARD_ONBOARD, 4, 0, 0, 0);
|
|
pci_register_slot(0x0D, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
pci_register_slot(0x0E, PCI_CARD_NORMAL, 2, 3, 4, 1);
|
|
pci_register_slot(0x0F, PCI_CARD_NORMAL, 3, 4, 1, 2);
|
|
pci_register_slot(0x10, PCI_CARD_NORMAL, 4, 1, 2, 3);
|
|
pci_register_slot(0x07, PCI_CARD_SOUTHBRIDGE, 0, 0, 0, 0);
|
|
device_add(&i430hx_device);
|
|
device_add(&piix3_device);
|
|
device_add(&keyboard_ps2_ami_pci_device);
|
|
device_add(&pc87306_device);
|
|
device_add(&intel_flash_bxt_ami_device);
|
|
|
|
return ret;
|
|
}
|
|
|
|
|
|
int
|
|
machine_at_equium5200_init(const machine_t *model) // Information about that machine on machine.h
|
|
{
|
|
int ret;
|
|
|
|
ret = bios_load_linear_combined2(L"roms/machines/equium5200/1003DK08.BIO",
|
|
L"roms/machines/equium5200/1003DK08.BI1",
|
|
L"roms/machines/equium5200/1003DK08.BI2",
|
|
L"roms/machines/equium5200/1003DK08.BI3",
|
|
L"roms/machines/equium5200/1003DK08.RCV",
|
|
0x3a000, 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(0x08, PCI_CARD_ONBOARD, 4, 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);
|
|
pci_register_slot(0x0B, PCI_CARD_NORMAL, 3, 4, 1, 2);
|
|
pci_register_slot(0x07, PCI_CARD_SOUTHBRIDGE, 0, 0, 0, 0);
|
|
pci_register_slot(0x0A, PCI_CARD_NORMAL, 3, 0, 0, 0); // riser
|
|
device_add(&i430hx_device);
|
|
device_add(&piix3_device);
|
|
device_add(&keyboard_ps2_ami_pci_device);
|
|
device_add(&pc87306_device);
|
|
device_add(&intel_flash_bxtw_ami_device);
|
|
|
|
return ret;
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
int
|
|
machine_at_p55tvp4_init(const machine_t *model)
|
|
{
|
|
int ret;
|
|
|
|
ret = bios_load_linear(L"roms/machines/p55tvp4/tv5i0204.awd",
|
|
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(0x0C, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
pci_register_slot(0x0B, PCI_CARD_NORMAL, 2, 3, 4, 1);
|
|
pci_register_slot(0x0A, PCI_CARD_NORMAL, 3, 4, 1, 2);
|
|
pci_register_slot(0x09, PCI_CARD_NORMAL, 4, 1, 2, 3);
|
|
pci_register_slot(0x07, PCI_CARD_SOUTHBRIDGE, 0, 0, 0, 0);
|
|
device_add(&i430vx_device);
|
|
device_add(&piix3_device);
|
|
device_add(&keyboard_ps2_pci_device);
|
|
device_add(&w83877f_device);
|
|
device_add(&intel_flash_bxt_device);
|
|
|
|
return ret;
|
|
}
|
|
|
|
|
|
int
|
|
machine_at_i430vx_init(const machine_t *model)
|
|
{
|
|
int ret;
|
|
|
|
ret = bios_load_linear(L"roms/machines/430vx/55xwuq0e.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(0x11, PCI_CARD_NORMAL, 2, 3, 4, 1);
|
|
pci_register_slot(0x12, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
pci_register_slot(0x14, PCI_CARD_NORMAL, 3, 4, 1, 2);
|
|
pci_register_slot(0x13, PCI_CARD_NORMAL, 4, 1, 2, 3);
|
|
pci_register_slot(0x07, PCI_CARD_SOUTHBRIDGE, 0, 0, 0, 0);
|
|
device_add(&i430vx_device);
|
|
device_add(&piix3_device);
|
|
device_add(&keyboard_ps2_pci_device);
|
|
device_add(&um8669f_device);
|
|
device_add(&intel_flash_bxt_device);
|
|
|
|
return ret;
|
|
}
|
|
|
|
|
|
int
|
|
machine_at_p55va_init(const machine_t *model)
|
|
{
|
|
int ret;
|
|
|
|
ret = bios_load_linear(L"roms/machines/p55va/va021297.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);
|
|
device_add(&i430vx_device);
|
|
device_add(&piix3_device);
|
|
device_add(&keyboard_ps2_pci_device);
|
|
device_add(&fdc37c932fr_device);
|
|
device_add(&intel_flash_bxt_device);
|
|
|
|
return ret;
|
|
}
|
|
|
|
|
|
int
|
|
machine_at_j656vxd_init(const machine_t *model)
|
|
{
|
|
int ret;
|
|
|
|
ret = bios_load_linear(L"roms/machines/j656vxd/J656VXD.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(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);
|
|
pci_register_slot(0x07, PCI_CARD_SOUTHBRIDGE, 0, 0, 0, 0);
|
|
device_add(&i430vx_device);
|
|
device_add(&piix3_device);
|
|
device_add(&keyboard_ps2_pci_device);
|
|
device_add(&fdc37c669_device);
|
|
device_add(&intel_flash_bxt_device);
|
|
|
|
return ret;
|
|
}
|
|
|
|
|
|
int
|
|
machine_at_5tx52_init(const machine_t *model)
|
|
{
|
|
int ret;
|
|
|
|
ret = bios_load_linear(L"roms/machines/5tx52/5itw002.bin",
|
|
0x000e0000, 131072, 0);
|
|
|
|
if (bios_only || !ret)
|
|
return ret;
|
|
|
|
machine_at_common_init_ex(model, 2);
|
|
|
|
pci_init(PCI_CONFIG_TYPE_1);
|
|
pci_register_slot(0x00, PCI_CARD_NORTHBRIDGE, 0, 0, 0, 0);
|
|
pci_register_slot(0x09, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
pci_register_slot(0x0A, PCI_CARD_NORMAL, 2, 3, 4, 1);
|
|
pci_register_slot(0x0B, PCI_CARD_NORMAL, 3, 4, 1, 2);
|
|
pci_register_slot(0x0C, PCI_CARD_NORMAL, 4, 1, 2, 3);
|
|
pci_register_slot(0x07, PCI_CARD_SOUTHBRIDGE, 0, 0, 0, 4); /* PIIX4 */
|
|
device_add(&i430tx_device);
|
|
device_add(&piix4_device);
|
|
device_add(&keyboard_ps2_pci_device);
|
|
device_add(&w83877tf_acorp_device);
|
|
device_add(&intel_flash_bxt_device);
|
|
|
|
return ret;
|
|
}
|
|
|
|
|
|
int
|
|
machine_at_txp4_init(const machine_t *model)
|
|
{
|
|
int ret;
|
|
|
|
#if 0
|
|
ret = bios_load_linear(L"roms/machines/txp4/5itw003.bin",
|
|
0x000e0000, 131072, 0);
|
|
#else
|
|
ret = bios_load_linear(L"roms/machines/txp4/TX5I0108.AWD",
|
|
0x000e0000, 131072, 0);
|
|
#endif
|
|
|
|
if (bios_only || !ret)
|
|
return ret;
|
|
|
|
machine_at_common_init_ex(model, 2);
|
|
|
|
pci_init(PCI_CONFIG_TYPE_1);
|
|
pci_register_slot(0x00, PCI_CARD_NORTHBRIDGE, 0, 0, 0, 0);
|
|
pci_register_slot(0x0C, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
pci_register_slot(0x0B, PCI_CARD_NORMAL, 2, 3, 4, 1);
|
|
pci_register_slot(0x0A, PCI_CARD_NORMAL, 3, 4, 1, 2);
|
|
pci_register_slot(0x09, PCI_CARD_NORMAL, 4, 1, 2, 3);
|
|
pci_register_slot(0x07, PCI_CARD_SOUTHBRIDGE, 1, 2, 3, 4); /* PIIX4 */
|
|
pci_register_slot(0x0D, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
pci_register_slot(0x08, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
device_add(&i430tx_device);
|
|
device_add(&piix4_device);
|
|
device_add(&keyboard_ps2_pci_device);
|
|
device_add(&w83977tf_device);
|
|
device_add(&intel_flash_bxt_device);
|
|
|
|
return ret;
|
|
}
|
|
|
|
|
|
int
|
|
machine_at_ym430tx_init(const machine_t *model)
|
|
{
|
|
int ret;
|
|
|
|
ret = bios_load_linear(L"roms/machines/ym430tx/YM430TX.003",
|
|
0x000e0000, 131072, 0);
|
|
|
|
if (bios_only || !ret)
|
|
return ret;
|
|
|
|
machine_at_common_init_ex(model, 2);
|
|
|
|
pci_init(PCI_CONFIG_TYPE_1);
|
|
pci_register_slot(0x00, PCI_CARD_NORTHBRIDGE, 0, 0, 0, 0);
|
|
pci_register_slot(0x0C, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
pci_register_slot(0x0B, PCI_CARD_NORMAL, 2, 3, 4, 1);
|
|
pci_register_slot(0x0A, PCI_CARD_NORMAL, 3, 4, 1, 2);
|
|
pci_register_slot(0x09, PCI_CARD_NORMAL, 4, 1, 2, 3);
|
|
pci_register_slot(0x01, PCI_CARD_SOUTHBRIDGE, 1, 2, 3, 4); /* PIIX4 */
|
|
pci_register_slot(0x0D, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
pci_register_slot(0x08, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
device_add(&i430tx_device);
|
|
device_add(&piix4_device);
|
|
device_add(&keyboard_ps2_pci_device);
|
|
device_add(&w83977tf_device);
|
|
device_add(&intel_flash_bxt_device);
|
|
|
|
return ret;
|
|
}
|
|
|
|
|
|
int
|
|
machine_at_sp586tx_init(const machine_t *model)
|
|
{
|
|
int ret;
|
|
|
|
ret = bios_load_linear(L"roms/machines/sp586tx/Txa6-32gb.bin",
|
|
0x000e0000, 131072, 0);
|
|
|
|
if (bios_only || !ret)
|
|
return ret;
|
|
|
|
machine_at_common_init_ex(model, 2);
|
|
|
|
pci_init(PCI_CONFIG_TYPE_1);
|
|
pci_register_slot(0x00, PCI_CARD_NORTHBRIDGE, 0, 0, 0, 0);
|
|
pci_register_slot(0x0C, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
pci_register_slot(0x0B, PCI_CARD_NORMAL, 2, 3, 4, 1);
|
|
pci_register_slot(0x0A, PCI_CARD_NORMAL, 3, 4, 1, 2);
|
|
pci_register_slot(0x09, PCI_CARD_NORMAL, 4, 1, 2, 3);
|
|
pci_register_slot(0x07, PCI_CARD_SOUTHBRIDGE, 1, 2, 3, 4); /* PIIX4 */
|
|
pci_register_slot(0x0D, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
pci_register_slot(0x08, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
device_add(&i430tx_device);
|
|
device_add(&piix4_device);
|
|
device_add(&keyboard_ps2_pci_device);
|
|
device_add(&w83977tf_device);
|
|
device_add(&intel_flash_bxt_device);
|
|
|
|
return ret;
|
|
}
|
|
|
|
|
|
int
|
|
machine_at_mvp3_init(const machine_t *model)
|
|
{
|
|
int ret;
|
|
|
|
ret = bios_load_linear(L"roms/machines/ficva503p/je4333.bin",
|
|
0x000e0000, 131072, 0);
|
|
|
|
if (bios_only || !ret)
|
|
return ret;
|
|
|
|
machine_at_common_init_ex(model, 2);
|
|
|
|
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(0x01, PCI_CARD_NORMAL, 1, 2, 3, 4);
|
|
pci_register_slot(0x07, PCI_CARD_SOUTHBRIDGE, 1, 2, 3, 4);
|
|
device_add(&via_mvp3_device);
|
|
device_add(&via_vt82c586b_device);
|
|
device_add(&keyboard_ps2_pci_device);
|
|
device_add(&w83877tf_device);
|
|
device_add(&sst_flash_39sf010_device);
|
|
|
|
return ret;
|
|
}
|