patch-2.1.115 linux/include/asm-ppc/pmu.h

Next file: linux/include/asm-ppc/posix_types.h
Previous file: linux/include/asm-ppc/pgtable.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.114/linux/include/asm-ppc/pmu.h linux/include/asm-ppc/pmu.h
@@ -36,6 +36,14 @@
 #define PMU_INT_ADB		0x10	/* ADB autopoll or reply data */
 #define PMU_INT_TICK		0x80	/* 1-second tick interrupt */
 
+
+/*
+ * Ioctl commands for the /dev/pmu device
+ */
+#include <linux/ioctl.h>
+
+#define PMU_IOC_SLEEP		_IO('B', 0)
+
 #ifdef __KERNEL__
 void find_via_pmu(void);
 void via_pmu_init(void);
@@ -45,5 +53,16 @@
 void pmu_poll(void);
 
 void pmu_enable_backlight(int on);
+
+/*
+ * Stuff for putting the powerbook to sleep and waking it again.
+ */
+#include <linux/notifier.h>
+
+extern struct notifier_block *sleep_notifier_list;
+
+/* code values for calling sleep/wakeup handlers */
+#define PBOOK_SLEEP	1
+#define PBOOK_WAKE	2
 
 #endif	/* __KERNEL */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov