summaryrefslogtreecommitdiffstats
path: root/sys/dev/mc146818/mc146818var.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove clause 3 from Izumi Tsutsui's licenses.marius2009-12-251-3/+1
| | | | Obtained from: NetBSD
* Style changesmarius2009-12-251-12/+13
| | | | Obtained from: NetBSD (mc146818reg.h)
* Export mc146818_def_{read,write}() so the front-end can make usemarius2007-06-161-0/+4
| | | | of them if needed.
* o mc146818(4):marius2005-05-191-0/+2
| | | | | | | | | | | | | | | | - Add locking. - Account for if the MC146818_NO_CENT_ADJUST flag is set we don't need to check wheter year < POSIX_BASE_YEAR. - Add some comments about mapping the day of week from the range the generic clock code uses to the range the chip uses and which I meant to add in the initial version. - Minor clean-up, use __func__ instead of hardcoded function names in error strings. o in the rtc(4) front-end additionally: - Don't leak resources in case mc146818_attach() fails. - Account for ebus(4) defaulting to SYS_RES_MEMORY for the memory resources since ebus.c rev. 1.22.
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-061-1/+1
|
* Add a driver back end for MC146818 and compatible clocks based on themarius2004-11-171-0/+60
respective NetBSD driver for use with the genclock interface. It's first use will be on sparc64 but it was also tested on alpha with a preliminary patch to switch alpha to use the genclock code together with this driver instead of the respective code in alpha/alpha/clock.c and the rather MD mcclock(4). Using it on i386 and amd64 won't be that hard but some changes/extensions to improve the genclock code in general should be done first, e.g. add locking and make it easier to access the NVRAM usually coupled with RTCs.
OpenPOWER on IntegriCloud