History log of /openbsd-src/sys/arch/sparc64/dev/rtc.c (Results 1 – 13 of 13)
Revision Date Author Comments
# 0701a158 12-Oct-2022 kettenis <kettenis@openbsd.org>

Extend struct todr_chip_handle with a todr_quality member. This allows us
to assign a quality to RTC implementation and pick the "best" RTC if a
system has multiple RTCs (or multiple interfaces to a

Extend struct todr_chip_handle with a todr_quality member. This allows us
to assign a quality to RTC implementation and pick the "best" RTC if a
system has multiple RTCs (or multiple interfaces to an RTC). This allows
us to prefer a battery-backed I2C RTC over an RTC that is part of the SoC
which is only running of the SoC is powered. It also allows us to
work around issues with firmware RTC interfaces that may lie to us or
even crash the system.

This change makes sure the todr_quality member of the struct is always
initialized. In most cases the quality will be set to zero; further
adjustments of the quality for specific subsystems/architectures will follow.

ok cheloha@, patrick@

show more ...


# eb7eaf8d 24-Oct-2021 mpi <mpi@openbsd.org>

Constify struct cfattach.

ok visa@ a long time ago


# 2f95aebd 24-Apr-2021 mpi <mpi@openbsd.org>

Remove unused function pointers from `todr_handle'.

from miod@


# de4108ea 11-Jul-2014 guenther <guenther@openbsd.org>

It's init as a process that's special, not init's original thread.
Remember initprocess instead of initproc.

ok matthew@ blambert@


# b2e0f490 24-Jun-2011 naddy <naddy@openbsd.org>

machdep.kbdreset enables a shutdown by Ctrl-Alt-Del on amd64 and
i386. Stop abusing it on other archs for controling a shutdown by
pressing the soft power button:

* Add a MI sysctl hw.allowpowerdow

machdep.kbdreset enables a shutdown by Ctrl-Alt-Del on amd64 and
i386. Stop abusing it on other archs for controling a shutdown by
pressing the soft power button:

* Add a MI sysctl hw.allowpowerdown; if set to 1 (the default) it
allows a power button shutdown.
* Make acpi(4)/acpibtn(4) honor hw.allowpowerdown.
* Switch the various power button intercepts on landisk, sgi, sparc64
and zaurus over to hw.allowpowerdown.
* Garbage collect the machdep.kbdreset sysctl on all archs other than
amd64 and i386.

ok miod@

show more ...


# f7665c35 10-Apr-2010 kettenis <kettenis@openbsd.org>

The statement c != '\0' != 0 doesn't make an awful lot of sense, so drop the
!= 0 bit. Makes GCC 4.2.1 happy.


# c0dd1c75 07-Jan-2009 kettenis <kettenis@openbsd.org>

Fix typo.


# d504156d 16-Apr-2008 kettenis <kettenis@openbsd.org>

Turns out getpropstring() returns an empty string if a property is missing
instead of NULL. Makes rtc(4) really work on the u25.

tested by mikeb@


# 01d4b528 15-Apr-2008 kettenis <kettenis@openbsd.org>

Add support for the Texas Instruments bq4802 real-time clock found on the
Ultra 25 and Ultra 45.


# 69844884 20-Mar-2008 kettenis <kettenis@openbsd.org>

Fix whitespace.


# ef53472c 24-Apr-2007 kettenis <kettenis@openbsd.org>

Tell init(8) to power down machine instead of just halting it.

ok deraadt@


# 1d19b741 09-Apr-2007 kettenis <kettenis@openbsd.org>

Unbreak the tree.


# d5e78757 09-Apr-2007 kettenis <kettenis@openbsd.org>

Seperate rtc(4) code out into its own file. Add support for catching the
power button interrupts on ds1287 models. The hardware will stil power off
automatically about 20 seconds after the power bu

Seperate rtc(4) code out into its own file. Add support for catching the
power button interrupts on ds1287 models. The hardware will stil power off
automatically about 20 seconds after the power button is pressed, but we get
a decent chance at doing a clean shutdown before that.

"a good start" deraadt@

show more ...