summaryrefslogtreecommitdiffstats
path: root/sys/scsi/ch.c
Commit message (Collapse)AuthorAgeFilesLines
* Obsoleted by CAM.gibbs1998-09-151-750/+0
|
* Cast to `char *' instead of to u_long to help add byte offsets tobde1998-08-151-4/+5
| | | | | | | | | | | | | | | | | | | pointers. Neither is portable, but "correct" casts to integral types are much uglier - they lead to expressions like ptr = (struct struct_with_too_long_a_name *)(void *)(uintptr_t) ((uintptr_t)(void *)ptr + offset); Here the cast to the struct pointer is to match the surrounding style of this file (and not depend on C's feature of properly converting `void *' on assignment or cast), the `void *' casts are because uintptr_t is only specified to work on `void *' pointers (I missed this in about 100 lines of previous changes from [u]long to [u]intptr_t), the outer cast to a uintptr_t is in case the addition promoted the type, and the inner cast to a uintptr_t corresponds to the one cast to an integer in the original code. Don't depend on gcc's feature of casting lvalues.
* Added used include of "ioconf.h" - don't depend on pollution inbde1998-06-171-1/+2
| | | | | <sys/conf.h>. I'm fixing isa interrupt handler configuration and this is just a quick fix to keep SCSI configuration unharmed.
* This commit fixes various 64bit portability problems required fordfr1998-06-071-3/+3
| | | | | | | | | | FreeBSD/alpha. The most significant item is to change the command argument to ioctl functions from int to u_long. This change brings us inline with various other BSD versions. Driver writers may like to use (__FreeBSD_version == 300003) to detect this change. The prototype FreeBSD/alpha machdep will follow in a couple of days time.
* The CHIOGSTATUS ioctl of the SCSI media changer driver (sys/scsi/ch.c)phk1998-05-061-2/+2
| | | | | | | | | is broken. It omits the SCSI_DATA_IN flag in the SCSI READ ELEMENT STATUS command, which makes the 'chio status' command fail. PR: 6528 Reviewed by: phk Submitted by: Hans Huebner <hans@artcom.de>
* Attempt to fix BOUNCE_BUFFERS. I cannot test these drivers, but theypeter1998-04-161-1/+30
| | | | | seem to compile OK with the bounce buffer mods. I have only visually checked for missing bounce buffer support, I could have missed some.
* Make all file-system (MFS, FFS, NFS, LFS, DEVFS) related option new-style.eivind1998-01-241-1/+3
| | | | | | | | This introduce an xxxFS_BOOT for each of the rootable filesystems. (Presently not required, but encouraged to allow a smooth move of option *FS to opt_dontuse.h later.) LFS is temporarily disabled, and will be re-enabled tomorrow.
* Update select -> poll in drivers.peter1997-09-141-2/+2
|
* Removed unused #includes.bde1997-09-021-8/+1
|
* Don't include <sys/ioctl.h> in the kernel. Stage 1: don't includebde1997-03-241-2/+1
| | | | | it when it is not used. In most cases, the reasons for including it went away when the special ioctl headers became self-sufficient.
* Removed nested #includes of <scsi/scsi_debug.h> and <scsi/scsi_driver.h>bde1997-03-241-1/+2
| | | | | from <scsi/scsiconf.h> and fixed everything that depended on them. (Missed this one.)
* Removed nested #include of <sys/conf.h> from <scsi/scsi_driver.h>bde1997-03-231-1/+2
| | | | | | and fixed everything that depended on getting it from the wrong place. Most of the broken things actually only depended on getting the declaration of their interrupt handler from "ioconf.h".
* Merge Jason Thorpe's updated changer stuff into the actual system.joerg1997-03-061-388/+592
| | | | | | | | | | Many things have been changing in the kernel since mid-1996, so there's quite some amount of diffs here already. It compiles, but i cannot test it anywhere here. 2.2 candidate? Closes PR # 1201.
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-221-1/+1
| | | | ready for it yet.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Remove devconf, it never grew up to be of any use.phk1996-09-061-31/+1
|
* Turn SCSIDEBUG into a new-style option.joerg1996-07-141-1/+2
|
* Fixed group of disk devices (was wheel or games, now operator).bde1996-03-271-6/+11
| | | | | | | | | | | Added scsi control devices. Converted almost everything that I changed to use devfs_add_devswf() and verbose id macros. st.c: Renamed enrst* to erst* since that's what the current name is (enrst seems to be an old name).
* Fixed some missing int32 -> int32_tdg1996-03-101-2/+2
|
* Cleanse the SCSI subsystem of its internally defined typesgibbs1996-03-101-31/+31
| | | | | u_int32, u_int16, u_int8, int32, int16, int8. Use the system defined *_t types instead.
* Moved prototypes to better places.bde1995-12-141-18/+16
| | | | Fixed indentation of some function headers.
* Another mega commit to staticize things.phk1995-12-141-19/+19
|
* Julian forgot to make the *devsw structures static.phk1995-12-081-2/+2
|
* Pass 3 of the great devsw changesjulian1995-12-081-28/+28
| | | | | | | | | | | | | | | | | | | | | | | 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.. :)
* Removed unnecessary #includes of <sys/user.h>. Some of these were justbde1995-12-061-2/+1
| | | | | | | 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.
* 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-2/+45
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Remove trailing whitespace.rgrimes1995-05-301-13/+13
|
* Fix -Wformat warnings from LINT kernel.rgrimes1995-05-111-2/+2
|
* Moved unit definitions out of scsiconf.h;dufault1995-05-031-1/+4
| | | | | | 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.
* Added "scsi target" device that can act as a target for scsi transfersdufault1995-04-141-15/+10
| | | | | | | | 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
* Add and move declarations to fix all of the warnings from `gcc -Wimplicit'bde1995-03-281-3/+9
| | | | | (except in netccitt, netiso and netns) that I didn't notice when I fixed "all" such warnings before.
* 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-23/+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-130/+109
| | | | | | | 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
* Add the missing forward declaration of chopen. Reported in theats1995-01-191-1/+2
| | | | mailinglists some time ago.
* Reviewed by: gibbs@estienne.CS.Berkeley.EDUdufault1995-01-081-6/+6
| | | | | | | 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.
* Finished device configuration database work for all ISA devices (except `ze')wollman1994-10-231-3/+7
| | | | | | | | | | | | | 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).
* Make my ALLDEVS kernel compile (basically, LINT minus a lot of options).wollman1994-10-211-2/+3
| | | | This involves fixing a few things I broke last time.
* all: register deviceswollman1994-10-191-1/+36
| | | | cd.c sd.c: implement disk stats
* Patch from Julian. Commit message by me.rgrimes1994-01-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | 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-4/+6
| | | | | | | | | | | 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/+7
| | | | add same (sans -Werror) to Makefile for future compilations.
* New version of scsi code from Julianrgrimes1993-11-181-852/+352
|
* Fixed printf's so that they announce them selfs correctly (ie aha%d: beforergrimes1993-08-211-83/+57
| | | | every error message and every probe message).
* Update scsi code to the latest from Julian. This code is now identicalrgrimes1993-08-201-37/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-12/+1
| | | | | 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/+1015
OpenPOWER on IntegriCloud