Home | History | Annotate | Download | only in i2c
History log of /src/sys/dev/i2c/max6900.c
RevisionDateAuthorComments
 1.21  07-Sep-2025  thorpej Change todr_chip_handle::cookie -> todr_chip_handle::todr_dev, and
make it a device_t. Upcoming functional changes will require the
device_t associated with a TODR device.

Change todr_chip_handle::bus_cookie -> todr_chip_handle::todr_devaux.
Nothing was using the old field, but I decided to keep it around just
in cause something needs it in the future.

And with these largely mechanical yet semantically meaningful changes,
thus spake the Oracle: "Welcome to NetBSD 11.99.2."
 1.20  07-Sep-2025  thorpej Remove unnecessary NULL-initialization of TODR handle fields.
 1.19  07-Jan-2025  andvar s/remaing/remaining/ s/containg/containing/, mainly in comments.
 1.18  02-Jan-2020  thorpej branches: 1.18.32;
- Use todr_gettime_ymdhms / todr_settime_ymdhms.
- Correctly propagate errors up the stack.
 1.17  02-Jan-2020  thorpej No need to use I2C_F_POLL here.
 1.16  16-Jun-2018  thorpej branches: 1.16.2;
More cleanup to i2c autoconfiguration:

- Get all of the drivers onto the new match quality constants.
- Introduce a new helper function, iic_use_direct_match(), that has
all of the logic for direct-config matching. If it returns true,
the driver returns the match result (which may be 0). If it returns
false, the driver does indirect-config matching.
- iic_compat_match() now returns a weighted match quality; matches to
lower-indexed "compatible" device property are more-specific matches,
and return a better match quality accordingly.
 1.15  20-Nov-2014  christos branches: 1.15.18;
use the inline bcdtobin and bintobcd directly instead through a macro.
 1.14  25-Jul-2014  dholland Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.
 1.13  16-Mar-2014  dholland branches: 1.13.2;
Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.
 1.12  12-Dec-2009  tsutsui branches: 1.12.12; 1.12.22; 1.12.26;
Remove `volatile' qualifier from argument types of
struct timeval passed to todr_gettime(9) and todr_settime(9).
We no longer have an ancient and volatile struct timeval `time'
global since we have switched to MI timercounter(9) on all port.

XXX1: some of these RTC drivers still assume 32bit time_t
XXX2: some of these should be rewritten to use todr_[gs]ettime_ymdhms()
XXX3: todr(9) man page doesn't mention todr_[gs]ettime_ymdhms()
 1.11  08-Jun-2008  tsutsui Replace device_lookup() with device_lookup_private() to get softc
after device_t/softc split. PR kern/38885 from Jonathan A. Kollasch.
 1.10  04-May-2008  xtraeme branches: 1.10.2;
device_t/softc split and other related cosmetic changes.
 1.9  06-Apr-2008  cegger branches: 1.9.2; 1.9.4;
use aprint_*_dev and device_xname
 1.8  11-Dec-2007  lukem branches: 1.8.8;
use __KERNEL_RCSID()
 1.7  12-Jan-2007  cube branches: 1.7.20; 1.7.28; 1.7.30; 1.7.32;
Add missing initializers in cdevsw structs.
 1.6  04-Sep-2006  gdamore branches: 1.6.2;
Remove unused todr_setcal/todr_getcal and all the assorted stub
implementations.
 1.5  29-Mar-2006  thorpej Use device_private().
 1.4  13-Dec-2005  abs branches: 1.4.4; 1.4.6; 1.4.8; 1.4.10; 1.4.12;
Update some missed _close() and _open() functions from 'struct proc *p'
to 'struct lwp *l'.
 1.3  11-Dec-2005  christos merge ktrace-lwp.
 1.2  04-Jun-2005  he branches: 1.2.2;
Fix the various todr_gettime() and todr_settime() fallouts from
-Wcast-qual differently, by instead changing the signatore of those
"functions" to take a "volatile struct timeval*" instead of a
"struct timeval*". Many places, these functions are called with
&time, and time is declared as volatile in <sys/kernel.h>. This
way we can get rid of all the ugly casts which now also triggered
warnings, and caused more code to be added to work around the
problem.

Reviewed by thorpej.
 1.1  30-Sep-2003  thorpej branches: 1.1.4;
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.
 1.1.4.5  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.4.4  21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.4.3  18-Sep-2004  skrll Sync with HEAD.
 1.1.4.2  03-Aug-2004  skrll Sync with HEAD
 1.1.4.1  30-Sep-2003  skrll file max6900.c was added on branch ktrace-lwp on 2004-08-03 10:46:06 +0000
 1.2.2.4  21-Jan-2008  yamt sync with head
 1.2.2.3  26-Feb-2007  yamt sync with head.
 1.2.2.2  30-Dec-2006  yamt sync with head.
 1.2.2.1  21-Jun-2006  yamt sync with head.
 1.4.12.1  31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.4.10.1  19-Apr-2006  elad sync with head.
 1.4.8.2  14-Sep-2006  yamt sync with head.
 1.4.8.1  01-Apr-2006  yamt sync with head.
 1.4.6.1  22-Apr-2006  simonb Sync with head.
 1.4.4.1  09-Sep-2006  rpaulo sync with head
 1.6.2.1  01-Feb-2007  ad Sync with head.
 1.7.32.1  13-Dec-2007  bouyer Sync with HEAD
 1.7.30.1  11-Dec-2007  yamt sync with head.
 1.7.28.1  26-Dec-2007  ad Sync with head.
 1.7.20.1  09-Jan-2008  matt sync with HEAD
 1.8.8.2  29-Jun-2008  mjf Sync with HEAD.
 1.8.8.1  02-Jun-2008  mjf Sync with HEAD.
 1.9.4.3  11-Mar-2010  yamt sync with head
 1.9.4.2  04-May-2009  yamt sync with head.
 1.9.4.1  16-May-2008  yamt sync with head.
 1.9.2.2  17-Jun-2008  yamt sync with head.
 1.9.2.1  18-May-2008  yamt sync with head.
 1.10.2.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.12.26.1  18-May-2014  rmind sync with head
 1.12.22.2  03-Dec-2017  jdolecek update from HEAD
 1.12.22.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.12.12.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.13.2.1  10-Aug-2014  tls Rebase.
 1.15.18.1  25-Jun-2018  pgoyette Sync with HEAD
 1.16.2.1  08-Apr-2020  martin Merge changes from current as of 20200406
 1.18.32.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed