diff options
author | 2019-10-31 19:43:00 -0400 | |
---|---|---|
committer | 2019-10-31 19:43:01 -0400 | |
commit | 69bd218e03f5e7aea74e77e1ed46e57e13df0cd4 (patch) | |
tree | e589e6c679e2de1e812cede9d1d1910fe1cfb791 /src/devices/machine/genpc.h | |
parent | 9fe2af2be1ca108e5bc2f08a456421031a743094 (diff) |
genpc: Make INT and NMI line callbacks (nw)
This is intended to facilitate future planned changes to CPU input lines.
Diffstat (limited to 'src/devices/machine/genpc.h')
-rw-r--r-- | src/devices/machine/genpc.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/devices/machine/genpc.h b/src/devices/machine/genpc.h index 876005d0a26..e302df90513 100644 --- a/src/devices/machine/genpc.h +++ b/src/devices/machine/genpc.h @@ -38,6 +38,9 @@ public: subdevice<isa8_device>("isa")->set_iospace(std::forward<T>(tag), AS_IO); } + auto int_callback() { return m_int_callback.bind(); } + auto nmi_callback() { return m_nmi_callback.bind(); } + void map(address_map &map); uint8_t m_pit_out2; @@ -56,6 +59,7 @@ protected: ibm5160_mb_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides + virtual void device_resolve_objects() override; virtual void device_start() override; virtual void device_reset() override; // optional information overrides @@ -75,6 +79,9 @@ protected: optional_device<pc_kbdc_device> m_pc_kbdc; required_device<ram_device> m_ram; + devcb_write_line m_int_callback; + devcb_write_line m_nmi_callback; + /* U73 is an LS74 - dual flip flop */ /* Q2 is set by OUT1 from the 8253 and goes to DRQ1 on the 8237 */ uint8_t m_u73_q2; |