Home | History | Annotate | Download | only in dec
History log of /src/sys/dev/dec/mcclock.c
RevisionDateAuthorComments
 1.32  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.31  07-Sep-2025  thorpej todr_chip_handle::base_time -> todr_chip_handle::todr_base_time

NFCI
 1.30  02-Feb-2024  tsutsui Use aprint_normal(9) for attach messages.
 1.29  24-Aug-2023  andvar s/MC_DFEAULTHZ/MC_DEFAULTHZ/ for alpha specific default rate definition.
 1.28  17-Nov-2014  christos PR/49207: Kamil Rytarowski: Add sys/clock.h with generic time macros
(derived from clock_subr.h). Keep clock_subr.h with the kernel structures
and functions to reduce diffs, and have clock.h only include standalone
constants and macros.
 1.27  04-Jun-2011  tsutsui branches: 1.27.12;
Split device_t/softc. Tested on GXemul.
 1.26  06-Apr-2011  tsutsui branches: 1.26.2;
Make this compile with options DEBUG. (PRId64 for time_t)
 1.25  03-May-2010  mhitch branches: 1.25.2;
Fix error introduced with timecounters - RTC clock register only uses
the last 2 digits of the year. Fixes setting the clock and keeps the
DECstation PROM happy and stops it from setting the date to Jan 1, 1972.
 1.24  12-Dec-2009  tsutsui branches: 1.24.2; 1.24.4;
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.23  12-May-2009  cegger struct device * -> device_t, no functional changes intended.
 1.22  14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.21  08-Apr-2008  cegger branches: 1.21.4; 1.21.12; 1.21.18;
use aprint_*_dev and device_xname
 1.20  29-Mar-2008  tsutsui Remove an extra newline added in rev 1.18.
It will be put in the following clockattach().
 1.19  04-Jan-2008  simonb branches: 1.19.6;
Make this compile with DEBUG enabled (fix a printf format, convert to
timecounters).
 1.18  03-Jan-2008  joerg Timecounter and generic todr support for pmax. From Garret D'Amore.
 1.17  11-Dec-2005  christos branches: 1.17.46; 1.17.52; 1.17.60;
merge ktrace-lwp.
 1.16  04-Feb-2005  perry branches: 1.16.6;
de-__P
 1.15  05-Dec-2001  simonb branches: 1.15.16; 1.15.24; 1.15.26;
Remove some debug printf()s.
 1.14  23-Nov-2001  simonb Remove hardcoded values for HZ (under different names!) from mcclock.c
and clock_machdep.h, so that now HZ can be any supported frequency of
the mc146818a/ds1287a RTCs.
Tested at 256Hz and 2048Hz.
 1.13  13-Nov-2001  lukem add/cleanup RCSID
 1.12  15-Jan-1999  thorpej branches: 1.12.20; 1.12.22;
__pmax__ -> pmax, like other ports.
 1.11  19-Apr-1998  jonathan Copy alpha/tc/mcclock_ioasic.c (duplicated in pmax/tc/mcclock_ioasic.c)
into sys/dev/dec and split into a clockfns layer and a "middle" layer
for other DEC systems which use mcclocks with each onchip byte
register padded out to a 32-bit word.

Clone alpha/alpha/mcclock (also duplicated in pmax port) into
sys/dev/dec, and ifdef for default clockrates on pmax and alpha.

Use new machinery on pmax for ibus,ioasic attached mcclocks.
 1.10  12-Jan-1998  thorpej Adjust for config changes.
 1.9  02-Sep-1997  thorpej Nuke the idea of <machine/options.h>. It completely defeats the purpose
of fine-grain option dependencies.
 1.8  22-Jul-1997  jonathan branches: 1.8.2;
Use new <dev/dec/clockvar.h> and and <dev/dec/mcclokvar.h>.
Garbage-collect original headers from sys/arch/alpha.
 1.7  07-Apr-1997  cgd by default, provide RCS IDs for NetBSD/alpha kernel files in kernel binaries.
This can be disabled (to save a bit of space) with the NO_KERNEL_RCSIDS
options, which is present but commented out in the ALPHA config file.
In ELF-format kernels, these strings are present in the kernel binary but
are not loaded into memory. (In ECOFF-format kernels, there's no easy way
to keep them from being loaded, so they _are_ loaded into memory.)
 1.6  07-Apr-1997  cgd clean up NetBSD RCS ID strings, include machine/options.h
 1.5  12-Mar-1997  cgd enabled SQWE as well as PIE in reg B.
 1.4  13-Oct-1996  christos branches: 1.4.2;
backout previous kprintf change
 1.3  10-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.2  17-Apr-1996  cgd fix copyrights
 1.1  17-Apr-1996  cgd clean up clock handling: clock drivers are now seperate from the
chip-independent clock code. 'clock' has been renamed 'mcclock' 'clock'
has been renamed 'mcclock' (since it's a driver for that particular
clock, and since eventually there may be another clock chip driver),
and now attaches via seperate match/attach functions to both TC and ISA.
This removes a whole lot of #ifdefs...
 1.4.2.2  12-Aug-1997  cgd sync with -current as of August 11, 1997
 1.4.2.1  01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.8.2.1  04-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.12.22.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.12.20.2  08-Jan-2002  nathanw Catch up to -current.
 1.12.20.1  14-Nov-2001  nathanw Catch up to -current.
 1.15.26.1  12-Feb-2005  yamt sync with head.
 1.15.24.1  29-Apr-2005  kent sync with -current
 1.15.16.1  04-Feb-2005  skrll Sync with HEAD.
 1.16.6.1  21-Jan-2008  yamt sync with head
 1.17.60.1  08-Jan-2008  bouyer Sync with HEAD
 1.17.52.1  18-Feb-2008  mjf Sync with HEAD.
 1.17.46.1  09-Jan-2008  matt sync with HEAD
 1.19.6.2  02-Jun-2008  mjf Sync with HEAD.
 1.19.6.1  03-Apr-2008  mjf Sync with HEAD.
 1.21.18.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.21.12.1  28-Apr-2009  skrll Sync with HEAD.
 1.21.4.4  11-Aug-2010  yamt sync with head.
 1.21.4.3  11-Mar-2010  yamt sync with head
 1.21.4.2  16-May-2009  yamt sync with head
 1.21.4.1  04-May-2009  yamt sync with head.
 1.24.4.3  12-Jun-2011  rmind sync with head
 1.24.4.2  21-Apr-2011  rmind sync with head
 1.24.4.1  30-May-2010  rmind sync with head
 1.24.2.1  17-Aug-2010  uebayasi Sync with HEAD.
 1.25.2.1  06-Jun-2011  jruoho Sync with HEAD.
 1.26.2.1  23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.27.12.1  03-Dec-2017  jdolecek update from HEAD

RSS XML Feed