Add GD5401 On-Board Code for the ICL DRS M35/286.
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
#include <86box/plat_unused.h>
|
||||
|
||||
#define BIOS_GD5401_PATH "roms/video/cirruslogic/avga1.rom"
|
||||
#define BIOS_GD5401_ONBOARD_PATH "roms/machines/drsm35286/qpaw01-6658237d5e3c2611427518.bin"
|
||||
#define BIOS_GD5402_PATH "roms/video/cirruslogic/avga2.rom"
|
||||
#define BIOS_GD5402_ONBOARD_PATH "roms/machines/cmdsl386sx25/c000.rom"
|
||||
#define BIOS_GD5420_PATH "roms/video/cirruslogic/5420.vbi"
|
||||
@@ -4236,8 +4237,11 @@ gd54xx_init(const device_t *info)
|
||||
|
||||
switch (id) {
|
||||
case CIRRUS_ID_CLGD5401:
|
||||
romfn = BIOS_GD5401_PATH;
|
||||
break;
|
||||
if (info->local & 0x100)
|
||||
romfn = BIOS_GD5401_ONBOARD_PATH;
|
||||
else
|
||||
romfn = BIOS_GD5401_PATH;
|
||||
break;
|
||||
|
||||
case CIRRUS_ID_CLGD5402:
|
||||
if (info->local & 0x200)
|
||||
@@ -4945,6 +4949,20 @@ const device_t gd5401_isa_device = {
|
||||
.config = NULL,
|
||||
};
|
||||
|
||||
const device_t gd5401_onboard_device = {
|
||||
.name = "Cirrus Logic GD5401 (ISA) (ACUMOS AVGA1) (On-Board)",
|
||||
.internal_name = "cl_gd5402_onboard",
|
||||
.flags = DEVICE_ISA16,
|
||||
.local = CIRRUS_ID_CLGD5401 | 0x100,
|
||||
.init = gd54xx_init,
|
||||
.close = gd54xx_close,
|
||||
.reset = gd54xx_reset,
|
||||
.available = NULL,
|
||||
.speed_changed = gd54xx_speed_changed,
|
||||
.force_redraw = gd54xx_force_redraw,
|
||||
.config = NULL,
|
||||
};
|
||||
|
||||
const device_t gd5402_isa_device = {
|
||||
.name = "Cirrus Logic GD5402 (ISA) (ACUMOS AVGA2)",
|
||||
.internal_name = "cl_gd5402_isa",
|
||||
|
||||
Reference in New Issue
Block a user