Home | History | Annotate | Download | only in std
History log of /src/sys/dev/std/ieee1212.c
RevisionDateAuthorComments
 1.15  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.14  24-Apr-2021  thorpej branches: 1.14.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.13  18-Oct-2014  snj branches: 1.13.36;
src is too big these days to tolerate superfluous apostrophes. It's
"its", people!
 1.12  12-May-2009  cegger branches: 1.12.22;
struct device * -> device_t, no functional changes intended.
 1.11  28-Apr-2008  martin branches: 1.11.14;
Remove clause 3 and 4 from TNF licenses
 1.10  11-Dec-2005  christos branches: 1.10.70; 1.10.72; 1.10.74;
merge ktrace-lwp.
 1.9  27-Feb-2005  perry nuke trailing whitespace
 1.8  13-Sep-2004  drochner branches: 1.8.4; 1.8.6;
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.7  26-Oct-2003  fvdl Fix unitialized variable use.
 1.6  14-Jul-2003  lukem add missing __KERNEL_RCSID()
 1.5  02-Feb-2003  wiz branches: 1.5.2;
guarantee, not guarentee. Idea from miod@openbsd.
 1.4  01-Feb-2003  ichiro make compile
 1.3  23-May-2002  jmc Fix bug in the way the config_found loop runs. Passing NULL doesn't work well.
 1.2  02-Apr-2002  jmc branches: 1.2.2;
Add another exception condition (XXX...I'm gonna have to give in and just
put in support for the new p1212 spec that isn't a standard yet).

Also, minor cleanups and one off by one error when copying text descriptors.
 1.1  27-Feb-2002  jmc branches: 1.1.2; 1.1.8;
Initial checkin.

A framework for parsing p1212 compliant ROM's and returning a tree that
describes it. Include routines for searching the tree, walking it to
apply functions against nodes and printing out the tree.

Also provide a utility routine to take all the unit dirs present in a ROM,
loop against them and present them to config_found to configure all possible
sub devices.
 1.1.8.3  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.8.2  16-Mar-2002  jdolecek Catch up with -current.
 1.1.8.1  27-Feb-2002  jdolecek file ieee1212.c was added on branch kqueue on 2002-03-16 16:01:32 +0000
 1.1.2.4  20-Jun-2002  nathanw Catch up to -current.
 1.1.2.3  17-Apr-2002  nathanw Catch up to -current.
 1.1.2.2  28-Feb-2002  nathanw Catch up to -current.
 1.1.2.1  27-Feb-2002  nathanw file ieee1212.c was added on branch nathanw_sa on 2002-02-28 04:14:25 +0000
 1.2.2.1  30-May-2002  gehenna Catch up with -current.
 1.5.2.4  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.5.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.5.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.5.2.1  03-Aug-2004  skrll Sync with HEAD
 1.8.6.1  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.8.4.1  29-Apr-2005  kent sync with -current
 1.10.74.2  16-May-2009  yamt sync with head
 1.10.74.1  16-May-2008  yamt sync with head.
 1.10.72.1  18-May-2008  yamt sync with head.
 1.10.70.1  02-Jun-2008  mjf Sync with HEAD.
 1.11.14.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.12.22.1  03-Dec-2017  jdolecek update from HEAD
 1.13.36.1  02-Apr-2021  thorpej config_found_ia() -> config_found() w/ CFARG_IATTR.
 1.14.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed