src/mess/drivers/ip22.c
| r2661 | r2662 | |
| 7 | 7 | * Fix SCSI DMA to handle chains properly |
| 8 | 8 | * Probably many more things |
| 9 | 9 | * |
| 10 | | * NOTE: this driver does not work with the MIPS DRC! |
| 11 | | * You must use the interpreter and take the speed hit :( |
| 12 | | * |
| 13 | 10 | * Memory map: |
| 14 | 11 | * |
| 15 | 12 | * 18000000 - 1effffff RESERVED - Unused |
| r2661 | r2662 | |
| 452 | 449 | case 0x0000/4: |
| 453 | 450 | case 0x4000/4: |
| 454 | 451 | // verboselog( 2, "HPC3 HD0 Status Read: %08x (%08x): %08x\n", 0x1fb90000 + ( offset << 2), mem_mask, nHPC3_hd0_regs[0x17] ); |
| 455 | | if (!(mem_mask & 0x000000ff)) |
| 452 | if (!(mem_mask & 0xffffff00)) |
| 456 | 453 | { |
| 457 | 454 | return wd33c93_r( machine, 0 ); |
| 458 | 455 | } |
| r2661 | r2662 | |
| 464 | 461 | case 0x0004/4: |
| 465 | 462 | case 0x4004/4: |
| 466 | 463 | // verboselog( 2, "HPC3 HD0 Register Read: %08x (%08x): %08x\n", 0x1fb90000 + ( offset << 2), mem_mask, nHPC3_hd0_regs[nHPC3_hd0_register] ); |
| 467 | | if (!(mem_mask & 0x000000ff)) |
| 464 | if (!(mem_mask & 0xffffff00)) |
| 468 | 465 | { |
| 469 | 466 | return wd33c93_r( machine, 1 ); |
| 470 | 467 | } |
| r2661 | r2662 | |
| 488 | 485 | case 0x0000/4: |
| 489 | 486 | case 0x4000/4: |
| 490 | 487 | // verboselog( 2, "HPC3 HD0 Register Select Write: %08x\n", data ); |
| 491 | | if (!(mem_mask & 0x000000ff)) |
| 488 | if (!(mem_mask & 0xffffff00)) |
| 492 | 489 | { |
| 493 | 490 | wd33c93_w( machine, 0, data & 0x000000ff ); |
| 494 | 491 | } |
| r2661 | r2662 | |
| 496 | 493 | case 0x0004/4: |
| 497 | 494 | case 0x4004/4: |
| 498 | 495 | // verboselog( 2, "HPC3 HD0 Register %d Write: %08x\n", nHPC3_hd0_register, data ); |
| 499 | | if (!(mem_mask & 0x000000ff)) |
| 496 | if (!(mem_mask & 0xffffff00)) |
| 500 | 497 | { |
| 501 | 498 | wd33c93_w( machine, 1, data & 0x000000ff ); |
| 502 | 499 | } |
| r2661 | r2662 | |
| 1428 | 1425 | static const SCSIConfigTable dev_table = |
| 1429 | 1426 | { |
| 1430 | 1427 | 1, /* 1 SCSI device */ |
| 1431 | | { { SCSI_ID_4, 0, SCSI_DEVICE_CDROM }, /* SCSI ID 4, using CD 0, and it's a CD-ROM */ |
| 1432 | | { SCSI_ID_2, 0, SCSI_DEVICE_CDROM } } /* SCSI ID 2, using HD 0, and it's a CD-ROM */ |
| 1428 | { { SCSI_ID_4, 0, SCSI_DEVICE_CDROM } } /* SCSI ID 4, using CD 0, and it's a CD-ROM */ |
| 1429 | // { SCSI_ID_2, 0, SCSI_DEVICE_CDROM } } /* SCSI ID 2, using HD 0, and it's a CD-ROM */ |
| 1433 | 1430 | }; |
| 1434 | 1431 | |
| 1435 | 1432 | static const struct WD33C93interface scsi_intf = |