old scsi: minor stuff (nw)

This commit is contained in:
Olivier Galibert 2018-07-30 23:40:13 +02:00
parent 796abaf7f3
commit 249b42112b
2 changed files with 2 additions and 7 deletions

View File

@ -98,12 +98,7 @@ class scsi_port_device : public device_t
public:
// construction/destruction
scsi_port_device(const machine_config &mconfig, const char *tag, device_t *owner)
: scsi_port_device(mconfig, tag, owner, (uint32_t)0)
{
}
scsi_port_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
scsi_port_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
template <class Object> devcb_base &set_bsy_handler(Object &&cb) { return m_bsy_handler.set_callback(std::forward<Object>(cb)); }
template <class Object> devcb_base &set_sel_handler(Object &&cb) { return m_sel_handler.set_callback(std::forward<Object>(cb)); }

View File

@ -13,7 +13,7 @@
class legacy_scsi_host_adapter : public device_t
{
public:
void set_scsi_port(const char *tag) { m_scsi_port.set_tag(tag); }
template <typename T> void set_scsi_port(T && tag) { m_scsi_port.set_tag(std::forward<T>(tag)); }
protected:
legacy_scsi_host_adapter(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);