Added TriGem Unknown Adapter.

This commit is contained in:
OBattler
2016-12-23 04:14:14 +01:00
parent 4f82ffd98c
commit fe669d31ac
3 changed files with 40 additions and 2 deletions

View File

@@ -465,6 +465,7 @@ enum
GFX_HERCULESPLUS, GFX_HERCULESPLUS,
GFX_RIVATNT2, GFX_RIVATNT2,
GFX_TRIGEM_UNK,
GFX_MAX GFX_MAX
}; };

View File

@@ -105,6 +105,31 @@ void *vga_init()
return vga; return vga;
} }
void *trigem_unk_init()
{
vga_t *vga = malloc(sizeof(vga_t));
memset(vga, 0, sizeof(vga_t));
rom_init(&vga->bios_rom, "roms/ibm_vga.bin", 0xc0000, 0x8000, 0x7fff, 0x2000, MEM_MAPPING_EXTERNAL);
svga_init(&vga->svga, vga, 1 << 18, /*256kb*/
NULL,
vga_in, vga_out,
NULL,
NULL);
io_sethandler(0x03c0, 0x0020, vga_in, NULL, NULL, vga_out, NULL, NULL, vga);
io_sethandler(0x22ca, 0x0002, svga_in, NULL, NULL, svga_out, NULL, NULL, svga);
io_sethandler(0x22ce, 0x0002, svga_in, NULL, NULL, svga_out, NULL, NULL, svga);
io_sethandler(0x32ca, 0x0002, svga_in, NULL, NULL, svga_out, NULL, NULL, svga);
vga->svga.bpp = 8;
vga->svga.miscout = 1;
return vga;
}
/*PS/1 uses a standard VGA controller, but with no option ROM*/ /*PS/1 uses a standard VGA controller, but with no option ROM*/
void *ps1vga_init() void *ps1vga_init()
{ {
@@ -171,6 +196,17 @@ device_t vga_device =
vga_force_redraw, vga_force_redraw,
vga_add_status_info vga_add_status_info
}; };
device_t trigem_unk_device =
{
"VGA",
0,
trigem_unk_init,
vga_close,
vga_available,
vga_speed_changed,
vga_force_redraw,
vga_add_status_info
};
device_t ps1vga_device = device_t ps1vga_device =
{ {
"PS/1 VGA", "PS/1 VGA",

View File

@@ -91,9 +91,10 @@ static VIDEO_CARD video_cards[] =
{"Phoenix S3 Trio64", &s3_phoenix_trio64_device, GFX_PHOENIX_TRIO64}, {"Phoenix S3 Trio64", &s3_phoenix_trio64_device, GFX_PHOENIX_TRIO64},
{"Plantronics ColorPlus", &colorplus_device, GFX_COLORPLUS}, {"Plantronics ColorPlus", &colorplus_device, GFX_COLORPLUS},
{"S3 ViRGE/DX", &s3_virge_375_device, GFX_VIRGEDX}, {"S3 ViRGE/DX", &s3_virge_375_device, GFX_VIRGEDX},
{"Trident TVGA8900D", &tvga8900d_device, GFX_TVGA},
{"Tseng ET4000AX", &et4000_device, GFX_ET4000},
{"Trident TGUI9440", &tgui9440_device, GFX_TGUI9440}, {"Trident TGUI9440", &tgui9440_device, GFX_TGUI9440},
{"Trident TVGA8900D", &tvga8900d_device, GFX_TVGA},
{"TriGem Unknown Adapter", &trigem_unk_device, GFX_TRIGEM_UNK},
{"Tseng ET4000AX", &et4000_device, GFX_ET4000},
{"VGA", &vga_device, GFX_VGA}, {"VGA", &vga_device, GFX_VGA},
{"Wyse 700", &wy700_device, GFX_WY700}, {"Wyse 700", &wy700_device, GFX_WY700},
{"", NULL, 0} {"", NULL, 0}