summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/adamnet/adamnet.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/adamnet/adamnet.h')
-rw-r--r--src/devices/bus/adamnet/adamnet.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/devices/bus/adamnet/adamnet.h b/src/devices/bus/adamnet/adamnet.h
index b95fca7585d..c9090bf5482 100644
--- a/src/devices/bus/adamnet/adamnet.h
+++ b/src/devices/bus/adamnet/adamnet.h
@@ -26,9 +26,6 @@
// INTERFACE CONFIGURATION MACROS
//**************************************************************************
-#define MCFG_ADAMNET_BUS_ADD() \
- MCFG_DEVICE_ADD(ADAMNET_TAG, ADAMNET, 0)
-
#define MCFG_ADAMNET_SLOT_ADD(_tag, _slot_intf, _def_slot) \
MCFG_DEVICE_ADD(_tag, ADAMNET_SLOT, 0) \
MCFG_DEVICE_SLOT_INTERFACE(_slot_intf, _def_slot, false)
@@ -92,6 +89,15 @@ class adamnet_slot_device : public device_t,
{
public:
// construction/destruction
+ template <typename T>
+ adamnet_slot_device(machine_config const &mconfig, char const *tag, device_t *owner, T &&opts, char const *dflt)
+ : adamnet_slot_device(mconfig, tag, owner, (uint32_t)0)
+ {
+ option_reset();
+ opts(*this);
+ set_default_option(dflt);
+ set_fixed(false);
+ }
adamnet_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// device-level overrides