Home | History | Annotate | Download | only in i2c
History log of /src/sys/dev/i2c/m41t00.c
RevisionDateAuthorComments
 1.26  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.25  07-Sep-2025  thorpej Remove unnecessary NULL-initialization of TODR handle fields.
 1.24  07-Jan-2025  andvar s/remaing/remaining/ s/containg/containing/, mainly in comments.
 1.23  02-Jan-2020  thorpej branches: 1.23.32;
- Use todr_gettime_ymdhms / todr_settime_ymdhms.
- Correctly propagate errors up the stack.
 1.22  02-Jan-2020  thorpej No need to use I2C_F_POLL here.
 1.21  16-Jun-2018  thorpej branches: 1.21.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.20  28-Oct-2017  riastradh branches: 1.20.2;
Kill some more extern struct cfdriver declarations.

Down with externs in .c!
 1.19  20-Nov-2014  christos use the inline bcdtobin and bintobcd directly instead through a macro.
 1.18  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.17  16-Mar-2014  dholland branches: 1.17.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.16  12-Dec-2009  tsutsui branches: 1.16.12; 1.16.22; 1.16.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.15  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.14  04-May-2008  xtraeme branches: 1.14.2;
device_t/softc split and other related cosmetic changes.
 1.13  09-Apr-2008  cegger branches: 1.13.2; 1.13.4;
Re-add chunk of code that got lost in rev. 1.10. Makes this file build/work again. vi sometimes plays games with me. Spotted by dogcow.
 1.12  09-Apr-2008  dogcow deparenthesize 'return (x);' and add missing close-brace.
 1.11  06-Apr-2008  cegger use aprint_*_dev and device_xname
 1.10  11-Dec-2007  lukem branches: 1.10.8;
use __KERNEL_RCSID()
 1.9  19-Oct-2007  ad branches: 1.9.4; 1.9.6; 1.9.8;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.8  12-Jan-2007  cube branches: 1.8.6; 1.8.18; 1.8.20; 1.8.24;
Add missing initializers in cdevsw structs.
 1.7  04-Sep-2006  gdamore branches: 1.7.2;
Remove unused todr_setcal/todr_getcal and all the assorted stub
implementations.
 1.6  29-Mar-2006  thorpej Use device_private().
 1.5  11-Dec-2005  christos branches: 1.5.4; 1.5.6; 1.5.8; 1.5.10; 1.5.12;
merge ktrace-lwp.
 1.4  04-Jun-2005  he branches: 1.4.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.3  30-Sep-2004  briggs PR kern/27088 from Jared Momose. The read function should specify the
length of the command buffer (1) instead of 0. Otherwise, data will
have an implied offset of 0 and reads at non-0 locations will incorrectly
return the data from 0. Fix as suggested in the report.
 1.2  20-Oct-2003  briggs branches: 1.2.4;
As suggested by Jason Thorpe, rename m41t to m41trtc.
 1.1  30-Sep-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.
 1.2.4.7  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.2.4.6  17-Jan-2005  skrll Adapt to branch.
 1.2.4.5  19-Oct-2004  skrll 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  20-Oct-2003  skrll file m41t00.c was added on branch ktrace-lwp on 2004-08-03 10:46:06 +0000
 1.4.2.5  21-Jan-2008  yamt sync with head
 1.4.2.4  27-Oct-2007  yamt sync with head.
 1.4.2.3  26-Feb-2007  yamt sync with head.
 1.4.2.2  30-Dec-2006  yamt sync with head.
 1.4.2.1  21-Jun-2006  yamt sync with head.
 1.5.12.1  31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.5.10.1  19-Apr-2006  elad sync with head.
 1.5.8.2  14-Sep-2006  yamt sync with head.
 1.5.8.1  01-Apr-2006  yamt sync with head.
 1.5.6.1  22-Apr-2006  simonb Sync with head.
 1.5.4.1  09-Sep-2006  rpaulo sync with head
 1.7.2.1  01-Feb-2007  ad Sync with head.
 1.8.24.1  25-Oct-2007  bouyer Sync with HEAD.
 1.8.20.2  09-Jan-2008  matt sync with HEAD
 1.8.20.1  06-Nov-2007  matt sync with HEAD
 1.8.18.1  26-Oct-2007  joerg Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
 1.8.6.1  23-Oct-2007  ad Sync with head.
 1.9.8.1  13-Dec-2007  bouyer Sync with HEAD
 1.9.6.1  11-Dec-2007  yamt sync with head.
 1.9.4.1  26-Dec-2007  ad Sync with head.
 1.10.8.2  29-Jun-2008  mjf Sync with HEAD.
 1.10.8.1  02-Jun-2008  mjf Sync with HEAD.
 1.13.4.3  11-Mar-2010  yamt sync with head
 1.13.4.2  04-May-2009  yamt sync with head.
 1.13.4.1  16-May-2008  yamt sync with head.
 1.13.2.2  17-Jun-2008  yamt sync with head.
 1.13.2.1  18-May-2008  yamt sync with head.
 1.14.2.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.16.26.1  18-May-2014  rmind sync with head
 1.16.22.2  03-Dec-2017  jdolecek update from HEAD
 1.16.22.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.16.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.17.2.1  10-Aug-2014  tls Rebase.
 1.20.2.1  25-Jun-2018  pgoyette Sync with HEAD
 1.21.2.1  08-Apr-2020  martin Merge changes from current as of 20200406
 1.23.32.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed