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 Add TCA6416 GPIO expander support. 2020-05-25 15:31:43 +00:00
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 twsi: some variants clear interrupt flag by writing 0, others by writing 1 2020-09-07 06:32:03 +00:00
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 Drop 'All rights reserved' 2020-03-06 21:32:42 +00:00
ad7418.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
adm1030.c Move the adm1030 driver to the proper location, and rename it. 2014-10-16 01:32:22 +00:00
ads111x.c Revert "Define PNP info after defining driver modules" 2021-01-23 10:59:41 -05:00
adt746x.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
ds13rtc.c Clean up some of my copyrights; add SPDX tag and remove All rights reserved. 2019-12-13 01:38:48 +00:00
ds1307.c Add pnpinfo to all i2c drivers that have FDT compat data. 2019-05-23 18:24:27 +00:00
ds1307reg.h DS1307: Add the mcp7941x enable bit 2017-11-08 01:28:20 +00:00
ds1631.c Drop 'All rights reserved' 2020-03-06 21:24:09 +00:00
ds1672.c Build the ds1672 driver as a module. Add a detach() to unregister the rtc. 2018-03-06 02:30:34 +00:00
ds1775.c Drop 'All rights reserved' 2020-03-06 21:26:35 +00:00
ds3231.c Switch to the new bcd_clocktime conversion routines, and add calls to the 2018-03-05 00:15:56 +00:00
ds3231reg.h The ds3231 RTC chip bitmask values for 12- versus 24-hour mode were reversed, 2020-07-19 18:53:19 +00:00
htu21.c htu21: driver for HTU21D I2C temperature and humidity sensor 2021-01-19 15:08:51 +02:00
icee.c Don't do the busy dance in icee_open/close 2020-09-14 23:30:04 +00:00
if_ic.c Widen NET_EPOCH coverage. 2019-10-07 22:40:05 +00:00
iic.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
iic.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
iic_recover_bus.c Clean up some of my copyrights; add SPDX tag and remove All rights reserved. 2019-12-13 01:38:48 +00:00
iic_recover_bus.h Clean up some of my copyrights; add SPDX tag and remove All rights reserved. 2019-12-13 01:38:48 +00:00
iicbb.c move defintion of hw.i2c sysctl node from iicbb to iicbus 2020-09-03 08:02:19 +00:00
iicbb_if.m Remove a couple of extra blank lines. 2016-05-22 04:09:05 +00:00
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 Add a default implementation that returns ENODEV for start, repeat_start, 2017-09-11 23:47:49 +00:00
iichid.c iichid(4): disable interrupt on suspend 2021-05-31 22:33:07 +03:00
iicoc.c iicoc: split up common core and PCI bus specifics 2019-12-20 03:40:46 +00:00
iicoc.h iicoc: split up common core and PCI bus specifics 2019-12-20 03:40:46 +00:00
iicoc_fdt.c iicoc: add FDT bus attachment 2019-12-20 03:40:50 +00:00
iicoc_pci.c iicoc: fix the build on PCI machines 2019-12-20 05:15:03 +00:00
iiconf.c Add support for i2c bus mux hardware. 2020-01-02 17:51:49 +00:00
iiconf.h Add support for i2c bus mux hardware. 2020-01-02 17:51:49 +00:00
iicsmb.c iicsmb: Request the bus recursively in bread() 2021-02-23 20:06:16 +00:00
isl12xx.c Clean up some of my copyrights; add SPDX tag and remove All rights reserved. 2019-12-13 01:38:48 +00:00
lm75.c Fix the deciKelvin to Celsius conversion in kernel. 2016-05-22 13:58:32 +00:00
max6690.c Provide a slightly more-tolerant set of thermal parameters for PowerMac 2020-10-15 13:43:43 +00:00
nxprtc.c Clean up some of my copyrights; add SPDX tag and remove All rights reserved. 2019-12-13 01:38:48 +00:00
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 Clean up some of my copyrights; add SPDX tag and remove All rights reserved. 2019-12-13 01:38:48 +00:00
s35390a.c Switch to the new bcd_clocktime conversion routines, and add calls to the 2018-03-05 00:43:53 +00:00
sy8106a.c Remove "all rights reserved" from copyright for the file that Jared McNeill 2019-12-03 21:05:33 +00:00
syr827.c syr827: Switch to iicdev_{readfrom,writeto} 2019-10-01 18:32:27 +00:00