summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/dp8390.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/dp8390.cpp')
-rw-r--r--src/devices/machine/dp8390.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/devices/machine/dp8390.cpp b/src/devices/machine/dp8390.cpp
index 75217661215..2ed12551e78 100644
--- a/src/devices/machine/dp8390.cpp
+++ b/src/devices/machine/dp8390.cpp
@@ -19,13 +19,13 @@ rtl8019a_device::rtl8019a_device(const machine_config &mconfig, const char *tag,
{
}
-dp8390_device::dp8390_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, TYPE variant, float bandwidth)
+dp8390_device::dp8390_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, TYPE variant, u32 bandwidth)
: device_t(mconfig, type, tag, owner, clock)
, device_network_interface(mconfig, *this, bandwidth)
, m_variant(variant)
, m_irq_cb(*this)
, m_breq_cb(*this)
- , m_mem_read_cb(*this)
+ , m_mem_read_cb(*this, 0)
, m_mem_write_cb(*this)
, m_reset(0)
, m_rdma_active(0)
@@ -33,10 +33,6 @@ dp8390_device::dp8390_device(const machine_config &mconfig, device_type type, co
}
void dp8390_device::device_start() {
- m_irq_cb.resolve_safe();
- m_breq_cb.resolve_safe();
- m_mem_read_cb.resolve_safe(0);
- m_mem_write_cb.resolve_safe();
}
void dp8390_device::stop() {
@@ -171,7 +167,7 @@ void dp8390_device::recv_cb(uint8_t *buf, int len) {
if(!LOOPBACK) recv(buf, len);
}
-WRITE_LINE_MEMBER(dp8390_device::dp8390_reset) {
+void dp8390_device::dp8390_reset(int state) {
if(!state) device_reset();
}
@@ -426,7 +422,7 @@ void dp8390_device::cs_write(offs_t offset, uint8_t data) {
case 0x45:
case 0x46:
m_regs.par[(offset & 0x7)-1] = data;
- set_mac((const char *)m_regs.par);
+ set_mac(m_regs.par);
break;
case 0x47:
m_regs.curr = data;