Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/sh3/dev/rtc.c
RevisionDateAuthorComments
 1.12  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.11  20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.10  20-Nov-2014  christos use the inline bcdtobin and bintobcd directly instead through a macro.
 1.9  08-Sep-2014  martin Adapt formats for debug printfs to clock_subr type changes.
 1.8  22-May-2010  tsutsui branches: 1.8.18; 1.8.34;
HPW-50PA PERSONA seems to use a different RTC base year value
(1996, not 1900 or 2000) so handle the quirk by device properties
and set it in MD device_register().
Also make RTC baseyear value patchable in sh3/dev/rtc.c.

No visible changes to other sh3 RTC users.
 1.7  05-Apr-2009  uwe branches: 1.7.2; 1.7.4;
Register with pmf(9), tell it we don't need anything.
 1.6  16-Dec-2008  christos branches: 1.6.2;
replace bitmask_snprintf(9) with snprintb(3)
 1.5  28-Apr-2008  martin branches: 1.5.8;
Remove clause 3 and 4 from TNF licenses
 1.4  27-Mar-2008  uwe branches: 1.4.2; 1.4.4;
Add RCSID comment.
 1.3  27-Mar-2008  uwe Split device_t and softc. Use aprint_*.
 1.2  30-Mar-2007  uwe branches: 1.2.34;
On attach check if clock is running, mark it invalid if not. Return
error from gettime method if clock is not valid. Mark clock as valid
on settime.

Report more debugging info.
 1.1  20-Sep-2006  uwe branches: 1.1.2; 1.1.4; 1.1.8; 1.1.10; 1.1.14; 1.1.16;
Switch the rest of sh3 ports to todr(9)
Split code to handle on-chip rtc into a separate driver
Eliminate all todr code from clock.c
Move __HAVE_GENERIC_TODR to sh3/include/types.h
 1.1.16.1  11-Jul-2007  mjf Sync with head.
 1.1.14.1  10-Apr-2007  ad Sync with head.
 1.1.10.1  15-Apr-2007  yamt sync with head.
 1.1.8.3  03-Sep-2007  yamt sync with head.
 1.1.8.2  30-Dec-2006  yamt sync with head.
 1.1.8.1  20-Sep-2006  yamt file rtc.c was added on branch yamt-lazymbuf on 2006-12-30 20:46:54 +0000
 1.1.4.2  18-Nov-2006  ad Sync with head.
 1.1.4.1  20-Sep-2006  ad file rtc.c was added on branch newlock2 on 2006-11-18 21:29:31 +0000
 1.1.2.2  22-Oct-2006  yamt sync with head
 1.1.2.1  20-Sep-2006  yamt file rtc.c was added on branch yamt-splraiseipl on 2006-10-22 06:04:59 +0000
 1.2.34.3  17-Jan-2009  mjf Sync with HEAD.
 1.2.34.2  02-Jun-2008  mjf Sync with HEAD.
 1.2.34.1  03-Apr-2008  mjf Sync with HEAD.
 1.4.4.3  11-Aug-2010  yamt sync with head.
 1.4.4.2  04-May-2009  yamt sync with head.
 1.4.4.1  16-May-2008  yamt sync with head.
 1.4.2.1  18-May-2008  yamt sync with head.
 1.5.8.2  28-Apr-2009  skrll Sync with HEAD.
 1.5.8.1  19-Jan-2009  skrll Sync with HEAD.
 1.6.2.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.7.4.1  30-May-2010  rmind sync with head
 1.7.2.1  17-Aug-2010  uebayasi Sync with HEAD.
 1.8.34.1  12-Nov-2014  snj Pull up following revision(s) (requested by martin in ticket #216):
share/man/man9/todr.9: revision 1.17
sys/arch/sh3/dev/rtc.c: revision 1.9
sys/dev/clock_subr.c: revision 1.17-1.22
sys/dev/clock_subr.h: revision 1.22
sys/fs/msdosfs/msdosfs_conv.c: revision 1.10
tools/compat/compat_defs.h: revision 1.98
tools/compat/dev/clock_subr.h: revision 1.1-1.2
usr.sbin/makefs/msdos/Makefile.inc: revision 1.6
clock_secs_to_ymdhms(9) takes seconds as a time_t, not int.
--
Make this compile- and usable from userland as well.
--
Add a slightly stripped down version of sys/dev/clock/clock_subr.h to make
this code available for tools.
--
Reformulate an overflow test so it can be used in tool builds (i.e. does
not depend on netbsd specific macros).
--
Make msdosfs time conversion use the y/m/d/h/m/s conversion functions
from clock_subr.c and compile that into the userland (and tools)
makefs as well.
--
Copy definitions of __type_min(t), __type_max(t), and some related macros,
from <sys/cdefs.h>, for use when building tools.
--
Revert previous; test secs > __type_max(time_t) again, now
that __type_max is available in tools/compat/compat_defs.h.
--
If HAVE_NBTOOL_CONFIG_H is set, then include "nbtool_config.h",
because this file is compiled as part of tools/makefs.
--
Counting leap years was fine while we had 32bit time_t - but now it
is not a good idea for dates far away in the future.
For dates in the year 2000 or later, use arithmetic instead (since the
repeating periods are well aligned). Should fix PR 49144.
--
Avoid overflowing the "year" value by making the field uint64_t. Adapt
arguments and local variables accordingly.
This now fixes PR 49144 for real.
--
Adapt formats for debug printfs to clock_subr type changes.
 1.8.18.1  03-Dec-2017  jdolecek update from HEAD

RSS XML Feed