summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/oosiop.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Since dlg@'s 2009 scsi midlayer refactoring the 'struct scsi_generic *cmd'krw2020-09-221-5/+5
| | | | | | | | | | | | member of 'struct scsi_xfer' has always been pointed at the 'struct scsi_generic cmdstore' member of the same instance. So nuke 'cmdstore' and remove the '*' from cmd. Take the address of cmd as required by the various casts. No intentional functional change. luna88k test by aoyama@, sparc64 test by jmatthew@ Identification of 2009's last *cmd use and ok jmatthew@
* Move remaining scsi bus initialization info from "prototype scsi link"krw2020-07-201-6/+6
| | | | | | | fields to struct scsibus_attach_args. Nuke the struct scsi_link * (saa_sc_link) in scaibus_attach_args. Explicitly initialize each field in scsibus_attach_args variables.
* Move the adapter related items (luns, adapter, adapter_target,krw2020-07-191-5/+6
| | | | | | | adapter_buswidth, adapter_softc) from struct scsi_link to struct scsibus_attach_args. Additional compile tests by jmatthew@ (sparc64) and aoyam@ (luna88k).
* Access adapter softc via link->bus->sb_adapter_softc.krw2020-07-161-3/+3
| | | | | | | | In sparc64 autoconf access 'luns' via sb_luns and 'adapter_buswidth' via sb_adapter_buswidth. Removes last post-config uses of the copies of bus related information in scsi_link.
* Remove some pointless casting of void * when assigning onekrw2020-07-131-2/+2
| | | | (scsi_link.adapter_softc) to a pointer of a particular softc type.
* Expunge some Captain Obvious comments, tweak whitespace a bit, move a debugkrw2020-07-111-7/+1
| | | | statement. All to make upcoming diff(s) smaller and easier to read.
* Nuke trailing whitespace.krw2020-06-271-3/+3
|
* No need to bzero()/memset() 'struct scsibus_attach_args' variableskrw2020-06-271-2/+1
| | | | immediately before initializing the only field in the struct.
* The siop family members use various atop/ptoa dances (oosiop/osiop) orkrw2020-02-171-11/+2
| | | | | as static value of 16 * PAGE_SIZE (siop). But all end up with a max i/o size of of MAXPHYS or more. So no need for their *_minphys.
* Let's all agree to call our scsi_adapter variable '<dev>_switch'.krw2020-02-141-3/+3
|
* Drivers that implement their own *minphys() don't need to call thekrw2020-01-251-2/+1
| | | | | | | system minphys(). scsi_minphys() will do that and cd/sd/st will call scsi_minphys(). ok jmatthew@ as part of larger diff
* Use a consistant idiom/format when declaring scsi_adapter structureskrw2020-01-231-5/+2
| | | | | | | | | | | in drivers. Terse one liners, NULLs instead of 0's, explicitly specify all members, etc. Nuke #ifdef notyet blocks related to the scsi_adapter in aic. No intentional functional change. ok tedu@
* Some reallocarray() use; review Jean-Philippe Ouellet, patrick keshishianderaadt2014-07-131-2/+2
| | | | ok tedu
* decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.hderaadt2014-07-081-3/+1
| | | | | don't need to be married. ok guenther miod beck jsing kettenis
* Enable synch negotiation; code was there but not enabled since this driver wasmiod2013-10-091-13/+21
| | | | | ported from NetBSD. Tested on hppa (720) and aviion (4600).
* Unbreak iopool conversion by putting the implicit yet missing importantmiod2011-06-271-1/+5
| | | | | initialization statements. Found the hard way by Sebastiaan Indesteege
* Iopoolification of some less common scsi drivers.krw2011-04-031-9/+35
| | | | ok dlg@ ("miod will not object" dlg@)
* Remove all adapter-specific 'struct scsi_device's. They are never used. Firstkrw2010-06-281-9/+1
| | | | | | | | step in elminating 'struct scsi_device' entirely. Spotted and initial diff from matthew@. ok matthew@ dlg@ deraadt@ marco@ miod@
* BUS_DMA_ZERO instead of alloc, map, bzero.oga2010-05-191-3/+2
| | | | ok krw@
* Allow MD oosiop(4) attachment to override default values for a few of themiod2010-04-201-5/+5
| | | | | chip initialization values (SCNTL0, DMODE, DWT, CTEST7). No functional change on hppa; required by another upcoming attachment.
* Change the scsi_cmd function member of scsi_adapter from int tokrw2010-03-231-10/+5
| | | | | | | | | | | | | 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@
* Set ITSDONE in scsi_done() and zap trivial instances of setting itkrw2010-01-101-2/+1
| | | | | | in the drivers just before calling scsi_done(). ok dlg@ beck@
* Make sure the scsi_xfer timeout is set up before the command may complete;miod2009-03-071-10/+15
| | | | similar fix to osiop.
* Extend the scsi_adapter minphys() callback to take a struct scsi_link *miod2009-02-161-3/+3
| | | | | | as additional argument. This will allow intermediate layers between scsi devices such as sd and scsi host adapters to take appropriate action if necessary.
* Replace timeout_add(msecs * hz / 1000) with timeout_add_msec(msecs).grange2009-01-211-5/+4
| | | | | | No functional changes. ok krw@ miod@
* Don't print SCSI ID, it's redundant now that scsibus(4) prints the samekettenis2008-05-271-3/+3
| | | | | | information. ok deraadt@
* More SPLBIO around scsi_done.krw2007-11-071-6/+5
|
* Take a bit more care to ensure that SCSI_POLL commands always returnkrw2007-11-051-4/+4
| | | | COMPLETE and never SUCCESSFULLY_QUEUED.
* More easy bzero() -> M_ZERO. Use 'p = malloc(sizeof(*p) ...'.krw2007-10-011-3/+2
|
* give scsi controllers a real attach args to fill in when attaching scsibus.dlg2006-11-281-2/+6
| | | | ok miod@ marco@ deraadt@
* Shrink openings down to 1 for now, this makes the snakes happy, until amiod2004-03-141-2/+2
| | | | better command selection algorithm is written.
* Small osiop inspired cleanups, especially honour the xfer timeout valuemiod2004-03-141-59/+133
| | | | | | | when polling. Disable osiop-like REQUEST_SENSE processing, as it confuses the script at the moment.
* Reset scsi bus upon command timeout.miod2004-03-121-1/+3
|
* Preliminary port of NetBSD oosiop driver, for NCR53C700 chips, as commonlymiod2004-03-121-0/+1378
encountered on the oldest hppa machines. Currently compiled in, but disabled, in the kernel, until it is stable enough - right now read access are fine, but writes eventually time out and do not complete. ok deraadt@