diff options
Diffstat (limited to 'src/devices/bus/pc_kbd/pc_kbdc.cpp')
-rw-r--r-- | src/devices/bus/pc_kbd/pc_kbdc.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/devices/bus/pc_kbd/pc_kbdc.cpp b/src/devices/bus/pc_kbd/pc_kbdc.cpp index fd87cca47fc..7fc1ed0419a 100644 --- a/src/devices/bus/pc_kbd/pc_kbdc.cpp +++ b/src/devices/bus/pc_kbd/pc_kbdc.cpp @@ -21,7 +21,7 @@ The following basic program can be useful for identifying scancodes: // GLOBAL VARIABLES //************************************************************************** -const device_type PC_KBDC_SLOT = device_creator<pc_kbdc_slot_device>; +DEFINE_DEVICE_TYPE(PC_KBDC_SLOT, pc_kbdc_slot_device, "pc_kbdc_slot", "PC keyboard port") //************************************************************************** // LIVE DEVICE @@ -31,8 +31,8 @@ const device_type PC_KBDC_SLOT = device_creator<pc_kbdc_slot_device>; // pc_kbdc_slot_device - constructor //------------------------------------------------- pc_kbdc_slot_device::pc_kbdc_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : - device_t(mconfig, PC_KBDC_SLOT, "PC_KBDC_SLOT", tag, owner, clock, "pc_kbdc_slot", __FILE__), - device_slot_interface(mconfig, *this), + device_t(mconfig, PC_KBDC_SLOT, tag, owner, clock), + device_slot_interface(mconfig, *this), m_kbdc_device(nullptr) { } @@ -63,21 +63,21 @@ void pc_kbdc_slot_device::device_start() // GLOBAL VARIABLES //************************************************************************** -const device_type PC_KBDC = device_creator<pc_kbdc_device>; +DEFINE_DEVICE_TYPE(PC_KBDC, pc_kbdc_device, "pc_kbdc", "PC KBDC") //------------------------------------------------- // pc_kbdc_device - constructor //------------------------------------------------- pc_kbdc_device::pc_kbdc_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : - device_t(mconfig, PC_KBDC, "PC_KBDC", tag, owner, clock, "pc_kbdc", __FILE__), - m_out_clock_cb(*this), - m_out_data_cb(*this), - m_clock_state(-1), - m_data_state(-1), m_mb_clock_state(0), m_mb_data_state(0), - m_kb_clock_state(1), - m_kb_data_state(1), - m_keyboard( nullptr ) + device_t(mconfig, PC_KBDC, tag, owner, clock), + m_out_clock_cb(*this), + m_out_data_cb(*this), + m_clock_state(-1), + m_data_state(-1), m_mb_clock_state(0), m_mb_data_state(0), + m_kb_clock_state(1), + m_kb_data_state(1), + m_keyboard( nullptr ) { } @@ -193,9 +193,9 @@ WRITE_LINE_MEMBER( pc_kbdc_device::data_write_from_kb ) //------------------------------------------------- device_pc_kbd_interface::device_pc_kbd_interface(const machine_config &mconfig, device_t &device) - : device_slot_card_interface(mconfig, device), - m_pc_kbdc(nullptr), - m_pc_kbdc_tag(nullptr), m_next(nullptr) + : device_slot_card_interface(mconfig, device) + , m_pc_kbdc(nullptr) + , m_pc_kbdc_tag(nullptr) { } |