Implemented preliminary S3 ViRGE 2D blitter emulation.

Misc ViRGE fixes.
Changes to memory mapping.
Changes to PCI handling.
Disabled 'AMI WinBIOS 486 PCI' due to incomplete chipset emulation.
Invalid GUS register reads no longer kill the emulator.
This commit is contained in:
TomW 2014-03-20 14:03:55 +00:00
commit 2ca4ead570
49 changed files with 2078 additions and 700 deletions

View file

@ -4,6 +4,7 @@
#include "device.h"
#include "io.h"
#include "mem.h"
#include "rom.h"
#include "video.h"
#include "vid_ati18800.h"
#include "vid_ati_eeprom.h"
@ -13,6 +14,8 @@ typedef struct ati18800_t
{
svga_t svga;
ati_eeprom_t eeprom;
rom_t bios_rom;
uint8_t regs[256];
int index;
@ -122,6 +125,8 @@ void *ati18800_init()
ati18800_t *ati18800 = malloc(sizeof(ati18800_t));
memset(ati18800, 0, sizeof(ati18800_t));
rom_init(&ati18800->bios_rom, "roms/vgaedge16.vbi", 0xc0000, 0x8000, 0x7fff, 0, 0);
svga_init(&ati18800->svga, ati18800, 1 << 19, /*512kb*/
NULL,
ati18800_in, ati18800_out,
@ -137,6 +142,11 @@ void *ati18800_init()
return ati18800;
}
static int ati18800_available()
{
return rom_present("roms/vgaedge16.vbi");
}
void ati18800_close(void *p)
{
ati18800_t *ati18800 = (ati18800_t *)p;
@ -173,7 +183,7 @@ device_t ati18800_device =
0,
ati18800_init,
ati18800_close,
NULL,
ati18800_available,
ati18800_speed_changed,
ati18800_force_redraw,
ati18800_add_status_info