Added the variant of the PC87309 Super I/O chip on ports 15Ch and 15Dh.

This commit is contained in:
OBattler
2020-09-07 23:11:46 +02:00
parent ec1a3e3784
commit 96eb247e9a
3 changed files with 19 additions and 3 deletions

View File

@@ -460,8 +460,13 @@ pc87309_init(const device_t *info)
pc87309_reset(dev);
io_sethandler(0x02e, 0x0002,
pc87309_read, NULL, NULL, pc87309_write, NULL, NULL, dev);
if (info->local & 0x100) {
io_sethandler(0x15c, 0x0002,
pc87309_read, NULL, NULL, pc87309_write, NULL, NULL, dev);
} else {
io_sethandler(0x02e, 0x0002,
pc87309_read, NULL, NULL, pc87309_write, NULL, NULL, dev);
}
return dev;
}
@@ -475,3 +480,13 @@ const device_t pc87309_device = {
NULL, NULL, NULL,
NULL
};
const device_t pc87309_15c_device = {
"National Semiconductor PC87309 Super I/O (Port 15Ch)",
0,
0x1e0,
pc87309_init, pc87309_close, NULL,
NULL, NULL, NULL,
NULL
};