NetBSD/sys/dev/i2c
thorpej 2685996b0e Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
  actually needed.
- Don't be explicit about what interface attribute is attaching if
  the device only has one.  (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
  situations, making is visibly easier to see when indirect config is
  in play, and allowing for future change in semantics.  (As of now,
  this is just a wrapper around config_match(), but that is an
  implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance.  This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
2021-04-24 23:36:23 +00:00
..
Makefile
ac100.c Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
act8846.c
act8846.h
adadc.c Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
adm1021.c If we're going to keep a reference on the "props" dictionary from 2021-01-30 01:22:06 +00:00
adm1026.c Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
adm1026reg.h Revert previous for now: 2020-04-16 23:29:52 +00:00
am2315.c
am2315reg.h
am2315var.h
anxedp.c Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
as3722.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
as3722.h
asms.c Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
at24cxx.c No need to consult ia->ia_ncompat before calling iic_compatible_lookup(). 2021-01-28 14:57:43 +00:00
at24cxxvar.h
au8522.c
au8522mod.h
au8522mod_8vsb.h
au8522mod_qam64.h
au8522mod_qam256.h
au8522reg.h
au8522var.h
axp20x.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
axp22x.c Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
axp809.c
axp809.h
axppmic.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
cwfg.c Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
cx24227.c Fix mis-placed parentheses. PR kern/54812. 2019-12-31 14:25:33 +00:00
cx24227var.h
dbcool.c If we're going to keep a reference on the "props" dictionary from 2021-01-30 01:22:06 +00:00
dbcool_reg.h Revert previous for now: 2020-04-16 23:29:52 +00:00
dbcool_var.h Make this compile 2020-07-12 08:48:49 +00:00
ddc.c No need to use I2C_F_POLL here. 2019-12-23 18:09:05 +00:00
ddcreg.h
ddcvar.h
ds1307.c Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
ds1307reg.h
dstemp.c Use dstemp(4) as entropy source. 2021-03-01 04:39:45 +00:00
em3027.c Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
em3027reg.h
es8316ac.c Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
fan53555.c Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
fcu.c Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
files.i2c Rename tsl256x.c -> tsllux.c. No other changes are made by this commit. 2021-01-04 22:09:35 +00:00
g760a.c Fix build and improve error handling 2020-11-26 12:53:03 +00:00
g760areg.h
gttwsi_core.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
gttwsireg.h Clean up gttwsi's register access stuff: 2020-01-12 17:48:42 +00:00
gttwsivar.h Clean up gttwsi's register access stuff: 2020-01-12 17:48:42 +00:00
hytp14.c Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
hytp14reg.h
hytp14var.h
i2c.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
i2c_bitbang.c
i2c_bitbang.h
i2c_exec.c In iic_acquire_bus(), unlock the bus lock if the back-end returns an 2020-04-19 17:08:14 +00:00
i2c_io.h
i2c_subr.c
i2cmux.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
i2cmuxvar.h Add support for ACPI-based I2C mux attachment. 2021-01-25 12:18:18 +00:00
i2cvar.h spello in comment 2021-04-16 07:02:09 +00:00
ibmhawk.c hardclock_ticks -> getticks() 2020-05-15 19:28:09 +00:00
ibmhawkreg.h
ibmhawkvar.h
ihidev.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
ihidev.h Re-enable the intr / mask / softint / unmask dance now that the x86 2020-01-09 04:04:01 +00:00
ims.c
lg3303.c
lg3303var.h
lm75.c Use lmtemp(4) as entropy source. 2021-03-01 04:40:39 +00:00
lm75reg.h
lm87.c Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
lm_i2c.c avoid stack usage in match routine 2020-06-24 19:11:49 +00:00
m41st84.c Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
m41st84reg.h
m41st84var.h
m41t00.c - Use todr_gettime_ymdhms / todr_settime_ymdhms. 2020-01-02 19:11:12 +00:00
m41t00reg.h
max6900.c - Use todr_gettime_ymdhms / todr_settime_ymdhms. 2020-01-02 18:57:58 +00:00
max6900reg.h
max77620.c Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
mcp980x.c No need to use I2C_F_POLL here. 2019-12-23 14:41:41 +00:00
mcp980xreg.h
motoi2c.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
motoi2creg.h
motoi2cvar.h NXP Layerscape LX2160A has an almost compatible controller, with a few 2021-01-25 12:08:47 +00:00
mpl115a.c No need to use I2C_F_POLL here. 2019-12-23 14:41:41 +00:00
mpl115areg.h
mt2131.c - No need to use I2C_F_POLL here. 2019-12-23 18:57:30 +00:00
mt2131var.h
nxt2k.c Fix mis-placed parentheses. PR kern/54813. 2019-12-31 14:27:50 +00:00
nxt2kvar.h
pca9685.c Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
pca9685reg.h
pcagpio.c Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
pcai2cmux.c Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
pcf8563.c Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
pcf8563reg.h
pcf8574.c Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
pcf8583.c No need to use I2C_F_POLL here. 2020-01-02 16:53:05 +00:00
pcf8583reg.h
pcf8583var.h
r2025.c Use todr_gettime_ymdhms / todr_settime_ymdhms. 2020-01-02 19:00:34 +00:00
r2025reg.h
rkpmic.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
rs5c372.c Add standard compat strings from the Device Tree bindings. 2021-01-30 17:38:27 +00:00
rs5c372reg.h
s390.c Add the standard compat string from the Device Tree bindings. 2021-01-30 17:38:57 +00:00
s390reg.h
sdtemp.c If an error occurred in sme_refresh function, pass ENVSYS_SINVALID. 2020-06-30 19:02:42 +00:00
sdtemp_reg.h
sgsmix.c Add a proper compat string for this device, following the standard 2021-01-30 01:23:08 +00:00
sgsmixvar.h Revert previous for now: 2020-04-16 23:29:52 +00:00
si70xx.c Make sure that we set sc->sc_sme to NULL in failure cases in order to avoid 2020-12-05 14:50:33 +00:00
si70xxreg.h
si70xxvar.h
smscmon.c
smscmonvar.h
spdmem_i2c.c Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
ssdfb_i2c.c Use iic_compatible_lookup() in ssdfb_i2c_attach(). 2021-01-28 14:42:45 +00:00
sy8106a.c Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
tcagpio.c Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
tcakp.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
tda19988.c Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
tea5767.c No need to use I2C_F_POLL here. Also fix an uninitialized error variable 2019-12-23 20:49:09 +00:00
tea5767reg.h
titemp.c Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
tps65217pmic.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
tps65217pmicreg.h
tps65217pmicvar.h
tsl256xreg.h Tweak register bit names, in preparation for supporting younger siblings 2021-01-04 21:59:48 +00:00
tsllux.c Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
tvpll.c No need to use I2C_F_POLL here. 2019-12-23 15:25:08 +00:00
tvpll_tuners.c
tvpll_tuners.h
tvpllvar.h
twl4030.c Rename of_match_compat_data() to of_compatible_match(). Similarly, 2021-01-27 03:10:18 +00:00
w83795g.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
w83795greg.h
x1226.c Use todr_gettime_ymdhms / todr_settime_ymdhms. 2020-01-02 19:00:34 +00:00
x1226reg.h
xc5k.c
xc5kreg.h
xc5kvar.h
xc3028.c
xc3028reg.h
xc3028var.h
zl10353.c
zl10353reg.h
zl10353var.h