History log of /src/sys/dev/ic/iha.c |
Revision | | Date | Author | Comments |
1.46 |
| 17-Apr-2025 |
andvar | s/valdid/valid/ and s/valdiation/validation/ in comments.
|
1.45 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.44 |
| 24-Apr-2021 |
thorpej | branches: 1.44.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.43 |
| 10-Nov-2019 |
chs | branches: 1.43.10; in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT and remove code to handle failures that can no longer happen.
|
1.42 |
| 24-May-2011 |
joerg | branches: 1.42.56; Kill redundant ()
|
1.41 |
| 13-Nov-2010 |
uebayasi | branches: 1.41.2; 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.40 |
| 14-May-2008 |
tsutsui | branches: 1.40.20; Normalize my licenses.
|
1.39 |
| 03-May-2008 |
tsutsui | branches: 1.39.2; Change my mail address to netbsd.org one.
|
1.38 |
| 12-Apr-2008 |
tsutsui | branches: 1.38.2; 1.38.4; Split device_t/softc.
|
1.37 |
| 08-Apr-2008 |
cegger | use aprint_*_dev and device_xname
|
1.36 |
| 19-Oct-2007 |
ad | branches: 1.36.16; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
1.35 |
| 04-Mar-2007 |
christos | branches: 1.35.2; 1.35.14; 1.35.16; 1.35.20; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.34 |
| 21-May-2006 |
christos | branches: 1.34.12; void casts to functions whose return values are ignored.
|
1.33 |
| 14-Apr-2006 |
christos | branches: 1.33.2; Coverity CID 1099: Don't deref NULL if !DIAGNOSTIC
|
1.32 |
| 19-Mar-2006 |
rtr | avoid deref of NULL coverity 2436 / run 6
|
1.31 |
| 24-Dec-2005 |
perry | branches: 1.31.4; 1.31.6; 1.31.8; 1.31.10; 1.31.12; Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
|
1.30 |
| 11-Dec-2005 |
christos | merge ktrace-lwp.
|
1.29 |
| 30-May-2005 |
christos | branches: 1.29.2; - add missing const - fix variable shadowing - remove unneeded casts
|
1.28 |
| 21-Feb-2005 |
thorpej | Part 1 of a cleanup pass over the SCSI subsystem. The aim is to name everything "scsi_*", since we really are talking about the SCSI command set, ATAPI transport not withstanding. Improve the names of many structures, and prepend "SCSI_" onto all SCSI command opcodes. Place items described by the SCSI Primary Commands document into scsi_spc.h.
|
1.27 |
| 02-Jan-2005 |
tsutsui | branches: 1.27.2; 1.27.4; u_intNN_t -> uintNN_t
|
1.26 |
| 07-Dec-2004 |
thorpej | When checking the CDB length, check against the field in the SCB that we're actually storing it to.
XXX Should be re-examined; this is not actually a hardware-constrained size with this driver.
|
1.25 |
| 25-Sep-2004 |
tsutsui | Use ANSI function decls.
|
1.24 |
| 02-Nov-2003 |
wiz | branches: 1.24.4; Fix some typos. From Tom Cosgrove via jmc@openbsd.
|
1.23 |
| 19-Oct-2003 |
simonb | Remove unreachable break after return and goto statements.
|
1.22 |
| 03-May-2003 |
wiz | branches: 1.22.2; DMA, not dma nor Dma.
|
1.21 |
| 20-Jan-2003 |
simonb | The Double-Semi-Colon Police.
|
1.20 |
| 08-Dec-2002 |
jmc | Put back MSG_IDENTIFY_LUNMASK (renamed to just be within the IHA namespace. The definitions were not the same between the scsi_messages file and this definition so simply removing it here and letting the other one be used results in incorrect behavior (regardless of whether it made the code compile....)
|
1.19 |
| 14-Nov-2002 |
tsutsui | Sync with copyright verbiage update of OpenBSD's iha(4).
|
1.18 |
| 27-Sep-2002 |
provos | remove trailing \n in panic(). approved perry.
|
1.17 |
| 05-Apr-2002 |
bouyer | Implement mstohz() as discussed on tech-kern, and use it in SCSI drivers to convert xs->timeout to callout() parameter.
|
1.16 |
| 15-Mar-2002 |
tsutsui | Remove an arg name in prototype declaration.
|
1.15 |
| 09-Feb-2002 |
tsutsui | - rename struct iha_scsi_req_q -> struct iha_scb - reorder some functions - some more cosmetics
|
1.14 |
| 16-Dec-2001 |
tsutsui | malloc() + memset() -> malloc() with M_ZERO flag
|
1.13 |
| 18-Nov-2001 |
tsutsui | - Use MI ADAPTER_REQ_SET_XFER_MODE callback. - Nuke some magic numbers.
|
1.12 |
| 17-Nov-2001 |
tsutsui | - make sure to call bus_dmamap_unload() even after request sense - fix usage of scb flags - misc cleanup
|
1.11 |
| 13-Nov-2001 |
lukem | add/cleanup RCSID
|
1.10 |
| 29-Sep-2001 |
tsutsui | Calculate offsets of sglist dinamically rather than use an static array because PAGE_SIZE is not constant on some ports.
|
1.9 |
| 27-Sep-2001 |
tsutsui | Remove iha_minphys() and use minphys() instead.
|
1.8 |
| 27-Jul-2001 |
tsutsui | branches: 1.8.2; Fix some comments and remove an unused define. Partially from OpenBSD.
|
1.7 |
| 27-Jul-2001 |
tsutsui | Pull up some changes from OpenBSD's iha.c rev 1.6: - rename tul_* functions/variables iha_* for consistency - disable updating EEPROM routine, which does not work anyway - make iha_rate_tbl[] const
|
1.6 |
| 27-Jul-2001 |
tsutsui | Pull up some changes from OpenBSD's iha.c rev 1.5: - minor code cleanups - rename some functions for better consistensy/clarity - consolidate extended message generation into new function - a couple of minor code clarifications to eliminate extra return statements and make absolutely sure actscb is NULL during a reselect
|
1.5 |
| 19-Jul-2001 |
thorpej | Use BUS_DMA_READ and BUS_DMA_WRITE in some obvious places.
|
1.4 |
| 07-Jul-2001 |
thorpej | branches: 1.4.2; bzero -> memset
|
1.3 |
| 07-Jun-2001 |
thorpej | branches: 1.3.2; Don't clear a callout on a scsipi_xfer that has been scsipi_done()'d.
|
1.2 |
| 05-Jun-2001 |
tsutsui | Make some functions __inline.
|
1.1 |
| 03-Jun-2001 |
tsutsui | Add a driver for the Initio INIC-940/950 PCI SCSI controllers. Based on OpenBSD's iha driver, and modified some structures by me.
Tested on arc, i386 and macppc.
|
1.3.2.11 |
| 11-Dec-2002 |
thorpej | Sync with HEAD.
|
1.3.2.10 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.3.2.9 |
| 17-Apr-2002 |
nathanw | Catch up to -current.
|
1.3.2.8 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.3.2.7 |
| 28-Feb-2002 |
nathanw | Catch up to -current.
|
1.3.2.6 |
| 08-Jan-2002 |
nathanw | Catch up to -current.
|
1.3.2.5 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
1.3.2.4 |
| 08-Oct-2001 |
nathanw | Catch up to -current.
|
1.3.2.3 |
| 24-Aug-2001 |
nathanw | Catch up with -current.
|
1.3.2.2 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.3.2.1 |
| 07-Jun-2001 |
nathanw | file iha.c was added on branch nathanw_sa on 2001-06-21 20:02:35 +0000
|
1.4.2.5 |
| 10-Oct-2002 |
jdolecek | sync kqueue with -current; this includes merge of gehenna-devsw branch, merge of i386 MP branch, and part of autoconf rototil work
|
1.4.2.4 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.4.2.3 |
| 16-Mar-2002 |
jdolecek | Catch up with -current.
|
1.4.2.2 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.4.2.1 |
| 03-Aug-2001 |
lukem | update to -current
|
1.8.2.1 |
| 01-Oct-2001 |
fvdl | Catch up with -current.
|
1.22.2.8 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.22.2.7 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.22.2.6 |
| 17-Jan-2005 |
skrll | Sync with HEAD.
|
1.22.2.5 |
| 18-Dec-2004 |
skrll | Sync with HEAD.
|
1.22.2.4 |
| 19-Oct-2004 |
skrll | Sync with HEAD
|
1.22.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.22.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.22.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.24.4.1 |
| 02-Apr-2005 |
he | Pull up revision 1.26 (requested by thorpej in ticket #1021): When checking the CDB length, check against the field in the SCB that we're actually storing it to.
|
1.27.4.1 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.27.2.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.29.2.3 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.29.2.2 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.29.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.31.12.2 |
| 24-May-2006 |
tron | Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
|
1.31.12.1 |
| 28-Mar-2006 |
tron | Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
|
1.31.10.1 |
| 19-Apr-2006 |
elad | sync with head.
|
1.31.8.2 |
| 24-May-2006 |
yamt | sync with head.
|
1.31.8.1 |
| 01-Apr-2006 |
yamt | sync with head.
|
1.31.6.2 |
| 01-Jun-2006 |
kardel | Sync with head.
|
1.31.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.31.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.33.2.1 |
| 19-Jun-2006 |
chap | Sync with head.
|
1.34.12.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.35.20.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
1.35.16.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.35.14.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.35.2.1 |
| 23-Oct-2007 |
ad | Sync with head.
|
1.36.16.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.38.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.38.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.39.2.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.40.20.2 |
| 31-May-2011 |
rmind | sync with head
|
1.40.20.1 |
| 05-Mar-2011 |
rmind | sync with head
|
1.41.2.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.42.56.1 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.43.10.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.44.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|