Home | History | Annotate | Download | only in ofw
History log of /src/sys/dev/ofw/ofbus.c
RevisionDateAuthorComments
 1.31  22-Jan-2022  thorpej Change the devhandle_from_*() functions to also take a "super handle",
from which the newly created handle will inherit it's implementation.
The root implementation for a new handle type is used if an invalid
"super handle" is passed.
 1.30  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.29  30-Apr-2021  thorpej branches: 1.29.6;
If we're enumerating the root bus, skip some well-known nodes that
don't have any useful device child nodes:

aliases
options
openprom
chosen
packages

...and also allow machdep additions to this list (XXX which are temporarily
declared here for arm32 until there's a consistent machine/ofw_machdep.h
header file).
 1.28  27-Apr-2021  thorpej If we are attaching the OFW root, print out the banner-name and model
properties, if they exist.
 1.27  24-Apr-2021  thorpej branches: 1.27.2;
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  10-Mar-2017  macallan branches: 1.26.30;
attach display devices first so we see more kernel output on shark
 1.25  03-Jun-2011  matt branches: 1.25.12; 1.25.30; 1.25.34; 1.25.38;
-CFATTACH_DECL(foo, sizeof(struct device),
+CFATTACH_DECL_NEW(foo, 0,
 1.24  12-May-2009  cegger branches: 1.24.4; 1.24.6; 1.24.10;
struct device * -> device_t, no functional changes intended.
 1.23  12-May-2009  cegger struct cfdata * -> cfdata_t, no functional changes intended.
 1.22  14-Mar-2009  dsl ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.21  14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.20  11-Dec-2005  christos branches: 1.20.74; 1.20.84; 1.20.90;
merge ktrace-lwp.
 1.19  04-Feb-2005  perry de-__P
 1.18  22-Apr-2004  itojun branches: 1.18.4; 1.18.6;
sprintf -> snprintf
 1.17  01-Jan-2003  thorpej branches: 1.17.2;
Use aprint_normal() in cfprint routines.
 1.16  02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL.
 1.15  30-Sep-2002  thorpej Use CFATTACH_DECL().
 1.14  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.13  18-Sep-2002  chs implement device_register() for ofppc.
use ofcons_cnprobe().
 1.12  13-Nov-2001  lukem add RCSIDs
 1.11  22-Oct-2001  thorpej Remove hack to skip OFW nodes which don't correspond to devices. These
are generally only at the toplevel of the OFW tree, and are best handled
by the code that configures the toplevel (which often needs special
handling anyway).
 1.10  24-Feb-1998  mycroft branches: 1.10.26; 1.10.28;
Several things:
Clean up the name space here a bit.
Add a `busname' element to struct ofprobe (now struct ofbus_attach_args), and
check against it.
Nuke `ofroot'.
Rename the `openfirm' attribute to `ofbus'.
 1.9  03-Feb-1998  cgd s/of_nodename/of_packagename/. Eventually, we'll probably want something
similar for instances.
 1.8  03-Feb-1998  cgd in ofbattach(), don't both doing an ofbprint() by hand if the root node.
The old ofbprint() wasn't particularly good (it forced the root node
to have a 'name' property, which apparently violates the OFW spec), and
the new one (though it normally prints more useful information) has
nothing useful to say about the root node. It's not clear to me that
'ofroot' should exist at all.
 1.7  02-Feb-1998  cgd make ofbprint() use of_nodename(). cleanup.
 1.6  26-Jan-1998  cgd (1) kill ofnmmatch(); nothing used it (and it's not clear that
anything _should_ use it).
(2) in the child properties check, also check for 'compatible,' and
config_found() if the child has it.
 1.5  12-Jan-1998  thorpej Update for config changes.
 1.4  16-Apr-1997  thorpej Update for no __BROKEN_INDIRECT_CONFIG.
 1.3  13-Oct-1996  christos backout kprintf changes
 1.2  10-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.1  30-Sep-1996  ws PowerPC port
 1.10.28.2  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.10.28.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.10.26.4  03-Jan-2003  thorpej Sync with HEAD.
 1.10.26.3  18-Oct-2002  nathanw Catch up to -current.
 1.10.26.2  14-Nov-2001  nathanw Catch up to -current.
 1.10.26.1  22-Oct-2001  nathanw Catch up to -current.
 1.17.2.4  04-Feb-2005  skrll Sync with HEAD.
 1.17.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.17.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.17.2.1  03-Aug-2004  skrll Sync with HEAD
 1.18.6.1  12-Feb-2005  yamt sync with head.
 1.18.4.1  29-Apr-2005  kent sync with -current
 1.20.90.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.20.84.1  28-Apr-2009  skrll Sync with HEAD.
 1.20.74.2  16-May-2009  yamt sync with head
 1.20.74.1  04-May-2009  yamt sync with head.
 1.24.10.1  23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.24.6.1  06-Jun-2011  jruoho Sync with HEAD.
 1.24.4.1  12-Jun-2011  rmind sync with head
 1.25.38.1  21-Apr-2017  bouyer Sync with HEAD
 1.25.34.1  20-Mar-2017  pgoyette Sync with HEAD
 1.25.30.1  28-Aug-2017  skrll Sync with HEAD
 1.25.12.1  03-Dec-2017  jdolecek update from HEAD
 1.26.30.2  04-Apr-2021  thorpej Associate the OpenFirmware phandle associated with a found device (including
PCI bus instances) by using CFARG_DEVHANDLE.
 1.26.30.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.2.1  13-May-2021  thorpej Sync with HEAD.
 1.29.6.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed