NetBSD/sys/dev/fdt
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
..
ahcisata_fdt.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
amdccp_fdt.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
arasan_sdhc_fdt.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
ausoc.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
connector_fdt.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
connector_fdt.h
cpufreq_dt.c It is more appropriate to use clk_get_rate() rather than sc->sc_freq_target * 1000000. 2021-02-22 06:21:35 +00:00
cpus.c
display_timing.c
display_timing.h Multiple inclusion protection define consistency 2020-12-11 09:40:28 +00:00
dw_apb_uart.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
dwc2_fdt.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
dwc3_fdt.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
dwcmmc_fdt.c Fix previous 2021-03-24 18:19:31 +00:00
dwcwdt_fdt.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
dwiic_fdt.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
ehci_fdt.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
fdt_clock.c
fdt_dai.c
fdt_ddb.c Improve fdt_isprint so that it returns false if there are consecutive 2021-03-06 13:21:26 +00:00
fdt_ddb.h Multiple inclusion protection define consistency 2020-12-11 09:40:28 +00:00
fdt_dma.c
fdt_gpio.c Add fdtbus_gpio_count(), which counts the number of GPIO entries 2020-12-23 04:07:34 +00:00
fdt_i2c.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
fdt_intr.c Add 'const char *xname' param to fdtbus_intr_establish_byname 2021-01-15 22:59:49 +00:00
fdt_memory.c Move evbarm/fdt/fdt_memory.[ch] to sys/dev/fdt and simplify the api and 2020-12-12 09:27:31 +00:00
fdt_memory.h Move evbarm/fdt/fdt_memory.[ch] to sys/dev/fdt and simplify the api and 2020-12-12 09:27:31 +00:00
fdt_mmc_pwrseq.c
fdt_openfirm.c
fdt_panel.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
fdt_phy.c
fdt_pinctrl.c
fdt_port.c
fdt_port.h Multiple inclusion protection define consistency 2020-12-11 09:40:28 +00:00
fdt_power.c
fdt_private.h
fdt_pwm.c
fdt_regulator.c
fdt_reset.c
fdt_rtc.c
fdt_spi.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
fdt_subr.c Use strlist(9). 2021-01-24 15:43:22 +00:00
fdt_syscon.c
fdtbus.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
fdtvar.h Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
files.fdt add fdt pwm regulator 2020-12-31 15:12:33 +00:00
fixedclock.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
fixedfactorclock.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
fixedregulator.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
genet_fdt.c Interrupt no longer needs kernel lock. 2021-03-08 13:15:06 +00:00
gpiokeys.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
gpioleds.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
gpioregulator.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
hdmi_connector.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
i2cmux_fdt.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
mmc_pwrseq_emmc.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
mmc_pwrseq_simple.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
ns8250_uart.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
ohci_fdt.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
panel_fdt.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
panel_fdt.h Trailing whitespace 2020-12-11 08:23:46 +00:00
pinctrl_single.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
pl061gpio_fdt.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
pwm_backlight.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
pwm_fan.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
pwmregulator.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
qemufwcfg_fdt.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
simple_amplifier.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
simplefb.c Fix previous: Each line is "stride" bytes wide, not "width * depth". 2021-03-02 11:51:00 +00:00
spdif_tx.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
syscon.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
syscon.h Multiple inclusion protection define consistency 2020-12-11 09:40:28 +00:00
usbnopphy.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
virtio_mmio_fdt.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
vmt_fdt.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00