summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/k033906.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/k033906.cpp')
-rw-r--r--src/devices/machine/k033906.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/devices/machine/k033906.cpp b/src/devices/machine/k033906.cpp
index 5ffad3b74eb..0ced32fd8f0 100644
--- a/src/devices/machine/k033906.cpp
+++ b/src/devices/machine/k033906.cpp
@@ -24,6 +24,7 @@ DEFINE_DEVICE_TYPE(K033906, k033906_device, "k033906", "K033906 PCI bridge")
k033906_device::k033906_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: device_t(mconfig, K033906, tag, owner, clock)
, m_reg_set(0)
+ , m_voodoo_pciid(0x0001121a) // PCI Vendor ID (0x121a = 3dfx), Device ID (0x0001 = Voodoo 1)
, m_voodoo(*this, finder_base::DUMMY_TAG)
, m_reg(nullptr)
, m_ram(nullptr)
@@ -46,7 +47,7 @@ void k033906_device::device_start()
}
-WRITE_LINE_MEMBER(k033906_device::set_reg)
+void k033906_device::set_reg(int state)
{
m_reg_set = state & 1;
}
@@ -55,10 +56,11 @@ uint32_t k033906_device::reg_r(int reg)
{
switch (reg)
{
- case 0x00: return 0x0001121a; // PCI Vendor ID (0x121a = 3dfx), Device ID (0x0001 = Voodoo)
+ case 0x00: return m_voodoo_pciid;
case 0x02: return 0x04000000; // Revision ID
case 0x04: return m_reg[0x04]; // memBaseAddr
case 0x0f: return m_reg[0x0f]; // interrupt_line, interrupt_pin, min_gnt, max_lat
+ case 0x14: return m_reg[0x14]; // ??? must be able to read the same value (0xf47c6451) that was written, used by Silent Scope when using Voodoo 2
default:
fatalerror("%s: k033906_reg_r: %08X\n", machine().describe_context().c_str(), reg);
@@ -106,6 +108,10 @@ void k033906_device::reg_w(int reg, uint32_t data)
case 0x12: // busSnoop1
break;
+ case 0x14: // ???
+ m_reg[reg] = data;
+ break;
+
case 0x38: // ???
break;