/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 1997, 1998, 2001, 03, 05, 06 by Ralf Baechle
*/ #include <linux/linkage.h> #include <linux/init.h> #include <linux/rtc/ds1286.h> #include <linux/interrupt.h> #include <linux/kernel.h> #include <linux/sched/signal.h> #include <linux/panic_notifier.h> #include <linux/pm.h> #include <linux/timer.h>
/* * Just powerdown if init hasn't done after POWERDOWN_TIMEOUT seconds. * I'm not sure if this feature is a good idea, for now it's here just to * make the power button make behave just like under IRIX.
*/ #define POWERDOWN_TIMEOUT 120
/* * Blink frequency during reboot grace period and when panicked.
*/ #define POWERDOWN_FREQ (HZ / 4) #define PANIC_FREQ (HZ / 8)
/* Power button was pressed * ioc.ps page 22: "The Panel Register is called Power Control by Full * House. Only lowest 2 bits are used. Guiness uses upper four bits * for volume control". This is not true, all bits are pulled high
* on fullhouse */ if (!(buttons & SGIOC_PANEL_POWERINTR))
power_button();
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.