Previous 15994 Revisions Next

r1467 Monday 31st December, 2007 at 04:26:04 UTC by Firewave
Fixed SCSI related memory leaks.
[src/mess/drivers]ip20.c ip22.c
[src/mess/machine]bebox.c

src/mess/machine/bebox.c
r1466r1467
973973   ide_controller_reset(0);
974974}
975975
976static void bebox_exit(running_machine *machine)
977{
978   lsi53c810_exit(&scsi53c810_intf);
979}
980
976981DRIVER_INIT( bebox )
977982{
978983   int cpu;
r1466r1467
10241029
10251030   /* SCSI */
10261031   lsi53c810_init(&scsi53c810_intf);
1032   add_exit_callback(machine, bebox_exit);
10271033
10281034   /* The following is a verrrry ugly hack put in to support NetBSD for
10291035    * NetBSD.  When NetBSD/bebox it does most of its work on CPU #0 and then
src/mess/drivers/ip22.c
r1466r1467
14361436   &scsi_irq,      /* command completion IRQ */
14371437};
14381438
1439static void ip225015_exit(running_machine *machine)
1440{
1441   wd33c93_exit(&scsi_intf);
1442}
1443
14391444static DRIVER_INIT( ip225015 )
14401445{
14411446   struct kbdc8042_interface at8042 =
r1466r1467
14511456
14521457   // SCSI init
14531458   wd33c93_init(&scsi_intf);
1459   add_exit_callback(machine, ip225015_exit);
14541460
14551461   nIOC_ParReadCnt = 0;
14561462}
src/mess/drivers/ip20.c
r1466r1467
574574   &scsi_irq,      /* command completion IRQ */
575575};
576576
577static void ip204415_exit(running_machine *machine)
578{
579   wd33c93_exit(&scsi_intf);
580}
581
577582static DRIVER_INIT( ip204415 )
578583{
579584   scc_init(NULL);
580585   wd33c93_init(&scsi_intf);
586   add_exit_callback(machine, ip204415_exit);
581587}
582588
583589static INPUT_PORTS_START( ip204415 )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team