Preliminary attempt at implementing the Dell OptiPlex GN+
This commit is contained in:
@@ -751,6 +751,7 @@ extern int machine_at_gw2kte_init(const machine_t *);
|
|||||||
extern int machine_at_ma23c_init(const machine_t *);
|
extern int machine_at_ma23c_init(const machine_t *);
|
||||||
extern int machine_at_nupro592_init(const machine_t *);
|
extern int machine_at_nupro592_init(const machine_t *);
|
||||||
extern int machine_at_tx97_init(const machine_t *);
|
extern int machine_at_tx97_init(const machine_t *);
|
||||||
|
extern int machine_at_optiplex_gn_init(const machine_t *);
|
||||||
#ifdef USE_AN430TX
|
#ifdef USE_AN430TX
|
||||||
extern int machine_at_an430tx_init(const machine_t *);
|
extern int machine_at_an430tx_init(const machine_t *);
|
||||||
#endif /* USE_AN430TX */
|
#endif /* USE_AN430TX */
|
||||||
|
|||||||
@@ -969,6 +969,40 @@ machine_at_tx97_init(const machine_t *model)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
machine_at_optiplex_gn_init(const machine_t *model)
|
||||||
|
{
|
||||||
|
int ret;
|
||||||
|
|
||||||
|
ret = bios_load_linear("roms/machines/optiplex_gn/Gn_a11.rom",
|
||||||
|
0x000c0000, 262144, 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, 1, 2, 3, 4);
|
||||||
|
pci_register_slot(0x10, PCI_CARD_VIDEO, 4, 0, 0, 0); /* Trio64V2/GX, temporarily Trio64V2/DX is given */
|
||||||
|
pci_register_slot(0x0D, PCI_CARD_NORMAL, 2, 1, 3, 4);
|
||||||
|
pci_register_slot(0x0E, PCI_CARD_NORMAL, 3, 4, 2, 1);
|
||||||
|
pci_register_slot(0x11, PCI_CARD_NETWORK, 4, 0, 0, 0); /* 3C905, not yet emulated */
|
||||||
|
pci_register_slot(0x07, PCI_CARD_SOUTHBRIDGE, 0, 0, 0, 4);
|
||||||
|
|
||||||
|
if (gfxcard[0] == VID_INTERNAL)
|
||||||
|
device_add(machine_get_vid_device(machine));
|
||||||
|
|
||||||
|
device_add(&i430tx_device);
|
||||||
|
device_add(&piix4_device);
|
||||||
|
device_add(&keyboard_ps2_ami_pci_device);
|
||||||
|
device_add(&pc87307_15c_device);
|
||||||
|
device_add(&intel_flash_bxt_device);
|
||||||
|
spd_register(SPD_TYPE_SDRAM, 0x3, 128);
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef USE_AN430TX
|
#ifdef USE_AN430TX
|
||||||
int
|
int
|
||||||
machine_at_an430tx_init(const machine_t *model)
|
machine_at_an430tx_init(const machine_t *model)
|
||||||
|
|||||||
@@ -13103,6 +13103,50 @@ const machine_t machines[] = {
|
|||||||
.snd_device = NULL,
|
.snd_device = NULL,
|
||||||
.net_device = NULL
|
.net_device = NULL
|
||||||
},
|
},
|
||||||
|
/* According to Dell specifications, it can have either National Semiconductor PC87307 or PC87309
|
||||||
|
Super I/O. All known instances have the former, although other similar Dells of the era have
|
||||||
|
pinouts for accompanying either so this likely also does.
|
||||||
|
|
||||||
|
The KBC is likely an AMIKey-2 clone. */
|
||||||
|
{
|
||||||
|
.name = "[i430TX] Dell OptiPlex GN+",
|
||||||
|
.internal_name = "optiplex_gn",
|
||||||
|
.type = MACHINE_TYPE_SOCKET7,
|
||||||
|
.chipset = MACHINE_CHIPSET_INTEL_430TX,
|
||||||
|
.init = machine_at_optiplex_gn_init,
|
||||||
|
.p1_handler = NULL,
|
||||||
|
.gpio_handler = NULL,
|
||||||
|
.available_flag = MACHINE_AVAILABLE,
|
||||||
|
.gpio_acpi_handler = NULL,
|
||||||
|
.cpu = {
|
||||||
|
.package = CPU_PKG_SOCKET5_7,
|
||||||
|
.block = CPU_BLOCK_NONE,
|
||||||
|
.min_bus = 50000000,
|
||||||
|
.max_bus = 66666667,
|
||||||
|
.min_voltage = 2500,
|
||||||
|
.max_voltage = 3520,
|
||||||
|
.min_multi = 1.5,
|
||||||
|
.max_multi = 3.5
|
||||||
|
},
|
||||||
|
.bus_flags = MACHINE_PS2_PCI,
|
||||||
|
.flags = MACHINE_IDE_DUAL | MACHINE_APM | MACHINE_ACPI | MACHINE_VIDEO, /* Video: S3 86C785 (Trio64V2/GX), ethernet: 3C905 */
|
||||||
|
.ram = {
|
||||||
|
.min = 8192,
|
||||||
|
.max = 262144,
|
||||||
|
.step = 8192
|
||||||
|
},
|
||||||
|
.nvrmask = 255,
|
||||||
|
.kbc_device = NULL,
|
||||||
|
.kbc_p1 = 0xff,
|
||||||
|
.gpio = 0xffffffff,
|
||||||
|
.gpio_acpi = 0xffffffff,
|
||||||
|
.device = NULL,
|
||||||
|
.fdc_device = NULL,
|
||||||
|
.sio_device = NULL,
|
||||||
|
.vid_device = &s3_trio64v2_dx_onboard_pci_device, /* Stop-gap measure until the Trio64V2/GX is emulated, as both use the same VBIOS */
|
||||||
|
.snd_device = NULL,
|
||||||
|
.net_device = NULL
|
||||||
|
},
|
||||||
/* [TEST] Has AMI Megakey '5' KBC firmware on the SM(S)C FDC37C67x Super I/O chip. */
|
/* [TEST] Has AMI Megakey '5' KBC firmware on the SM(S)C FDC37C67x Super I/O chip. */
|
||||||
{
|
{
|
||||||
.name = "[i430TX] Gateway E-1000",
|
.name = "[i430TX] Gateway E-1000",
|
||||||
|
|||||||
Reference in New Issue
Block a user