summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/ncr539x.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/ncr539x.h')
-rw-r--r--src/devices/machine/ncr539x.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/devices/machine/ncr539x.h b/src/devices/machine/ncr539x.h
index 8caa26c25a1..8172f4ea5f2 100644
--- a/src/devices/machine/ncr539x.h
+++ b/src/devices/machine/ncr539x.h
@@ -14,11 +14,6 @@
// device stuff
-#define MCFG_NCR539X_OUT_IRQ_CB(_devcb) \
- downcast<ncr539x_device &>(*device).set_out_irq_callback(DEVCB_##_devcb);
-
-#define MCFG_NCR539X_OUT_DRQ_CB(_devcb) \
- downcast<ncr539x_device &>(*device).set_out_drq_callback(DEVCB_##_devcb);
class ncr539x_device : public legacy_scsi_host_adapter
{
@@ -26,14 +21,12 @@ public:
// construction/destruction
ncr539x_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- template <class Object> devcb_base &set_out_irq_callback(Object &&cb) { return m_out_irq_cb.set_callback(std::forward<Object>(cb)); }
- template <class Object> devcb_base &set_out_drq_callback(Object &&cb) { return m_out_drq_cb.set_callback(std::forward<Object>(cb)); }
auto irq_callback() { return m_out_irq_cb.bind(); }
auto drq_callback() { return m_out_drq_cb.bind(); }
// our API
- DECLARE_READ8_MEMBER(read);
- DECLARE_WRITE8_MEMBER(write);
+ uint8_t read(offs_t offset);
+ void write(offs_t offset, uint8_t data);
void dma_read_data(int bytes, uint8_t *pData);
void dma_write_data(int bytes, uint8_t *pData);