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.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/devices/machine/ncr539x.h b/src/devices/machine/ncr539x.h
index 3803a1ca975..56a34e58e85 100644
--- a/src/devices/machine/ncr539x.h
+++ b/src/devices/machine/ncr539x.h
@@ -5,15 +5,12 @@
*
*/
-#ifndef _NCR539x_H_
-#define _NCR539x_H_
+#ifndef MAME_MACHINE_NCR539X_H
+#define MAME_MACHINE_NCR539X_H
-#include "legscsi.h"
+#pragma once
-//// 539x registers
-//enum
-//{
-//};
+#include "legscsi.h"
// device stuff
@@ -29,8 +26,8 @@ public:
// construction/destruction
ncr539x_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- template<class _Object> static devcb_base &set_out_irq_callback(device_t &device, _Object object) { return downcast<ncr539x_device &>(device).m_out_irq_cb.set_callback(object); }
- template<class _Object> static devcb_base &set_out_drq_callback(device_t &device, _Object object) { return downcast<ncr539x_device &>(device).m_out_drq_cb.set_callback(object); }
+ template <class Object> static devcb_base &set_out_irq_callback(device_t &device, Object &&cb) { return downcast<ncr539x_device &>(device).m_out_irq_cb.set_callback(std::forward<Object>(cb)); }
+ template <class Object> static devcb_base &set_out_drq_callback(device_t &device, Object &&cb) { return downcast<ncr539x_device &>(device).m_out_drq_cb.set_callback(std::forward<Object>(cb)); }
// our API
DECLARE_READ8_MEMBER(read);
@@ -86,5 +83,6 @@ private:
};
// device type definition
-extern const device_type NCR539X;
-#endif
+DECLARE_DEVICE_TYPE(NCR539X, ncr539x_device)
+
+#endif // MAME_MACHINE_NCR539X_H