Previous 199869 Revisions Next

r32502 Thursday 2nd October, 2014 at 13:52:56 UTC by Dirk Best
Amiga: Fix expansion slot device initialization
[src/emu/bus/amiga/zorro]zorro.c zorro.h

trunk/src/emu/bus/amiga/zorro/zorro.c
r32501r32502
150150}
151151
152152//-------------------------------------------------
153//  device_reset - device-specific reset
154//-------------------------------------------------
155
156void exp_slot_device::device_reset()
157{
158   // if we have a device, start the autoconfig chain
159   if (m_dev)
160      m_dev->cfgin_w(0);
161}
162
163//-------------------------------------------------
153164//  add_card - add new card to our bus
154165//-------------------------------------------------
155166
trunk/src/emu/bus/amiga/zorro/zorro.h
r32501r32502
318318protected:
319319   // device-level overrides
320320   virtual void device_start();
321   virtual void device_reset();
321322
322323private:
323324   devcb_write8 m_ipl_handler;
r32501r32502
348349   template<class _Object> static devcb_base &set_eint7_handler(device_t &device, _Object object)
349350      { return downcast<zorro2_device &>(device).m_eint7_handler.set_callback(object); }
350351
351   // device-level overrides
352   virtual void device_reset();
353
354352   // the zorro2 bus supports multiple cards
355353   virtual void add_card(device_zorro_card_interface *card);
356354
r32501r32502
368366protected:
369367   // device-level overrides
370368   virtual void device_start();
369   virtual void device_reset();
371370
372371private:
373372   devcb_write_line m_eint1_handler;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team