1.\" $NetBSD: si.4,v 1.3 1999/03/16 01:19:18 garbled Exp $ 2.\" 3.\" written from a reading of config files and driver source code 4.\" Erik E. Fair <fair@netbsd.org> 5.Dd May 7, 1998 6.Dt SI 4 7.Os 8.Sh NAME 9.Nm si , 10.Nm sw 11.Nd NCR 5380 SCSI bus host adaptor driver 12.Sh SYNOPSIS 13.Ss sun3 14.Cd "si0 at obio0 addr 0x140000 ipl 2" 15.Ss sun3 and sun3x 16.Cd "si0 at vme2 addr 0x200000 ipl 2 vect 0x40" 17.Cd "si1 at vme2 addr 0x204000 ipl 2 vect 0x41" 18.Ss sun3/E 19.Cd "sebuf0 at vme2 addr 0x300000 ipl 2 vect 0x74 # and 0x75" 20.Cd "sebuf1 at vme2 addr 0x340000 ipl 2 vect 0x76 # and 0x77" 21.Cd "si* at sebuf?" 22.Ss sun4 23.Cd "si0 at vme0 addr 0x200000 pri 2 vec 0x40" 24.Ss sun4/100 25.Cd "sw0 at obio0 addr 0x0a000000 level 3" 26.Sh DESCRIPTION 27The 28.Nm 29and 30.Nm sw 31.Qq Tn SCSI Weird 32drivers provide support for the 33.Tn NCR 345380 35.Tn SCSI 36Bus Controller (SBC) chip found on various Sun Microsystems 37.Tn CPU 38motherboards (obio), and on the 39.Qq Sun-3 VME SCSI 40.Pq Sun part # 501-1236 41board used in systems with 42.Tn VME 43bus. 44.Ss sun3 and sun3x 45The 46.Tn sun3 47and 48.Tn sun3x 49version of this driver can be configured with a 50.Em flags 51directive in the 52.Xr config 8 53file. 54The values are bits in a bitfield, and are interpreted as follows: 55.Pp 56.Bl -tag -offset indent -compact -width 0x000ff 57.It 0x000ff 58Set bit (1<<target) to disable 59.Tn SCSI 60disconnect/reselect 61.It 0x0ff00 62Set bit (1<<(target+8)) to disable 63.Tn SCSI 64parity checking 65.It 0x10000 66Set this bit to disable 67.Tn DMA 68interrupts (poll) 69.It 0x20000 70Set this bit to disable 71.Tn DMA 72entirely (use PIO) 73.El 74.Pp 75For example: 76.Qq flags 0x1000f 77would disable 78.Tn DMA 79interrupts, and disable disconnect/reselect for targets 0-3. 80The 81.Qq target 82is the 83.Tn SCSI 84ID number of a particular device on a particular 85.Tn SCSI 86bus. 87.Ss sun4 88The 89.Tn sun4 90version of this driver can also be configured with a 91.Em flags 92directive in the 93.Xr config 8 94file. 95The values are bits in a bitfield, and are interpreted as follows: 96.Pp 97.Bl -tag -offset indent -compact -width 0x01 98.It 0x01 99Use 100.Tn DMA 101.Pq may be polled 102.It 0x02 103Use 104.Tn DMA 105completion interrupts 106.It 0x04 107Allow 108.Tn SCSI 109disconnect/reselect 110.El 111.Pp 112For example: 113.Qq flags 0x07 114would enable 115.Tn DMA , 116interrupts, and reselect. 117By default, 118.Tn DMA 119is enabled in the 120.Tn sun4 121driver. 122.Sh BUGS 123The 124.Tn VME 125variant has a bit to enable or disable the 126.Tn DMA 127engine, but that bit also gates the interrupt line from the 128.Tn NCR5380 129.Pq !! . 130Therefore, in order to get any interrupt from the 131.Tn NCR5380 , 132(i.e. for reselect) one must clear the 133.Tn DMA 134engine transfer count and then enable 135.Tn DMA . 136This has the further complication that you CAN NOT touch the 137.Tn NCR5380 138while the 139.Tn DMA 140enable bit is set, so we have to turn 141.Tn DMA 142back off before we even look at the 143.Tn NCR5380 . 144.Pp 145Support for the Sun 4/100 146.Nm sw 147.Qq Tn SCSI Weird 148is not complete. 149.Tn DMA 150works, but interrupts (and, thus, reselection) don't for reasons unknown. 151Further progress has halted pending the availability of a machine for testing. 152.Pp 153.Tn DMA , 154.Tn DMA 155completion interrupts, and reselection work fine on a Sun 4/260 with modern 156.Tn SCSI-II 157disks attached. 158There have been reports of reselection failing on 159.Tn Sun 160Shoebox-type configurations where 161there are multiple non-SCSI devices behind 162.Tn Emulex 163or 164.Tn Adaptec 165bridges. 166These devices pre-date the 167.Tn SCSI-I 168spec, and might not behave the way the NCR5380 code expects. 169For this reason, only 170.Tn DMA 171is enabled by default in the 172.Tn sun4 173driver. 174.Sh SEE ALSO 175.Xr intro 4 , 176.Xr scsi 4 , 177.Xr sd 4 , 178.Xr st 4 , 179.Xr cd 4 , 180.Xr ch 4 181.Sh AUTHOR 182David Jones, 183.br 184Gordon Ross 185.Aq gwr@netbsd.org , 186.br 187Adam Glass 188.Aq glass@netbsd.org , 189.br 190Jason R. Thorpe 191.Aq thorpej@netbsd.org . 192