summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev/ts102reg.h
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-03-29 16:26:46 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-03-29 16:26:46 +0000
commitf4ddf48fe34dc16fd30f0f844f03d285d0f3386d (patch)
tree86f0d8b496021105346b74c0c20cab54254773d8 /sys/arch/sparc/dev/ts102reg.h
parenteef7068a6de10b8f1c78351ad85efa001012c7a2 (diff)
Add an apm interface to the tctrl(4) device found on SPARCbooks; currently
limited to power change events and battery status retrieval. ok deraadt@ mickey@
Diffstat (limited to 'sys/arch/sparc/dev/ts102reg.h')
-rw-r--r--sys/arch/sparc/dev/ts102reg.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/sparc/dev/ts102reg.h b/sys/arch/sparc/dev/ts102reg.h
index e03b6954214..e42a2ecf4e0 100644
--- a/sys/arch/sparc/dev/ts102reg.h
+++ b/sys/arch/sparc/dev/ts102reg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ts102reg.h,v 1.3 2003/06/18 17:50:23 miod Exp $ */
+/* $OpenBSD: ts102reg.h,v 1.4 2005/03/29 16:26:44 miod Exp $ */
/* $NetBSD: ts102reg.h,v 1.7 2002/09/29 23:23:58 wiz Exp $ */
/*-
@@ -348,6 +348,7 @@ enum ts102_opcode { /* Argument Returned */
TS102_OP_ADMIN_VRFY_SYSTEM_PASS=0x73, /* len <pass> ack + status */
TS102_OP_RD_INT_CHARGE_LEVEL=0x7a, /* ack + 2 byte */
TS102_OP_RD_EXT_CHARGE_LEVEL=0x7b, /* ack + 2 byte */
+#define TS102_CHARGE_UNKNOWN 0xfa
TS102_OP_SLEEP=0x80, /* supposedly sleeps, not sure */
TS102_OP_ADMIN_POWER_OFF=0x82, /* len <pass> none */
TS102_OP_ADMIN_POWER_RESTART=0x83, /* msb,xx,lsb none */