Previous 15994 Revisions Next

r1975 Wednesday 12th March, 2008 at 21:23:31 UTC by Wilbert Pol
Passing some more running_machine around.
[src/mess/drivers]ti99_8.c
[src/mess/machine]99_dsk.c 99_dsk.h geneve.c ti99_4x.c ti99_4x.h wd17xx.c

src/mess/machine/99_dsk.c
r1974r1975
2424*/
2525
2626#include "driver.h"
27#include "deprecat.h"
2827#include "machine/wd17xx.h"
2928#include "smc92x4.h"
3029#include "ti99_4x.h"
r1974r1975
396395   init state of the emulator. During the normal operation, only the
397396   reset routines are used.
398397*/
399void ti99_floppy_controllers_init_all(void)
398void ti99_floppy_controllers_init_all(running_machine *machine)
400399{
401400   /* initialize the controller chip for TI FDC, CC, BwG */
402   wd17xx_init(Machine, WD_TYPE_179X, fdc_callback, NULL);
401   wd17xx_init(machine, WD_TYPE_179X, fdc_callback, NULL);
403402
404403   /* initialize the controller chip for HFDC */
405404   smc92x4_init(0, & hfdc_intf);
src/mess/machine/99_dsk.h
r1974r1975
11FLOPPY_OPTIONS_EXTERN(ti99);
22
3void ti99_floppy_controllers_init_all(void);
3void ti99_floppy_controllers_init_all(running_machine *machine);
44void ti99_fdc_reset(void);
55#if HAS_99CCFDC
66void ti99_ccfdc_reset(void);
src/mess/machine/geneve.c
r1974r1975
209209           how the switches are set. Later we use the configuration switches to
210210           determine which one to use. */
211211   ti99_peb_init();
212        ti99_floppy_controllers_init_all();
212        ti99_floppy_controllers_init_all(machine);
213213        ti99_ide_init();
214214        ti99_rs232_init();
215215   ti99_usbsm_init();
src/mess/machine/wd17xx.c
r1974r1975
3636
3737
3838#include "driver.h"
39#include "deprecat.h"
4039#include "machine/wd17xx.h"
4140#include "devices/flopdrv.h"
4241
src/mess/machine/ti99_4x.c
r1974r1975
666666
667667MACHINE_START( ti99_4_60hz )
668668{
669    ti99_common_init(&tms9918_interface);
669    ti99_common_init(machine, &tms9918_interface);
670670}
671671
672672static const TMS9928a_interface tms9929_interface =
r1974r1975
679679
680680MACHINE_START( ti99_4_50hz )
681681{
682    ti99_common_init(&tms9929_interface);
682    ti99_common_init(machine, &tms9929_interface);
683683}
684684
685685static const TMS9928a_interface tms9918a_interface =
r1974r1975
692692
693693MACHINE_START( ti99_4a_60hz )
694694{
695    ti99_common_init(&tms9918a_interface);
695    ti99_common_init(machine, &tms9918a_interface);
696696}
697697
698698static const TMS9928a_interface tms9929a_interface =
r1974r1975
705705
706706MACHINE_START( ti99_4a_50hz )
707707{
708    ti99_common_init(&tms9929a_interface);
708    ti99_common_init(machine, &tms9929a_interface);
709709}
710710
711711MACHINE_START( ti99_4ev_60hz)
712712{
713713    /* has an own VDP, so skip initing the VDP */
714    ti99_common_init(0);
714    ti99_common_init(machine, 0);
715715}
716716
717void ti99_common_init(const TMS9928a_interface *gfxparm)
717void ti99_common_init(running_machine *machine, const TMS9928a_interface *gfxparm)
718718{
719719    if (ti99_model==model_99_8) {
720720        tms9901_init(0, &tms9901reset_param_ti99_8);
r1974r1975
728728           how the switches are set. Later we use the configuration switches to
729729           determine which one to use. */
730730   ti99_peb_init();
731        ti99_floppy_controllers_init_all();
731        ti99_floppy_controllers_init_all(machine);
732732        ti99_ide_init();
733733        ti99_rs232_init();
734734   ti99_hsgpl_init();
src/mess/machine/ti99_4x.h
r1974r1975
172172INTERRUPT_GEN( ti99_4ev_hblank_interrupt );
173173
174174void set_hsgpl_crdena(int data);
175void ti99_common_init(const TMS9928a_interface *gfxparm);
175void ti99_common_init(running_machine *machine, const TMS9928a_interface *gfxparm);
176176
177177READ16_HANDLER ( ti99_nop_8_r );
178178WRITE16_HANDLER ( ti99_nop_8_w );
src/mess/drivers/ti99_8.c
r1974r1975
370370
371371static MACHINE_START(ti99_8_60hz)
372372{
373    ti99_common_init(&tms9118_interface);
373    ti99_common_init(machine, &tms9118_interface);
374374}
375375
376376static const TMS9928a_interface tms9129_interface =
r1974r1975
383383
384384static MACHINE_START(ti99_8_50hz)
385385{
386    ti99_common_init(&tms9129_interface);
386    ti99_common_init(machine, &tms9129_interface);
387387}
388388
389389static const struct tms9995reset_param ti99_8_processor_config =

Previous 15994 Revisions Next


© 1998-2018 The MESS Team