Home | History | Annotate | Download | only in tc
History log of /src/sys/dev/tc/tcds.c
RevisionDateAuthorComments
 1.29  25-Sep-2022  thorpej Remove unnecessary include of <sys/malloc.h>.
 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-Jun-2017  flxd branches: 1.26.22;
spelling (DEC called it "TURBOchannel")
 1.25  22-Aug-2009  tsutsui branches: 1.25.22; 1.25.40;
u_intNN_t -> uintNN_t
 1.24  18-Mar-2009  cegger bzero -> memset
 1.23  09-Jul-2008  joerg branches: 1.23.2; 1.23.8;
- device/softc split
- make sfbplus at least compilable
 1.22  28-Apr-2008  martin branches: 1.22.2; 1.22.4; 1.22.6;
Remove clause 3 and 4 from TNF licenses
 1.21  05-Apr-2008  cegger branches: 1.21.2; 1.21.4;
use aprint_*_dev and device_xname
 1.20  19-Oct-2007  ad branches: 1.20.16;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.19  31-Mar-2006  thorpej branches: 1.19.18; 1.19.32; 1.19.34; 1.19.38;
Use ANSI function decls, apply static.
 1.18  30-Mar-2006  thorpej Use device_private().
 1.17  11-Dec-2005  christos branches: 1.17.4; 1.17.6; 1.17.8; 1.17.10; 1.17.12;
merge ktrace-lwp.
 1.16  26-Aug-2005  drochner kill some more simple submatch() functions, use config_stdsubmatch()
 1.15  25-Aug-2005  drochner replace the "locdesc_t" structure carrying the number of locators
explicitely by a plain integer array
the length in now known to all relevant parties, so this avoids
duplication of information, and we can allocate that thing in
drivers without hacks
 1.14  27-Feb-2005  perry branches: 1.14.4;
nuke trailing whitespace
 1.13  04-Feb-2005  perry de-__P
 1.12  13-Sep-2004  drochner branches: 1.12.4; 1.12.6;
remove unused variable
 1.11  13-Sep-2004  drochner a round of autoconf cleanup:
-convert submatch() style functions (passed to config_search() or
config_found_sm()) to the locator passing variants
-pass interface attributes in some cases
-make submatch() functions look uniformly as far as possible
-avoid macros which just hide cfdata members, and reduce dependencies
on "locators.h"
 1.10  01-Jan-2003  thorpej branches: 1.10.2;
Use aprint_normal() in cfprint routines.
 1.9  02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL.
 1.8  01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.7  29-Sep-2002  wiz "definitions" has lots of 'i's, but that's not reason to leave one out.
 1.6  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.5  27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.4  27-Sep-2002  thorpej Introduce a new routine, config_match(), which invokes the
cfattach->ca_match function in behalf of the caller. Use it
rather than invoking cfattach->ca_match directly.
 1.3  13-Nov-2001  lukem add/cleanup RCSIDs
 1.2  22-Aug-2001  nisimura Move small storage for ev_name string into tcds_softc.
 1.1  04-Jul-2000  nisimura branches: 1.1.2; 1.1.4; 1.1.6;
Repopulate TCDS dual channel SCSI adapter to MI dev/tc, squashing
internals for better layering between TCDS DMA ASIC and ASC SCSI
controller.
 1.1.6.3  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.1.6.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1  25-Aug-2001  thorpej Merge Aug 24 -current into the kqueue branch.
 1.1.4.4  03-Jan-2003  thorpej Sync with HEAD.
 1.1.4.3  18-Oct-2002  nathanw Catch up to -current.
 1.1.4.2  14-Nov-2001  nathanw Catch up to -current.
 1.1.4.1  21-Sep-2001  nathanw Catch up to -current.
 1.1.2.2  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.1.2.1  04-Jul-2000  bouyer file tcds.c was added on branch thorpej_scsipi on 2000-11-20 11:43:17 +0000
 1.10.2.5  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.10.2.4  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.10.2.3  04-Feb-2005  skrll Sync with HEAD.
 1.10.2.2  21-Sep-2004  skrll Fix the sync with head I botched.
 1.10.2.1  18-Sep-2004  skrll Sync with HEAD.
 1.12.6.2  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.12.6.1  12-Feb-2005  yamt sync with head.
 1.12.4.1  29-Apr-2005  kent sync with -current
 1.14.4.2  27-Oct-2007  yamt sync with head.
 1.14.4.1  21-Jun-2006  yamt sync with head.
 1.17.12.2  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.17.12.1  31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.17.10.1  19-Apr-2006  elad sync with head.
 1.17.8.1  01-Apr-2006  yamt sync with head.
 1.17.6.1  22-Apr-2006  simonb Sync with head.
 1.17.4.1  09-Sep-2006  rpaulo sync with head
 1.19.38.1  25-Oct-2007  bouyer Sync with HEAD.
 1.19.34.1  06-Nov-2007  matt sync with HEAD
 1.19.32.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.19.18.1  23-Oct-2007  ad Sync with head.
 1.20.16.2  28-Sep-2008  mjf Sync with HEAD.
 1.20.16.1  02-Jun-2008  mjf Sync with HEAD.
 1.21.4.3  16-Sep-2009  yamt sync with head
 1.21.4.2  04-May-2009  yamt sync with head.
 1.21.4.1  16-May-2008  yamt sync with head.
 1.21.2.1  18-May-2008  yamt sync with head.
 1.22.6.1  19-Oct-2008  haad Sync with HEAD.
 1.22.4.1  18-Jul-2008  simonb Sync with head.
 1.22.2.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.23.8.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.23.2.1  28-Apr-2009  skrll Sync with HEAD.
 1.25.40.1  28-Aug-2017  skrll Sync with HEAD
 1.25.22.1  03-Dec-2017  jdolecek update from HEAD
 1.26.22.2  22-Mar-2021  thorpej Audit CFARG_IATTR in config_found() calls, and remove it in situations
where the interface attribute is not ambiguous.
 1.26.22.1  22-Mar-2021  thorpej Mechanical conversion of config_found_sm_loc() -> config_found().
CFARG_IATTR usage needs to be audited.
 1.27.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed