mirror of
https://github.com/86Box/86Box.git
synced 2026-02-23 09:58:19 -07:00
more Multitech PC-500/500+ modifies (#6298)
* add DTK PIM-TB10-Z BIOS 2.39 * change Multitech PC-500/PC500+ KBC type to XTClone * 1. add ISA RTC century field to support Multitech onboard RTC 2. hard-coded I/O port and IRQ for Multitech onboard RTC until find a prorper way to obtain correct value from machine config
This commit is contained in:
@@ -896,13 +896,71 @@ machine_xt_compaq_portable_init(const machine_t *model)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static const device_config_t dtk_config[] = {
|
||||
// clang-format off
|
||||
{
|
||||
.name = "bios",
|
||||
.description = "BIOS Version",
|
||||
.type = CONFIG_BIOS,
|
||||
.default_string = "dtk_242",
|
||||
.default_int = 0,
|
||||
.file_filter = NULL,
|
||||
.spinner = { 0 },
|
||||
.selection = { { 0 } },
|
||||
.bios = {
|
||||
{
|
||||
.name = "2.39",
|
||||
.internal_name = "dtk_239",
|
||||
.bios_type = BIOS_NORMAL,
|
||||
.files_no = 1,
|
||||
.local = 0,
|
||||
.size = 8192,
|
||||
.files = { "roms/machines/dtk/PIM-TB10-Z.BIN", ""}
|
||||
},
|
||||
{
|
||||
.name = "2.42",
|
||||
.internal_name = "dtk_242",
|
||||
.bios_type = BIOS_NORMAL,
|
||||
.files_no = 1,
|
||||
.local = 0,
|
||||
.size = 8192,
|
||||
.files = { "roms/machines/dtk/dtk_erso_2.42_2764.bin", ""}
|
||||
},
|
||||
{ .files_no = 0 }
|
||||
}
|
||||
},
|
||||
{ .name = "", .description = "", .type = CONFIG_END }
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
const device_t dtk_device = {
|
||||
.name = "DTK PIM-TB10-Z",
|
||||
.internal_name = "dtk_device",
|
||||
.flags = 0,
|
||||
.local = 0,
|
||||
.init = NULL,
|
||||
.close = NULL,
|
||||
.reset = NULL,
|
||||
.available = NULL,
|
||||
.speed_changed = NULL,
|
||||
.force_redraw = NULL,
|
||||
.config = dtk_config
|
||||
};
|
||||
|
||||
int
|
||||
machine_xt_dtk_init(const machine_t *model)
|
||||
{
|
||||
int ret;
|
||||
int ret = 0;
|
||||
const char *fn;
|
||||
|
||||
ret = bios_load_linear("roms/machines/dtk/dtk_erso_2.42_2764.bin",
|
||||
0x000fe000, 8192, 0);
|
||||
/* No ROMs available. */
|
||||
if (!device_available(model->device))
|
||||
return ret;
|
||||
|
||||
device_context(model->device);
|
||||
fn = device_get_bios_file(model->device, device_get_config_bios("bios"), 0);
|
||||
ret = bios_load_linear(fn, 0x000fe000, 8192, 0);
|
||||
device_context_restore();
|
||||
|
||||
if (bios_only || !ret)
|
||||
return ret;
|
||||
@@ -1252,7 +1310,7 @@ machine_xt_pc500_init(const machine_t *model)
|
||||
if (bios_only || !ret)
|
||||
return ret;
|
||||
|
||||
device_add(&kbc_pc_device);
|
||||
device_add(&kbc_xtclone_device);
|
||||
|
||||
machine_xt_common_init(model, 0);
|
||||
|
||||
@@ -1371,7 +1429,7 @@ machine_xt_pc500plus_init(const machine_t *model)
|
||||
if (bios_only || !ret)
|
||||
return ret;
|
||||
|
||||
device_add(&kbc_pc_device);
|
||||
device_add(&kbc_xtclone_device);
|
||||
|
||||
machine_xt_common_init(model, 0);
|
||||
|
||||
|
||||
@@ -701,7 +701,7 @@ const machine_t machines[] = {
|
||||
.kbc_p1 = 0xff,
|
||||
.gpio = 0xffffffff,
|
||||
.gpio_acpi = 0xffffffff,
|
||||
.device = NULL,
|
||||
.device = &dtk_device,
|
||||
.kbd_device = &keyboard_pc_xt_device,
|
||||
.fdc_device = NULL,
|
||||
.sio_device = NULL,
|
||||
|
||||
Reference in New Issue
Block a user