xref: /freebsd/share/man/man4/man4.powerpc/pmu.4 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
1c812acceSNathan Whitehorn.\"-
2c812acceSNathan Whitehorn.\" Copyright (c) 2008 Nathan Whitehorn <nwhitehorn@FreeBSD.org>
3c812acceSNathan Whitehorn.\" All rights reserved.
4c812acceSNathan Whitehorn.\"
5c812acceSNathan Whitehorn.\" Redistribution and use in source and binary forms, with or without
6c812acceSNathan Whitehorn.\" modification, are permitted provided that the following conditions
7c812acceSNathan Whitehorn.\" are met:
8c812acceSNathan Whitehorn.\" 1. Redistributions of source code must retain the above copyright
9c812acceSNathan Whitehorn.\"    notice, this list of conditions and the following disclaimer.
10c812acceSNathan Whitehorn.\" 2. Redistributions in binary form must reproduce the above copyright
11c812acceSNathan Whitehorn.\"    notice, this list of conditions and the following disclaimer in the
12c812acceSNathan Whitehorn.\"    documentation and/or other materials provided with the distribution.
13c812acceSNathan Whitehorn.\"
14c812acceSNathan Whitehorn.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15c812acceSNathan Whitehorn.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16c812acceSNathan Whitehorn.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17c812acceSNathan Whitehorn.\" DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
18c812acceSNathan Whitehorn.\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19c812acceSNathan Whitehorn.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20c812acceSNathan Whitehorn.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21c812acceSNathan Whitehorn.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
22c812acceSNathan Whitehorn.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
23c812acceSNathan Whitehorn.\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24c812acceSNathan Whitehorn.\" POSSIBILITY OF SUCH DAMAGE.
25c812acceSNathan Whitehorn.\"
26c812acceSNathan Whitehorn.Dd December 6, 2008
27c812acceSNathan Whitehorn.Dt PMU 4
28c812acceSNathan Whitehorn.Os
29c812acceSNathan Whitehorn.Sh NAME
30c812acceSNathan Whitehorn.Nm pmu
31c812acceSNathan Whitehorn.Nd Apple PMU99 Power Management Driver
32c812acceSNathan Whitehorn.Sh SYNOPSIS
33c812acceSNathan WhitehornTo compile this driver into the kernel,
34c812acceSNathan Whitehornplace the following lines in your
35c812acceSNathan Whitehornkernel configuration file:
36c812acceSNathan Whitehorn.Bd -ragged -offset indent
37c812acceSNathan Whitehorn.Cd "device adb"
38c812acceSNathan Whitehorn.Cd "device pmu"
39c812acceSNathan Whitehorn.Ed
40c812acceSNathan Whitehorn.Sh DESCRIPTION
41c812acceSNathan WhitehornThe
42c812acceSNathan Whitehorn.Nm
43a51e3aa6SNathan Whitehorndriver provides support for the Power Management Unit (PMU) found in Apple
445794d21cSChristian BruefferCore99 hardware.
455794d21cSChristian BruefferThis includes late G3 laptops, all G4 machines, early G5
46c812acceSNathan Whitehorndesktops and all G5 XServes.
47c812acceSNathan Whitehorn.Pp
48c812acceSNathan WhitehornThe Apple PMU controller is a multi-purpose ASIC that provides power
49c812acceSNathan Whitehornmanagement and thermal control, as well as an ADB bus for the internal
50c812acceSNathan Whitehornkeyboard and mouse on laptops.
51c812acceSNathan Whitehorn.Sh HARDWARE
52c812acceSNathan WhitehornChips supported by the
53c812acceSNathan Whitehorn.Nm
54c812acceSNathan Whitehorndriver include:
55c812acceSNathan Whitehorn.Pp
56c812acceSNathan Whitehorn.Bl -bullet -compact
57c812acceSNathan Whitehorn.It
58c812acceSNathan WhitehornApple KeyLargo PMU
59c812acceSNathan Whitehorn.It
60c812acceSNathan WhitehornApple K2-KeyLargo PMU
61c812acceSNathan Whitehorn.El
62c812acceSNathan Whitehorn.Sh SYSCTL VARIABLES
63c812acceSNathan WhitehornThe
64c812acceSNathan Whitehorn.Nm
65c812acceSNathan Whitehorndriver provides power management services in addition to an
66c812acceSNathan Whitehorn.Xr adb 4
675794d21cSChristian Bruefferinterface.
685794d21cSChristian BruefferThe following sysctls can be used to control the
69eff47708SNathan Whitehornpower management behavior and to examine current system power and
70eff47708SNathan Whitehornthermal conditions.
71c812acceSNathan Whitehorn.Bl -tag -width indent
72c812acceSNathan Whitehorn.It Va dev.pmu.%d.server_mode
73c812acceSNathan WhitehornRestart after power failure behavior (1 causes system to reboot after power
74eff47708SNathan Whitehorncut, 0 causes system to remain off).
75eff47708SNathan Whitehorn.It Va dev.pmu.%d.batteries.%d.present
76eff47708SNathan WhitehornIndicates whether the relevant battery is inserted.
77eff47708SNathan Whitehorn.It Va dev.pmu.%d.batteries.%d.charging
78eff47708SNathan WhitehornIndicates whether the battery is currently charging.
79eff47708SNathan Whitehorn.It Va dev.pmu.%d.batteries.%d.charge
80eff47708SNathan WhitehornThe current battery charge, in milliamp hours.
81eff47708SNathan Whitehorn.It Va dev.pmu.%d.batteries.%d.maxcharge
82eff47708SNathan WhitehornThe battery's self-reported maximum charge, in milliamp hours.
83eff47708SNathan Whitehorn.It Va dev.pmu.%d.batteries.%d.rate
845794d21cSChristian BruefferThe current into the battery, in milliamps.
855794d21cSChristian BruefferWhile the battery is discharging,
86eff47708SNathan Whitehornthis will be negative.
87eff47708SNathan Whitehorn.It Va dev.pmu.%d.batteries.%d.voltage
88eff47708SNathan WhitehornBattery voltage, in millivolts.
89eff47708SNathan Whitehorn.It Va dev.pmu.%d.batteries.%d.time
90eff47708SNathan WhitehornEstimated time until full battery charge (or discharge), in minutes.
91eff47708SNathan Whitehorn.It Va dev.pmu.%d.batteries.%d.life
92eff47708SNathan WhitehornCurrent fraction of the battery's maximum charge, in percent.
935794d21cSChristian Brueffer.El
94c812acceSNathan Whitehorn.Sh SEE ALSO
955794d21cSChristian Brueffer.Xr acpi 4 ,
96eaddd81cSNathan Whitehorn.Xr adb 4 ,
97eaddd81cSNathan Whitehorn.Xr led 4
98c812acceSNathan Whitehorn.Sh HISTORY
99c812acceSNathan WhitehornThe
100c812acceSNathan Whitehorn.Nm
101c812acceSNathan Whitehorndevice driver appeared in
102c812acceSNathan Whitehorn.Nx 4.0 ,
103c812acceSNathan Whitehornand then in
104c812acceSNathan Whitehorn.Fx 8.0 .
105c812acceSNathan Whitehorn.Sh AUTHORS
106c812acceSNathan Whitehorn.An -nosplit
107c812acceSNathan WhitehornThe
108c812acceSNathan Whitehorn.Nm
109c812acceSNathan Whitehorndriver was written by
110*6c899950SBaptiste Daroussin.An Michael Lorenz Aq Mt macallan@NetBSD.org
111*6c899950SBaptiste Daroussinand ported to
112*6c899950SBaptiste Daroussin.Fx
113*6c899950SBaptiste Daroussinby
114*6c899950SBaptiste Daroussin.An Nathan Whitehorn Aq Mt nwhitehorn@FreeBSD.org .
115