xref: /freebsd/share/man/man4/man4.powerpc/pmu.4 (revision 5794d21c2cf090ac4e7bda58b7e44a316d2df93a)
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.\" $FreeBSD$
27c812acceSNathan Whitehorn.\"
28c812acceSNathan Whitehorn.Dd December 6, 2008
29c812acceSNathan Whitehorn.Dt PMU 4
30c812acceSNathan Whitehorn.Os
31c812acceSNathan Whitehorn.Sh NAME
32c812acceSNathan Whitehorn.Nm pmu
33c812acceSNathan Whitehorn.Nd Apple PMU99 Power Management Driver
34c812acceSNathan Whitehorn.Sh SYNOPSIS
35c812acceSNathan WhitehornTo compile this driver into the kernel,
36c812acceSNathan Whitehornplace the following lines in your
37c812acceSNathan Whitehornkernel configuration file:
38c812acceSNathan Whitehorn.Bd -ragged -offset indent
39c812acceSNathan Whitehorn.Cd "device adb"
40c812acceSNathan Whitehorn.Cd "device pmu"
41c812acceSNathan Whitehorn.Ed
42c812acceSNathan Whitehorn.Sh DESCRIPTION
43c812acceSNathan WhitehornThe
44c812acceSNathan Whitehorn.Nm
45a51e3aa6SNathan Whitehorndriver provides support for the Power Management Unit (PMU) found in Apple
465794d21cSChristian BruefferCore99 hardware.
475794d21cSChristian BruefferThis includes late G3 laptops, all G4 machines, early G5
48c812acceSNathan Whitehorndesktops and all G5 XServes.
49c812acceSNathan Whitehorn.Pp
50c812acceSNathan WhitehornThe Apple PMU controller is a multi-purpose ASIC that provides power
51c812acceSNathan Whitehornmanagement and thermal control, as well as an ADB bus for the internal
52c812acceSNathan Whitehornkeyboard and mouse on laptops.
53c812acceSNathan Whitehorn.Sh HARDWARE
54c812acceSNathan WhitehornChips supported by the
55c812acceSNathan Whitehorn.Nm
56c812acceSNathan Whitehorndriver include:
57c812acceSNathan Whitehorn.Pp
58c812acceSNathan Whitehorn.Bl -bullet -compact
59c812acceSNathan Whitehorn.It
60c812acceSNathan WhitehornApple KeyLargo PMU
61c812acceSNathan Whitehorn.It
62c812acceSNathan WhitehornApple K2-KeyLargo PMU
63c812acceSNathan Whitehorn.El
64c812acceSNathan Whitehorn.Sh SYSCTL VARIABLES
65c812acceSNathan WhitehornThe
66c812acceSNathan Whitehorn.Nm
67c812acceSNathan Whitehorndriver provides power management services in addition to an
68c812acceSNathan Whitehorn.Xr adb 4
695794d21cSChristian Bruefferinterface.
705794d21cSChristian BruefferThe following sysctls can be used to control the
71eff47708SNathan Whitehornpower management behavior and to examine current system power and
72eff47708SNathan Whitehornthermal conditions.
73c812acceSNathan Whitehorn.Bl -tag -width indent
74c812acceSNathan Whitehorn.It Va dev.pmu.%d.server_mode
75c812acceSNathan WhitehornRestart after power failure behavior (1 causes system to reboot after power
76eff47708SNathan Whitehorncut, 0 causes system to remain off).
77eff47708SNathan Whitehorn.It Va dev.pmu.%d.batteries.%d.present
78eff47708SNathan WhitehornIndicates whether the relevant battery is inserted.
79eff47708SNathan Whitehorn.It Va dev.pmu.%d.batteries.%d.charging
80eff47708SNathan WhitehornIndicates whether the battery is currently charging.
81eff47708SNathan Whitehorn.It Va dev.pmu.%d.batteries.%d.charge
82eff47708SNathan WhitehornThe current battery charge, in milliamp hours.
83eff47708SNathan Whitehorn.It Va dev.pmu.%d.batteries.%d.maxcharge
84eff47708SNathan WhitehornThe battery's self-reported maximum charge, in milliamp hours.
85eff47708SNathan Whitehorn.It Va dev.pmu.%d.batteries.%d.rate
865794d21cSChristian BruefferThe current into the battery, in milliamps.
875794d21cSChristian BruefferWhile the battery is discharging,
88eff47708SNathan Whitehornthis will be negative.
89eff47708SNathan Whitehorn.It Va dev.pmu.%d.batteries.%d.voltage
90eff47708SNathan WhitehornBattery voltage, in millivolts.
91eff47708SNathan Whitehorn.It Va dev.pmu.%d.batteries.%d.time
92eff47708SNathan WhitehornEstimated time until full battery charge (or discharge), in minutes.
93eff47708SNathan Whitehorn.It Va dev.pmu.%d.batteries.%d.life
94eff47708SNathan WhitehornCurrent fraction of the battery's maximum charge, in percent.
955794d21cSChristian Brueffer.El
96c812acceSNathan Whitehorn.Sh SEE ALSO
975794d21cSChristian Brueffer.Xr acpi 4 ,
985794d21cSChristian Brueffer.Xr adb 4
99c812acceSNathan Whitehorn.Sh HISTORY
100c812acceSNathan WhitehornThe
101c812acceSNathan Whitehorn.Nm
102c812acceSNathan Whitehorndevice driver appeared in
103c812acceSNathan Whitehorn.Nx 4.0 ,
104c812acceSNathan Whitehornand then in
105c812acceSNathan Whitehorn.Fx 8.0 .
106c812acceSNathan Whitehorn.Sh AUTHORS
107c812acceSNathan Whitehorn.An -nosplit
108c812acceSNathan WhitehornThe
109c812acceSNathan Whitehorn.Nm
110c812acceSNathan Whitehorndriver was written by
111c812acceSNathan Whitehorn.An Michael Lorenz
112c812acceSNathan Whitehorn.Aq macallan@NetBSD.org
113c812acceSNathan Whitehornand ported to FreeBSD by
114c812acceSNathan Whitehorn.An Nathan Whitehorn
1155794d21cSChristian Brueffer.Aq nwhitehorn@FreeBSD.org .
116