summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2003-08-20 21:17:09 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2003-08-20 21:17:09 +0000
commitcdabec911bc3a5e9b0a83d0155b3b92031750ee1 (patch)
tree5818ac47843236eb284e2e6733d1f27295166bbc /share
parentf3f69fe77cde30455e59113d2d54e5e9adb0c8e0 (diff)
a power-man
Diffstat (limited to 'share')
-rw-r--r--share/man/man4/man4.hppa/Makefile4
-rw-r--r--share/man/man4/man4.hppa/intro.4tbl5
-rw-r--r--share/man/man4/man4.hppa/lasi.43
-rw-r--r--share/man/man4/man4.hppa/power.480
4 files changed, 88 insertions, 4 deletions
diff --git a/share/man/man4/man4.hppa/Makefile b/share/man/man4/man4.hppa/Makefile
index 5df58df72d3..2b62beaa690 100644
--- a/share/man/man4/man4.hppa/Makefile
+++ b/share/man/man4/man4.hppa/Makefile
@@ -1,7 +1,7 @@
-# $OpenBSD: Makefile,v 1.12 2003/04/03 23:22:46 mickey Exp $
+# $OpenBSD: Makefile,v 1.13 2003/08/20 21:17:08 mickey Exp $
MAN= asp.4 cpu.4tbl gsc.4 gsckbc.4 gsckbd.4 harmony.4 ie.4
-MAN+= intro.4tbl io.4tbl lasi.4 phantomas.4 wax.4
+MAN+= intro.4tbl io.4tbl lasi.4 phantomas.4 power.4 wax.4
# mongoose.4 dino.4 tir.4 xbar.4 mcx.4
MANSUBDIR=hppa
diff --git a/share/man/man4/man4.hppa/intro.4tbl b/share/man/man4/man4.hppa/intro.4tbl
index afb05b46817..eec4b686791 100644
--- a/share/man/man4/man4.hppa/intro.4tbl
+++ b/share/man/man4/man4.hppa/intro.4tbl
@@ -1,4 +1,4 @@
-.\" $OpenBSD: intro.4tbl,v 1.13 2003/06/06 10:29:42 jmc Exp $
+.\" $OpenBSD: intro.4tbl,v 1.14 2003/08/20 21:17:08 mickey Exp $
.\"
.\" Copyright (c) 2002,2003 Paul Weissmann
.\" All rights reserved.
@@ -233,6 +233,9 @@ I/O processor.
.It Xr pdc 4
The PROM interface, allows to call the routines in the machine's
PROM for things like initial console output and such.
+.It Xr power 4
+The power button interface allowing graceful shutdown of the
+system should being depressed on the running system.
.It Xr sti 4
The system graphics driver.
.It Xr wax 4
diff --git a/share/man/man4/man4.hppa/lasi.4 b/share/man/man4/man4.hppa/lasi.4
index a234b990740..62c1330b787 100644
--- a/share/man/man4/man4.hppa/lasi.4
+++ b/share/man/man4/man4.hppa/lasi.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: lasi.4,v 1.18 2003/07/09 13:26:20 jmc Exp $
+.\" $OpenBSD: lasi.4,v 1.19 2003/08/20 21:17:08 mickey Exp $
.\"
.\"
.\" Copyright (c) 1999 Michael Shalayeff
@@ -106,6 +106,7 @@ RDI PrecisionBook
.Xr intro 4 ,
.Xr io 4 ,
.Xr phantomas 4 ,
+.Xr power 4 ,
.Xr wax 4
.Rs
.%T "Precision I/O Architecture Reference Specification"
diff --git a/share/man/man4/man4.hppa/power.4 b/share/man/man4/man4.hppa/power.4
new file mode 100644
index 00000000000..83af0d43c6e
--- /dev/null
+++ b/share/man/man4/man4.hppa/power.4
@@ -0,0 +1,80 @@
+.\" $OpenBSD: power.4,v 1.1 2003/08/20 21:17:08 mickey Exp $
+.\"
+.\" Copyright (c) 2003 Michael Shalayeff
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF MIND,
+.\" USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
+.Dd August 20, 2003
+.Dt POWER 4 hppa
+.Os
+.Sh NAME
+.Nm power
+.Nd Power button and power fail support
+.Sh SYNOPSIS
+.Cd "power0 at mainbus?"
+.Sh INTRODUCTION
+.Tn HP PA-RISC
+machines support power failure detection in different forms:
+.Bl -bullet -compact
+.It
+.Dq soft
+power button;
+.It
+power failure interrupt.
+.El
+.Pp
+The
+.Nm
+driver tries it's best at determining the power failure condition
+that is a result of power button being depressed or a power supply
+system failure or a similar condition.
+Upon detection of any of the beforementioned conditions it tries to
+gracefully (if possible) shutdown the system through a call to
+.Xr boot 9
+function.
+.Pp
+On systems equipped with
+.Xr lasi 4
+bus adapter we find a
+.Dq soft
+power buttun which upon depression gives us a signal in the
+.Dq power register
+and thus polling periodically we detect the event.
+Since that bit comes directly from the power button without any
+dampenning we perform a second long delay thus
+quick transitions off and on will
+.Em not
+result in a shutdown.
+.Pp
+On modern systems an interruption is signalled upon the power
+button depression and thus this avoids polling and does not
+require (as being implemented in hardware) dampenning.
+.Sh SEE ALSO
+.Xr intro 4 ,
+.Xr lasi 4 ,
+.Xr boot 9
+.Sh HISTORY
+The
+.Nm
+driver
+appeared in
+.Ox 3.4 .