Previous 15994 Revisions Next

r7440 Sunday 21st February, 2010 at 07:46:58 UTC by Miodrag Milanović
[PC] Fixed driver startup procedure
[src/mess/machine]pc.c

src/mess/machine/pc.c
r7439r7440
13211321
13221322MACHINE_START( pc )
13231323{
1324   pc_state *st = (pc_state *)machine->driver_data;
1325
1326   st->pic8259 = devtag_get_device(machine, "pic8259");   
1327   st->dma8237 = devtag_get_device(machine, "dma8237");
1328   st->pit8253 = devtag_get_device(machine, "pit8253");
13241329   pc_fdc_init( machine, &fdc_interface_nc );
13251330}
13261331
r7439r7440
13331338   st->maincpu = devtag_get_device(machine, "maincpu" );
13341339   cpu_set_irq_callback(st->maincpu, pc_irq_callback);
13351340
1336   st->pic8259 = devtag_get_device(machine, "pic8259");
1337   st->dma8237 = devtag_get_device(machine, "dma8237");
1338   st->pit8253 = devtag_get_device(machine, "pit8253");
13391341   st->u73_q2 = 0;
13401342   st->out1 = 0;
13411343   st->pc_spkrdata = 0;
r7439r7440
13481350
13491351MACHINE_START( pcjr )
13501352{
1353   pc_state *st = (pc_state *)machine->driver_data;
13511354   pc_fdc_init( machine, &pcjr_fdc_interface_nc );
13521355   pcjr_keyb.keyb_signal_timer = timer_alloc(machine,  pcjr_keyb_signal_callback, NULL );
13531356   pc_int_delay_timer = timer_alloc(machine,  pcjr_delayed_pic8259_irq, NULL );
1357   st->maincpu = devtag_get_device(machine, "maincpu" );
1358   cpu_set_irq_callback(st->maincpu, pc_irq_callback);
1359
1360   st->pic8259 = devtag_get_device(machine, "pic8259");
1361   st->dma8237 = NULL;
1362   st->pit8253 = devtag_get_device(machine, "pit8253");
13541363}
13551364
13561365
r7439r7440
13591368   running_device *speaker = devtag_get_device(machine, "speaker");
13601369   pc_state *st = (pc_state *)machine->driver_data;
13611370   memset(st,0,sizeof(st));
1362   st->maincpu = devtag_get_device(machine, "maincpu" );
1363   cpu_set_irq_callback(st->maincpu, pc_irq_callback);
1364
1365   st->pic8259 = devtag_get_device(machine, "pic8259");
1366   st->dma8237 = NULL;
1367   st->pit8253 = devtag_get_device(machine, "pit8253");
13681371   st->u73_q2 = 0;
13691372   st->out1 = 0;
13701373   st->pc_spkrdata = 0;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team