summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev/rtc.c
AgeCommit message (Collapse)Author
2011-06-24machdep.kbdreset enables a shutdown by Ctrl-Alt-Del on amd64 andChristian Weisgerber
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@
2010-04-10The statement c != '\0' != 0 doesn't make an awful lot of sense, so drop theMark Kettenis
!= 0 bit. Makes GCC 4.2.1 happy.
2009-01-07Fix typo.Mark Kettenis
2008-04-16Turns out getpropstring() returns an empty string if a property is missingMark Kettenis
instead of NULL. Makes rtc(4) really work on the u25. tested by mikeb@
2008-04-15Add support for the Texas Instruments bq4802 real-time clock found on theMark Kettenis
Ultra 25 and Ultra 45.
2008-03-20Fix whitespace.Mark Kettenis
2007-04-24Tell init(8) to power down machine instead of just halting it.Mark Kettenis
ok deraadt@
2007-04-09Unbreak the tree.Mark Kettenis
2007-04-09Seperate rtc(4) code out into its own file. Add support for catching theMark Kettenis
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@