Previous 199869 Revisions Next

r17431 Thursday 23rd August, 2012 at 20:47:28 UTC by smf
removed am53cf96_get_device and some other unused GetDevice() trampolines (nw)
[src/emu/machine]53c810.c 53c810.h am53cf96.c am53cf96.h wd33c93.c wd33c93.h
[src/mame/drivers]konamigv.c twinkle.c

trunk/src/mame/drivers/twinkle.c
r17430r17431
877877static MACHINE_RESET( twinkle )
878878{
879879   /* also hook up CDDA audio to the CD-ROM drive */
880   cdda_set_cdrom(machine.device("cdda"), am53cf96_get_device(SCSI_ID_4));
880   void *cdrom;
881   scsidev_device *scsidev = machine.device<scsidev_device>("cdrom0");
882   scsidev->GetDevice( &cdrom );
883   cdda_set_cdrom(machine.device("cdda"), cdrom);
881884}
882885
883886static void spu_irq(device_t *device, UINT32 data)
trunk/src/mame/drivers/konamigv.c
r17430r17431
329329static MACHINE_RESET( konamigv )
330330{
331331   /* also hook up CDDA audio to the CD-ROM drive */
332   cdda_set_cdrom(machine.device("cdda"), am53cf96_get_device(SCSI_ID_4));
332   void *cdrom;
333   scsidev_device *scsidev = machine.device<scsidev_device>("cdrom");
334   scsidev->GetDevice( &cdrom );
335   cdda_set_cdrom(machine.device("cdda"), cdrom);
333336}
334337
335338static void spu_irq(device_t *device, UINT32 data)
trunk/src/emu/machine/53c810.c
r17430r17431
737737   }
738738}
739739
740void *lsi53c810_get_device(int id)
741{
742   void *ret;
743
744   if (devices[id])
745   {
746      logerror("lsi53c810: fetching dev pointer for SCSI ID %d\n", id);
747      devices[id]->GetDevice( &ret );
748
749      return ret;
750   }
751
752   return NULL;
753}
754
755740/*************************************
756741 *
757742 *  Disassembler
trunk/src/emu/machine/53c810.h
r17430r17431
1616extern void lsi53c810_read_data(int bytes, UINT8 *pData);
1717extern void lsi53c810_write_data(int bytes, UINT8 *pData);
1818
19extern void *lsi53c810_get_device(int id);
20
2119READ8_HANDLER( lsi53c810_reg_r );
2220WRITE8_HANDLER( lsi53c810_reg_w );
2321
trunk/src/emu/machine/wd33c93.c
r17430r17431
843843   }
844844}
845845
846void *wd33c93_get_device(int id)
847{
848   void *ret;
849
850   if (devices[id])
851   {
852      devices[id]->GetDevice( &ret );
853      return ret;
854   }
855
856   return NULL;
857}
858
859846void wd33c93_clear_dma(void)
860847{
861848   /* indicate DMA completed by clearing the transfer count */
trunk/src/emu/machine/wd33c93.h
r17430r17431
1717extern void wd33c93_init( running_machine &machine, const struct WD33C93interface *interface );
1818extern void wd33c93_get_dma_data(int bytes, UINT8 *pData);
1919extern void wd33c93_write_data(int bytes, UINT8 *pData);
20extern void *wd33c93_get_device(int id);
2120extern void wd33c93_clear_dma(void);
2221extern int wd33c93_get_dma_count(void);
2322extern READ8_HANDLER(wd33c93_r);
trunk/src/emu/machine/am53cf96.c
r17430r17431
264264      logerror("53cf96: request for unknown device SCSI ID %d\n", last_id);
265265   }
266266}
267
268// get the device handle (HD or CD) for the specified SCSI ID
269void *am53cf96_get_device(int id)
270{
271   void *ret;
272
273   if (devices[id])
274   {
275      logerror("53cf96: fetching dev pointer for SCSI ID %d\n", id);
276      devices[id]->GetDevice( &ret );
277      return ret;
278   }
279
280   return NULL;
281}
trunk/src/emu/machine/am53cf96.h
r17430r17431
1717extern void am53cf96_init( running_machine &machine, const struct AM53CF96interface *interface );
1818extern void am53cf96_read_data(int bytes, UINT8 *pData);
1919void am53cf96_write_data(int bytes, UINT8 *pData);
20void *am53cf96_get_device(int id);
2120extern READ32_HANDLER( am53cf96_r );
2221extern WRITE32_HANDLER( am53cf96_w );
2322

Previous 199869 Revisions Next


© 1997-2024 The MAME Team