opnsense-src/sys/dev/iicbus
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
..
gpio
mux Revert "Define PNP info after defining driver modules" 2021-01-23 10:59:41 -05:00
pmic Add a driver for FAN53555 based PMIC. 2020-12-04 15:23:43 +00:00
rtc Add a driver for HYM8563 based RTC. 2020-12-04 15:09:42 +00:00
twsi
acpi_iicbus.c newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
ad7417.c
ad7418.c
adm1030.c
ads111x.c Revert "Define PNP info after defining driver modules" 2021-01-23 10:59:41 -05:00
adt746x.c
ds13rtc.c
ds1307.c
ds1307reg.h
ds1631.c
ds1672.c
ds1775.c
ds3231.c
ds3231reg.h
htu21.c htu21: driver for HTU21D I2C temperature and humidity sensor 2021-01-19 15:08:51 +02:00
icee.c
if_ic.c
iic.c
iic.h
iic_recover_bus.c
iic_recover_bus.h
iicbb.c
iicbb_if.m
iicbus.c newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
iicbus.h newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
iicbus_if.m
iichid.c iichid(4): disable interrupt on suspend 2021-05-31 22:33:07 +03:00
iicoc.c
iicoc.h
iicoc_fdt.c
iicoc_pci.c
iiconf.c
iiconf.h
iicsmb.c iicsmb: Request the bus recursively in bread() 2021-02-23 20:06:16 +00:00
isl12xx.c
lm75.c
max6690.c Provide a slightly more-tolerant set of thermal parameters for PowerMac 2020-10-15 13:43:43 +00:00
nxprtc.c
ofw_iicbus.c newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
rtc8583.c
s35390a.c
sy8106a.c
syr827.c