diff options
author | 2014-03-18 13:49:14 +0000 | |
---|---|---|
committer | 2014-03-18 13:49:14 +0000 | |
commit | dbfcc63c4161d7ecc22a1b12b1f28708a0e14533 (patch) | |
tree | 3db5f58afb1b7240d2088fe6a7cf14f619924e6c /src/emu/machine/mb8795.c | |
parent | 88a76175e1eec9ebcfc0d88019255d92f9131c05 (diff) |
mb8795: devcb2. (nw)
Diffstat (limited to 'src/emu/machine/mb8795.c')
-rw-r--r-- | src/emu/machine/mb8795.c | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/src/emu/machine/mb8795.c b/src/emu/machine/mb8795.c index e56a2b97d51..cc7f1842cb2 100644 --- a/src/emu/machine/mb8795.c +++ b/src/emu/machine/mb8795.c @@ -16,24 +16,16 @@ DEVICE_ADDRESS_MAP_START(map, 8, mb8795_device) AM_RANGE(0x8, 0xf) AM_READWRITE(mac_r, mac_w) // Mapping limitation, real is up to 0xd ADDRESS_MAP_END -mb8795_device::mb8795_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MB8795, "Fujitsu MB8795", tag, owner, clock, "mb8795", __FILE__), - device_network_interface(mconfig, *this, 10) +mb8795_device::mb8795_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : + device_t(mconfig, MB8795, "Fujitsu MB8795", tag, owner, clock, "mb8795", __FILE__), + device_network_interface(mconfig, *this, 10), + irq_tx_cb(*this), + irq_rx_cb(*this), + drq_tx_cb(*this), + drq_rx_cb(*this) { } -void mb8795_device::set_irq_cb(line_cb_t tx, line_cb_t rx) -{ - irq_tx_cb = tx; - irq_rx_cb = rx; -} - -void mb8795_device::set_drq_cb(line_cb_t tx, line_cb_t rx) -{ - drq_tx_cb = tx; - drq_rx_cb = rx; -} - void mb8795_device::check_irq() { bool old_irq_tx = irq_tx; @@ -48,6 +40,11 @@ void mb8795_device::check_irq() void mb8795_device::device_start() { + irq_tx_cb.resolve(); + irq_rx_cb.resolve(); + drq_tx_cb.resolve(); + drq_rx_cb.resolve(); + memset(mac, 0, 6); timer_tx = timer_alloc(TIMER_TX); timer_rx = timer_alloc(TIMER_RX); |