freebsd-nq/sys/powerpc/powermac
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
..
ata_dbdma.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
ata_dbdma.h powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
ata_kauai.c
ata_macio.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
atibl.c
cpcht.c Rename ofwpci.c to ofw_pcib.c 2021-05-20 11:22:25 +02:00
cuda.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
cudavar.h
dbdma.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
dbdmavar.h powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
fcu.c
grackle.c Rename ofwpci.c to ofw_pcib.c 2021-05-20 11:22:25 +02:00
gracklevar.h
hrowpic.c
hrowpicvar.h
kiic.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
macgpio.c newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
macgpiovar.h
macio.c newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
maciovar.h
nvbl.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
platform_powermac.c powerpc/powermac: Constrain 'cpu_sleep()' for AIM to mpc745x 2021-03-31 13:34:06 -05:00
pmu.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
pmuvar.h powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
powermac_thermal.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
powermac_thermal.h powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
pswitch.c powerpc: Fix programmer's switch driver and add to GENERIC 2021-04-05 12:04:12 -05:00
smu.c newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
smusat.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
uninorth.c newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
uninorthpci.c Rename ofwpci.c to ofw_pcib.c 2021-05-20 11:22:25 +02:00
uninorthvar.h powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
vcoregpio.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
viareg.h