diff options
Diffstat (limited to 'src/devices/bus/psx/parallel.cpp')
-rw-r--r-- | src/devices/bus/psx/parallel.cpp | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/src/devices/bus/psx/parallel.cpp b/src/devices/bus/psx/parallel.cpp index b7947e11921..8faf038cfec 100644 --- a/src/devices/bus/psx/parallel.cpp +++ b/src/devices/bus/psx/parallel.cpp @@ -24,8 +24,8 @@ DEFINE_DEVICE_TYPE(PSX_PARALLEL_SLOT, psx_parallel_slot_device, "psx_parallel_sl // psx_parallel_interface - constructor //------------------------------------------------- -psx_parallel_interface::psx_parallel_interface(const machine_config &mconfig, device_t &device) - : device_slot_card_interface(mconfig, device) +psx_parallel_interface::psx_parallel_interface(const machine_config &mconfig, device_t &device) : + device_interface(device, "psxparallel") { } @@ -48,7 +48,7 @@ psx_parallel_interface::~psx_parallel_interface() psx_parallel_slot_device::psx_parallel_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, PSX_PARALLEL_SLOT, tag, owner, clock), - device_slot_interface(mconfig, *this), + device_single_card_slot_interface<psx_parallel_interface>(mconfig, *this), m_card(nullptr) { } @@ -67,25 +67,17 @@ psx_parallel_slot_device::~psx_parallel_slot_device() void psx_parallel_slot_device::device_start() { - m_card = dynamic_cast<psx_parallel_interface *>(get_card_device()); -} - -//------------------------------------------------- -// device_reset - device-specific reset -//------------------------------------------------- - -void psx_parallel_slot_device::device_reset() -{ + m_card = get_card_device(); } //------------------------------------------------- // exp_r //------------------------------------------------- -READ16_MEMBER(psx_parallel_slot_device::exp_r) +uint16_t psx_parallel_slot_device::exp_r(offs_t offset) { if (m_card) - return m_card->exp_r(space, offset); + return m_card->exp_r(offset); else return 0xff; } @@ -94,10 +86,10 @@ READ16_MEMBER(psx_parallel_slot_device::exp_r) // exp_w //------------------------------------------------- -WRITE16_MEMBER(psx_parallel_slot_device::exp_w) +void psx_parallel_slot_device::exp_w(offs_t offset, uint16_t data) { if (m_card) - m_card->exp_w(space, offset, data); + m_card->exp_w(offset, data); } //------------------------------------------------- |