Added PIIX4 AMI 1995 NVR device.

This commit is contained in:
OBattler
2026-01-16 11:35:17 +01:00
parent 2c76af68b5
commit fb1f37c83b
2 changed files with 24 additions and 2 deletions

View File

@@ -95,6 +95,7 @@ extern const device_t ami_1992_nvr_device;
extern const device_t ami_1994_nvr_device;
extern const device_t ami_1995_nvr_device;
extern const device_t via_nvr_device;
extern const device_t piix4_ami_1995_nvr_device;
extern const device_t p6rp4_nvr_device;
extern const device_t martin_nvr_device;
extern const device_t elt_nvr_device;

View File

@@ -1173,8 +1173,15 @@ nvr_at_init(const device_t *info)
local->cent = RTC_CENTURY_VIA;
break;
case 8: /* Epson Equity LT */
nvr->irq = -1;
local->cent = RTC_CENTURY_ELT;
if ((info->local & 0x1f) == 0x18) {
local->flags |= (FLAG_PIIX4 | FLAG_AMI_1995_HACK);
local->def = 0x00;
nvr->irq = 8;
local->cent = RTC_CENTURY_AT;
} else {
nvr->irq = -1;
local->cent = RTC_CENTURY_ELT;
}
break;
default:
@@ -1445,6 +1452,20 @@ const device_t via_nvr_device = {
.config = NULL
};
const device_t piix4_ami_1995_nvr_device = {
.name = "Intel PIIX4 AMI WinBIOS 1995 PC/AT NVRAM",
.internal_name = "piix4_ami_1995_nvr",
.flags = DEVICE_ISA16,
.local = 0x10 | 8,
.init = nvr_at_init,
.close = nvr_at_close,
.reset = nvr_at_reset,
.available = NULL,
.speed_changed = nvr_at_speed_changed,
.force_redraw = NULL,
.config = NULL
};
const device_t p6rp4_nvr_device = {
.name = "ASUS P/I-P6RP4 PC/AT NVRAM",
.internal_name = "p6rp4_nvr",