Previous 15994 Revisions Next

r5293 Wednesday 22nd July, 2009 at 15:27:06 UTC by Wilbert Pol
[IBMPCJR] Removed the dma8237 device.
[src/mess/drivers]pc.c
[src/mess/includes]pc.h
[src/mess/machine]pc.c

src/mess/includes/pc.h
r5292r5293
4949
5050MACHINE_START( pc );
5151MACHINE_RESET( pc );
52MACHINE_START( pcjr );
5253MACHINE_RESET( pcjr );
5354
5455DEVICE_IMAGE_LOAD( pcjr_cartridge );
src/mess/machine/pc.c
r5292r5293
11131113   pc_get_device
11141114};
11151115
1116
1117static const struct pc_fdc_interface pcjr_fdc_interface_nc =
1118{
1119   pc_fdc_interrupt,
1120   NULL,
1121   NULL,
1122   pc_get_device
1123};
1124
1125
11161126static void pc_set_irq_line(int irq, int state) {
11171127   pic8259_set_irq_line(pc_devices.pic8259, irq, state);
11181128}
r5292r5293
13511361}
13521362
13531363
1364MACHINE_START( pcjr )
1365{
1366   pc_fdc_init( machine, &pcjr_fdc_interface_nc );
1367}
1368
1369
13541370MACHINE_RESET( pcjr )
13551371{
1356   MACHINE_RESET_CALL( pc );
1372   const device_config *speaker = devtag_get_device(machine, "speaker");
1373
1374   pc_devices.maincpu = devtag_get_device(machine, "maincpu" );
1375   cpu_set_irq_callback(pc_devices.maincpu, pc_irq_callback);
1376
1377   pc_devices.pic8259 = devtag_get_device(machine, "pic8259");
1378   pc_devices.dma8237 = NULL;
1379   pc_devices.pit8253 = devtag_get_device(machine, "pit8253");
1380   pc_devices.u73_q2 = 0;
1381   pc_devices.out1 = 0;
1382   pc_mouse_set_serial_port( devtag_get_device(machine, "ins8250_0") );
1383   pc_hdc_set_dma8237_device( pc_devices.dma8237 );
1384   speaker_level_w( speaker, 0 );
1385
13571386   pcjr_keyb_init(machine);
13581387   pc_int_delay_timer = timer_alloc(machine,  pcjr_delayed_pic8259_irq, NULL );
13591388}
src/mess/drivers/pc.c
r5292r5293
19081908   /* basic machine hardware */
19091909   MDRV_CPU_PC(ibmpcjr, ibmpcjr, I8088, 4900000, pcjr_frame_interrupt)   /* TODO: Get correct cpu frequency, probably XTAL_14_31818MHz/3 */
19101910
1911   MDRV_MACHINE_START(pc)
1911   MDRV_MACHINE_START(pcjr)
19121912   MDRV_MACHINE_RESET(pcjr)
19131913
19141914   MDRV_PIT8253_ADD( "pit8253", pcjr_pit8253_config )
19151915
1916   MDRV_DMA8237_ADD( "dma8237", ibm5150_dma8237_config )
1917
19181916   MDRV_PIC8259_ADD( "pic8259", pcjr_pic8259_config )
19191917
19201918   MDRV_I8255A_ADD( "ppi8255", pcjr_ppi8255_interface )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team