diff options
Diffstat (limited to 'src/devices/machine/pci-ide.h')
-rw-r--r-- | src/devices/machine/pci-ide.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/devices/machine/pci-ide.h b/src/devices/machine/pci-ide.h index d9200898b4e..f3849fb1515 100644 --- a/src/devices/machine/pci-ide.h +++ b/src/devices/machine/pci-ide.h @@ -33,6 +33,10 @@ TODO: #define MCFG_IDE_PCI_SET_LEGACY_TOP(_val) \ downcast<ide_pci_device *>(device)->set_legacy_top(_val); +// Sets the default Programming Interface (PIF) register +#define MCFG_IDE_PCI_SET_PIF(_val) \ + downcast<ide_pci_device *>(device)->set_pif(_val); + class ide_pci_device : public pci_device { public: ide_pci_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); @@ -47,6 +51,7 @@ public: void set_irq_info(const char *tag, const int irq_num); template <class Object> static devcb_base &set_irq_handler(device_t &device, Object &&cb) { return downcast<ide_pci_device &>(device).m_irq_handler.set_callback(std::forward<Object>(cb)); } void set_legacy_top(int val) { m_legacy_top = val & 0xfff; }; + void set_pif(int val) { m_pif = val & 0xff; }; protected: virtual void device_start() override; @@ -63,6 +68,7 @@ private: uint32_t pci_bar[6]; // Bits 31-20 for legacy mode hack uint32_t m_legacy_top; + uint32_t m_pif; uint32_t m_config_data[0x10]; DECLARE_ADDRESS_MAP(chan1_data_command_map, 32); |