Browse Source

Remove some old apm bits

Signed-off-by: Graham MacDonald <grahamamacdonald@gmail.com>
Graham MacDonald 9 months ago
parent
commit
a2d2a2ced5
3 changed files with 0 additions and 1334 deletions
  1. 0 60
      sys/man/3/apm
  2. 0 111
      sys/man/8/apm
  3. 0 1163
      sys/src/cmd/aux/apm.c

+ 0 - 60
sys/man/3/apm

@@ -1,60 +0,0 @@
-.TH APM 3
-.SH NAME
-apm \- Advanced Power Management 1.2 BIOS interface
-.SH SYNOPSIS
-.nf
-.B bind -a #P /dev
-
-.B /dev/apm
-.SH DESCRIPTION
-.PP
-This device presents a low-level interface to
-the APM 1.2 bios calls.
-It is enabled by adding the line
-.RB `` apm0= ''
-to 
-.IR plan9.ini .
-(The value after the equals sign is ignored; the presence of
-the line at all enables the driver.)
-It is only available on uniprocessor PCs.
-Writing a 386
-.B Ureg
-structure and then reading it back executes an APM call:
-the written registers are passed to the call,
-and the read registers are those returned by the call.
-.\" .PP
-.\" In addition, the following strings may be
-.\" written to
-.\" .B /dev/apm
-.\" to negotiate with other kernel devices about
-.\" suspension of the system.
-.\" .TP
-.\" .B "vote suspend
-.\" Poll kernel devices for objections to suspending the system.
-.\" The write succeeds only when no device objected.
-.\" .TP
-.\" .B "abort suspend
-.\" Notify kernel devices that the vote failed and the
-.\" suspension will not happen.
-.\" .TP
-.\" .B "commit suspend
-.\" Notify kernel devices that the vote succeeded and
-.\" suspension will happen.  The devices
-.\" may take measures such as disabling PCMCIA cards.
-.\" .TP
-.\" .B "resume suspend
-.\" Notify kernel devices that the system has come back
-.\" after a suspension.
-.\" The devices may take measures such as reenabling PCMCIA cards.
-.\" .PD
-.\" A similar set of messages governs entrance into
-.\" .B standby
-.\" mode.
-.PP
-This device is intended to enable more user-friendly
-interfaces such as 
-.IR apm (8).
-.SH SOURCE
-.B /sys/src/9/pc/apm.c
-.br
-.B /sys/src/9/pc/apmjump.s

+ 0 - 111
sys/man/8/apm

@@ -1,111 +0,0 @@
-.TH APM 8
-.SH NAME
-apm \- Advanced Power Management 1.2 BIOS interface
-.SH SYNOPSIS
-.I (in plan9.ini)
-.B apm0=
-.PP
-bind -a '#P' /dev
-.PP
-.B aux/apm
-[
-.B -d
-.I device
-]
-[
-.B -m
-.I mountpoint
-]
-[
-.B -s
-.I service
-]
-.SH DESCRIPTION
-.I Aux/apm
-presents at
-.I mountpoint
-(default
-.BR /mnt/apm )
-an interface to the APM 1.2 BIOS 
-(see
-.IR apm (3))
-.I device
-(the default is to try
-.BR /dev/apm ,
-followed by
-.BR #P/apm ).
-If a
-.I service
-is specified, the interface will be
-posted at
-.BI /srv/ service 
-as well.
-.PP
-The directory contains the following files.
-.TP
-.B battery
-Contains one line for each battery in the system.
-Each line lists three fields: the status (a string, one of
-.BR unknown ,
-.BR high ,
-.BR low ,
-.BR critical ,
-or
-.BR charging ),
-the percent charge remaining, and
-an estimate of the amount of time left in seconds.
-If either or both of the last two are unknown,
-the corresponding field will be zero.
-.TP
-.B ctl
-The
-.B ctl
-file is used to set power management modes for
-various parts of the system.
-Control messages are of the form
-.RI `` device " " verb ,''
-where 
-.I device
-is one of
-.BR system ,
-.BR display ,
-.BR storage ,
-.BR lpt ,
-.BR eia ,
-.BR network ,
-and
-.BR pcmcia ,
-and 
-.I verb is one of
-.BR enable ,
-.BR disable ,
-.BR standby ,
-and 
-.BR on .
-.B Enable
-and
-.B disable
-control whether power management is active
-for the device, while
-.B standby
-puts the device into standby mode
-and
-.B on
-brings it back to full power.
-.TP
-.B event
-Reads from this file will block until an APM event
-has occurred.
-A large enough read is guaranteed to return
-an integral number of textual event descriptions, one per line.
-.SH SOURCE
-.B /sys/src/cmd/aux/apm.c
-.br
-.B /acme/bin/Battery
-.SH BUGS
-The verbs
-.B suspend
-and
-.B off
-should be supported but doing so requires
-nontrivial help from the kernel.

File diff suppressed because it is too large
+ 0 - 1163
sys/src/cmd/aux/apm.c