summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/dpt.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* remove dpt(4) driver for DPT EATA SCSI RAIDjsg2020-01-101-1087/+0
| | | | | | | Not built since 2006, and a mail from 2004 mentions no one having hardware. Unsurprisingly it does not build with clang. ok mlarkin@ krw@ deraadt@
* avoid going outside array boundsjsg2017-05-311-2/+2
| | | | ok krw@ deraadt@
* Use <sys/endian.h> instead of <machine/endian.h>guenther2014-12-191-2/+2
| | | | ok dlg@ mpi@ bcook@ millert@ miod@
* Enforce ca_activate tree-walks over the entire heirarchy for all events,deraadt2013-05-301-11/+4
| | | | | | cleaning up some shutdown-hook related code on the way. (A few drivers related to sparc are still skipped at kettenis' request) ok kettenis mlarkin, tested by many others too
* Two dpt(4) fixes:matthew2011-06-211-8/+23
| | | | | | | | | | | | 1. Change adapter_softc to point to a per-channel intermediary object instead of pointing to the dpt_softc directly. This removes dpt(4) dependency on scsibus unit numbers. 2. Fix dpt(4) to use a struct scsibus_attach_args instead of a struct scsi_link for attaching the scsibus. (Evidently no one has tried using dpt(4) since Nov 2006...) ok krw@, miod@
* No point in a per-attachment scsi_adapter; move to global dpt_switchmatthew2011-04-261-6/+8
| | | | like we do in other SCSI drivers.
* A plausible attempt at iopoolifying dpt(4).matthew2011-04-261-53/+31
| | | | | ok dlg@; miod@ warns me to not hold my breath on anyone testing this diff though...
* Make dpt(4) compile on 64-bit arches; no binary change on i386.matthew2011-04-261-12/+9
|
* Get rid of NetBSD/OpenBSD ifdefs; our SCSI stacks have diverged toomatthew2011-04-261-130/+2
| | | | | | much for them to make sense anymore. Diff prepared with sed; no change to dpt.o on i386.
* Use an SLIST rather than a TAILQ for the ccb free list.mk2010-07-201-8/+6
| | | | ok krw
* Make this compile again (was broken in rev 1.24 as far as I can tell),mk2010-07-201-5/+5
| | | | | | even though we don't actually compile it in any configurations. ok krw
* Remove all adapter-specific 'struct scsi_device's. They are never used. Firstkrw2010-06-281-7/+4
| | | | | | | | step in elminating 'struct scsi_device' entirely. Spotted and initial diff from matthew@. ok matthew@ dlg@ deraadt@ marco@ miod@
* New scsi code seems to be stable. Pluck previously identifiedkrw2010-05-201-5/+1
| | | | | | | low-hanging splbio/splx pairs that are no longer needed and see if this reveals any hidden scsi flaws. ok dlg@
* Change the scsi_cmd function member of scsi_adapter from int tokrw2010-03-231-9/+13
| | | | | | | | | | | | | void. Use XS_NO_CCB error in the scsi command (xs) to report the NO_CCB condition. Eliminates all SUCCESSFULLY_QUEUED and COMPLETE confusion and untangles the midlayer from the adapter a bit more. Eyes and some fixes by miod@ There may be some compile issues on little used (i.e. I don't have any) drivers but the change is mechanical and thus easy to remedy. ok dlg@
* Zap all setting of ITSDONE in drivers that don't look at it. Nobodykrw2010-01-091-5/+1
| | | | | | | else cares so it's just noise. Drivers that actually look at ITSDONE are unchanged. ok marco@ (for his files) dlg@ beck@
* Bring last drivers fully into the NO_CCB world by replacingkrw2009-11-221-2/+2
| | | | | | | | | | | TRY_AGAIN_LATER uses with equivalent NO_CCB. Eliminates confusion between the two as was always intended. buf I/O's that can't be started get pushed back onto the front of the queue and retried. Others get sent back to originator as failures. No more epi-cycle looping inside the SCSI midlayer hoping the problem goes away. Various testers, no objection from miod@ as vs(4) was tested by nick@.
* Missing scsi_done() in some error path returning COMPLETE; ok dlg@miod2009-09-041-3/+11
|
* Extend the scsi_adapter minphys() callback to take a struct scsi_link *miod2009-02-161-4/+2
| | | | | | as additional argument. This will allow intermediate layers between scsi devices such as sd and scsi host adapters to take appropriate action if necessary.
* Stop maintaining internal queues of received scsi_xfer structures.krw2008-11-261-143/+11
| | | | | | | We can now just push unwanted ones back up into the SCSI layer with NO_CCB like other drivers. "Please do so" deraadt@
* Return NO_CCB instead of TRY_AGAIN_LATER when ccb's run out.krw2008-11-241-2/+2
| | | | "I'm all for it." marco@ "Yeah" deraadt@
* SCSI_DATA_UIO is never used. Code which checks for it is either dead ormiod2008-09-121-24/+7
| | | | | | commented out, remove it. Unifdef TFS while there. ok marco@ krw@
* Do not print adapter target id on the attachment line, now that scsibus(4)miod2008-07-301-6/+2
| | | | prints it. These should be the last offenders.
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-8/+1
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* Remove commented out NetBSD __KERNEL_RCSID macro usage.brad2008-05-131-6/+1
| | | | ok dlg@
* More scsi_done() at SPLBIO. Wrap another interrupt function call whilekrw2007-11-051-3/+9
| | | | | polling in splbio/splx. Wrap one call to dpt_done_ccb() not already at SPLBIO.
* ``it's'' -> ``its'' when the grammar gods require this change.miod2007-04-101-2/+2
|
* The first thing done when XXX_scsi_cmd() returns TRY_AGAIN_LATER iskrw2005-12-031-4/+1
| | | | | | | | to set xs->error to XS_BUSY. So it is pointless and misleading to set xs->error to XS_TIMEOUT, XS_DRIVER_STUFFUP or XS_BUSY just before returning TRY_AGAIN_LATER. No functional change.
* Use list and queue macros where applicable to make the code easier to read;miod2004-12-261-9/+9
| | | | no change in compiler assembly output.
* typos from Tom Cosgrove;jmc2003-10-211-2/+2
| | | | | | | | Tom: I did not commit a couple of your changes. i did not include some punctuation fixes (full stops, etc.) mnemorable -> mnemonic: i decided memorable was probably better instrunctions -> instruction: i kept the plural
* sendbug(1), not send-pr; Peter Wernerhenning2002-12-111-2/+2
|
* Remove trailing '\n's from panic messages.krw2002-10-091-3/+3
| | | | | | Started by a commit to siop from provos@netbsd.org. ok miod@ millert@
* First round of __P removal in sysmillert2002-03-141-3/+3
|
* Switch everything to the new bus_dmamap_sync API.art2001-11-051-51/+2
| | | | | Most work by Wilbern Cobb <vedge@csoft.org> with some fixes from me, mickey@ and drahn@.
* initialize bus width and number of luns supported.mickey2001-07-131-1/+3
| | | | | this is tested on SmartRAID IV and consistant w/ what netbsd does.
* Fix thinko. Okay millert@espie2001-07-081-2/+2
| | | | Uncovered by gcc 3.0, since the bad code does have unpredictable behavior.
* Missing splxcsapuntz2001-03-251-1/+2
|
* Added port of the NetBSD (-current) DPT SmartCache III/IV PCI/EISA host adaptercmetz1999-11-301-0/+1441
driver to OpenBSD.