Skip to content

Commit 0509fe8

Browse files
committed
pc/pcipc_sis: replace svga_et4k default map with wd90c31_lr
1 parent 38e786b commit 0509fe8

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

src/devices/bus/isa/svga_paradise.cpp

+25
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,17 @@ void isa16_pvga1a_device::device_start()
106106
m_isa->install_device(0x03b0, 0x03df, *this, &isa16_pvga1a_device::io_isa_map);
107107
}
108108

109+
void isa16_pvga1a_device::remap(int space_id, offs_t start, offs_t end)
110+
{
111+
if (space_id == AS_PROGRAM)
112+
{
113+
m_isa->install_memory(0xa0000, 0xbffff, read8sm_delegate(*m_vga, FUNC(pvga1a_vga_device::mem_r)), write8sm_delegate(*m_vga, FUNC(pvga1a_vga_device::mem_w)));
114+
m_isa->install_rom(this, 0xc0000, 0xc7fff, "vga_rom");
115+
}
116+
else if (space_id == AS_IO)
117+
m_isa->install_device(0x03b0, 0x03df, *this, &isa16_pvga1a_device::io_isa_map);
118+
}
119+
109120
/******************
110121
*
111122
* PVGA1A-JK
@@ -460,6 +471,20 @@ void isa16_wd90c31_lr_device::device_start()
460471
m_isa->install_device(0x23c0, 0x23c7, *m_vga, &wd90c31_vga_device::ext_io_map);
461472
}
462473

474+
void isa16_wd90c31_lr_device::remap(int space_id, offs_t start, offs_t end)
475+
{
476+
if (space_id == AS_PROGRAM)
477+
{
478+
m_isa->install_rom(this, 0xc0000, 0xc7fff, "vga_rom");
479+
480+
m_isa->install_memory(0xa0000, 0xbffff, read8sm_delegate(*m_vga, FUNC(wd90c31_vga_device::mem_r)), write8sm_delegate(*m_vga, FUNC(wd90c31_vga_device::mem_w)));
481+
}
482+
else if (space_id == AS_IO)
483+
{
484+
m_isa->install_device(0x03b0, 0x03df, *this, &isa16_wd90c31_lr_device::io_isa_map);
485+
m_isa->install_device(0x23c0, 0x23c7, *m_vga, &wd90c31_vga_device::ext_io_map);
486+
}
487+
}
463488

464489
/******************
465490
*

src/devices/bus/isa/svga_paradise.h

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ class isa16_pvga1a_device :
2121
// construction/destruction
2222
isa16_pvga1a_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
2323

24+
virtual void remap(int space_id, offs_t start, offs_t end) override;
25+
2426
protected:
2527
// device-level overrides
2628
virtual void device_start() override;
@@ -153,6 +155,8 @@ class isa16_wd90c31_lr_device :
153155
// construction/destruction
154156
isa16_wd90c31_lr_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
155157

158+
virtual void remap(int space_id, offs_t start, offs_t end) override;
159+
156160
protected:
157161
// device-level overrides
158162
virtual void device_start() override;

src/mame/pc/pcipc_sis.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void sis496_state::sis496(machine_config &config)
7777
PCI_ROOT(config, "pci", 0);
7878
SIS85C496_HOST(config, "pci:05.0", 0, "maincpu", 32*1024*1024);
7979

80-
ISA16_SLOT(config, "isa1", 0, "pci:05.0:isabus", pc_isa16_cards, "svga_et4k", false);
80+
ISA16_SLOT(config, "isa1", 0, "pci:05.0:isabus", pc_isa16_cards, "wd90c31_lr", false);
8181
ISA16_SLOT(config, "isa2", 0, "pci:05.0:isabus", pc_isa16_cards, nullptr, false);
8282
ISA16_SLOT(config, "isa3", 0, "pci:05.0:isabus", pc_isa16_cards, nullptr, false);
8383

0 commit comments

Comments
 (0)