History log of /src/sys/dev/ic/mc146818.c |
Revision | | Date | Author | Comments |
1.22 |
| 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.21 |
| 06-Mar-2024 |
thorpej | Expose mc146818_{get,set}time_ymdhms() and allow a front-end to override these function pointers in the TODR handle, allowing the front-end to wrap mc146818_{get,set}time_ymdhms() with special handling, if needed.
|
1.20 |
| 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.19 |
| 20-Nov-2014 |
christos | branches: 1.19.20; use the inline bcdtobin and bintobcd directly instead through a macro.
|
1.18 |
| 13-Dec-2008 |
tsutsui | branches: 1.18.24; Revert part of previous that reverted part of rev 1.14 which didn't affect the bug. (use __func__ to print function names)
|
1.17 |
| 11-Dec-2008 |
kenh | The wrong sense of the UIP register is used to test for a pending clock update; this test is now correct.
mc146818_settime_ymdhms has been refactored to simply stop clock updates while the time is being set. Based on FreeBSD code and macros in mc146868reg.h.
|
1.16 |
| 14-May-2008 |
tsutsui | branches: 1.16.4; 1.16.6; 1.16.8; Normalize my licenses.
|
1.15 |
| 10-Jan-2008 |
tsutsui | branches: 1.15.6; 1.15.8; 1.15.10; 1.15.12; Move todr_attach(9) calls from each MD attachment to MI mc146818_attach().
|
1.14 |
| 10-Jan-2008 |
tsutsui | - use aprint_normal(9) - use __func__ to print function names
|
1.13 |
| 19-Oct-2007 |
ad | branches: 1.13.2; 1.13.8; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
1.12 |
| 10-Sep-2006 |
tsutsui | branches: 1.12.4; 1.12.10; 1.12.24; 1.12.26; 1.12.30; Fix a typo (settime -> gettime) so that we can get time.
|
1.11 |
| 07-Sep-2006 |
simonb | branches: 1.11.2; Revert rev 1.9. As pointed out by Izumi Tsutsui, the \n is printed by MD code.
|
1.10 |
| 07-Sep-2006 |
gdamore | Switch to friendlier todr ymdhms entry points. Moved a consistency check to common kern_todr.c while here.
|
1.9 |
| 06-Sep-2006 |
simonb | Add \n to end of autoconf message.
|
1.8 |
| 04-Sep-2006 |
gdamore | 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 |
| 25-Sep-2004 |
tsutsui | Use ANSI function decls.
|
1.4 |
| 24-Nov-2003 |
tsutsui | branches: 1.4.4; Handle BCD mode properly.
|
1.3 |
| 01-Nov-2003 |
tsutsui | Rename flag NO_CENTURY_ADJUST -> MC146818_NO_CENT_ADJUST to avoid conflicts.
|
1.2 |
| 29-Oct-2003 |
tsutsui | Fix think-o about century handling in settime function.
|
1.1 |
| 29-Oct-2003 |
tsutsui | Add MI driver for mc146818 based time-of-day clock with todr(9) support.
|
1.4.4.6 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.4.4.5 |
| 19-Oct-2004 |
skrll | Sync with HEAD
|
1.4.4.4 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.4.4.3 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.4.4.2 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.4.4.1 |
| 24-Nov-2003 |
skrll | file mc146818.c was added on branch ktrace-lwp on 2004-08-03 10:46:17 +0000
|
1.6.2.3 |
| 21-Jan-2008 |
yamt | 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.11.2.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.12.30.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
1.12.26.2 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.12.26.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.12.24.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.12.10.1 |
| 23-Oct-2007 |
ad | Sync with head.
|
1.12.4.1 |
| 13-Dec-2008 |
bouyer | Pull up following revision(s) (requested by tsutsui in ticket #1248): sys/dev/ic/mc146818.c: revision 1.17 via patch The wrong sense of the UIP register is used to test for a pending clock update; this test is now correct. mc146818_settime_ymdhms has been refactored to simply stop clock updates while the time is being set. Based on FreeBSD code and macros in mc146868reg.h.
|
1.13.8.1 |
| 10-Jan-2008 |
bouyer | Sync with HEAD
|
1.13.2.1 |
| 18-Feb-2008 |
mjf | Sync with HEAD.
|
1.15.12.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.15.10.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.15.10.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.15.8.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.15.6.2 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.15.6.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.16.8.1 |
| 13-Dec-2008 |
bouyer | Pull up following revision(s) (requested by tsutsui in ticket #184): sys/dev/ic/mc146818.c: revision 1.17 sys/dev/ic/mc146818.c: revision 1.18 The wrong sense of the UIP register is used to test for a pending clock update; this test is now correct. mc146818_settime_ymdhms has been refactored to simply stop clock updates while the time is being set. Based on FreeBSD code and macros in mc146868reg.h. Revert part of previous that reverted part of rev 1.14 which didn't affect the bug. (use __func__ to print function names)
|
1.16.6.1 |
| 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.16.4.1 |
| 13-Dec-2008 |
haad | Update haad-dm branch to haad-dm-base2.
|
1.18.24.1 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.19.20.1 |
| 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|