Home | History | Annotate | Download | only in ic
History log of /src/sys/dev/ic/mk48txx.c
RevisionDateAuthorComments
 1.29  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.28  01-Jan-2020  thorpej Fix some issues around todr_wenable():
- As previously defined, it was not possible to return an error from the
back-end RTC driver. Make it a real function so that it can do so.
- Only the mc146818 and mk48txx drivers used it (for historical reasons).
Centralize the logic for how it's used in kern_todr.c (and make it private
to that file) for consistency.
 1.27  20-Nov-2014  christos branches: 1.27.20;
use the inline bcdtobin and bintobcd directly instead through a macro.
 1.26  04-Jan-2011  matt branches: 1.26.18;
Make this support the DS1553 as well. Add support for the centry reg which
newer RTCs seem to have.
 1.25  28-Apr-2008  martin branches: 1.25.22; 1.25.26;
Remove clause 3 and 4 from TNF licenses
 1.24  10-Jan-2008  tsutsui branches: 1.24.6; 1.24.8; 1.24.10;
- move todr_attach(9) calls from each MD attachment to MI mk48txx_attach()
- don't clear todr_setwen in mk48txx_attach() since it might be set by
MD attachments
 1.23  10-Jan-2008  tsutsui - use aprint_normal(9)
- use __arraycount()
- use __func__ to print a function name
 1.22  19-Oct-2007  ad branches: 1.22.2; 1.22.8;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.21  01-Oct-2006  tsutsui branches: 1.21.8; 1.21.22; 1.21.24; 1.21.28;
u_int8_t -> uint8_t
 1.20  07-Sep-2006  gdamore branches: 1.20.2; 1.20.4;
Updated to new clock_ymdhms support in kern_todr.
While here, ansify a few routines.
 1.19  04-Sep-2006  gdamore Remove unused todr_setcal/todr_getcal and all the assorted stub
implementations.
 1.18  11-Dec-2005  christos branches: 1.18.4; 1.18.8;
merge ktrace-lwp.
 1.17  04-Jun-2005  he branches: 1.17.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.16  29-Dec-2004  bjh21 If clock_ymdhms_to_secs() fails, return ERANGE. This gets my ELC with
a broken NVRAM to boot cleanly.
 1.15  05-Jul-2004  pk settime: round, instead of truncate, to the nearest second.
 1.14  01-Mar-2004  kleink Back out previous.
 1.13  01-Mar-2004  kleink Cosmetics; add missing newline to autoconf output.
 1.12  01-Nov-2003  tsutsui Cleanup MI mk48txx(4) todclock driver:
- Prepare mk48txxvar.h and leave only register definitions in mk48txxreg.h.
- Define struct mk48txx_softc as usual devices and allocate necessary
members like struct todr_chip_handle in it.
- Change mk48txx_attach(), mk48txx_nvwr() and mk48txx_nvrd() to take
struct mk48txx_softc.
 1.11  30-Oct-2003  matt Fix uninitialized warning.
 1.10  23-Feb-2002  scw branches: 1.10.16;
Allow MD code to provide functions for reading/writing NVRAM/RTC
locations. If passed NULL, the old behaviour using bus_space_{read,write}_1()
is used. Otherwise, all access to the chip goes via the MD functions.

This is necessary for mvmeppc boards where the mk48txx NVRAM/RTC is not
directly addressable.
 1.9  06-Dec-2001  kleink Recognize the MK48T18 as well (differs from the MK48T08 only in packaging
options and voltages).
 1.8  13-Nov-2001  lukem add/cleanup RCSID
 1.7  08-Apr-2001  tsutsui branches: 1.7.2;
Correct values for sanity checks.
 1.6  11-Nov-2000  pk branches: 1.6.2; 1.6.4;
Change `nvram size' data type to `bus_size_t'.
 1.5  11-Nov-2000  pk Add a function to retrieve the size of the on-chip NVRAM area.
 1.4  04-Oct-2000  tsutsui Enable sanity checks in mk48txx_gettime().
(Many news68k have dead NVRAM.)
 1.3  03-Oct-2000  tsutsui 1970 -> POSIX_BASE_YEAR
 1.2  01-Sep-2000  eeh Add support for write protecting clock registers.
 1.1  25-Jul-2000  pk New time-of-day clock chip drivers. These implement the todr(9) interface.
 1.6.4.4  28-Feb-2002  nathanw Catch up to -current.
 1.6.4.3  08-Jan-2002  nathanw Catch up to -current.
 1.6.4.2  14-Nov-2001  nathanw Catch up to -current.
 1.6.4.1  09-Apr-2001  nathanw Catch up with -current.
 1.6.2.4  21-Apr-2001  bouyer Sync with HEAD
 1.6.2.3  22-Nov-2000  bouyer Sync with HEAD.
 1.6.2.2  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.6.2.1  11-Nov-2000  bouyer file mk48txx.c was added on branch thorpej_scsipi on 2000-11-20 11:40:45 +0000
 1.7.2.2  16-Mar-2002  jdolecek Catch up with -current.
 1.7.2.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.10.16.5  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.10.16.4  17-Jan-2005  skrll Sync with HEAD.
 1.10.16.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.10.16.2  18-Sep-2004  skrll Sync with HEAD.
 1.10.16.1  03-Aug-2004  skrll Sync with HEAD
 1.17.2.3  21-Jan-2008  yamt sync with head
 1.17.2.2  27-Oct-2007  yamt sync with head.
 1.17.2.1  30-Dec-2006  yamt sync with head.
 1.18.8.1  14-Sep-2006  yamt sync with head.
 1.18.4.1  09-Sep-2006  rpaulo sync with head
 1.20.4.1  22-Oct-2006  yamt sync with head
 1.20.2.1  18-Nov-2006  ad Sync with head.
 1.21.28.1  25-Oct-2007  bouyer Sync with HEAD.
 1.21.24.2  23-Mar-2008  matt sync with HEAD
 1.21.24.1  06-Nov-2007  matt sync with HEAD
 1.21.22.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.21.8.1  23-Oct-2007  ad Sync with head.
 1.22.8.1  10-Jan-2008  bouyer Sync with HEAD
 1.22.2.1  18-Feb-2008  mjf Sync with HEAD.
 1.24.10.1  16-May-2008  yamt sync with head.
 1.24.8.1  18-May-2008  yamt sync with head.
 1.24.6.1  02-Jun-2008  mjf Sync with HEAD.
 1.25.26.1  07-Jan-2011  matt Add DS1553 support
 1.25.22.1  05-Mar-2011  rmind sync with head
 1.26.18.1  03-Dec-2017  jdolecek update from HEAD
 1.27.20.1  08-Apr-2020  martin Merge changes from current as of 20200406

RSS XML Feed