summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/virge_pci.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/video/virge_pci.cpp')
-rw-r--r--src/devices/video/virge_pci.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/devices/video/virge_pci.cpp b/src/devices/video/virge_pci.cpp
index f527555ed91..e5371dd786b 100644
--- a/src/devices/video/virge_pci.cpp
+++ b/src/devices/video/virge_pci.cpp
@@ -87,19 +87,19 @@ void virge_pci_device::refresh_linear_window()
}
}
-READ32_MEMBER(virge_pci_device::base_address_r)
+uint32_t virge_pci_device::base_address_r()
{
return downcast<s3virge_vga_device *>(m_vga.target())->get_linear_address();
}
-WRITE32_MEMBER(virge_pci_device::base_address_w)
+void virge_pci_device::base_address_w(offs_t offset, uint32_t data)
{
- pci_device::address_base_w(space,offset,data,mem_mask);
+ pci_device::address_base_w(offset,data);
downcast<s3virge_vga_device *>(m_vga.target())->set_linear_address(data & 0xffff0000);
refresh_linear_window();
}
-READ32_MEMBER(virge_pci_device::vga_3b0_r)
+uint32_t virge_pci_device::vga_3b0_r(offs_t offset, uint32_t mem_mask)
{
uint32_t result = 0;
if (ACCESSING_BITS_0_7)
@@ -113,7 +113,7 @@ READ32_MEMBER(virge_pci_device::vga_3b0_r)
return result;
}
-WRITE32_MEMBER(virge_pci_device::vga_3b0_w)
+void virge_pci_device::vga_3b0_w(offs_t offset, uint32_t data, uint32_t mem_mask)
{
if (ACCESSING_BITS_0_7)
{
@@ -144,7 +144,7 @@ WRITE32_MEMBER(virge_pci_device::vga_3b0_w)
downcast<s3_vga_device *>(m_vga.target())->port_03b0_w(offset * 4 + 3, data >> 24);
}
-READ32_MEMBER(virge_pci_device::vga_3c0_r)
+uint32_t virge_pci_device::vga_3c0_r(offs_t offset, uint32_t mem_mask)
{
uint32_t result = 0;
if (ACCESSING_BITS_0_7)
@@ -158,7 +158,7 @@ READ32_MEMBER(virge_pci_device::vga_3c0_r)
return result;
}
-WRITE32_MEMBER(virge_pci_device::vga_3c0_w)
+void virge_pci_device::vga_3c0_w(offs_t offset, uint32_t data, uint32_t mem_mask)
{
if (ACCESSING_BITS_0_7)
downcast<s3_vga_device *>(m_vga.target())->port_03c0_w(offset * 4 + 0, data >> 0);
@@ -170,7 +170,7 @@ WRITE32_MEMBER(virge_pci_device::vga_3c0_w)
downcast<s3_vga_device *>(m_vga.target())->port_03c0_w(offset * 4 + 3, data >> 24);
}
-READ32_MEMBER(virge_pci_device::vga_3d0_r)
+uint32_t virge_pci_device::vga_3d0_r(offs_t offset, uint32_t mem_mask)
{
uint32_t result = 0;
if (ACCESSING_BITS_0_7)
@@ -184,7 +184,7 @@ READ32_MEMBER(virge_pci_device::vga_3d0_r)
return result;
}
-WRITE32_MEMBER(virge_pci_device::vga_3d0_w)
+void virge_pci_device::vga_3d0_w(offs_t offset, uint32_t data, uint32_t mem_mask)
{
if (ACCESSING_BITS_0_7)
{
@@ -261,9 +261,9 @@ void virge_pci_device::map_extra(uint64_t memory_window_start, uint64_t memory_w
{
memory_space->install_readwrite_handler(0xa0000, 0xbffff, read8sm_delegate(*this, FUNC(virge_pci_device::vram_r)), write8sm_delegate(*this, FUNC(virge_pci_device::vram_w)));
- io_space->install_readwrite_handler(0x3b0, 0x3bf, read32_delegate(*this, FUNC(virge_pci_device::vga_3b0_r)), write32_delegate(*this, FUNC(virge_pci_device::vga_3b0_w)));
- io_space->install_readwrite_handler(0x3c0, 0x3cf, read32_delegate(*this, FUNC(virge_pci_device::vga_3c0_r)), write32_delegate(*this, FUNC(virge_pci_device::vga_3c0_w)));
- io_space->install_readwrite_handler(0x3d0, 0x3df, read32_delegate(*this, FUNC(virge_pci_device::vga_3d0_r)), write32_delegate(*this, FUNC(virge_pci_device::vga_3d0_w)));
+ io_space->install_readwrite_handler(0x3b0, 0x3bf, read32s_delegate(*this, FUNC(virge_pci_device::vga_3b0_r)), write32s_delegate(*this, FUNC(virge_pci_device::vga_3b0_w)));
+ io_space->install_readwrite_handler(0x3c0, 0x3cf, read32s_delegate(*this, FUNC(virge_pci_device::vga_3c0_r)), write32s_delegate(*this, FUNC(virge_pci_device::vga_3c0_w)));
+ io_space->install_readwrite_handler(0x3d0, 0x3df, read32s_delegate(*this, FUNC(virge_pci_device::vga_3d0_r)), write32s_delegate(*this, FUNC(virge_pci_device::vga_3d0_w)));
}
void virge_pci_device::device_add_mconfig(machine_config &config)