summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/pci-ide.cpp
diff options
context:
space:
mode:
author Ted Green <tedgreen99@protonmail.com>2017-05-17 09:49:54 -0600
committer Ted Green <tedgreen99@protonmail.com>2017-05-17 09:49:54 -0600
commit0626b116ee7b1d2eaff453cf9665ddc62e898623 (patch)
tree3a151ccd1518b9ec9c127638f29be46772167646 /src/devices/machine/pci-ide.cpp
parent8cb689e7ac2001636fca54f98d7c7e02fda3007b (diff)
pci-ide: Added function to set default PIF byte. (nw)
Diffstat (limited to 'src/devices/machine/pci-ide.cpp')
-rw-r--r--src/devices/machine/pci-ide.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/devices/machine/pci-ide.cpp b/src/devices/machine/pci-ide.cpp
index bac97798949..98ec5180b46 100644
--- a/src/devices/machine/pci-ide.cpp
+++ b/src/devices/machine/pci-ide.cpp
@@ -11,7 +11,8 @@ ide_pci_device::ide_pci_device(const machine_config &mconfig, const char *tag, d
m_ide2(*this, "ide2"),
m_irq_num(-1),
m_irq_handler(*this),
- m_legacy_top(0x000)
+ m_legacy_top(0x000),
+ m_pif(0x8a)
{
}
@@ -106,7 +107,7 @@ void ide_pci_device::device_reset()
bank_infos[2].adr = (m_legacy_top << 20) | 0x170;
bank_infos[3].adr = (m_legacy_top << 20) | 0x374;
bank_infos[4].adr = 0xf00;
- pclass = 0x01018a;
+ pclass = 0x010100 | m_pif;
remap_cb();
// PCI0646U allow BAR