summaryrefslogtreecommitdiffstats
path: root/sys/scsi
Commit message (Collapse)AuthorAgeFilesLines
...
* Say so if a sense code is vendor specific.dufault1995-10-011-0/+7
|
* Remove hard coded assumption that SCSI busses have 7 targets.gibbs1995-08-232-20/+53
| | | | | | | | | | | | | | | | This change forces the controller drivers to allocate a scsibus_data struct via a call to scsi_alloc_bus(), fill in the adapter_link field, and optionally modify any other fields of the struct. Scsi_alloc_bus() initializes all fields to the default, so the changes in most drivers are very minimal. For drivers that support Wide controllers, the maxtarg field will have to be updated to allow probing of all targets (for an example, look at the aic7xxx driver). Scsi_attachdevs() now takes a scsibus_data* as its argument instead of an sc_link*. This allows us to expand the role of the scsibus_data struct for other bus level configuration setings (max number of transactions, current transaction opennings, etc for better tagged queuing support). Reviewed by: Rodney Grimes <rgrimes>, Peter Dufault <dufault>, Julian Elischer <julian>
* Make everything except the unsupported network sources compile cleanlybde1995-08-161-3/+3
| | | | with -Wnested-externs.
* Set bp->b_actf=NULL for paranoia sake.dg1995-08-071-1/+2
|
* Change memcmp() to bcmp(). memcmp() isn't declared or implementedbde1995-07-251-2/+2
| | | | | | | | | for the kernel, but gcc provides an inline version of it if the kernel is compiled with -O. The inline memcmp() is OK for small compares and is better than the dumb kernel bcmp() in all cases, but it has been hiding the library memcmp() which is 4 times faster for large compares.
* Allow the specification of the controller bus when wiring down scsi buses.gibbs1995-07-172-32/+54
| | | | | | | | | | This is performed by using a line similar to: controller scbus0 at ahc0 bus 1 to wire scbus0 to the second bus on an adaptec 2742T controller. Reviewed by: Peter Dufault(dufault@hda.com), Rod Grimes(rgrimes@FreeBSD.org)
* Do not set SCSI_NOSLEEP on every tape command (the exception being duringgibbs1995-07-161-2/+2
| | | | | | | | | | | | probes). Apart from there being no reason to set SCSI_NOSLEEP on every tape command, this prevents controller drivers from sleeping when resources are fully utilized causing unecessary "Oops not queued" errors. This is only noticed for controllers that can run out of resources like the 27/2842 adaptec controllers. Before this fix, it is almost impossible to perform extended tape operations if more than one scsi disk is on the bus with the tape drive with these controllers. This does not address a similar problem that could occur if devices are probed while other targets are active since SCSI_NOSLEEP will still be set in that case.
* Fix benign function type mismatch.bde1995-07-131-4/+5
|
* PR #kern/572:joerg1995-07-091-6/+8
| | | | | | | | | | | >Synopsis: Booting w/scsi tape in drive causes first use to fail Booting with a tape in a SCSI tape drive will cause the first use of the tape to fail with the following message: st0: bad request, must be between 0 and 0. Submitted by: mpp@legarto.minn.net (Mike Pritchard)
* Bestmatch check for cd-drive always faild due to additional spaceamurai1995-06-141-7/+23
| | | | | on manufacture and other items. So it's never probe as MORE_LUNS after frist SONY entry....
* Remove trailing whitespace.rgrimes1995-05-3021-198/+198
|
* Fix -Wformat warnings from LINT kernel.rgrimes1995-05-111-2/+2
|
* Added bounce support for user scsi requests.dyson1995-05-091-1/+7
| | | | Reviewed by: David Greenman
* sdsize() didn't open a device often enough. This caused swap partitions onbde1995-05-081-17/+4
| | | | slices other than the first slice looked at to be unavailable for swapping.
* 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
|
OpenPOWER on IntegriCloud