Skip to content

Commit

Permalink
pc/pcipc_sis: replace svga_et4k default map with wd90c31_lr
Browse files Browse the repository at this point in the history
  • Loading branch information
angelosa committed Feb 28, 2024
1 parent 38e786b commit 0509fe8
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
25 changes: 25 additions & 0 deletions src/devices/bus/isa/svga_paradise.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,17 @@ void isa16_pvga1a_device::device_start()
m_isa->install_device(0x03b0, 0x03df, *this, &isa16_pvga1a_device::io_isa_map);
}

void isa16_pvga1a_device::remap(int space_id, offs_t start, offs_t end)
{
if (space_id == AS_PROGRAM)
{
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)));
m_isa->install_rom(this, 0xc0000, 0xc7fff, "vga_rom");
}
else if (space_id == AS_IO)
m_isa->install_device(0x03b0, 0x03df, *this, &isa16_pvga1a_device::io_isa_map);
}

/******************
*
* PVGA1A-JK
Expand Down Expand Up @@ -460,6 +471,20 @@ void isa16_wd90c31_lr_device::device_start()
m_isa->install_device(0x23c0, 0x23c7, *m_vga, &wd90c31_vga_device::ext_io_map);
}

void isa16_wd90c31_lr_device::remap(int space_id, offs_t start, offs_t end)
{
if (space_id == AS_PROGRAM)
{
m_isa->install_rom(this, 0xc0000, 0xc7fff, "vga_rom");

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)));
}
else if (space_id == AS_IO)
{
m_isa->install_device(0x03b0, 0x03df, *this, &isa16_wd90c31_lr_device::io_isa_map);
m_isa->install_device(0x23c0, 0x23c7, *m_vga, &wd90c31_vga_device::ext_io_map);
}
}

/******************
*
Expand Down
4 changes: 4 additions & 0 deletions src/devices/bus/isa/svga_paradise.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ class isa16_pvga1a_device :
// construction/destruction
isa16_pvga1a_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);

virtual void remap(int space_id, offs_t start, offs_t end) override;

protected:
// device-level overrides
virtual void device_start() override;
Expand Down Expand Up @@ -153,6 +155,8 @@ class isa16_wd90c31_lr_device :
// construction/destruction
isa16_wd90c31_lr_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);

virtual void remap(int space_id, offs_t start, offs_t end) override;

protected:
// device-level overrides
virtual void device_start() override;
Expand Down
2 changes: 1 addition & 1 deletion src/mame/pc/pcipc_sis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ void sis496_state::sis496(machine_config &config)
PCI_ROOT(config, "pci", 0);
SIS85C496_HOST(config, "pci:05.0", 0, "maincpu", 32*1024*1024);

ISA16_SLOT(config, "isa1", 0, "pci:05.0:isabus", pc_isa16_cards, "svga_et4k", false);
ISA16_SLOT(config, "isa1", 0, "pci:05.0:isabus", pc_isa16_cards, "wd90c31_lr", false);
ISA16_SLOT(config, "isa2", 0, "pci:05.0:isabus", pc_isa16_cards, nullptr, false);
ISA16_SLOT(config, "isa3", 0, "pci:05.0:isabus", pc_isa16_cards, nullptr, false);

Expand Down

0 comments on commit 0509fe8

Please sign in to comment.