summaryrefslogtreecommitdiffstats
path: root/sys/scsi/cd.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove devconf, it never grew up to be of any use.phk1996-09-061-26/+1
|
* Make a "DWIM" function for adding [bc]devsw entries for bdev drivers.phk1996-07-231-13/+3
| | | | | | | | | Saves about 280 butes of source per driver, 56 bytes in object size and another 56 bytes moves from data to bss. No functional change intended nor expected. GENERIC should be about one k smaller now :-)
* Turn SCSIDEBUG into a new-style option.joerg1996-07-141-1/+2
|
* Clean up -Wunused warnings.gpalmer1996-06-121-1/+5
| | | | Reviewed by: bde
* Fixed devfs group and permissions of some more disk devices.bde1996-03-291-7/+12
| | | | Added devfs cd control device.
* Using devfs_add_devswf() instead of devfs_add_devsw()scrappy1996-03-281-21/+13
| | | | Reviewed by: julian@freebsd.org
* Cleanse the SCSI subsystem of its internally defined typesgibbs1996-03-101-52/+52
| | | | | u_int32, u_int16, u_int8, int32, int16, int8. Use the system defined *_t types instead.
* Physically ask for leadout entry instead of asking ofache1996-02-131-22/+39
| | | | last_track + 1 entry, some drives don't understand it
* Simplify READTOCENTRYS by removing fake leadout code,ache1996-02-021-37/+5
| | | | SCSI system do it for us
* I forget the fact that cd_read_toc reads toc header in any caseache1996-02-021-3/+3
|
* Remove statement that does nothing now, forget in my prev. commitache1996-02-011-2/+1
|
* Oops, pick wrong volume size for leadout entryache1996-02-011-3/+3
|
* Don't convert LBA to host order, they must stay in network orderache1996-01-301-6/+1
| | | | as old code does.
* OOPS, forget to adjust starting track to not physically readache1996-01-301-8/+9
| | | | leadout entry
* Use ntohs/ntohl when reading TOC instead of hardcoded byte swapping.ache1996-01-301-9/+37
| | | | Put fake entry len for MSF format too.
* READTOCENTRYS: make fake leadout entryache1996-01-301-3/+26
|
* READTOCENTRYS: handle 0 and lead out requests, add argument checkingache1996-01-301-11/+34
|
* Convert BOUNCE_BUFFERS and BOUNCEPAGES to new option scheme.wollman1996-01-051-1/+3
|
* 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'.
* 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.
* Another mega commit to staticize things.phk1995-12-141-2/+2
|
* 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-101-2/+2
| | | | | | device must be configured, so ENXIO is a bogus errno). Replaced zerosize by nopsize. zerosize was a temporary alias.
* Make NEW_SCSICONF the default way of doing thingsjulian1995-12-101-2/+6
| | | | | | | | | | | | | | | 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..
* Julian forgot to make the *devsw structures static.phk1995-12-081-3/+3
|
* Pass 3 of the great devsw changesjulian1995-12-081-49/+69
| | | | | | | | | | | | | | | | | | | | | | | 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.. :)
* If you're going to mechanically replicate something in 50 filesjulian1995-11-291-2/+2
| | | | it's best to not have a (compiles cleanly) typo in it! (sigh)
* OK, that's it..julian1995-11-291-1/+55
| | | | | | | | | | | | | | | | | | | | | | | | 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)
* Mega commit for sysctl.phk1995-11-201-5/+3
| | | | | | 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.
* First set of changes to eliminate the ad-hoc device buffer queues,dyson1995-11-191-10/+9
| | | | | | 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").
* Make a lot of things static.phk1995-10-211-12/+12
|
* 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.
OpenPOWER on IntegriCloud