freebsd-dev/sys/dev/bhnd
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
..
bcma bhnd: clean up empty lines in .c and .h files 2020-09-01 21:43:05 +00:00
bhndb newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
cores newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
nvram bhnd: clean up empty lines in .c and .h files 2020-09-01 21:43:05 +00:00
siba bhnd: clean up empty lines in .c and .h files 2020-09-01 21:43:05 +00:00
tools
bhnd_bus_if.m
bhnd_debug.h bhnd: clean up empty lines in .c and .h files 2020-09-01 21:43:05 +00:00
bhnd_erom_if.m
bhnd_erom_types.h
bhnd_erom.c bhnd: clean up empty lines in .c and .h files 2020-09-01 21:43:05 +00:00
bhnd_erom.h bhnd: clean up empty lines in .c and .h files 2020-09-01 21:43:05 +00:00
bhnd_eromvar.h bhnd: clean up empty lines in .c and .h files 2020-09-01 21:43:05 +00:00
bhnd_ids.h bhnd: clean up empty lines in .c and .h files 2020-09-01 21:43:05 +00:00
bhnd_match.h bhnd: clean up empty lines in .c and .h files 2020-09-01 21:43:05 +00:00
bhnd_private.h bhnd: clean up empty lines in .c and .h files 2020-09-01 21:43:05 +00:00
bhnd_subr.c bhnd: clean up empty lines in .c and .h files 2020-09-01 21:43:05 +00:00
bhnd_types.h bhnd: clean up empty lines in .c and .h files 2020-09-01 21:43:05 +00:00
bhnd.c newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
bhnd.h bhnd: clean up empty lines in .c and .h files 2020-09-01 21:43:05 +00:00
bhndreg.h
bhndvar.h