Previous 15994 Revisions Next

r2662 Sunday 18th May, 2008 at 23:49:40 UTC by R. Belmont
[IP22] Fix to recognize SCSI controller again, removed obsolete note about DRC not working (the new UDRC fixes whatever bugs prevented it from working)
[src/mess/drivers]ip22.c

src/mess/drivers/ip22.c
r2661r2662
77*         Fix SCSI DMA to handle chains properly
88*         Probably many more things
99*
10*  NOTE: this driver does not work with the MIPS DRC!
11*  You must use the interpreter and take the speed hit :(
12*
1310*  Memory map:
1411*
1512*  18000000 - 1effffff      RESERVED - Unused
r2661r2662
452449   case 0x0000/4:
453450   case 0x4000/4:
454451//      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))
456453      {
457454         return wd33c93_r( machine, 0 );
458455      }
r2661r2662
464461   case 0x0004/4:
465462   case 0x4004/4:
466463//      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))
468465      {
469466         return wd33c93_r( machine, 1 );
470467      }
r2661r2662
488485   case 0x0000/4:
489486   case 0x4000/4:
490487//      verboselog( 2, "HPC3 HD0 Register Select Write: %08x\n", data );
491      if (!(mem_mask & 0x000000ff))
488      if (!(mem_mask & 0xffffff00))
492489      {
493490         wd33c93_w( machine, 0, data & 0x000000ff );
494491      }
r2661r2662
496493   case 0x0004/4:
497494   case 0x4004/4:
498495//      verboselog( 2, "HPC3 HD0 Register %d Write: %08x\n", nHPC3_hd0_register, data );
499      if (!(mem_mask & 0x000000ff))
496      if (!(mem_mask & 0xffffff00))
500497      {
501498         wd33c93_w( machine, 1,  data & 0x000000ff );
502499      }
r2661r2662
14281425static const SCSIConfigTable dev_table =
14291426{
14301427        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 */
14331430};
14341431
14351432static const struct WD33C93interface scsi_intf =

Previous 15994 Revisions Next


© 1998-2018 The MESS Team