summaryrefslogtreecommitdiffstats
path: root/sys/scsi
Commit message (Collapse)AuthorAgeFilesLines
* Change defintion of unit to minor(dev). Sorry for notdufault1995-05-031-4/+2
| | | | having this in my local build. Thanks to gpalmer.
* Try to make this work again. Peter's last changes left it like :gpalmer1995-05-031-4/+4
| | | | | | | | loading kernel worm.o: Undefined symbol `_STUNIT' referenced from text segment I copied the STUNIT definition from the old scsiconf.c into this file to work around this problem.
* Moved unit definitions out of scsiconf.h;dufault1995-05-0312-214/+188
| | | | | | Added CONTROL device that only does user-ioctl and nothing else; Added protection so user-ioctl requires write access; Clean up scsiconf.h a little. It needs more work.
* Change dsioctl() interface to allow DIOCSYNCSLICEINFO to update the caller'sbde1995-04-301-3/+3
| | | | slice pointer and to print the device name in error messages.
* Finally implement the kernel hook for the "mt eom" command. (Thejoerg1995-04-292-9/+25
| | | | | | | | user-level part has already been commited.) Note that i've lost the "official" code for this; it went into the system after 1.1.5.1. The commited code is my own version, but it has proven to work for me for more than a year now.
* Submitted by: achedufault1995-04-291-2/+1
| | | | Fix extra newline during SCSI_VERBOSE.
* Set SCSI_NOSLEEP only when we really need to. This requires an additionalgibbs1995-04-237-37/+37
| | | | | | | | flags parameter to all xxstart routines so that the correct information can be passed down into the device specific routines. This is needed to ensure that ccb/scb allocation routines don't hang. Submitted by: John Dyson
* Don't export a bogus include to half the universe.bde1995-04-232-5/+4
|
* Declare wakeup() non-implicitly and don't bogusly cast its arg.bde1995-04-231-2/+3
|
* Added "scsi target" device that can act as a target for scsi transfersdufault1995-04-1413-382/+1052
| | | | | | | | from an initiator Added Julian's support for residuals. Added Julian's fixes to the tape driver Made compile cleanly with -Wall Reduce boot up output
* Read of a record smaller then request size always failsache1995-04-111-3/+2
| | | | Submitted by: edward@edcom.com
* sdattach: print out cyl/hd/sec info in the same format as wd driver doesache1995-04-101-4/+5
| | | | as default case, very helpful in many cases.
* Add and move declarations to fix all of the warnings from `gcc -Wimplicit'bde1995-03-282-5/+12
| | | | | (except in netccitt, netiso and netns) that I didn't notice when I fixed "all" such warnings before.
* Support disk slices. This involves mainly replacing inline code withbde1995-03-231-279/+116
| | | | | | | | | | | | | | | | | | | | | | function calls. Broken tracking of open partitions gets fixed as a side effect. Races in sdopen() and sdioctl() become more numerous than before. Close the device in sdsize(). Media removal could not have worked right when unused swap devices were held open. There may now be a problem with used swap devices not being held open. Fix ancient operator precedence bug in sddump(). It may have been possible to attempt dumping to unloaded media. Remove NetBSD ifdefs. We're too different now, and the NetBSD driver was already too different for them to be relevant. Remove support for soft write protection. There are no ioctls to set it, and this driver never set it either. It was used in the wd driver to disable writing to unlabelled disk, but we want to support writing to foreign partitions on unlabeled disks. Clean up some formatting and restore some old-style function headers.
* cd.c: Julian's CD audio cleanupdufault1995-03-218-185/+362
| | | | | | | | | | sd.c: Julian's removal of subdriver requests st.c, scsi_tape.h: Julian's suport of compressed tape drives Note: compressed tape drives are still not working fully. scsiconf.h, scsi_base.c, scsi_driver.c: address problems in probes and error console logs
* Removed redundant newlines that were in some panic strings.dg1995-03-191-2/+2
|
* Add and move declarations to fix all of the warnings from `gcc -Wimplicit'bde1995-03-164-14/+24
| | | | | | (except in netccitt, netiso and netns) and most of the warnings from `gcc -Wnested-externs'. Fix all the bugs found. There were no serious ones.
* Plug lurking bug when a device returns ASC:ASCQ 0xff:0xffdufault1995-03-151-4/+15
|
* Change it so it doesn't say "probe0" for SCSI probe "device".dufault1995-03-151-4/+5
|
* 1. Add text for ASC/ASCQdufault1995-03-159-41/+348
| | | | | 2. Clean up probe messages. This is how I propose it looks for 2.1 so if you don't like it you have my e-mail address.
* Submitted by: bde@zeta.org.au (Bruce Evans)dufault1995-03-061-3/+3
| | | | | | | Fix it so that calls to extend_get won't dereference 0 when "swap on sd.." calls sdsize() on systems with no SCSI devices. This probably really fixes Poul's "boot with no SCSI" problem.
* Remove some of my old debugging junk that somehow slipped in under my nose.dg1995-03-061-9/+1
|
* Fix when SCSI_DEBUG turned on. Thanks to Michael Reifenberger.dufault1995-03-051-4/+5
|
* 1. Change driver signatures to full signature for slice support.dufault1995-03-0414-199/+835
| | | | | 2. Add "pt" (processor type) driver. 3. Add "worm" (Write Once) driver for Jordan.
* Remove unused common variable `extended'.bde1995-03-041-2/+2
|
* Make sure there is a device before opening. Fixes NULL accessdufault1995-03-031-1/+4
| | | | when opening unattached devices.
* Reviewed by: gibbs@freefall.cdrom.com julian@freefall.cdrom.comdufault1995-03-0112-1178/+1291
| | | | | | | 1. Support for fixed device configuration 2. Hoisted common code to scsi_driver 3. SCSI busses dynamically allocated at boot 4. Reorg'd for LKMs
* iodone->biodone; get rid of older call syntax.jkh1995-02-251-2/+2
|
* Add a define for the SCSI_QUEUE_FULL sense messagegibbs1995-02-221-1/+2
|
* >From a week or two ago I got kernel panics as soon as I tried to access mydg1995-02-151-3/+3
| | | | | | | | | | | | tape drive. I traced it to sys/scsi/scsi_base.c where some code were added to print the return values of the sense command. My tape drive returned a extended flags value of 0x20, so the key that is the lower 4 bits, is 0. The code uses "key-1" to index into a table and then the kernel go to never- never land. Here is a fix for this. Will somebody please apply it? Submitted by: John Hay
* YFfix.phk1995-02-141-2/+4
|
* YFfix. addedphk1995-02-141-1/+2
| | | | errval scsi_probe_busses __P(( int, int, int));
* Split byte packing functions into signed and unsigned versions.dufault1995-01-314-25/+41
| | | | Left most current invocations as signed, though that could be wrong.
* 1. Reject obviously broken CDB command lengthsdufault1995-01-242-3/+18
| | | | 2. Use "uprintf" (instead of printf) to log the "tape not ready" message
* Add the missing forward declaration of chopen. Reported in theats1995-01-191-1/+2
| | | | mailinglists some time ago.
* Remove dup biodone and no more SCSIUSER option.dufault1995-01-192-9/+3
|
* Ensured all files have copyright and RCS ID variable.dufault1995-01-082-0/+41
|
* Submitted by: Gerd Truschinskiats1995-01-081-2/+2
| | | | | Removed one semicolon, two are one to much :-). Found by the hc860 compiler and Gerd Truschinski 8-).
* Reviewed by: gibbs@estienne.CS.Berkeley.EDUdufault1995-01-0813-197/+921
| | | | | | | Reenabled "SCIOCOMAND" ioctl. Restructured so low level drivers can easily request retries. Added preliminary fixed SCSI devices (should be revisited before 2.1) Added "ssc" device that can have its' (HBA, ID, LUN) set via ioctl.
* Fix the "wds" count stat.bde1994-12-241-2/+2
|
* Really fix the "byte" count stat. `wd's are actually blocks of 32 16-bitbde1994-12-241-2/+2
| | | | words in dkstat-speak. `ms's are seconds in dkstat-speak...
* Revert last patch - it's wrong.dg1994-12-231-2/+2
|
* Fixed byte count stat.dg1994-12-231-2/+2
| | | | Submitted by: John Dyson
* Added SCSI_DATA_OUT to flags passed to the device driver in sd_dump()se1994-12-221-2/+2
| | | | | | since device drivers may decide not to accept a data out phase without this flag present. Submitted by: Wolfgang Stanglmeier <wolf@dentaro.GUN.de>
* Make sure we allocate at least 8 scbus if we allocate any at all.phk1994-12-181-1/+9
|
* Allocate all scsi-devices on the fly, not just CDs.phk1994-12-164-110/+218
| | | | | Reviewed by: phk Submitted by: rgrimes
* added a missing '\n' in both files.phk1994-12-032-4/+4
|
* Include "scbus.h" in scsiconfig.c to get the number NSCBUS from theats1994-11-271-1/+2
| | | | config file.
* Submitted by: Lawrence J. King ljking@ljk.OCUnix.On.Caats1994-11-171-1/+5
| | | | | | Check the firmware revision for non-printing characters and replace them question-marks if necessary. Problem is known with old Seagate ST296N drives.
* Remove bogus and unused declaration and definition of Debugger().bde1994-11-151-7/+1
|
OpenPOWER on IntegriCloud