NetBSD/sys/arch/powerpc/ibm4xx
thorpej 2685996b0e 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?).
2021-04-24 23:36:23 +00:00
..
dev Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
openbios Use mnemonic "bdneq". Add missing register prefix. 2021-03-30 01:57:20 +00:00
pci Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
4xx_locore.S
4xx_trap_subr.S Fix comment. 2020-07-12 21:16:23 +00:00
board_prop.c
clock.c For Explora 451, call calc_delayconst() before pckbc_cnattach(), which 2021-03-05 06:06:34 +00:00
copyinstr.c Try to sanitize usage of isync and sync instructions. 2020-06-19 07:31:59 +00:00
copyoutstr.c Try to sanitize usage of isync and sync instructions. 2020-06-19 07:31:59 +00:00
cpu.c Fix nearly 20 year old type - cache sizes are 2048 bytes, not 2848 bytes. 2021-03-30 13:41:46 +00:00
genassym.cf
ibm4xx_autoconf.c Set com(4) frequency in ibm4xx_device_register() in order to dedup codes. 2021-03-29 13:38:31 +00:00
ibm4xx_machdep.c Use ``for (;;)'' for infinite loop, as required by style. 2021-03-30 14:33:10 +00:00
ibm40x_machdep.c
pic_uic.c Fix hard freeze in pic_handle_intr() for PPC_IBM403. 2021-03-05 05:35:50 +00:00
pmap.c Use uvm_km_alloc(9) with UVM_KMF_NOWAIT flag in pte_enter(), in order not to 2021-04-15 00:00:46 +00:00
trap_subr.S Include required opt_*.h for sure. 2020-07-06 10:42:21 +00:00
trap.c For booke and ibm4xx, switch to software-based single-stepping for PT_STEP 2021-03-06 08:08:19 +00:00