q Sun part # 501-1236 board used in systems with .Tn VME bus. .Ss sun3 and sun3x The .Tn sun3 and .Tn sun3x version of this driver can be configured with a .Em flags directive in the .Xr config 1 file. The values are bits in a bitfield, and are interpreted as follows:
p l -tag -offset indent -compact -width 0x000ff t 0x000ff Set bit (1<<target) to disable .Tn SCSI disconnect/reselect t 0x0ff00 Set bit (1<<(target+8)) to disable .Tn SCSI parity checking t 0x10000 Set this bit to disable .Tn DMA interrupts (poll) t 0x20000 Set this bit to disable .Tn DMA entirely (use PIO) .El
p For example: .Qq flags 0x1000f would disable .Tn DMA interrupts, and disable disconnect/reselect for targets 0-3. The .Qq target is the .Tn SCSI ID number of a particular device on a particular .Tn SCSI bus. .Ss sun4 The .Tn sun4 version of this driver can also be configured with a .Em flags directive in the .Xr config 1 file. The values are bits in a bitfield, and are interpreted as follows:
p l -tag -offset indent -compact -width 0x01 t 0x01 Use .Tn DMA
q may be polled t 0x02 Use .Tn DMA completion interrupts t 0x04 Allow .Tn SCSI disconnect/reselect .El
p For example: .Qq flags 0x07 would enable .Tn DMA , interrupts, and reselect. By default, .Tn DMA is enabled in the .Tn sun4 driver. .Sh SEE ALSO .Xr cd 4 , .Xr ch 4 , .Xr intro 4 , .Xr scsi 4 , .Xr sd 4 , .Xr st 4 .Sh AUTHORS David Jones, .An Gordon Ross .Aq gwr (at] NetBSD.org , .An Adam Glass .Aq glass (at] NetBSD.org , .An Jason R. Thorpe .Aq thorpej (at] NetBSD.org . .Sh BUGS The .Tn VME variant has a bit to enable or disable the .Tn DMA engine, but that bit also gates the interrupt line from the .Tn NCR5380
q !! . Therefore, in order to get any interrupt from the .Tn NCR5380 , (i.e. for reselect) one must clear the .Tn DMA engine transfer count and then enable .Tn DMA . This has the further complication that you CAN NOT touch the .Tn NCR5380 while the .Tn DMA enable bit is set, so we have to turn .Tn DMA back off before we even look at the .Tn NCR5380 .
p Support for the Sun 4/100 .Nm sw .Qq Tn SCSI Weird is not complete. .Tn DMA works, but interrupts (and, thus, reselection) don't for reasons unknown. Further progress has halted pending the availability of a machine for testing.
p .Tn DMA , .Tn DMA completion interrupts, and reselection work fine on a Sun 4/260 with modern .Tn SCSI-II disks attached. There have been reports of reselection failing on .Tn Sun Shoebox-type configurations where there are multiple non-SCSI devices behind .Tn Emulex or .Tn Adaptec bridges. These devices pre-date the .Tn SCSI-I spec, and might not behave the way the NCR5380 code expects. For this reason, only .Tn DMA is enabled by default in the .Tn sun4 driver.