mirror of
https://github.com/86Box/86Box.git
synced 2026-02-23 18:08:20 -07:00
Add BIOS selector and 1996 BIOS to the NEC PowerMate Vxxx (#6324)
* Add BIOS selector and 1996 BIOS to the NEC PowerMate Vxxx Add a BIOS selector and the 1996 BIOS to the NEC PowerMate Vxxx. * m_at_socket5.c: Version 4.04 -> Version 4.05
This commit is contained in:
@@ -922,6 +922,9 @@ extern int machine_at_pc330_65x6_init(const machine_t *);
|
||||
extern const device_t zappa_device;
|
||||
#endif
|
||||
extern int machine_at_zappa_init(const machine_t *);
|
||||
#ifdef EMU_DEVICE_H
|
||||
extern const device_t powermatev_device;
|
||||
#endif
|
||||
extern int machine_at_powermatev_init(const machine_t *);
|
||||
extern int machine_at_hawk_init(const machine_t *);
|
||||
|
||||
|
||||
@@ -669,17 +669,72 @@ machine_at_zappa_init(const machine_t *model)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static const device_config_t powermatev_config[] = {
|
||||
// clang-format off
|
||||
{
|
||||
.name = "bios",
|
||||
.description = "BIOS Version",
|
||||
.type = CONFIG_BIOS,
|
||||
.default_string = "powermatev",
|
||||
.default_int = 0,
|
||||
.file_filter = NULL,
|
||||
.spinner = { 0 },
|
||||
.selection = { { 0 } },
|
||||
.bios = {
|
||||
{
|
||||
.name = "PhoenixBIOS Version 4.05.M - Revision 00.04.08",
|
||||
.internal_name = "powermatev_122195",
|
||||
.bios_type = BIOS_NORMAL,
|
||||
.files_no = 1,
|
||||
.local = 0,
|
||||
.size = 131072,
|
||||
.files = { "roms/machines/powermatev/B50NM00M.ROM", "" }
|
||||
},
|
||||
{
|
||||
.name = "PhoenixBIOS Version 4.05.V - Revision 00.04.15",
|
||||
.internal_name = "powermatev",
|
||||
.bios_type = BIOS_NORMAL,
|
||||
.files_no = 1,
|
||||
.local = 0,
|
||||
.size = 131072,
|
||||
.files = { "roms/machines/powermatev/B50NM00V.ROM", "" }
|
||||
},
|
||||
{ .files_no = 0 }
|
||||
}
|
||||
},
|
||||
{ .name = "", .description = "", .type = CONFIG_END }
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
const device_t powermatev_device = {
|
||||
.name = "NEC PowerMate Vxxx",
|
||||
.internal_name = "powermatev_device",
|
||||
.flags = 0,
|
||||
.local = 0,
|
||||
.init = NULL,
|
||||
.close = NULL,
|
||||
.reset = NULL,
|
||||
.available = NULL,
|
||||
.speed_changed = NULL,
|
||||
.force_redraw = NULL,
|
||||
.config = powermatev_config
|
||||
};
|
||||
|
||||
int
|
||||
machine_at_powermatev_init(const machine_t *model)
|
||||
{
|
||||
int ret;
|
||||
int ret = 0;
|
||||
const char *fn;
|
||||
|
||||
ret = bios_load_linear("roms/machines/powermatev/BIOS.ROM",
|
||||
0x000e0000, 131072, 0);
|
||||
|
||||
if (bios_only || !ret)
|
||||
/* No ROMs available */
|
||||
if (!device_available(model->device))
|
||||
return ret;
|
||||
|
||||
device_context(model->device);
|
||||
fn = device_get_bios_file(machine_get_device(machine), device_get_config_bios("bios"), 0);
|
||||
ret = bios_load_linear(fn, 0x000e0000, 131072, 0);
|
||||
device_context_restore();
|
||||
|
||||
machine_at_common_init(model);
|
||||
|
||||
pci_init(PCI_CONFIG_TYPE_1);
|
||||
|
||||
@@ -12556,7 +12556,7 @@ const machine_t machines[] = {
|
||||
.kbc_p1 = 0x00000cf0,
|
||||
.gpio = 0xffffffff,
|
||||
.gpio_acpi = 0xffffffff,
|
||||
.device = NULL,
|
||||
.device = &powermatev_device,
|
||||
.kbd_device = NULL,
|
||||
.fdc_device = NULL,
|
||||
.sio_device = NULL,
|
||||
|
||||
Reference in New Issue
Block a user