src/mess/machine/vc1541.c
| r3896 | r3897 | |
| 137 | 137 | |
| 138 | 138 | |
| 139 | 139 | #include "driver.h" |
| 140 | | #include "deprecat.h" |
| 141 | 140 | #include "image.h" |
| 142 | 141 | #include "cpu/m6502/m6502.h" |
| 143 | 142 | #include "machine/6522via.h" |
| r3896 | r3897 | |
| 1358 | 1357 | |
| 1359 | 1358 | **************************************/ |
| 1360 | 1359 | |
| 1361 | | int drive_config (int type, int id, int mode, int cpunr, int devicenr) |
| 1360 | int drive_config (running_machine *machine, int type, int id, int mode, int cpunr, int devicenr) |
| 1362 | 1361 | { |
| 1363 | 1362 | drive->type = type; |
| 1364 | 1363 | drive->cpunumber = cpunr; |
| 1365 | 1364 | drive->drive.serial.deviceid = devicenr; |
| 1366 | | drive->timer = timer_alloc(Machine, drive_timer, NULL); |
| 1365 | drive->timer = timer_alloc(machine, drive_timer, NULL); |
| 1367 | 1366 | |
| 1368 | 1367 | if (type == type_1551) |
| 1369 | 1368 | { |
| r3896 | r3897 | |
| 1372 | 1371 | |
| 1373 | 1372 | /* time should be small enough to allow quitting of the irq |
| 1374 | 1373 | line before the next interrupt is triggered */ |
| 1375 | | drive->drive.c1551.irq_timer = timer_alloc(Machine, c1551_irq_timer, NULL); |
| 1374 | drive->drive.c1551.irq_timer = timer_alloc(machine, c1551_irq_timer, NULL); |
| 1376 | 1375 | timer_adjust_periodic(drive->drive.c1551.irq_timer, attotime_zero, 0, ATTOTIME_IN_HZ(60)); |
| 1377 | 1376 | } |
| 1378 | 1377 | |
src/mess/machine/c128.c
| r3896 | r3897 | |
| 941 | 941 | DRIVER_INIT( c128d ) |
| 942 | 942 | { |
| 943 | 943 | DRIVER_INIT_CALL( c128 ); |
| 944 | | // drive_config (type_1541, 0, 0, 1, 8); |
| 944 | // drive_config (machine, type_1541, 0, 0, 1, 8); |
| 945 | 945 | } |
| 946 | 946 | |
| 947 | 947 | DRIVER_INIT( c128dpal ) |
| 948 | 948 | { |
| 949 | 949 | DRIVER_INIT_CALL( c128d ); |
| 950 | | // drive_config (type_1541, 0, 0, 1, 8); |
| 950 | // drive_config (machine, type_1541, 0, 0, 1, 8); |
| 951 | 951 | } |
| 952 | 952 | |
| 953 | 953 | |
src/mess/machine/c16.c
| r3896 | r3897 | |
| 481 | 481 | memset(mess_ram + (0xfd40 % mess_ram_size), 0xff, 0x20); |
| 482 | 482 | |
| 483 | 483 | if (has_c1551) /* C1551 */ |
| 484 | | drive_config (type_1551, 0, 0, 1, 8); |
| 484 | drive_config (machine, type_1551, 0, 0, 1, 8); |
| 485 | 485 | |
| 486 | 486 | if (has_vc1541) /* VC1541 */ |
| 487 | | drive_config (type_1541, 0, 0, 1, 8); |
| 487 | drive_config (machine, type_1541, 0, 0, 1, 8); |
| 488 | 488 | } |
| 489 | 489 | |
| 490 | 490 | static void c16_driver_init(running_machine *machine) |