freebsd-dev/sys/powerpc/powernv
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
..
opal_async.c Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00
opal_console.c opal_console: fix serial console output corruption on powerpc64 2021-04-16 20:10:09 -03:00
opal_dbg.c [PPC64] Enable opal console use as a GDB DBGPORT 2019-12-09 13:09:32 +00:00
opal_dev.c newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
opal_flash.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
opal_hmi.c [PowerPC64LE] Endian fix for opal_hmi.c 2020-09-23 01:51:01 +00:00
opal_i2c.c powerpc/powernv: Add asynchronous token management for powernv 2019-03-01 02:49:47 +00:00
opal_i2cm.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
opal_nvram.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
opal_pci.c Rename ofwpci.c to ofw_pcib.c 2021-05-20 11:22:25 +02:00
opal_sensor.c [POWERPC64LE] fix sysctl dev.opal_sensor.* on little-endian kernel 2020-12-30 22:00:28 -03:00
opal.c [PowerPC64LE] LE opal_call() implementation 2020-09-23 00:28:47 +00:00
opal.h opal_console: fix serial console output corruption on powerpc64 2021-04-16 20:10:09 -03:00
opalcall.S Add CFI start/end proc directives to arm64, i386, and ppc 2020-12-05 00:33:28 +00:00
platform_powernv.c powernv: Include NUMA locality information in the CPU topology 2021-04-01 10:25:57 -04:00
powernv_centaur.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
powernv_xscom.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
xive.c powerpc/xive: Remove POWER9 DD1 IRQ bits 2021-05-01 16:18:02 -05:00