summaryrefslogtreecommitdiff
path: root/sys/dev/ic/ninjascsi32.c
AgeCommit message (Collapse)Author
2021-08-07Merge thorpej-cfargs2.thorpej
2021-04-24Merge thorpej-cfargs branch:thorpej
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments. Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.) Remove unnecessary or redundant interface attributes where they're not needed. There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles) ...and a sentinel value CFARG_EOL. Add some extra sanity checking to ensure that interface attributes aren't ambiguous. Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
2018-03-22Redo previous; reset async events only if scsibus has already been attached.rin
2018-03-22Do not call scsipi routines via njsc32_init before scsibus is attached.rin
2013-09-14Fix detach return valuemartin
2013-09-14GC unused functions and variables.joerg
2012-03-10take the kernel lock in functions called from attach*().mrg
2010-11-13Don't pull in the whole uvm(9) API to access only PAGE_SIZE anduebayasi
some other constants. These are provided by sys/param.h now.
2009-05-16- fix one more device_t/softc split botch in debug codetsutsui
- use sc->sc_dev to get device_t - fix inconsistent aprint_error_dev(9) usage - some KNF and wrap long lines
2009-05-16Fix botch on device_t/softc split.tsutsui
XXX: still doesn't work (command timeout on data xfer).
2008-07-09- device/softc splitjoerg
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2008-04-08use aprint_*_dev and device_xnamecegger
2007-11-06callout_init has two args.dogcow
2007-11-06- Reset the bus if a Bus Reset condition is detected to make sureitohy
all devices on the bus are really reset. - Block interrupts on Bus Reset, and check it periodically until the reset is released. On some 32UDE devices (probably the earlier ones) the RST line looks unstable without the termination power and may suffer ~continuous Bus Reset interrupts. - Change number of scatter/gather segments from 16 to 17, to allow non-page-aligned 64KB transfer on 4KB/page platforms.
2007-10-29Fix problem where targets with ID 0, 1, or 2 couldn't be reconnected.itohy
It seems I have always tested with targets those ID >= 3, and that I am the only user of this driver.
2007-10-19machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.had
2007-07-09Merge some of the less invasive changes from the vmlocking branch:ad
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
2007-03-04Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.christos
2007-02-21Replace the Mach-derived boolean_t type with the C99 bool type. Athorpej
future commit will replace use of TRUE and FALSE with true and false.
2006-11-16__unused removal on arguments; approved by core.christos
2006-10-12- sprinkle __unused on function decls.christos
- fix a couple of unused bugs - no more -Wno-unused for i386
2006-01-14- Fix panic when the DMA buffer is not 4byte aligned.itohy
In this case, the transfer count becomes larger than the reality, and this fix works around it. - Add missing bus_dmamap_unload() in attach failure path.
2005-12-24Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.perry
2005-12-11merge ktrace-lwp.christos
2005-05-30- add missing constchristos
- fix variable shadowing - remove unneeded casts
2004-08-26Use ANSI function decls, more static.thorpej
2004-08-26Workbit NinjaSCSI-32 PCI/CardBus SCSI driver (njs)itohy