opnsense-src/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.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_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
acpi_bus_if.m
acpi_button.c
acpi_cmbat.c
acpi_container.c
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_hpet.c
acpi_hpet.h
acpi_if.m
acpi_isab.c acpica: clean up empty lines in .c and .h files 2020-09-01 21:32:41 +00:00
acpi_lid.c
acpi_package.c
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_pci_link.c acpi: Add missing error handling to acpi_pci_link_route_irqs() 2021-05-26 10:49:30 -04:00
acpi_pcib.c
acpi_pcib_acpi.c
acpi_pcib_pci.c
acpi_pcibvar.h
acpi_pcivar.h
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
acpi_quirks
acpi_resource.c acpi_resource: support multiple IRQs 2020-09-30 17:09:17 +00:00
acpi_smbat.c
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
acpiio.h
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