summaryrefslogtreecommitdiffstats
path: root/sys/scsi/scsiconf.c
Commit message (Collapse)AuthorAgeFilesLines
* Completed function declarations, added prototypes and removed redundantbde1995-11-211-6/+13
| | | | declarations.
* Mega commit for sysctl.phk1995-11-201-10/+10
| | | | | | 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.
* Include the "od" driver. (Oops, forgot to cvs add the driver filejoerg1995-10-311-26/+77
| | | | | | | | | | | | | 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)
* Some bug fixes for the worm driver:joerg1995-10-091-4/+21
| | | | | | | | | | | | | | | 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
* Remove hard coded assumption that SCSI busses have 7 targets.gibbs1995-08-231-15/+45
| | | | | | | | | | | | | | | | 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.
* Allow the specification of the controller bus when wiring down scsi buses.gibbs1995-07-171-12/+32
| | | | | | | | | | 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)
* 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-301-16/+16
|
* Moved unit definitions out of scsiconf.h;dufault1995-05-031-50/+18
| | | | | | 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.
* Don't export a bogus include to half the universe.bde1995-04-231-2/+3
|
* Added "scsi target" device that can act as a target for scsi transfersdufault1995-04-141-65/+218
| | | | | | | | 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
* cd.c: Julian's CD audio cleanupdufault1995-03-211-9/+15
| | | | | | | | | | 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-161-3/+8
| | | | | | (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.
* 1. Add text for ASC/ASCQdufault1995-03-151-11/+21
| | | | | 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.
* 1. Change driver signatures to full signature for slice support.dufault1995-03-041-38/+31
| | | | | 2. Add "pt" (processor type) driver. 3. Add "worm" (Write Once) driver for Jordan.
* Reviewed by: gibbs@freefall.cdrom.com julian@freefall.cdrom.comdufault1995-03-011-277/+452
| | | | | | | 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
* YFfix.phk1995-02-141-2/+4
|
* Reviewed by: gibbs@estienne.CS.Berkeley.EDUdufault1995-01-081-17/+53
| | | | | | | 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.
* Make sure we allocate at least 8 scbus if we allocate any at all.phk1994-12-181-1/+9
|
* 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.
* scsiconf.h:ats1994-11-141-4/+4
| | | | | | | | Change the sc_link structure from 8 targets with 8 lun's to 16 targets with 8 lun's. Wide scsi and the ncr 825 does support 16 targets. scsiconf.c: move the addition of the trailing NUL's out of a then clause, they are also needed in the else clause for an unknown device.
* Delete a bogus check that the SCSI_DELAY only works for the firstats1994-11-121-4/+2
| | | | | | scsi adapter. Let it work on every adapter. Someone want to rewrite this to be coupled with the adapter specification in the config file, so that you can say which adapters need it ?
* Finished device configuration database work for all ISA devices (except `ze')wollman1994-10-231-1/+25
| | | | | | | | | | | | | and all SCSI devices (except that it's not done quite the way I want). New information added includes: - A text description of the device - A ``state''---unknown, unconfigured, idle, or busy - A generic parent device (with support in the m.i. code) - An interrupt mask type field (which will hopefully go away) so that . ``doconfig'' can be written This requires a new version of the `lsdev' program as well (next commit).
* Implement scsi_externalize(), again. (This was supposed to be committed in thewollman1994-10-191-1/+12
| | | | last batch of changes but somehow got lost in the shuffle.)
* Removed unused vars. Silenced gcc -Wall. Some of this stuff is virtuallyphk1994-10-081-3/+3
| | | | type-less. Everything is "u_int32" :-(
* Reviewed by: Julian Elischer / Jordan K. Hubbardse1994-09-281-7/+211
| | | | | | | | | | | | Changes are only effective, if NEW_SCSICONF is defined: 1) Added u_int16 quirks to struct scsi_link for device quirks. 2) Added void *devmodes to struct scsi_link for tape density modes. 3) Modified selectdev() to return first full match (with wildcard). With this patch all device dependent configuration is done in one place (scsiconf.c), while there were some specifications in st.c and some hardware dependent drivers (ie. ncr.c) before.
* Make everything compile with -Wtraditional. Make it easier to distributewollman1993-12-191-3/+3
| | | | | | | | | | | a binary link-kit. Make all non-optional options (pagers, procfs) standard, and update LINT to reflect new symtab requirements. NB: -Wtraditional will henceforth be forgotten. This editing pass was primarily intended to detect any constructions where the old code might have been relying on traditional C semantics or syntax. These were all fixed, and the result of fixing some of them means that -Wall is now a realistic possibility within a few weeks.
* New version of scsi code from Julianrgrimes1993-11-181-596/+514
|
* Fixed printf if you are using SCSI_DELAY to allow the scsi bus torgrimes1993-09-051-2/+3
| | | | settle down after the reset.
* Revised drivers from Julian. Support for generic scsi. Fixed scsi tape (st.c)rgrimes1993-08-281-6/+13
| | | | | problems with respect to multiple tar files on one tape. Now uses malloc of data structures to reduce static kernel size.
* Fixed printf's so that they announce them selfs correctly (ie aha%d: beforergrimes1993-08-211-19/+26
| | | | every error message and every probe message).
* Update scsi code to the latest from Julian. This code is now identicalrgrimes1993-08-201-67/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to the last copy from Julian. After this commit I will be commiting the local fixes and makeing diffs to send back to Julian so he can update his code. ---- From julian@jules.DIALix.oz.au Thu Aug 5 09:25:23 1993 To: hd@world.std.com, julian@jules.DIALix.oz.au Cc: nate@bsd.coe.montana.edu Subject: Re: new scsi ---- From julian@jules.DIALix.oz.au Sat Aug 7 04:13:17 1993 To: hd@world.std.com (HD Associates) Cc: nate@bsd.coe.montana.edu Subject: Re: timeout diffs Here are the diffs to take the scsi stuff to my latest tree from what Nate and you received.. the changes remove all the local timeout stuff and use (un)timeout(), ---- From julian@jules.DIALix.oz.au Sat Aug 7 04:13:45 1993 To: hd@world.std.com (HD Associates) Cc: nate@bsd.coe.montana.edu, briggs@csugrad.cs.vt.edu here is a fix for a silly bug in the scsiconf I just sent out and a similar fix for st.c
* Removed PATCHKIT headers and updated our sources to Julian's withnate1993-07-291-11/+5
| | | | | our patches back in. Major changes to the Bustek driver and the Tape driver, the rest are minor.
* Initial import, 0.1 + pk 0.2.4-B1rgrimes1993-06-121-0/+761
OpenPOWER on IntegriCloud