NetBSD/sys/dev/acpi
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
..
acpica Add support for Arm N1 SDP PCIe host controller. 2020-01-17 17:06:32 +00:00
wmi Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
acpi_acad.c Use acpi_compatible_match(). 2021-01-29 15:20:13 +00:00
acpi_apm.c
acpi_bat.c Use acpi_compatible_match(). 2021-01-29 15:20:13 +00:00
acpi_button.c Use acpi_compatible_match() / acpi_compatible_lookup(). 2021-01-29 15:24:00 +00:00
acpi_cppc.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
acpi_cpu_cstate.c acpicpu: Add support for ACPI P-states and T-states on Arm. 2020-12-07 10:57:41 +00:00
acpi_cpu_pstate.c acpicpu: Add support for ACPI P-states and T-states on Arm. 2020-12-07 10:57:41 +00:00
acpi_cpu_tstate.c acpicpu: Add support for ACPI P-states and T-states on Arm. 2020-12-07 10:57:41 +00:00
acpi_cpu.c acpicpu: Add support for ACPI P-states and T-states on Arm. 2020-12-07 10:57:41 +00:00
acpi_cpu.h acpicpu: Add support for ACPI P-states and T-states on Arm. 2020-12-07 10:57:41 +00:00
acpi_debug.c Update for proplib API changes. 2020-07-08 13:41:53 +00:00
acpi_dev.c acpi: add character device for accessing ACPI tables 2020-12-06 02:57:29 +00:00
acpi_display.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
acpi_ec.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
acpi_ecvar.h
acpi_event.c
acpi_event.h
acpi_fan.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
acpi_ged.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
acpi_i2c.c Don't map ACPI _HID / _CID strings to "compatible" strings from the 2021-01-26 01:23:08 +00:00
acpi_i2c.h Add a device_t parameter to acpi_enter_i2c_devs. If non-NULL, all child 2021-01-26 00:19:52 +00:00
acpi_intr.h Add acpi_intr_establish_irq, which is like acpi_intr_establish except 2020-10-23 10:59:37 +00:00
acpi_lid.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
acpi_mcfg.c Trailing whitespace 2021-01-26 15:30:05 +00:00
acpi_mcfg.h Add acpimcfg_conf_valid helper for pcie controllers with nonstandard 2020-02-02 16:31:25 +00:00
acpi_osd.h
acpi_pcc.c acpi: Add support for ACPI Platform Communications Channel (PCC). 2020-12-13 20:27:53 +00:00
acpi_pcc.h acpi: Add support for ACPI Platform Communications Channel (PCC). 2020-12-13 20:27:53 +00:00
acpi_pcd.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
acpi_pci_link.c Add support for Arm N1 SDP PCIe host controller. 2020-01-17 17:06:32 +00:00
acpi_pci.c In acpi_pci_ignore_boot_config(), use acpi_dsm() and add some comments 2021-01-14 14:37:17 +00:00
acpi_pci.h expose acpi_pcidev_pciroot_bus 2020-05-08 14:42:38 +00:00
acpi_pmtr.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
acpi_power.c
acpi_power.h
acpi_quirks.c acpi: remove unused acpi_quirks_osi_* functions 2020-12-06 11:38:28 +00:00
acpi_resource.c Rely on 32/64-bit overflow to calculate translation offsets. Store this 2019-12-31 17:26:04 +00:00
acpi_slit.c
acpi_slit.h
acpi_srat.c Redo the page allocator to perform better, especially on multi-core and 2019-12-27 12:51:56 +00:00
acpi_srat.h Redo the page allocator to perform better, especially on multi-core and 2019-12-27 12:51:56 +00:00
acpi_timer.c For struct timecounter, use C99 initializers. 2020-05-29 12:30:38 +00:00
acpi_timer.h
acpi_tz.c use cpu_name() on a struct cpu_info *. don't assume it has a ci_dev 2019-04-21 21:52:09 +00:00
acpi_usb.c Use acpi_dsm() in acpi_usb_post_reset(). 2021-01-14 14:38:22 +00:00
acpi_usb.h
acpi_util.c ACPI device handle implementation. 2021-02-05 17:12:43 +00:00
acpi_util.h ACPI device handle implementation. 2021-02-05 17:12:43 +00:00
acpi_verbose.c
acpi_wakedev.c
acpi_wakedev.h
acpi_wdrt.c
acpi.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
acpica.h
acpidevs s/recieve/receive/ 2019-05-28 08:59:33 +00:00
acpidevs_data.h
acpireg.h
acpivar.h Add acpi_device_register(). Just a placeholder for now. 2021-02-04 21:39:00 +00:00
ahcisata_acpi.c Fix 32-bit build. 2020-12-07 10:02:51 +00:00
aibs_acpi.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
amdccp_acpi.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
apple_smc_acpi.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
asus_acpi.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
atppc_acpi.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
attimer_acpi.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
com_acpi.c Introduce sc_poll_ticks and obsolete COM_HW_POLL bit in sc_hwflags. 2021-03-25 05:33:59 +00:00
dalb_acpi.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
devlist2h.awk
dwiic_acpi.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
ehci_acpi.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
fdc_acpi.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
fdc_acpireg.h
files.acpi Add support for NXP Layerscape I2C controllers. 2021-01-24 18:02:51 +00:00
fujbp_acpi.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
fujhk_acpi.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
genet_acpi.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
hpacel_acpi.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
hpet_acpi.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
hpqlb_acpi.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
ipmi_acpi.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
joy_acpi.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
lpt_acpi.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
Makefile.acpidevs
mpu_acpi.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
nxpiic_acpi.c Use acpi_compatible_match(). 2021-01-29 02:26:58 +00:00
pckbc_acpi.c Use acpi_compatible_match() / acpi_compatible_lookup(). 2021-01-29 15:24:00 +00:00
pcppi_acpi.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
plgpio_acpi.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
qemufwcfg_acpi.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
sdhc_acpi.c fix build 2020-02-01 20:11:24 +00:00
smbus_acpi.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
sony_acpi.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
spic_acpi.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
thinkpad_acpi.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
TODO
tpm_acpi.c Use acpi_compatible_match() / acpi_compatible_lookup(). 2021-01-29 15:24:00 +00:00
ug_acpi.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
vald_acpi.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
valz_acpi.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
virtio_acpi.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
vmbus_acpi.c Use acpi_compatible_match(). 2021-01-29 15:49:55 +00:00
wb_acpi.c Fix 32-bit build. 2020-12-07 10:02:51 +00:00
wss_acpi.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
xhci_acpi.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
ym_acpi.c Merge isaki-audio2 branch, the overhaul of audio subsystem. 2019-05-08 13:40:13 +00:00