freebsd-dev/sys/dev/fdt
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
..
fdt_arm_platform.c
fdt_clock_if.m
fdt_clock.c
fdt_clock.h
fdt_common.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
fdt_common.h
fdt_intr.h
fdt_pinctrl_if.m fdt_pinctrl: Add new methods for gpios 2020-01-16 21:19:27 +00:00
fdt_pinctrl.c
fdt_pinctrl.h
fdt_slicer.c fdt_slicer: bump to SI_ORDER_THIRD following r347183 2019-09-29 03:12:35 +00:00
fdt_static_dtb.S
simple_mfd.c simple_mfd: switch to controllable locking for syscon provider. 2021-03-04 16:12:39 +01:00
simple_mfd.h Extend simple_mfd driver to expose a syscon interface if 2019-07-02 08:47:18 +00:00
simplebus.c newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
simplebus.h Make simplebus friendlier for subclassing. 2020-09-25 09:56:50 +00:00