freebsd-dev/sys/dev/gpio
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
..
dwgpio
bytgpio.c
chvgpio_reg.h
chvgpio.c
gpio_if.m
gpiobacklight.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
gpiobus_if.m
gpiobus.c newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
gpiobusvar.h Move most of the gpio_pin_* functions from ofw_gpiobus.c to gpiobus.c so 2019-12-01 21:27:09 +00:00
gpioc.c gpioc_detach: fix freeing of wrong pointers 2021-03-23 12:45:18 +02:00
gpioiic.c Revert "Define PNP info after defining driver modules" 2021-01-23 10:59:41 -05:00
gpiokeys_codes.c gpiokeys: Use the new device-tree vendor include 2021-01-15 20:07:24 +01:00
gpiokeys.c gpiokeys: add evdev support 2020-08-12 09:49:25 +00:00
gpiokeys.h
gpioled_fdt.c
gpioled.c
gpiomdio.c Add a GPIO based MDIO bit-banging bus driver. 2019-12-06 20:21:07 +00:00
gpiopower.c
gpiopps.c Revert "Define PNP info after defining driver modules" 2021-01-23 10:59:41 -05:00
gpioregulator.c Remove "all rights reserved" from copyright for the file that Jared McNeill 2019-12-03 21:05:33 +00:00
gpiospi.c
gpioths.c Revert "Define PNP info after defining driver modules" 2021-01-23 10:59:41 -05:00
ofw_gpiobus.c newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
pl061_acpi.c Move the pl061 acpi attachment earlier 2020-09-10 14:58:46 +00:00
pl061_fdt.c Add a GPIO driver for the Arm pl061 controller 2020-09-08 11:35:35 +00:00
pl061.c Allow for interrupts on pl061 children 2020-09-14 08:59:16 +00:00
pl061.h Add a GPIO driver for the Arm pl061 controller 2020-09-08 11:35:35 +00:00
qoriq_gpio.c Fix locking in qoriq_gpio 2021-05-17 08:46:45 -05:00