Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/macppc/dev Define symbolic name of PMU commands.



details:   https://anonhg.NetBSD.org/src/rev/ecedbd6d29de
branches:  trunk
changeset: 473704:ecedbd6d29de
user:      tsubai <tsubai%NetBSD.org@localhost>
date:      Wed Jun 16 07:43:58 1999 +0000

description:
Define symbolic name of PMU commands.

diffstat:

 sys/arch/macppc/dev/pm_direct.h |  22 ++++++++++++++++++++--
 1 files changed, 20 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r e491b7ebe814 -r ecedbd6d29de sys/arch/macppc/dev/pm_direct.h
--- a/sys/arch/macppc/dev/pm_direct.h   Wed Jun 16 07:35:31 1999 +0000
+++ b/sys/arch/macppc/dev/pm_direct.h   Wed Jun 16 07:43:58 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pm_direct.h,v 1.1 1998/10/20 14:59:16 tsubai Exp $     */
+/*     $NetBSD: pm_direct.h,v 1.2 1999/06/16 07:43:58 tsubai Exp $     */
 
 /*
  * Copyright (C) 1997 Takashi Hamada
@@ -44,4 +44,22 @@
        char    data[32];       /* data buffer (is it too much?)        */
 }      PMData;
 
-int            pmgrop(PMData *);
+int    pmgrop(PMData *);
+
+/* PMU commands */
+#define PMU_POWER_OFF          0x7e    /* Turn Power off */
+#define PMU_RESET_CPU          0xd0    /* Reset CPU */
+
+#define PMU_SET_RTC            0x30    /* Set realtime clock */
+#define PMU_READ_RTC           0x38    /* Read realtime clock */
+
+#define PMU_WRITE_PRAM         0x32    /* Write PRAM */
+#define PMU_READ_PRAM          0x3a    /* Read PRAM */
+
+#define PMU_WRITE_NVRAM                0x33    /* Write NVRAM */
+#define PMU_READ_NVRAM         0x3b    /* Read NVRAM */
+
+#define PMU_EJECT_PCMCIA       0x4c    /* Eject PCMCIA slot */
+
+#define PMU_SET_BRIGHTNESS     0x41    /* Set backlight brightness */
+#define PMU_READ_BRIGHTNESS    0xd9    /* Read brightness button position */



Home | Main Index | Thread Index | Old Index