opnsense-src/sys/dev/ofw
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
..
ofw_bus.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
ofw_bus_if.m
ofw_bus_subr.c ofw: clean up empty lines in .c and .h files 2020-09-01 22:01:53 +00:00
ofw_bus_subr.h newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
ofw_console.c tty: convert tty_lock_assert to tty_assert_locked to hide lock type 2020-04-17 18:34:49 +00:00
ofw_cpu.c newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
ofw_cpu.h Adda function to iterate over the cpu nodes in the OFW or FDT data. This 2015-02-19 16:34:48 +00:00
ofw_disk.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
ofw_fdt.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (11 of many) 2020-02-24 10:41:22 +00:00
ofw_graph.c ofw: support for a single 'port' DTS property. 2021-05-08 15:41:57 +01:00
ofw_graph.h ofw: clean up empty lines in .c and .h files 2020-09-01 22:01:53 +00:00
ofw_if.m
ofw_pci.c Add ofw interface support to PCI 2021-06-08 17:52:02 +02:00
ofw_pci.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
ofw_pcib.c Rename ofwpci.c to ofw_pcib.c 2021-05-20 11:22:25 +02:00
ofw_standard.c ofw: clean up empty lines in .c and .h files 2020-09-01 22:01:53 +00:00
ofw_subr.c ofw: ofw_reg_to_paddr: Use a 256 static array for the cell 2019-08-07 13:13:16 +00:00
ofw_subr.h Add a ofw_parse_bootargs function, and use it for powerpc 2016-09-21 02:28:39 +00:00
ofwbus.c INTRNG: Rework handling with resources. Partially revert r301453. 2016-08-19 10:52:39 +00:00
ofwpci.h Rename ofwpci.c to ofw_pcib.c 2021-05-20 11:22:25 +02:00
ofwvar.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
openfirm.c Align OF_getencprop_alloc API with OF_getencprop and OF_getprop_alloc 2018-04-09 22:06:16 +00:00
openfirm.h Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00
openfirmio.c Suppress D_NEEDGIANT warnings for some drivers 2021-06-06 16:44:46 -04:00
openfirmio.h [PowerPC] Allow traversal of oversize OF properties. 2020-11-13 16:49:41 +00:00