Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/sparc/dev/rtc.c
RevisionDateAuthorComments
 1.23  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.22  07-Sep-2025  thorpej Remove unnecessary NULL-initialization of TODR handle fields.
 1.21  20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.20  02-Jan-2020  thorpej - Use todr_gettime_ymdhms / todr_settime_ymdhms.
- Allocate the todr_handle with the softc, not separately.
 1.19  10-Nov-2019  chs in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.
 1.18  18-Jul-2011  mrg branches: 1.18.54;
convert the remaining sparc drivers to CFATTACH_DECL_NEW/cfdata_t/device_t.
(cgsix_obio.c was only partially converted with the rest of the cgsix code
when it was changed some time ago.)
 1.17  01-Jul-2011  dyoung #include <sys/bus.h> instead of <machine/bus.h>.
 1.16  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.15  20-Sep-2009  tsutsui - use device_t and cfdriver_t
- use device_private() and device_xname()
- use proper types or variables for device_t/softc
 1.14  04-Sep-2006  gdamore branches: 1.14.60;
Remove unused todr_setcal/todr_getcal and all the assorted stub
implementations.
 1.13  03-Sep-2006  uwe Catch up with __HAVE_GENERIC_TODR changes.
Compile-tested only.
 1.12  16-Nov-2005  uwe branches: 1.12.4; 1.12.8;
ANSIify. Declare as static everything we don't need to export.
 1.11  05-Jun-2005  jdc branches: 1.11.2; 1.11.8;
Add volatile to make rtc_{g|s}ettime match todr_chip_handle_t.
 1.10  15-Jul-2003  lukem __KERNEL_RCSID()
 1.9  03-Dec-2002  uwe branches: 1.9.6;
The chip treats weekday 1 == Sunday, correct dt_wday adjustment logic
appropriately. NB: the old code would never write weekday zero that,
I've been told, might cause the RTC to reset.
Pointed out by kenh.
 1.8  02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL.
 1.7  01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.6  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.5  27-Sep-2002  thorpej Rather than referencing the cfdriver directly in the cfdata entries,
instead use a string naming the driver. The cfdriver is then looked
up in a list which is built at run-time.
 1.4  04-Apr-2002  uwe Fix error message.
 1.3  12-Mar-2002  uwe Drop ebus_bus_map(), use plain bus_space_map() instead.
 1.2  18-Feb-2002  uwe Switch to shared EBus headers in dev/ebus.
 1.1  11-Dec-2001  uwe branches: 1.1.2; 1.1.4;
rtc (ds1287a) time of day clock at ebus.
 1.1.4.5  10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.1.4.4  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.4.3  16-Mar-2002  jdolecek Catch up with -current.
 1.1.4.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.4.1  11-Dec-2001  thorpej file rtc.c was added on branch kqueue on 2002-01-10 19:48:47 +0000
 1.1.2.7  11-Dec-2002  thorpej Sync with HEAD.
 1.1.2.6  18-Oct-2002  nathanw Catch up to -current.
 1.1.2.5  17-Apr-2002  nathanw Catch up to -current.
 1.1.2.4  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.2.3  28-Feb-2002  nathanw Catch up to -current.
 1.1.2.2  08-Jan-2002  nathanw Catch up to -current.
 1.1.2.1  11-Dec-2001  nathanw file rtc.c was added on branch nathanw_sa on 2002-01-08 00:27:35 +0000
 1.9.6.5  11-Dec-2005  christos Sync with head.
 1.9.6.4  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.9.6.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.9.6.2  18-Sep-2004  skrll Sync with HEAD.
 1.9.6.1  03-Aug-2004  skrll Sync with HEAD
 1.11.8.1  22-Nov-2005  yamt sync with head.
 1.11.2.2  30-Dec-2006  yamt sync with head.
 1.11.2.1  21-Jun-2006  yamt sync with head.
 1.12.8.1  14-Sep-2006  yamt sync with head.
 1.12.4.1  09-Sep-2006  rpaulo sync with head
 1.14.60.1  11-Mar-2010  yamt sync with head
 1.18.54.1  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411

RSS XML Feed