| History log of /src/sys/dev/ic/ninjascsi32.c |
| Revision | | Date | Author | Comments |
| 1.28 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
| 1.27 |
| 24-Apr-2021 |
thorpej | branches: 1.27.8; Merge thorpej-cfargs branch:
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?).
|
| 1.26 |
| 22-Mar-2018 |
rin | branches: 1.26.18; Redo previous; reset async events only if scsibus has already been attached.
|
| 1.25 |
| 22-Mar-2018 |
rin | Do not call scsipi routines via njsc32_init before scsibus is attached.
|
| 1.24 |
| 14-Sep-2013 |
martin | branches: 1.24.28; Fix detach return value
|
| 1.23 |
| 14-Sep-2013 |
joerg | GC unused functions and variables.
|
| 1.22 |
| 10-Mar-2012 |
mrg | branches: 1.22.2; 1.22.4; take the kernel lock in functions called from attach*().
|
| 1.21 |
| 13-Nov-2010 |
uebayasi | branches: 1.21.8; 1.21.12; 1.21.14; Don't pull in the whole uvm(9) API to access only PAGE_SIZE and some other constants. These are provided by sys/param.h now.
|
| 1.20 |
| 16-May-2009 |
tsutsui | branches: 1.20.4; - fix one more device_t/softc split botch in debug code - use sc->sc_dev to get device_t - fix inconsistent aprint_error_dev(9) usage - some KNF and wrap long lines
|
| 1.19 |
| 16-May-2009 |
tsutsui | Fix botch on device_t/softc split.
XXX: still doesn't work (command timeout on data xfer).
|
| 1.18 |
| 09-Jul-2008 |
joerg | branches: 1.18.8; - device/softc split
|
| 1.17 |
| 28-Apr-2008 |
martin | branches: 1.17.2; 1.17.4; 1.17.6; Remove clause 3 and 4 from TNF licenses
|
| 1.16 |
| 08-Apr-2008 |
cegger | branches: 1.16.2; 1.16.4; use aprint_*_dev and device_xname
|
| 1.15 |
| 06-Nov-2007 |
dogcow | branches: 1.15.14; callout_init has two args.
|
| 1.14 |
| 06-Nov-2007 |
itohy | - Reset the bus if a Bus Reset condition is detected to make sure 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.
|
| 1.13 |
| 29-Oct-2007 |
itohy | branches: 1.13.2; Fix problem where targets with ID 0, 1, or 2 couldn't be reconnected. It seems I have always tested with targets those ID >= 3, and that I am the only user of this driver.
|
| 1.12 |
| 19-Oct-2007 |
ad | machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
| 1.11 |
| 09-Jul-2007 |
ad | branches: 1.11.6; 1.11.8; 1.11.12; Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
| 1.10 |
| 04-Mar-2007 |
christos | branches: 1.10.2; 1.10.4; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
| 1.9 |
| 21-Feb-2007 |
thorpej | Replace the Mach-derived boolean_t type with the C99 bool type. A future commit will replace use of TRUE and FALSE with true and false.
|
| 1.8 |
| 16-Nov-2006 |
christos | branches: 1.8.2; 1.8.4; 1.8.6; __unused removal on arguments; approved by core.
|
| 1.7 |
| 12-Oct-2006 |
christos | - sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
| 1.6 |
| 14-Jan-2006 |
itohy | branches: 1.6.18; 1.6.20; - Fix panic when the DMA buffer is not 4byte aligned. 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.
|
| 1.5 |
| 24-Dec-2005 |
perry | branches: 1.5.2; Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
|
| 1.4 |
| 11-Dec-2005 |
christos | merge ktrace-lwp.
|
| 1.3 |
| 30-May-2005 |
christos | branches: 1.3.2; - add missing const - fix variable shadowing - remove unneeded casts
|
| 1.2 |
| 26-Aug-2004 |
thorpej | branches: 1.2.2; 1.2.4; 1.2.6; 1.2.16; Use ANSI function decls, more static.
|
| 1.1 |
| 26-Aug-2004 |
itohy | Workbit NinjaSCSI-32 PCI/CardBus SCSI driver (njs)
|
| 1.2.16.2 |
| 19-Nov-2007 |
bouyer | Pull up following revision(s) (requested by itohy in ticket #1875): sys/dev/ic/ninjascsi32.c: revision 1.13, 1.14 sys/dev/ic/ninjascsi32var.h: revision 1.4 Fix problem where targets with ID 0, 1, or 2 couldn't be reconnected. It seems I have always tested with targets those ID >= 3, and that I am the only user of this driver. - Reset the bus if a Bus Reset condition is detected to make sure 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.
|
| 1.2.16.1 |
| 20-Jan-2006 |
tron | Pull up following revision(s) (requested by itohy in ticket #1117): sys/dev/ic/ninjascsi32.c: revision 1.6 - Fix panic when the DMA buffer is not 4byte aligned. 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.
|
| 1.2.6.3 |
| 20-Jan-2006 |
tron | Pull up following revision(s) (requested by itohy in ticket #5991): sys/dev/ic/ninjascsi32.c: revision 1.6 - Fix panic when the DMA buffer is not 4byte aligned. 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.
|
| 1.2.6.2 |
| 11-Nov-2004 |
he | Pull up revisions 1.1-1.2 (new, via patch, requested by itohy in ticket #1741): Add support for the Workbit NinjaSCSI-32 PCI/Cardbus SCSI driver, njs(4).
|
| 1.2.6.1 |
| 26-Aug-2004 |
he | file ninjascsi32.c was added on branch netbsd-1-6 on 2004-11-11 23:13:53 +0000
|
| 1.2.4.5 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
| 1.2.4.4 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
| 1.2.4.3 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
| 1.2.4.2 |
| 03-Sep-2004 |
skrll | Sync with HEAD
|
| 1.2.4.1 |
| 26-Aug-2004 |
skrll | file ninjascsi32.c was added on branch ktrace-lwp on 2004-09-03 12:45:18 +0000
|
| 1.2.2.3 |
| 30-Aug-2004 |
tron | branches: 1.2.2.3.2; Pull up revision 1.2 (requested by itohy in ticket #800): Use ANSI function decls, more static.
|
| 1.2.2.2 |
| 30-Aug-2004 |
tron | Pull up revision 1.1 (requested by itohy in ticket #800): Workbit NinjaSCSI-32 PCI/CardBus SCSI driver (njs)
|
| 1.2.2.1 |
| 26-Aug-2004 |
tron | file ninjascsi32.c was added on branch netbsd-2-0 on 2004-08-30 09:24:58 +0000
|
| 1.2.2.3.2.2 |
| 19-Nov-2007 |
bouyer | Pull up following revision(s) (requested by itohy in ticket #11391): sys/dev/ic/ninjascsi32.c: revisions 1.13, 1.14 sys/dev/ic/ninjascsi32var.h: revision 1.4 Fix problem where targets with ID 0, 1, or 2 couldn't be reconnected. It seems I have always tested with targets those ID >= 3, and that I am the only user of this driver. - Reset the bus if a Bus Reset condition is detected to make sure 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.
|
| 1.2.2.3.2.1 |
| 20-Jan-2006 |
tron | Pull up following revision(s) (requested by itohy in ticket #10222): sys/dev/ic/ninjascsi32.c: revision 1.6 - Fix panic when the DMA buffer is not 4byte aligned. 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.
|
| 1.3.2.6 |
| 15-Nov-2007 |
yamt | sync with head.
|
| 1.3.2.5 |
| 27-Oct-2007 |
yamt | sync with head.
|
| 1.3.2.4 |
| 03-Sep-2007 |
yamt | sync with head.
|
| 1.3.2.3 |
| 26-Feb-2007 |
yamt | sync with head.
|
| 1.3.2.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
| 1.3.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
| 1.5.2.1 |
| 15-Jan-2006 |
yamt | sync with head.
|
| 1.6.20.2 |
| 10-Dec-2006 |
yamt | sync with head.
|
| 1.6.20.1 |
| 22-Oct-2006 |
yamt | sync with head
|
| 1.6.18.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
| 1.8.6.1 |
| 06-Jan-2008 |
wrstuden | Catch up to netbsd-4.0 release.
|
| 1.8.4.2 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
| 1.8.4.1 |
| 27-Feb-2007 |
yamt | - sync with head. - move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
|
| 1.8.2.1 |
| 25-Nov-2007 |
xtraeme | Pull up following revision(s) (requested by itohy in ticket #980): sys/dev/ic/ninjascsi32.c: revision 1.13 sys/dev/ic/ninjascsi32.c: revision 1.14 sys/dev/ic/ninjascsi32var.h: revision 1.4 Fix problem where targets with ID 0, 1, or 2 couldn't be reconnected.
It seems I have always tested with targets those ID >= 3, and that I am the only user of this driver. - Reset the bus if a Bus Reset condition is detected to make sure 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.
|
| 1.10.4.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
| 1.10.2.2 |
| 23-Oct-2007 |
ad | Sync with head.
|
| 1.10.2.1 |
| 05-Apr-2007 |
ad | Compile fixes.
|
| 1.11.12.2 |
| 13-Nov-2007 |
bouyer | Sync with HEAD
|
| 1.11.12.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
| 1.11.8.2 |
| 08-Nov-2007 |
matt | sync with -HEAD
|
| 1.11.8.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
| 1.11.6.3 |
| 06-Nov-2007 |
joerg | Sync with HEAD.
|
| 1.11.6.2 |
| 31-Oct-2007 |
joerg | Sync with HEAD.
|
| 1.11.6.1 |
| 26-Oct-2007 |
joerg | Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup code to restore CR4 before jumping back into kernel space as the large page option might cover that.
|
| 1.13.2.1 |
| 19-Nov-2007 |
mjf | Sync with HEAD.
|
| 1.15.14.2 |
| 28-Sep-2008 |
mjf | Sync with HEAD.
|
| 1.15.14.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
| 1.16.4.3 |
| 16-May-2009 |
yamt | sync with head
|
| 1.16.4.2 |
| 04-May-2009 |
yamt | sync with head.
|
| 1.16.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
| 1.16.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
| 1.17.6.1 |
| 19-Oct-2008 |
haad | Sync with HEAD.
|
| 1.17.4.1 |
| 18-Jul-2008 |
simonb | Sync with head.
|
| 1.17.2.1 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
| 1.18.8.1 |
| 23-Jul-2009 |
jym | Sync with HEAD.
|
| 1.20.4.1 |
| 05-Mar-2011 |
rmind | sync with head
|
| 1.21.14.1 |
| 19-Mar-2012 |
riz | Pull up following revision(s) (requested by mrg in ticket #125): sys/dev/scsipi/scsiconf.c: revision 1.263 sys/dev/scsipi/scsiconf.c: revision 1.264 sys/dev/ic/ncr53c9x.c: revision 1.144 sys/dev/ic/ninjascsi32.c: revision 1.22 sys/dev/usb/uhub.c: revision 1.117 take the kernel lock in functions called from attach*(). scsidevdetached ioctl path enters scsipi code without kernel lock and this upsets the newer kasserts. take kernel lock here. take the kernel lock a few more places when doing detach, to avoid triggering KERNEL_LOCK_P() asserts in both scsi and usb code. with this and other recent fixes i can now "drvctl -d ehci0".
|
| 1.21.12.1 |
| 11-Mar-2012 |
mrg | sync to latest -current
|
| 1.21.8.2 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
| 1.21.8.1 |
| 17-Apr-2012 |
yamt | sync with head
|
| 1.22.4.1 |
| 18-May-2014 |
rmind | sync with head
|
| 1.22.2.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
| 1.24.28.1 |
| 30-Mar-2018 |
pgoyette | Resolve conflicts between branch and HEAD
|
| 1.26.18.1 |
| 21-Mar-2021 |
thorpej | Give config_found() the same variadic arguments treatment as config_search(). This commit only adds the CFARG_EOL sentinel to the existing config_found() calls. Conversion of config_found_sm_loc() and config_found_ia() call sites will be in subsequent commits.
|
| 1.27.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|