summaryrefslogtreecommitdiffstats
path: root/sys/scsi/cd.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove trailing whitespace.rgrimes1995-05-301-28/+28
|
* Moved unit definitions out of scsiconf.h;dufault1995-05-031-2/+5
| | | | | | 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.
* Set SCSI_NOSLEEP only when we really need to. This requires an additionalgibbs1995-04-231-5/+6
| | | | | | | | 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
* Added "scsi target" device that can act as a target for scsi transfersdufault1995-04-141-18/+16
| | | | | | | | 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-39/+35
| | | | | | | | | | 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
* 1. Add text for ASC/ASCQdufault1995-03-151-3/+3
| | | | | 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.
* 1. Change driver signatures to full signature for slice support.dufault1995-03-041-17/+17
| | | | | 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-184/+104
| | | | | | | 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
* Reviewed by: gibbs@estienne.CS.Berkeley.EDUdufault1995-01-081-11/+11
| | | | | | | 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
|
* Allocate all scsi-devices on the fly, not just CDs.phk1994-12-161-9/+2
| | | | | Reviewed by: phk Submitted by: rgrimes
* added a missing '\n' in both files.phk1994-12-031-2/+2
|
* Remove unused definition of Debugger().bde1994-11-151-6/+1
|
* Julian Elischer's disklabel fixes.jkh1994-10-271-4/+2
|
* Finished device configuration database work for all ISA devices (except `ze')wollman1994-10-231-3/+8
| | | | | | | | | | | | | 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).
* all: register deviceswollman1994-10-191-1/+52
| | | | cd.c sd.c: implement disk stats
* Removed unused vars. Silenced gcc -Wall. Some of this stuff is virtuallyphk1994-10-081-61/+75
| | | | type-less. Everything is "u_int32" :-(
* Changed CDOUTSTANDING back to a value of 2 (from 1), since this is now onlyse1994-09-161-2/+2
| | | | | an upper limit, not a fixed value (ignoring the host adapter capabilities) as before.
* Reviewed by: Stefan Esser <se>se1994-08-311-5/+16
| | | | | | Calculation of 'cd->cmdscount' now as in 'sd.c' (required for ncr scsi). CDOUTSTANDING defined as '1' (as the comment says), was '2' in fact ... Debugger takes an (char*) argument, changed macro definition accordingly.
* Rather than exclude bounce buffers support with NOBOUNCE, include itdg1994-08-311-2/+2
| | | | | | with BOUNCE_BUFFERS. This is more intuitive, and is better for future multiplatform support. Added BOUNCE_BUFFERS option to the GENERIC and LINT kernel config files.
* Raw partition is 2 nowache1994-08-291-2/+2
|
* 1) Changed ddb into a option rather than a pseudo-device (use options DDBdg1994-08-271-5/+4
| | | | | | | | | | in your kernel config now). 2) Added ps ddb function from 1.1.5. Cleaned it up a bit and moved into its own file. 3) Added \r handing in db_printf. 4) Added missing memory usage stats to statclock(). 5) Added dummy function to pseudo_set so it will be emitted if there are no other pseudo declarations.
* The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch.rgrimes1994-05-251-4/+4
| | | | | Reviewed by: Rodney W. Grimes Submitted by: John Dyson and David Greenman
* Bug fixes and performance improvements from John Dyson and myself:dg1994-04-201-1/+4
| | | | | | | | | | | | | | | 1) check va before clearing the page clean flag. Not doing so was causing the vnode pager error 5 messages when paging from NFS. (pmap.c) 2) put back interrupt protection in idle_loop. Bruce didn't think it was necessary, John insists that it is (and I agree). (swtch.s) 3) various improvements to the clustering code (vm_machdep.c). It's now enabled/used by default. 4) bad disk blocks are now handled properly when doing clustered IOs. (wd.c, vm_machdep.c) 5) bogus bad block handling fixed in wd.c. 6) algorithm improvements to the pageout/pagescan daemons. It's amazing how well 4MB machines work now.
* Bounce buffers. From John Dyson with help from me.dg1994-03-231-1/+9
|
* Fixed CDIOREADTOCENTRYS ioctl call so that it returns only the entriesswallace1994-02-051-9/+11
| | | | and not header + entries as per definition.
* Patch from Julian. Commit message by me.rgrimes1994-01-291-3/+11
| | | | | | | | | | | | | | | | | | | | | | cd.c: Initialize channel info in CDIOCSETVOL ioctl. Correct CDIOCSTOP and CDIOCEJCET ioctls to use scsi_stop_unit instead of scsi_start_unit. Add CDIOCALLOW and CDIOCPREVENT ioctls. ch.h: Return EBUSY instead of ENXIO if the device is already in use. scsi_base.c: Add scsi_stop_unit routine. sd.c: Add mising indirection through sc_link to sd_get_parms routine when checking for media loaded. st.c: Return EBUSY instead of ENXIO if the device is already in use. Clear the SDEV_WAITING flag in ststart if we do the wakeup call.
* Make everything compile with -Wtraditional. Make it easier to distributewollman1993-12-191-11/+20
| | | | | | | | | | | 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.
* Make the LINT kernel compile with -W -Wreturn-type -Wcomment -Werror, andwollman1993-11-251-3/+10
| | | | add same (sans -Werror) to Makefile for future compilations.
* New version of scsi code from Julianrgrimes1993-11-181-1426/+820
|
* Fixed comments.wollman1993-11-181-2/+2
|
* >From julian@jules.DIALix.oz.au Fri Sep 10 22:58:30 1993rgrimes1993-09-211-302/+339
| | | | | | | | | | | | | | | | | | | >Date: Sat, 11 Sep 93 12:59:39 +0800 1/ fix bug where cd0a was unusable because it was compared against the number of 2k blocks not the number of 512byte blocks.. gave an error for all reads past 1/4 way through the disk (cd0d was ok). 2/ fix open code so that it now notices if a disk has been changed and updates the disklabel. 3/ use the new error handling code from st.c 4/ start adding stuff to get ready for using cd_scsi_cmd from cd_start (like is done in st and sd) 5/ more general cleanups including making dmesg report sector size of disk.. (believe it or not SUN drives use 512 byte)
* The dynamically allocated struct's where not getting properly initializedrgrimes1993-09-201-1/+3
| | | | | | | as malloc memory is NOT zerod. Added bzero's after the malloc calls to make sure that things are initialized. >From Julian Elischer
* The scsi cd.c driver is now fully dynamic. You can change the linesrgrimes1993-09-091-63/+116
| | | | | | | | | | | | | | | | in your config file from: device cd0 device cd1 ... device cdn to either device cd0 or psuedo-device cd0 The driver now dynamically allocates all per unit dependent structs, so it will never run out of units (okay, so now we need 32 bit device major/minor numbers!). It will allocate unit numbers as it needs them.
* First pass fixes to start using malloc structures for all per unitrgrimes1993-09-081-31/+74
| | | | | | | data. cd_data is now malloced on a per unit basis. Protected all if ({scsi,cd}_debug).... with #ifdef CDDEBUG to reduce the the size of the kernel when not debugging.
* Revised drivers from Julian. Support for generic scsi. Fixed scsi tape (st.c)rgrimes1993-08-281-3/+49
| | | | | 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-56/+47
| | | | every error message and every probe message).
* Update scsi code to the latest from Julian. This code is now identicalrgrimes1993-08-201-37/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 tabs from the front of XXU: messages to make it fit the otherrgrimes1993-08-061-2/+2
| | | | | messages closer. Added missing new line to the message about to many scsi cd drives.
* Removed PATCHKIT headers and updated our sources to Julian's withnate1993-07-291-7/+0
| | | | | 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/+1722
OpenPOWER on IntegriCloud