summaryrefslogtreecommitdiffstats
path: root/sys/scsi
Commit message (Collapse)AuthorAgeFilesLines
...
* Use a medium_type field of 0 (Default), instead of the value that wasjoerg1995-12-301-3/+9
| | | | | | | | | | | | obtained by the MOSE SENSE command. SONY drives are too stupid to eat their own food. Submitted by: stu@solaris.com (Stu Phillips) While i was at it, i've removed two bogus channel numbers in the``set mono'' command, that kept my Toshiba drive complaining. Also remove Julian's misspelling of `stereo'.
* Add NEC CDR 210 to list of devices with broken LUN supportpst1995-12-271-1/+9
|
* Add an entry for the NEC CDROM:55 drive to stop it answering all 7 LUNS.peter1995-12-261-1/+11
|
* Bruce's fix for when dk_ndrive >= DK_NDRIVE. Fixes CDROM changerdufault1995-12-201-2/+2
| | | | | and other "lots of CDROM devices" problems. This code should be put in a single place.
* Staticize.phk1995-12-172-6/+8
| | | | | | | | | | | | Unstaticize a function in scsi/scsi_base that was used, with an undocumented option. My last count on the LINT kernel shows: Total symbols: 3647 unref symbols: 463 undef symbols: 4 1 ref symbols: 1751 2 ref symbols: 485 Approaching the pain threshold now.
* Moved prototypes to better places.bde1995-12-143-31/+28
| | | | Fixed indentation of some function headers.
* Added prototypes.bde1995-12-142-1/+4
|
* Declared functions as static in their definitions as well as in theirbde1995-12-142-20/+17
| | | | prototypes.
* The change of [cb]devsw was missed here.bde1995-12-141-3/+3
|
* Another mega commit to staticize things.phk1995-12-1411-125/+111
|
* Check before dereferencing a possible null pointer (cdevsw[i]->d_open)peter1995-12-131-2/+2
|
* devsw tables are now arrays of POINTERS to struct [cb]devswjulian1995-12-131-2/+2
| | | | | | | | | seems to work hre just fine though I can't check every file that changed due to limmited h/w, however I've checked enught to be petty happy withe hte code.. WARNING... struct lkm[mumble] has changed so it might be an idea to recompile any lkm related programs
* Undo a change that should not have been committed with the 1Tb enhancements.dyson1995-12-111-2/+1
|
* Changes to support 1Tb filesizes. Pages are now named by andyson1995-12-111-1/+6
| | | | (object,index) pair instead of (object,offset) pair.
* Replaced nxmmap by nommap (if the mmap function gets called, then thebde1995-12-102-4/+4
| | | | device must be configured).
* Replaced odsize by generic nopsize.bde1995-12-101-35/+28
| | | | | | Staticized. Added prototypes.
* Replaced cdsize by generic nopsize.bde1995-12-101-27/+20
| | | | | | Added prototypes. Declared statics consistently.
* Replaced nxdump by nodump (if the dump function gets called, then thebde1995-12-103-6/+6
| | | | | | device must be configured, so ENXIO is a bogus errno). Replaced zerosize by nopsize. zerosize was a temporary alias.
* Removed unused functions sudump() and supsize().bde1995-12-101-26/+5
| | | | Added `extern' to misplaced public prototypes.
* Make NEW_SCSICONF the default way of doing thingsjulian1995-12-105-423/+21
| | | | | | | | | | | | | | | It will need to be changed but it's the better starting point.. also add '?' to wildcarding in SCSI identification of devices.. so we can catch all PIONEER CD 6??* devices instead of having separate entries for the 600, 602, 604X, 624X etc.. it's getting so we should have a small regexp routine in the kernel maybe just a little one.. matching CDX-6[0-9][0-9][ A-Z] would be better there will be drastic changes in this but this is the best starting point..
* Restored used variable `name[32]' (used by DEVFS).bde1995-12-102-9/+22
| | | | Completed function declarations and/or added prototypes.
* scsi_tape.h had some old cruft that looked like missing typedefs orphk1995-12-093-17/+15
| | | | something. Cleanup some lint in sd.c and st.c.
* Julian forgot to make the *devsw structures static.phk1995-12-0811-26/+26
|
* Pass 3 of the great devsw changesjulian1995-12-0811-389/+513
| | | | | | | | | | | | | | | | | | | | | | | most devsw referenced functions are now static, as they are in the same file as their devsw structure. I've also added DEVFS support for nearly every device in the system, however many of the devices have 'incorrect' names under DEVFS because I couldn't quickly work out the correct naming conventions. (but devfs won't be coming on line for a month or so anyhow so that doesn't matter) If you "OWN" a device which would normally have an entry in /dev then search for the devfs_add_devsw() entries and munge to make them right.. check out similar devices to see what I might have done in them in you can't see what's going on.. for a laugh compare conf.c conf.h defore and after... :) I have not doen DEVFS entries for any DISKSLICE devices yet as that will be a much more complicated job.. (pass 5 :) pass 4 will be to make the devsw tables of type (cdevsw * ) rather than (cdevsw) seems to work here.. complaints to the usual places.. :)
* Untangled the vm.h include file spaghetti.dg1995-12-072-2/+6
|
* Removed unnecessary #includes of <sys/user.h>. Some of these were justbde1995-12-062-4/+2
| | | | | | | to get the definitions of TRUE and FALSE which happen to be defined in a deeply nested include. Added nearby #includes of <sys/conf.h> where appropriate.
* Removed dummy routines sscstrategy(), sscread(), sscwrite() andbde1995-12-051-10/+6
| | | | | | | | | sscselect(). Use the standard dummies nostrategy(), noread(), nowrite() and noselect() instead. sscread() and sscwrite() returned bogus errnos. It isn't possible to return an error from a select routine so noselect() is just as bogus as sscselect() (it's equivalent to nullselect()).
* fix a couple of stuffups in the worm driver and in other associated scsi filesjulian1995-12-054-35/+13
|
* If the open fails, don't mark the device as open (duh!)julian1995-12-051-2/+2
| | | | | symptom:.. once an open of a 'can only open it once' device fails.. you can never open it again, as it was marked open but wasn't open..
* Fix support for QIC_3080 drives...it 1/2 worked before.pst1995-11-302-2/+5
|
* If you're going to mechanically replicate something in 50 filesjulian1995-11-2911-22/+23
| | | | it's best to not have a (compiles cleanly) typo in it! (sigh)
* OK, that's it..julian1995-11-2911-19/+526
| | | | | | | | | | | | | | | | | | | | | | | | That's EVERY SINGLE driver that has an entry in conf.c.. my next trick will be to define cdevsw[] and bdevsw[] as empty arrays and remove all those DAMNED defines as well.. Each of these drivers has a SYSINIT linker set entry that comes in very early.. and asks teh driver to add it's own entry to the two devsw[] tables. some slight reworking of the commits from yesterday (added the SYSINIT stuff and some usually wrong but token DEVFS entries to all these devices. BTW does anyone know where the 'ata' entries in conf.c actually reside? seems we don't actually have a 'ataopen() etc... If you want to add a new device in conf.c please make sure I know so I can keep it up to date too.. as before, this is all dependent on #if defined(JREMOD) (and #ifdef DEVFS in parts)
* Completed function declarations, added prototypes and removed redundantbde1995-11-211-6/+13
| | | | declarations.
* Completed function declarations and/or added prototypes.bde1995-11-211-12/+21
|
* Fixed replication error so that this compiles again.bde1995-11-211-4/+3
| | | | Removed bogus comment and useless braces.
* Mega commit for sysctl.phk1995-11-207-37/+27
| | | | | | Convert the remaining sysctl stuff to the new way of doing things. the devconf stuff is the reason for the large number of files. Cleaned up some compiler warnings while I were there.
* Trim #includes to those that are necessary; other cosmetic changes.dg1995-11-201-15/+10
|
* First set of changes to eliminate the ad-hoc device buffer queues,dyson1995-11-197-77/+61
| | | | | | replacing them with TAILQ's as appropriate. The SCSI code is the first to be changed -- until the changes are complete, both b_act and b_actf will be in the buf structure. b_actf will eventually be removed.
* Minor aesthetics (changed "." to space in "cd present.[a x b records]"asami1995-11-151-3/+3
| | | | and removed extraneous newline after "can't get the size").
* Set B_BUSY on the private buffer to avoid a panic in biodone when thedg1995-11-101-2/+2
| | | | | | I/O completes. Bug apparantly seen when attempting to format SCSI disks. Submitted by: Peter Dufault <dufault@hda.com>
* Initialize the 3 remaining elements of the scsi_cmd struct rather thandg1995-11-061-2/+2
| | | | bzeroing the whole thing in sdstart().
* Replaced bogus macros for dummy devswitch entries by functions.bde1995-11-061-18/+2
| | | | | | | | | | | | | | | | | | These functions went away: enosys (hasn't been used for some time) enxio enodev enoioctl (was used only once, actually for a vop) if_tun.c: Continued cleaning up... conf.h: Probably fixed the type of d_reset_t. It is hard to tell the correct type because there are no non-dummy device reset functions. Removed last vestige of ambiguous sleep message strings.
* Moved prototypes for devswitch functions from conf.c and driver sourcesbde1995-11-042-13/+2
| | | | | | | to <machine/conf.h>. conf.h was mechanically generated by `grep ^d_ conf.c >conf.h'. This accounts for part of its ugliness. The prototypes should be moved back to the driver sources when the functions are staticalized.
* Fixed the type of sscstrategy() (return void).bde1995-11-041-4/+2
| | | | | | Removed sscdump() (it was never used). Removed sscpsize() (it was never used, and returned a bogus value (ENXIO = 6 means a size of 6)).
* The "od" driver. While the name is suggesting the use forjoerg1995-10-311-0/+802
| | | | | | | | | | | magneto-optical devices, it's scope can (and should) be widened to cover all removable type 0 (direct) devices as well, since this class of devices is sharing the same principles. Things like suport for media eject etc. will be supported later. (Shunsuke is also working on the problems arising out of the use of media with physical block size != 512 bytes (which is not uncommon for MODs). Submitted by: akiyama@kme.mei.co.jp (Shunsuke Akiyama)
* Include the "od" driver. (Oops, forgot to cvs add the driver filejoerg1995-10-312-49/+100
| | | | | | | | | | | | | itself. Will do this after this commit.) Make scsiconf more flexible about recognizing ``foreign'' devices. This part needs to be rewritten some day to allow for matches whithou strict version number checks, but either Julian as Peter seem to be too busy right now, so i'm finally commiting the version that's working for me stable now for several months, as an interim workaround. Submitted by: akiyama@kme.mei.co.jp (Shunsuke Akiyama)
* Make a lot of things static.phk1995-10-215-66/+66
|
* oops currupted a line by hitting the wrong key..julian1995-10-121-2/+2
| | | | fix it
* Ack!julian1995-10-122-15/+34
| | | | | | | | | | | | | sometime around 1.51, the check for minphys dissappeared out of transfers for disks.. we weren't hecking that the adapter could handle a transfer of the size we were requesting.. Peter!? :) this explains the rash of failures I've seen reported recently with "too many DMA segments" on raw devices (added one for st as well)
* Some bug fixes for the worm driver:joerg1995-10-093-16/+37
| | | | | | | | | | | | | | | o don't use polled mode after the device probe phase o don't biodone() a NULL buffer pointer o increase the timeout for scsi_read_capacity(); WORMs are slooow o make WORMMs known to scsiconf at all This brings the driver in a state where it at least doesn't immediately panic, nor hangs the controller any more. Unfortunately, at least the YAMAHA CDR100 i've been testing with answered my write attempts with an "Incorrect command sequence" response. Perhaps other CD burners might work however. Reviewed by: dufault
OpenPOWER on IntegriCloud