Add PC Chips M773 machine
This commit is contained in:
@@ -1619,7 +1619,10 @@ acpi_reset(void *priv)
|
|||||||
acpi_t *dev = (acpi_t *) priv;
|
acpi_t *dev = (acpi_t *) priv;
|
||||||
|
|
||||||
memset(&dev->regs, 0x00, sizeof(acpi_regs_t));
|
memset(&dev->regs, 0x00, sizeof(acpi_regs_t));
|
||||||
dev->regs.gpireg[0] = 0xff;
|
/* PC Chips M773:
|
||||||
|
- Bit 3: 80-conductor cable on unknown IDE channel (active low)
|
||||||
|
- Bit 1: 80-conductor cable on unknown IDE channel (active low) */
|
||||||
|
dev->regs.gpireg[0] = !strcmp(machine_get_internal_name(), "m773") ? 0xf5 : 0xff;
|
||||||
dev->regs.gpireg[1] = 0xff;
|
dev->regs.gpireg[1] = 0xff;
|
||||||
/* A-Trend ATC7020BXII:
|
/* A-Trend ATC7020BXII:
|
||||||
- Bit 3: 80-conductor cable on secondary IDE channel (active low)
|
- Bit 3: 80-conductor cable on secondary IDE channel (active low)
|
||||||
|
|||||||
@@ -755,6 +755,7 @@ extern int machine_at_s370slm_init(const machine_t *);
|
|||||||
|
|
||||||
extern int machine_at_cubx_init(const machine_t *);
|
extern int machine_at_cubx_init(const machine_t *);
|
||||||
extern int machine_at_atc7020bxii_init(const machine_t *);
|
extern int machine_at_atc7020bxii_init(const machine_t *);
|
||||||
|
extern int machine_at_m773_init(const machine_t *);
|
||||||
extern int machine_at_ambx133_init(const machine_t *);
|
extern int machine_at_ambx133_init(const machine_t *);
|
||||||
extern int machine_at_awo671r_init(const machine_t *);
|
extern int machine_at_awo671r_init(const machine_t *);
|
||||||
extern int machine_at_63a1_init(const machine_t *);
|
extern int machine_at_63a1_init(const machine_t *);
|
||||||
|
|||||||
@@ -173,9 +173,8 @@ machine_at_p6bat_init(const machine_t *model)
|
|||||||
device_add(&sst_flash_39sf020_device);
|
device_add(&sst_flash_39sf020_device);
|
||||||
spd_register(SPD_TYPE_SDRAM, 0x7, 256);
|
spd_register(SPD_TYPE_SDRAM, 0x7, 256);
|
||||||
|
|
||||||
if (sound_card_current[0] == SOUND_INTERNAL) {
|
if (sound_card_current[0] == SOUND_INTERNAL)
|
||||||
device_add(&cmi8738_onboard_device);
|
device_add(&cmi8738_onboard_device);
|
||||||
}
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@@ -248,6 +247,44 @@ machine_at_atc7020bxii_init(const machine_t *model)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
machine_at_m773_init(const machine_t *model)
|
||||||
|
{
|
||||||
|
int ret;
|
||||||
|
|
||||||
|
ret = bios_load_linear("roms/machines/m773/010504s.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, 0, 0, 0, 0);
|
||||||
|
pci_register_slot(0x07, PCI_CARD_SOUTHBRIDGE, 1, 2, 3, 4);
|
||||||
|
pci_register_slot(0x0C, PCI_CARD_SOUND, 4, 3, 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(0x0D, PCI_CARD_NORMAL, 4, 1, 2, 3);
|
||||||
|
pci_register_slot(0x01, PCI_CARD_AGPBRIDGE, 1, 2, 3, 4);
|
||||||
|
device_add(&i440bx_device);
|
||||||
|
device_add(&slc90e66_device);
|
||||||
|
device_add(&keyboard_ps2_ami_pci_device);
|
||||||
|
device_add(&it8671f_device);
|
||||||
|
device_add(&sst_flash_39sf020_device);
|
||||||
|
spd_register(SPD_TYPE_SDRAM, 0x3, 256);
|
||||||
|
device_add(&gl520sm_2d_device); /* fans: CPU, Chassis; temperature: System */
|
||||||
|
hwm_values.voltages[0] = 3300; /* Vcore and 3.3V are swapped */
|
||||||
|
hwm_values.voltages[2] = hwm_get_vcore();
|
||||||
|
|
||||||
|
if (sound_card_current[0] == SOUND_INTERNAL)
|
||||||
|
device_add(&cmi8738_onboard_device);
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
machine_at_ambx133_init(const machine_t *model)
|
machine_at_ambx133_init(const machine_t *model)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -163,7 +163,6 @@ const machine_filter_t machine_chipsets[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* Machines to add before machine freeze:
|
/* Machines to add before machine freeze:
|
||||||
- PCChips M773 (440BX + SMSC with AMI BIOS);
|
|
||||||
- TMC Mycomp PCI54ST;
|
- TMC Mycomp PCI54ST;
|
||||||
- Zeos Quadtel 486.
|
- Zeos Quadtel 486.
|
||||||
|
|
||||||
@@ -13163,6 +13162,47 @@ const machine_t machines[] = {
|
|||||||
.snd_device = NULL,
|
.snd_device = NULL,
|
||||||
.net_device = NULL
|
.net_device = NULL
|
||||||
},
|
},
|
||||||
|
/* Has an ITE IT8671F Super I/O chip with on-chip KBC with AMIKey-2 KBC
|
||||||
|
firmware. */
|
||||||
|
{
|
||||||
|
.name = "[SMSC VictoryBX-66] PC Chips M773",
|
||||||
|
.internal_name = "m773",
|
||||||
|
.type = MACHINE_TYPE_SOCKET370,
|
||||||
|
.chipset = MACHINE_CHIPSET_SMSC_VICTORYBX_66,
|
||||||
|
.init = machine_at_m773_init,
|
||||||
|
.p1_handler = NULL,
|
||||||
|
.gpio_handler = NULL,
|
||||||
|
.available_flag = MACHINE_AVAILABLE,
|
||||||
|
.gpio_acpi_handler = NULL,
|
||||||
|
.cpu = {
|
||||||
|
.package = CPU_PKG_SOCKET370,
|
||||||
|
.block = CPU_BLOCK_NONE,
|
||||||
|
.min_bus = 66666667,
|
||||||
|
.max_bus = 133333333,
|
||||||
|
.min_voltage = 1300,
|
||||||
|
.max_voltage = 3500,
|
||||||
|
.min_multi = 1.5,
|
||||||
|
.max_multi = 8.0
|
||||||
|
},
|
||||||
|
.bus_flags = MACHINE_PS2_AGP,
|
||||||
|
.flags = MACHINE_IDE_DUAL | MACHINE_SOUND | MACHINE_APM | MACHINE_ACPI,
|
||||||
|
.ram = {
|
||||||
|
.min = 8192,
|
||||||
|
.max = 524288,
|
||||||
|
.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 = NULL,
|
||||||
|
.snd_device = &cmi8738_onboard_device,
|
||||||
|
.net_device = NULL
|
||||||
|
},
|
||||||
|
|
||||||
/* VIA Apollo Pro */
|
/* VIA Apollo Pro */
|
||||||
/* Has the VIA VT82C586B southbridge with on-chip KBC identical to the VIA
|
/* Has the VIA VT82C586B southbridge with on-chip KBC identical to the VIA
|
||||||
|
|||||||
Reference in New Issue
Block a user