summaryrefslogtreecommitdiff
path: root/sys/scsi
AgeCommit message (Collapse)Author
1996-05-02no sys/cpu.h, fix bugs in chTheo de Raadt
1996-04-21partial sync with netbsd 960418, more to comeTheo de Raadt
1996-04-19NetBSD 960317 mergeNiklas Hallqvist
1996-02-29Fix typo in commentNiklas Hallqvist
1996-02-20Sync. with NetBSD:briggs
- scsi prototypes. - Add SCSI scanner support by Kenneth Stailey and Joachim Koenig-Baltes, hacked a but. Needs more work. ss.c: - Truncate to the window size in ssminphys(), not ssread(). - Missed some prototyping foo. - Minor tweak; make sure window size is 0 on close. - Change variable name to avoid GCC warning. - Handle EOF a little differently.
1996-02-20Sync w/ NetBSD:briggs
- Implement DIOCLOCK and DIOCEJECT. DIOCEJECT is limited to removable media. Fixes PR #1975. - scsi prototypes
1996-02-20Sync. w/ NetBSD: scsi prototypes.briggs
1996-02-20Sync. w/ NetBSD: scsi prototypes.briggs
1996-02-20Sync w/ NetBSD: scsi prototypes.briggs
1996-02-20Sync w/ NetBSD:briggs
- Accept DIOCEJECT as a synonym for CDIOCEJECT. Implement DIOCLOCK separately from CDIOCALLOW and CDIOCPREVENT, even though they perform basically the same function (with a different interface XXX). - scsi prototypes
1996-02-20Several changes from NetBSD:briggs
- scsi prototypes - remove #ifdef notdef made unnecessary by previous changes (PR#1597) put in missing "if (error)" that caused tape IO to always fail. (closes PR#2086) - Minor change.
1996-02-09NetBSD PR 2048. Prototype st_erase.briggs
1996-01-31COMMAND ABORTED sense key is 0xb, not 0xa. Also clean up diagnostic message.briggs
1996-01-16from netbsd:Theo de Raadt
Honor cache request and add the SCSI tape device configuration page. Fixes PRs 807, 1201, and 1705. From John Kohl <jtk@kolvir.blrc.ma.us>.
1996-01-14From NetBSD: (required for last change to scsi_base.c in case we getbriggs
"command aborted" status) Handle cases like the following: - controller calls scsi_done() with error XS_TIMEOUT - scsi_done() calls sddone() - sddone() calls disk_unbusy() - scsi_done() calls controller to retry command (missing the call to disk_busy()) - controller calls scsi_done() - scsi_done() calls sddone() - sddone() calls disk_busy(), which panics because of the imbalance. Bug noticed by Leo Weppleman, who also suggested this fix; pass an additional boolean argument ("complete") to the device's "done" routine, with a value of `0' passed from the previous call to "done", and add an additional call to "done" when the xfer resources are freed.
1996-01-14Retry a command when we get a command aborted message for it.briggs
This might be a transient error. Do complain about it, though.
1996-01-12no luns on Tandberg 3600 w/ fake Archive Viper emulation roms; fromTheo de Raadt
raeburn@raeburn.org; netbsd pr#1934
1996-01-12from netbsd;Theo de Raadt
New generic disk framework. Highlights: New metrics handling. Metrics are now kept in the new `struct disk'. Busy time is now stored as a timeval, and transfer count in bytes. Storage for disklabels is now dynamically allocated, so that the size of the disk structure is not machine-dependent. Several new functions for attaching and detaching disks, and handling metrics calculation. Old-style instrumentation is still supported in drivers that did it before. However, old-style instrumentation is being deprecated, and will go away once the userland utilities are updated for the new framework. For usage and architectural details, see the forthcoming disk(9) manual page.
1996-01-10Save inquiry flags in sc_link so low-level drivers can use it.briggs
1996-01-01lun problem on Chinon CDS-525; from k125374@cs.tut.fi; netbsd pr#1686.Theo de Raadt
1995-12-14from netbsd:Theo de Raadt
If the read or write request can fit into a 6-byte cdb, then use a 6-byte cdb, otherwise use the 10-byte as before. In sdattach(), make a note if the device is "ancient" (i.e. inqbuf.version & SID_ANSII == 0). Implement sdminphys(): if the device is "ancient", shorten the transfer so it will fit into a 6-byte cdb. In sdminphys(), add a comment about the semantics of the "length" field in a 6-byte read/write cdb (namely, length == 0 really means 256), and that we handle this conservatively by limiting the transfer to 255 blocks. *sigh* One just never knows how a pre-scsi-1 device is going to behave. Remove a couple of now unneeded assignments.
1995-12-14from netbsd:Theo de Raadt
If the read or write request can fit into a 6-byte cdb, then use a 6-byte cdb, otherwise use the 10-byte as before.
1995-12-14from netbsd:Theo de Raadt
add a bunch of rogues Trim NULs, in addition to spaces, in scsi_strvis().
1995-12-14from netbsd; flesh out the mode pagesTheo de Raadt
1995-12-14from netbsd; Add quirk for Exabyte 8200/rev. 263H (from Paul Goyette; PR#1797)Theo de Raadt
1995-11-21make this workTheo de Raadt
1995-11-20add erase support and another wangtek tape drive; from ↵Theo de Raadt
rhialto@polder.ubc.kun.nl; netbsd pr#1705
1995-11-19if you read with a smaller buffer than the block on the tape, b_resid and ↵Theo de Raadt
b_count would be incorrect; from jtk@kolvir.arlington.ma.us; netbsd pr#1597
1995-10-21mt -f /dev/rcd* offline supportTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt