freebsd-dev/sys/dev/acpica
Warner Losh ddfc9c4c59 newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf
Now that the upper layers all go through a layer to tie into these
information functions that translates an sbuf into char * and len. The
current interface suffers issues of what to do in cases of truncation,
etc. Instead, migrate all these functions to using struct sbuf and these
issues go away. The caller is also in charge of any memory allocation
and/or expansion that's needed during this process.

Create a bus_generic_child_{pnpinfo,location} and make it default. It
just returns success. This is for those busses that have no information
for these items. Migrate the now-empty routines to using this as
appropriate.

Document these new interfaces with man pages, and oversight from before.

Reviewed by:		jhb, bcr
Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D29937
2021-06-22 20:52:06 -06:00
..
Osd acpica: clean up empty lines in .c and .h files 2020-09-01 21:32:41 +00:00
acpi_acad.c acpi(9): Add EVENTHANDLERs for video and AC adapter events. 2020-10-31 20:14:28 +00:00
acpi_apei.c Add missing newlines. 2021-01-28 18:20:00 -05:00
acpi_battery.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
acpi_bus_if.m
acpi_button.c Expose the ACPI power button, sleep button and LID state as evdev's. 2020-03-02 09:45:06 +00:00
acpi_cmbat.c Add workaround for models which do not follow the ACPI specification strictly. 2020-02-27 17:13:57 +00:00
acpi_container.c Distinguish _CID match and _HID match and make lower priority probe 2018-10-26 00:05:46 +00:00
acpi_cpu.c Move time math out of disabled interrupts sections. 2021-03-10 13:52:51 -05:00
acpi_dock.c acpi_dock(4): Add ACPI_PNP_INFO 2020-10-31 22:20:42 +00:00
acpi_ec.c acpi_ec(4): Don't probe erroneously if success occurred 2020-04-23 17:30:03 +00:00
acpi_hpet.c acpi_hpet: Add Hygon Dhyana support. 2020-02-07 22:26:11 +00:00
acpi_hpet.h
acpi_if.m Add _BIX (Battery Information Extended) object support. 2020-02-19 06:28:55 +00:00
acpi_isab.c acpica: clean up empty lines in .c and .h files 2020-09-01 21:32:41 +00:00
acpi_lid.c Send Lid status notification via devd from acpi_lid_status_update. 2020-05-16 01:50:28 +00:00
acpi_package.c Add _BIX (Battery Information Extended) object support. 2020-02-19 06:28:55 +00:00
acpi_pci_link.c acpi: Add missing error handling to acpi_pci_link_route_irqs() 2021-05-26 10:49:30 -04:00
acpi_pci.c newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
acpi_pcib_acpi.c Add mostly dummy hw.pci.enable_aspm tunable. 2020-06-26 19:55:11 +00:00
acpi_pcib_pci.c
acpi_pcib.c acpica: rework INTRNG interrupts 2018-11-19 03:02:47 +00:00
acpi_pcibvar.h
acpi_pcivar.h Drop "All rights reserved" from my copyright statements. 2019-03-06 22:11:45 +00:00
acpi_perf.c
acpi_powerres.c acpica: clean up empty lines in .c and .h files 2020-09-01 21:32:41 +00:00
acpi_pxm.c acpi: Ensure that adjacent memory affinity table entries are coalesced 2020-12-18 16:04:48 +00:00
acpi_quirk.c Merge ACPICA 20190329. 2019-03-29 20:21:28 +00:00
acpi_quirks
acpi_resource.c acpi_resource: support multiple IRQs 2020-09-30 17:09:17 +00:00
acpi_smbat.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
acpi_smbus.h acpica: clean up empty lines in .c and .h files 2020-09-01 21:32:41 +00:00
acpi_thermal.c acpica: clean up empty lines in .c and .h files 2020-09-01 21:32:41 +00:00
acpi_throttle.c
acpi_timer.c acpica: clean up empty lines in .c and .h files 2020-09-01 21:32:41 +00:00
acpi_video.c acpi_video(4): Put display device in to D3 state on "Display off" event. 2020-10-31 20:28:13 +00:00
acpi.c newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
acpiio.h Add _BIX (Battery Information Extended) object support. 2020-02-19 06:28:55 +00:00
acpivar.h newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00