Home | History | Annotate | Download | only in iomd
History log of /src/sys/arch/arm/iomd/iomdiic.c
RevisionDateAuthorComments
 1.13  15-Sep-2025  thorpej Encapsulate what's needed to attach an I2C bus into a iicbus_attach()
inline.
 1.12  28-Mar-2022  riastradh sys: Split struct device into a private device_impl.h.

Include this only inside autoconf itself, and a few files that abuse
autoconf in ways I can't confidently make easy fixes for.

XXX kernel ABI change requires bump -- no more use of struct device
internals allowed, previously done by some drivers
 1.11  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.10  24-Apr-2021  thorpej branches: 1.10.8;
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?).
 1.9  22-Dec-2019  thorpej branches: 1.9.10;
Cleanup i2c bus acquire / release, centralizing all of the logic into
iic_acquire_bus() / iic_release_bus(). "acquire" and "release" hooks
no longer need to be provided by back-end controller drivers (only if
they need special handling, e.g. powering on the i2c controller).
This results in the removal of a bunch of rendundant code from each
back-end controller driver.

Assert that we are not in hard interrupt context in iic_acquire_bus(),
iic_exec(), and iic_release_bus().
 1.8  14-Feb-2016  chs branches: 1.8.18;
zero the i2c_attach_args structure before filling it in.
fixes occasional crashes in iic_attach().
 1.7  14-May-2012  skrll branches: 1.7.2; 1.7.16;
device_t/softc split
struct device * -> device_t
struct cfdata * -> cfdata_t
Use aprint*
 1.6  06-Dec-2007  ad branches: 1.6.50; 1.6.54;
lockmgr -> mutex
 1.5  26-Jun-2006  drochner branches: 1.5.18; 1.5.30; 1.5.32; 1.5.34; 1.5.36; 1.5.42; 1.5.46;
use the "i2cbus" interface attribute rather than putting a string name
into the i2cbus attach args
 1.4  24-Dec-2005  perry branches: 1.4.4; 1.4.8; 1.4.16;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.3  11-Dec-2005  christos merge ktrace-lwp.
 1.2  01-Nov-2003  reinoud branches: 1.2.4; 1.2.18;
Fix for PR # 23264 thanks to Mike Pumford; it is only attatching clock once
now.
 1.1  06-Oct-2003  thorpej New generic I2C framework. Supports bit-bang and "intelligent" I2C
interface controllers (of varying intelligence levels).

Contributed by Wasabi Systems, Inc. Primarily written by Steve Woodford,
with some modification by me.

(NOTE: "cvs ci" was missed on this directory during the initial checkin
of the new I2C code.)
 1.2.18.3  07-Dec-2007  yamt sync with head
 1.2.18.2  30-Dec-2006  yamt sync with head.
 1.2.18.1  21-Jun-2006  yamt sync with head.
 1.2.4.4  21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.4.3  18-Sep-2004  skrll Sync with HEAD.
 1.2.4.2  03-Aug-2004  skrll Sync with HEAD
 1.2.4.1  01-Nov-2003  skrll file iomdiic.c was added on branch ktrace-lwp on 2004-08-03 10:32:38 +0000
 1.4.16.1  13-Jul-2006  gdamore Merge from HEAD.
 1.4.8.1  11-Aug-2006  yamt sync with head
 1.4.4.1  09-Sep-2006  rpaulo sync with head
 1.5.46.1  08-Dec-2007  ad Sync with head.
 1.5.42.1  08-Dec-2007  mjf Sync with HEAD.
 1.5.36.1  09-Jan-2008  matt sync with HEAD
 1.5.34.1  01-Jan-2008  chris Sync with HEAD.
 1.5.32.1  09-Dec-2007  jmcneill Sync with HEAD.
 1.5.30.1  26-Dec-2007  rjs Sync with HEAD.
 1.5.18.1  09-Dec-2007  reinoud Pullup to HEAD
 1.6.54.1  02-Jun-2012  mrg sync to latest -current.
 1.6.50.1  23-May-2012  yamt sync with head.
 1.7.16.1  19-Mar-2016  skrll Sync with HEAD
 1.7.2.1  03-Dec-2017  jdolecek update from HEAD
 1.8.18.1  08-Apr-2020  martin Merge changes from current as of 20200406
 1.9.10.1  23-Mar-2021  thorpej Convert config_found_ia() call sites where the device only carries
a single interface attribute to bare config_found() calls.
 1.10.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed