Home | History | Annotate | Download | only in ic
History log of /src/sys/dev/ic/mm58167.c
RevisionDateAuthorComments
 1.19  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.18  07-Sep-2025  thorpej todr_chip_handle::base_time -> todr_chip_handle::todr_base_time

NFCI
 1.17  25-Sep-2022  thorpej Remove unnecessary include of <sys/malloc.h>.
 1.16  20-Nov-2014  christos use the inline bcdtobin and bintobcd directly instead through a macro.
 1.15  25-Jul-2013  msaitoh Clear memory as intended. Fixes PR#46372.
 1.14  12-Dec-2009  tsutsui branches: 1.14.12; 1.14.22; 1.14.26;
Switch to using todr_[gs]ettime_ymdhms() format
which don't require struct timeval details.
Also fix a botch calling MI todr_settime(9) without rtc_offset adjustment.
 1.13  12-Dec-2009  tsutsui 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.12  11-Dec-2009  tsutsui Don't refer garbage in stack.
- An argument of struct timeval *tv passed by todr_gettime(9) is used
for a return value and it doesn't contain valid data. Don't read it.
- Instead, use getmicrotime(9) to get a "reasonable" (i.e. current) time
to see expected year value (which is not kept by this device).
- If current time is not valid, assume this is the first todr_gettime(9)
call from inittodr(9) and use file system time for the "reasonable" year.

Fixes silent hangup after mountroot() on sun2.

XXX: MI todr(9) functions seem to get mangled around year ~22000.
 1.11  06-Jul-2008  tsutsui Split device_t/softc with misc cosmetic changes.
 1.10  28-Apr-2008  martin branches: 1.10.2; 1.10.4;
Remove clause 3 and 4 from TNF licenses
 1.9  19-Oct-2007  ad branches: 1.9.16; 1.9.18; 1.9.20;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.8  04-Sep-2006  gdamore branches: 1.8.12; 1.8.26; 1.8.28; 1.8.32;
Remove unused todr_setcal/todr_getcal and all the assorted stub
implementations.
 1.7  11-Dec-2005  christos branches: 1.7.4; 1.7.8;
merge ktrace-lwp.
 1.6  04-Jun-2005  he branches: 1.6.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.5  27-Feb-2005  perry nuke trailing whitespace
 1.4  04-Feb-2005  perry de-__P
 1.3  13-Nov-2001  lukem branches: 1.3.16; 1.3.24; 1.3.26;
add/cleanup RCSID
 1.2  07-Jul-2001  thorpej branches: 1.2.2;
bzero -> memset
 1.1  10-Apr-2001  fredette branches: 1.1.2; 1.1.4;
Added.
 1.1.4.4  14-Nov-2001  nathanw Catch up to -current.
 1.1.4.3  24-Aug-2001  nathanw Catch up with -current.
 1.1.4.2  21-Jun-2001  nathanw Catch up to -current.
 1.1.4.1  10-Apr-2001  nathanw file mm58167.c was added on branch nathanw_sa on 2001-06-21 20:02:56 +0000
 1.1.2.2  21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1  10-Apr-2001  bouyer file mm58167.c was added on branch thorpej_scsipi on 2001-04-21 17:48:38 +0000
 1.2.2.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.26.2  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.3.26.1  12-Feb-2005  yamt sync with head.
 1.3.24.1  29-Apr-2005  kent sync with -current
 1.3.16.3  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.3.16.2  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.3.16.1  04-Feb-2005  skrll Sync with HEAD.
 1.6.2.2  27-Oct-2007  yamt sync with head.
 1.6.2.1  30-Dec-2006  yamt sync with head.
 1.7.8.1  14-Sep-2006  yamt sync with head.
 1.7.4.1  09-Sep-2006  rpaulo sync with head
 1.8.32.1  25-Oct-2007  bouyer Sync with HEAD.
 1.8.28.1  06-Nov-2007  matt sync with HEAD
 1.8.26.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.12.1  23-Oct-2007  ad Sync with head.
 1.9.20.3  11-Mar-2010  yamt sync with head
 1.9.20.2  04-May-2009  yamt sync with head.
 1.9.20.1  16-May-2008  yamt sync with head.
 1.9.18.1  18-May-2008  yamt sync with head.
 1.9.16.2  28-Sep-2008  mjf Sync with HEAD.
 1.9.16.1  02-Jun-2008  mjf Sync with HEAD.
 1.10.4.1  18-Jul-2008  simonb Sync with head.
 1.10.2.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.14.26.1  28-Aug-2013  rmind sync with head
 1.14.22.2  03-Dec-2017  jdolecek update from HEAD
 1.14.22.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.14.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")

RSS XML Feed