Thu Aug 5 17:45:44 2010 UTC ()
Note acpicpu(4). Convert the list of devices to use .Xr.


(jruoho)
diff -r1.52 -r1.53 src/share/man/man4/acpi.4

cvs diff -r1.52 -r1.53 src/share/man/man4/acpi.4 (switch to unified diff)

--- src/share/man/man4/acpi.4 2010/06/30 07:42:36 1.52
+++ src/share/man/man4/acpi.4 2010/08/05 17:45:44 1.53
@@ -1,581 +1,588 @@ @@ -1,581 +1,588 @@
1.\" $NetBSD: acpi.4,v 1.52 2010/06/30 07:42:36 jruoho Exp $ 1.\" $NetBSD: acpi.4,v 1.53 2010/08/05 17:45:44 jruoho Exp $
2.\" 2.\"
3.\" Copyright (c) 2002, 2004, 2010 The NetBSD Foundation, Inc. 3.\" Copyright (c) 2002, 2004, 2010 The NetBSD Foundation, Inc.
4.\" All rights reserved. 4.\" All rights reserved.
5.\" 5.\"
6.\" Redistribution and use in source and binary forms, with or without 6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions 7.\" modification, are permitted provided that the following conditions
8.\" are met: 8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright 9.\" 1. Redistributions of source code must retain the above copyright
10.\" notice, this list of conditions and the following disclaimer. 10.\" notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright 11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\" notice, this list of conditions and the following disclaimer in the 12.\" notice, this list of conditions and the following disclaimer in the
13.\" documentation and/or other materials provided with the distribution. 13.\" documentation and/or other materials provided with the distribution.
14.\" 14.\"
15.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 15.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
16.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 16.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
17.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 17.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 18.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
19.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 19.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 20.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 21.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 22.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 23.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 24.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25.\" POSSIBILITY OF SUCH DAMAGE. 25.\" POSSIBILITY OF SUCH DAMAGE.
26.\" 26.\"
27.Dd June 30, 2010 27.Dd June 30, 2010
28.Dt ACPI 4 28.Dt ACPI 4
29.Os 29.Os
30.Sh NAME 30.Sh NAME
31.Nm acpi 31.Nm acpi
32.Nd Advanced Configuration and Power Interface 32.Nd Advanced Configuration and Power Interface
33.Sh SYNOPSIS 33.Sh SYNOPSIS
34.Cd "acpi0 at mainbus0" 34.Cd "acpi0 at mainbus0"
35.Pp 35.Pp
36.Cd "options ACPI_DEBUG" 36.Cd "options ACPI_DEBUG"
37.Cd "options ACPIVERBOSE" 37.Cd "options ACPIVERBOSE"
38.Cd "options ACPI_ACTIVATE_DEV" 38.Cd "options ACPI_ACTIVATE_DEV"
39.Cd "options ACPI_DSDT_OVERRIDE" 39.Cd "options ACPI_DSDT_OVERRIDE"
40.Cd "options ACPI_DSDT_FILE=\*[q]\*[q]" 40.Cd "options ACPI_DSDT_FILE=\*[q]\*[q]"
41.Sh DESCRIPTION 41.Sh DESCRIPTION
42.Nx 42.Nx
43provides machine-independent bus support for 43provides machine-independent bus support for
44Advanced Configuration and Power Interface 44Advanced Configuration and Power Interface
45.Pq Tn ACPI 45.Pq Tn ACPI
46devices and includes several 46devices and includes several
47.Tn ACPI 47.Tn ACPI
48device drivers. 48device drivers.
49.Pp 49.Pp
50The 50The
51.Nx 51.Nx
52implementation of 52implementation of
53.Tn ACPI 53.Tn ACPI
54integrates Intel's ACPI Component Architecture 54integrates Intel's ACPI Component Architecture
55.Pq Tn ACPI-CA 55.Pq Tn ACPI-CA
56for the OS-independent part. 56for the OS-independent part.
57The 57The
58.Tn ACPI-CA 58.Tn ACPI-CA
59provides OS-neutral 59provides OS-neutral
60.Tn ACPI 60.Tn ACPI
61functionalities such as 61functionalities such as
62.Tn ACPI 62.Tn ACPI
63.Tn BIOS 63.Tn BIOS
64table support, 64table support,
65an 65an
66.Tn ACPI 66.Tn ACPI
67event framework and an ACPI Machine Language 67event framework and an ACPI Machine Language
68.Pq Tn AML 68.Pq Tn AML
69interpreter. 69interpreter.
70.Pp 70.Pp
71Options: 71Options:
72.Bl -tag -width ACPI_DSDT_FILE__filename_XX -offset 3n 72.Bl -tag -width ACPI_DSDT_FILE__filename_XX -offset 3n
73.It Dv ACPI_DEBUG 73.It Dv ACPI_DEBUG
74Enable various debug facilities. 74Enable various debug facilities.
75.It Dv ACPIVERBOSE 75.It Dv ACPIVERBOSE
76Enable verbose debug messages. 76Enable verbose debug messages.
77.It Dv ACPI_ACTIVATE_DEV 77.It Dv ACPI_ACTIVATE_DEV
78Determine if the 78Determine if the
79.Tn ACPI 79.Tn ACPI
80driver should attempt to activate inactive devices. 80driver should attempt to activate inactive devices.
81The default is off. 81The default is off.
82.It Dv ACPI_DSDT_OVERRIDE 82.It Dv ACPI_DSDT_OVERRIDE
83Force a given Differentiated System Description Table 83Force a given Differentiated System Description Table
84.Pq Tn DSDT 84.Pq Tn DSDT
85instead of the version supplied by the 85instead of the version supplied by the
86.Tn BIOS . 86.Tn BIOS .
87Use 87Use
88.Dv ACPI_DSDT_FILE 88.Dv ACPI_DSDT_FILE
89to specify a 89to specify a
90.Tn DSDT . 90.Tn DSDT .
91.It Dv ACPI_DSDT_FILE="filename" 91.It Dv ACPI_DSDT_FILE="filename"
92If 92If
93.Dv ACPI_DSDT_FILE 93.Dv ACPI_DSDT_FILE
94is not specified, default to 94is not specified, default to
95.Dq dsdt.hex 95.Dq dsdt.hex
96in the build directory. 96in the build directory.
97.El 97.El
98.Sh SYSCTL SUPPORT 98.Sh SYSCTL SUPPORT
99Few 99Few
100.Xr sysctl 8 100.Xr sysctl 8
101variables are directly relevant for 101variables are directly relevant for
102.Tn ACPI . 102.Tn ACPI .
103.Bl -tag -width "123456" -offset indent 103.Bl -tag -width "123456" -offset indent
104.It Ic hw.acpi.root 104.It Ic hw.acpi.root
105The 105The
106.Tn ACPI 106.Tn ACPI
107root pointer. 107root pointer.
108.It Ic hw.acpi.supported_states 108.It Ic hw.acpi.supported_states
109A list of the 109A list of the
110.Tn ACPI 110.Tn ACPI
111sleep states that the machine supports. 111sleep states that the machine supports.
112The possible values are: 112The possible values are:
113.Pp 113.Pp
114.Bl -tag -width XS1X -offset indent -compact 114.Bl -tag -width XS1X -offset indent -compact
115.It S0 115.It S0
116fully running 116fully running
117.It S1 117.It S1
118power on suspend (CPU and hard disks are off) 118power on suspend (CPU and hard disks are off)
119.It S2 119.It S2
120similar to S3, usually not implemented 120similar to S3, usually not implemented
121.It S3 121.It S3
122suspend-to-RAM 122suspend-to-RAM
123.It S4 123.It S4
124suspend-to-disk (not supported on 124suspend-to-disk (not supported on
125.Nx ) 125.Nx )
126.It S5 126.It S5
127power off 127power off
128.El 128.El
129.It Ic hw.acpi.stat.gpe 129.It Ic hw.acpi.stat.gpe
130The number of dispatched General Purpose Events 130The number of dispatched General Purpose Events
131.Pq Tn GPEs . 131.Pq Tn GPEs .
132.It Ic hw.acpi.stat.sci 132.It Ic hw.acpi.stat.sci
133The number of System Control Interrupts 133The number of System Control Interrupts
134.Pq Tn SCIs . 134.Pq Tn SCIs .
135See 135See
136.Xr acpiec 4 136.Xr acpiec 4
137for a brief description of both 137for a brief description of both
138.Tn GPEs 138.Tn GPEs
139and 139and
140.Tn SCIs . 140.Tn SCIs .
141.It Ic hw.acpi.stat.fixed 141.It Ic hw.acpi.stat.fixed
142The number of 142The number of
143.Dq fixed events . 143.Dq fixed events .
144.It Ic hw.acpi.stat.method 144.It Ic hw.acpi.stat.method
145The number of 145The number of
146.Tn ACPI 146.Tn ACPI
147methods executed by the interpreter. 147methods executed by the interpreter.
148.It Ic machdep.acpi_beep_on_reset 148.It Ic machdep.acpi_beep_on_reset
149A boolean variable that controls whether the 149A boolean variable that controls whether the
150.Tn PC 150.Tn PC
151speaker beeps upon resume. 151speaker beeps upon resume.
152.It Ic machdep.acpi_vbios_reset 152.It Ic machdep.acpi_vbios_reset
153Defines the handling of the graphics card. 153Defines the handling of the graphics card.
154The supported values are: 154The supported values are:
155.Bl -tag -width '2' -offset indent 155.Bl -tag -width '2' -offset indent
156.It 0 156.It 0
157No attempt to reset the 157No attempt to reset the
158.Tn VGA 158.Tn VGA
159controller will be made. 159controller will be made.
160.It 1 160.It 1
161Call the 161Call the
162.Tn VGA 162.Tn VGA
163.Tn BIOS 163.Tn BIOS
164when still in real mode. 164when still in real mode.
165This can result in direct reboots. 165This can result in direct reboots.
166In that case, use 166In that case, use
167.Sq 2 167.Sq 2
168or 168or
169.Ic vbetool post 169.Ic vbetool post
170from the 170from the
171.Pa pkgsrc/sysutils/vbetool 171.Pa pkgsrc/sysutils/vbetool
172package. 172package.
173.It 2 173.It 2
174Call the 174Call the
175.Tn VGA 175.Tn VGA
176.Tn BIOS 176.Tn BIOS
177using the in-kernel x86 emulator. 177using the in-kernel x86 emulator.
178.El 178.El
179.El 179.El
180.Sh SUPPORTED DEVICES 180.Sh SUPPORTED DEVICES
181.Nx 181.Nx
182.Tn ACPI 182.Tn ACPI
183supports several machine-dependent and machine-independent devices: 183supports several machine-dependent and machine-independent devices:
184.Ss Machine-independent devices 184.Ss Machine-independent devices
185.Bl -tag -width pcdisplay -offset indent -compact 185.Bl -tag -width "thinkpad(4) " -offset indent -compact
186.It acpiacad 186.It Xr acpiacad 4
187.Tn ACPI 187.Tn ACPI
188AC adapters. 188AC adapters.
189.It acpibat 189.It Xr acpibat 4
190.Tn ACPI 190.Tn ACPI
191Control Method Batteries. 191batteries.
192.It acpibut 192.It Xr acpibut 4
193.Tn ACPI 193.Tn ACPI
194power and sleep buttons. 194power and sleep buttons.
195.It acpidalb 195.It Xr acpicpu 4
196.Tn ACPI 196.Tn ACPI
197Direction Application Launch Buttons. 197processors.
198.It acpiec 198.It Xr acpidalb 4
199.Tn ACPI 199.Tn ACPI
200Embedded Controllers. 200direction application launch buttons.
201.It acpiecdt 201.It Xr acpiec 4
202.Tn ACPI 202.Tn ACPI
203Embedded Controller Boot Resource Table. 203embedded controllers.
204.It acpilid 204.It Xr acpiecdt 4
 205.Tn ACPI
 206Embedded Controller Boot Resource Table
 207.Pq Tn ECDT .
 208.It Xr acpilid 4
205.Tn ACPI 209.Tn ACPI
206lid switches. 210lid switches.
207.It acpismbus 211.It Xr acpismbus 4
208.Tn ACPI 212.Tn ACPI
209SMBus via Control Method Interface. 213SMBus via Control Method Interface
210.It acpitz 214.Pq Tn CMI .
 215.It Xr acpitz 4
211.Tn ACPI 216.Tn ACPI
212thermal zones. 217thermal zones.
213.It acpiwmi 218.It Xr acpiwmi 4
214.Tn ACPI 219.Tn ACPI
215support for Windows Management Instrumentation. 220support for Windows Management Instrumentation.
216.It aibs 221.It Xr aibs 4
217ASUSTeK AI Booster ACPI ATK0110 voltage, temperature and fan sensor. 222ASUSTeK voltage, temperature and fan sensors.
218.It asus 223.It asus
219ASUS laptop hotkeys. 224ASUS laptop hotkeys.
220.It attimer 225.It Xr attimer 4
221AT Timer. 226AT Timer.
222.It com 227.It Xr com 4
223NS8250-, NS16450-, and NS16550-based serial ports. 228NS8250-, NS16450-, and NS16550-based serial ports.
224.It fdc 229.It Xr fdc 4
225Floppy disk controllers. 230Floppy disk controllers.
226.It hpet 231.It hpet
227High Precision Event Timer. 232High Precision Event Timer
228.It hpqlb 233.Pq Tn HPET .
 234.It Xr hpqlb 4
229HP Quick Launch Buttons. 235HP Quick Launch Buttons.
230.It joy 236.It Xr joy 4
231Joystick/Game port interface. 237Joystick/Game port interface.
232.It lpt 238.It Xr lpt 4
233Standard ISA parallel port interface. 239Standard ISA parallel port interface.
234.It mpu 240.It Xr mpu 4
235Roland MPU-401 (compatible) MIDI UART. 241Roland MPU-401 (compatible) MIDI UART.
236.It pcppi 242.It Xr pcppi 4
237AT-style speaker sound. 243AT-style speaker sound.
238.It thinkpad 244.It Xr thinkpad 4
239IBM/Lenovo ThinkPad laptop device driver. 245IBM/Lenovo ThinkPad laptop device driver.
240.It ug 246.It Xr ug 4
241Abit uGuru Hardware monitor. 247Abit uGuru Hardware monitor.
242.It vald 248.It Xr vald 4
243Toshiba Libretto device. 249Toshiba Libretto device.
244.It wb 250.It Xr wb 4
245Winbond W83L518D Integrated Media Reader. 251Winbond W83L518D Integrated Media Reader.
246.It wss 252.It Xr wss 4
247Windows Sound System-compatible sound cards based on the AD1848 and compatible chips. 253Windows Sound System-compatible sound cards
248.It ym 254.It Xr ym 4
249Yamaha OPL3-SA2 and OPL3-SA3 audio device driver. 255Yamaha OPL3-SA2 and OPL3-SA3 audio device driver.
250.El 256.El
251.Ss i386-dependent devices 257.Ss i386-dependent devices
252.Bl -tag -width pcdisplay -offset indent -compact 258.Bl -tag -width "thinkpad(4) " -offset indent -compact
253.It npx 259.It Xr npx 4
254i386 numeric processing extension coprocessor. 260i386 numeric processing extension coprocessor.
255.It pckbc 261.It Xr pckbc 4
256PC keyboard controllers. 262PC keyboard controllers.
257.It sony 263.It Xr sony 4
258Sony Miscellaneous Controller 264Sony Miscellaneous Controller
259.It spic 265.It Xr spic 4
260Sony programmable I/O controller. 266Sony programmable I/O controller.
261.El 267.El
262.Sh DEBUGGING 268.Sh DEBUGGING
263Although the situation has become better over the years, 269Although the situation has become better over the years,
264.Tn ACPI 270.Tn ACPI
265is typically prone to various errors, 271is typically prone to various errors,
266ranging from blatant flaws in the firmware to bugs in the implementation. 272ranging from blatant flaws in the firmware to bugs in the implementation.
267Before anything else, it is a good practice to upgrade the 273Before anything else, it is a good practice to upgrade the
268.Tn BIOS 274.Tn BIOS
269to the latest version available from the vendor. 275to the latest version available from the vendor.
270.Pp 276.Pp
271To ease the task of diagnosing and fixing different problems, the 277To ease the task of diagnosing and fixing different problems, the
272.Tn ACPICA 278.Tn ACPICA
273reference implementation provides a rich 279reference implementation provides a rich
274facility of different debugging methods. 280facility of different debugging methods.
275In 281In
276.Nx 282.Nx
277these are generally only available if the kernel has been compiled with the 283these are generally only available if the kernel has been compiled with the
278.Tn ACPI_DEBUG 284.Tn ACPI_DEBUG
279option. 285option.
280.Ss Custom DSDT 286.Ss Custom DSDT
281.Tn ACPI 287.Tn ACPI
282interprets bytecode known as 288interprets bytecode known as
283.Tn ACPI 289.Tn ACPI
284Machine Language 290Machine Language
285.Pq Tn AML , 291.Pq Tn AML ,
286provided by the 292provided by the
287.Tn BIOS 293.Tn BIOS
288as a memory image during the system bootstrap. 294as a memory image during the system bootstrap.
289Most of the 295Most of the
290.Tn AML 296.Tn AML
291relevant to 297relevant to
292.Nm 298.Nm
293is implemented in the so-called 299is implemented in the so-called
294Differentiated System Descriptor Table 300Differentiated System Descriptor Table
295.Pq Tn DSDT . 301.Pq Tn DSDT .
296.Nx 302.Nx
297provides support for overriding the default 303provides support for overriding the default
298.Tn DSDT 304.Tn DSDT
299supplied by the 305supplied by the
300.Tn BIOS . 306.Tn BIOS .
301.Pp 307.Pp
302The following steps can be used to override the 308The following steps can be used to override the
303.Tn DSDT : 309.Tn DSDT :
304.Bl -enum -offset indent 310.Bl -enum -offset indent
305.It 311.It
306Dump the raw 312Dump the raw
307.Tn DSDT 313.Tn DSDT
308with 314with
309.Xr acpidump 8 . 315.Xr acpidump 8 .
310.It 316.It
311Disassemble the table with 317Disassemble the table with
312.Xr iasl 8 . 318.Xr iasl 8 .
313.It 319.It
314Modify the disassembled table. 320Modify the disassembled table.
315.It 321.It
316Compile the table with 322Compile the table with
317.Xr iasl 8 323.Xr iasl 8
318using the option 324using the option
319.Ar \-tc . 325.Ar \-tc .
320.It 326.It
321Either copy the 327Either copy the
322.Pq Pa *.hex 328.Pq Pa *.hex
323file to 329file to
324.Bd -literal -offset indent 330.Bd -literal -offset indent
325src/sys/dev/acpi/acpica/Osd/custom_dsdt.hex 331src/sys/dev/acpi/acpica/Osd/custom_dsdt.hex
326.Ed 332.Ed
327.Pp 333.Pp
328or use the option 334or use the option
329.Bd -literal -offset indent 335.Bd -literal -offset indent
330ACPI_DSDT_FILE="/some/directory/custom_dsdt.hex" 336ACPI_DSDT_FILE="/some/directory/custom_dsdt.hex"
331.Ed 337.Ed
332.Pp 338.Pp
333in the kernel configuration file. 339in the kernel configuration file.
334.It 340.It
335Define 341Define
336.Tn ACPI_DSDT_OVERRIDE 342.Tn ACPI_DSDT_OVERRIDE
337in the kernel configuration file and rebuild. 343in the kernel configuration file and rebuild.
338.El 344.El
339.Ss Debugger 345.Ss Debugger
340The 346The
341.Tn ACPICA 347.Tn ACPICA
342interpreter provides its own debugger for low-level debugging. 348interpreter provides its own debugger for low-level debugging.
343It can be used to display internal data structures and namespace objects, 349It can be used to display internal data structures and namespace objects,
344and to debug the execution of control methods. 350and to debug the execution of control methods.
345Single step and breakpoint functionality are available. 351Single step and breakpoint functionality are available.
346In 352In
347.Nx 353.Nx
348this is integrated to the in-kernel 354this is integrated to the in-kernel
349.Xr ddb 4 . 355.Xr ddb 4 .
350In order to enter the 356In order to enter the
351.Tn ACPICA 357.Tn ACPICA
352debugger from 358debugger from
353.Xr ddb 4 , 359.Xr ddb 4 ,
354use the command 360use the command
355.Ic call 361.Ic call
356with the argument 362with the argument
357.Ic acpi_osd_debugger . 363.Ic acpi_osd_debugger .
358.Ss Debug Output 364.Ss Debug Output
359.Nx 365.Nx
360provides three 366provides three
361.Xr sysctl 8 367.Xr sysctl 8
362variables that control the debug output at runtime. 368variables that control the debug output at runtime.
363The 369The
364.Ic hw.acpi.debug.layer 370.Ic hw.acpi.debug.layer
365variable limits the output to a specific 371variable limits the output to a specific
366.Tn ACPI 372.Tn ACPI
367layer and the 373layer and the
368.Ic hw.acpi.debug.level 374.Ic hw.acpi.debug.level
369variable controls the debug level. 375variable controls the debug level.
370Both 376Both
371.Xr sysctl 8 377.Xr sysctl 8
372variables are string literals. 378variables are string literals.
373The third variable is 379The third variable is
374.Ic hw.acpi.debug.object . 380.Ic hw.acpi.debug.object .
375This is a boolean that controls whether debug messages internal to the 381This is a boolean that controls whether debug messages internal to the
376.Tn AML 382.Tn AML
377are enabled. 383are enabled.
378.Pp 384.Pp
379For the first two variables, the possible values are: 385For the first two variables, the possible values are:
380.Bl -column -offset indent \ 386.Bl -column -offset indent \
381"ACPI_RESOURCE_COMPONENT " "ACPI_RESOURCE_COMPONENT " 387"ACPI_RESOURCE_COMPONENT " "ACPI_RESOURCE_COMPONENT "
382.It Sy LAYER Ta Sy LEVEL 388.It Sy LAYER Ta Sy LEVEL
383.It Li ACPI_DEBUG_NONE Ta ACPI_DEBUG_NONE 389.It Li ACPI_DEBUG_NONE Ta ACPI_DEBUG_NONE
384.It Ta 390.It Ta
385.It Li ACPI_UTILITIES Ta ACPI_LV_INIT 391.It Li ACPI_UTILITIES Ta ACPI_LV_INIT
386.It Li ACPI_HARDWARE Ta ACPI_LV_DEBUG_OBJECT 392.It Li ACPI_HARDWARE Ta ACPI_LV_DEBUG_OBJECT
387.It Li ACPI_EVENTS Ta ACPI_LV_INFO 393.It Li ACPI_EVENTS Ta ACPI_LV_INFO
388.It Li ACPI_TABLES Ta ACPI_LV_ALL_EXCEPTIONS * 394.It Li ACPI_TABLES Ta ACPI_LV_ALL_EXCEPTIONS *
389.It Li ACPI_NAMESPACE Ta 395.It Li ACPI_NAMESPACE Ta
390.It Li ACPI_PARSER Ta ACPI_LV_INIT_NAMES 396.It Li ACPI_PARSER Ta ACPI_LV_INIT_NAMES
391.It Li ACPI_DISPATCHER Ta ACPI_LV_PARSE 397.It Li ACPI_DISPATCHER Ta ACPI_LV_PARSE
392.It Li ACPI_EXECUTER Ta ACPI_LV_LOAD 398.It Li ACPI_EXECUTER Ta ACPI_LV_LOAD
393.It Li ACPI_RESOURCES Ta ACPI_LV_DISPATCH 399.It Li ACPI_RESOURCES Ta ACPI_LV_DISPATCH
394.It Li ACPI_CA_DEBUGGER Ta ACPI_LV_EXEC 400.It Li ACPI_CA_DEBUGGER Ta ACPI_LV_EXEC
395.It Li ACPI_OS_SERVICES Ta ACPI_LV_NAMES 401.It Li ACPI_OS_SERVICES Ta ACPI_LV_NAMES
396.It Li ACPI_CA_DISASSEMBLER Ta ACPI_LV_OPREGION 402.It Li ACPI_CA_DISASSEMBLER Ta ACPI_LV_OPREGION
397.It Li ACPI_COMPILER Ta ACPI_LV_BFIELD 403.It Li ACPI_COMPILER Ta ACPI_LV_BFIELD
398.It Li ACPI_TOOLS Ta ACPI_LV_TABLES 404.It Li ACPI_TOOLS Ta ACPI_LV_TABLES
399.It Li ACPI_EXAMPLE Ta ACPI_LV_VALUES 405.It Li ACPI_EXAMPLE Ta ACPI_LV_VALUES
400.It Li ACPI_DRIVER Ta ACPI_LV_OBJECTS 406.It Li ACPI_DRIVER Ta ACPI_LV_OBJECTS
401.It Li ACPI_ALL_COMPONENTS * Ta ACPI_LV_RESOURCES 407.It Li ACPI_ALL_COMPONENTS * Ta ACPI_LV_RESOURCES
402.It Ta ACPI_LV_USER_REQUESTS 408.It Ta ACPI_LV_USER_REQUESTS
403.It Li ACPI_BUS_COMPONENT Ta ACPI_LV_PACKAGE 409.It Li ACPI_BUS_COMPONENT Ta ACPI_LV_PACKAGE
404.It Li ACPI_ACAD_COMPONENT Ta ACPI_LV_VERBOSITY1 * 410.It Li ACPI_ACAD_COMPONENT Ta ACPI_LV_VERBOSITY1 *
405.It Li ACPI_BAT_COMPONENT Ta 411.It Li ACPI_BAT_COMPONENT Ta
406.It Li ACPI_BUTTON_COMPONENT Ta ACPI_LV_ALLOCATIONS 412.It Li ACPI_BUTTON_COMPONENT Ta ACPI_LV_ALLOCATIONS
407.It Li APCI_EC_COMPONENT Ta ACPI_LV_FUNCTIONS 413.It Li APCI_EC_COMPONENT Ta ACPI_LV_FUNCTIONS
408.It Li ACPI_LID_COMPONENT Ta ACPI_LV_OPTIMIZATIONS 414.It Li ACPI_LID_COMPONENT Ta ACPI_LV_OPTIMIZATIONS
409.It Li ACPI_RESOURCE_COMPONENT Ta ACPI_LV_VERBOSITY2 * 415.It Li ACPI_RESOURCE_COMPONENT Ta ACPI_LV_VERBOSITY2 *
410.It Li ACPI_TZ_COMPONENT Ta 416.It Li ACPI_TZ_COMPONENT Ta
411.It Li ACPI_ALL_DRIVERS * Ta ACPI_LV_MUTEX 417.It Li ACPI_ALL_DRIVERS * Ta ACPI_LV_MUTEX
412.It Ta ACPI_LV_THREADS 418.It Ta ACPI_LV_THREADS
413.It Ta ACPI_LV_IO 419.It Ta ACPI_LV_IO
414.It Ta ACPI_LV_AML_INTERRUPTS 420.It Ta ACPI_LV_AML_INTERRUPTS
415.It Li "* This is a compound" Ta ACPI_LV_VERBOSITY3 * 421.It Li "* This is a compound" Ta ACPI_LV_VERBOSITY3 *
416.It Li " constant, including" Ta 422.It Li " constant, including" Ta
417.It Li " all previous elements." Ta ACPI_LV_AML_DISASSEMBLE 423.It Li " all previous elements." Ta ACPI_LV_AML_DISASSEMBLE
418.It Ta ACPI_LV_VERBOSE_INFO 424.It Ta ACPI_LV_VERBOSE_INFO
419.It Ta ACPI_LV_FULL_TABLES 425.It Ta ACPI_LV_FULL_TABLES
420.It Ta ACPI_LV_EVENTS 426.It Ta ACPI_LV_EVENTS
421.It Ta ACPI_LV_VERBOSE * 427.It Ta ACPI_LV_VERBOSE *
422.El 428.El
423.Pp 429.Pp
424In addition, there is 430In addition, there is
425.Dv ACPI_DEBUG_DEFAULT 431.Dv ACPI_DEBUG_DEFAULT
426that is used by 432that is used by
427.Tn ACPICA 433.Tn ACPICA
428as the default debug level. 434as the default debug level.
429It includes 435It includes
430.Dv ACPI_LV_INIT 436.Dv ACPI_LV_INIT
431and 437and
432.Dv ACPI_LV_DEBUG_OBJECT . 438.Dv ACPI_LV_DEBUG_OBJECT .
433.Pp 439.Pp
434The debug layer can be divided into two groups: 440The debug layer can be divided into two groups:
435the first one is specific to the 441the first one is specific to the
436.Tn ACPICA 442.Tn ACPICA
437interpreter and the second one contains the internal 443interpreter and the second one contains the internal
438.Tn ACPI 444.Tn ACPI
439components of 445components of
440.Nx . 446.Nx .
441The constant 447The constant
442.Dv ACPI_ALL_DRIVERS 448.Dv ACPI_ALL_DRIVERS
443includes all 449includes all
444.Nx 450.Nx
445specific parts. 451specific parts.
446.Pp 452.Pp
447The 453The
448.Tn ACPICA 454.Tn ACPICA
449interpreter uses several debug levels internally, 455interpreter uses several debug levels internally,
450but the 456but the
451.Nx 457.Nx
452specific parts are typically limited to 458specific parts are typically limited to
453.Dv ACPI_LV_DEBUG_OBJECT 459.Dv ACPI_LV_DEBUG_OBJECT
454and 460and
455.Dv ACPI_LV_DEBUG_INFO . 461.Dv ACPI_LV_DEBUG_INFO .
456The debug output can be stopped by setting 462The debug output can be stopped by setting
457.Ic hw.acpi.debug.level 463.Ic hw.acpi.debug.level
458to 464to
459.Dv ACPI_DEBUG_NONE . 465.Dv ACPI_DEBUG_NONE .
460.Ss Example 466.Ss Example
461As an example, a driver may have defined the component it belongs to and 467As an example, a driver may have defined the component it belongs to and
462the name of the module: 468the name of the module:
463.Bd -literal -offset indent 469.Bd -literal -offset indent
464#define _COMPONENT ACPI_BUS_COMPONENT 470#define _COMPONENT ACPI_BUS_COMPONENT
465ACPI_MODULE_NAME ("acpi_example") 471ACPI_MODULE_NAME ("acpi_example")
466.Ed 472.Ed
467.Pp 473.Pp
468The driver may also utilize the debug facility: 474The driver may also utilize the debug facility:
469.Bd -literal -offset indent 475.Bd -literal -offset indent
470ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Failed to evaluate _STA\\n")); 476ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Failed to evaluate _STA\\n"));
471.Ed 477.Ed
472.Pp 478.Pp
473With these options the debug message from the 479With these options the debug message from the
474.Dv ACPI_DEBUG_PRINT 480.Dv ACPI_DEBUG_PRINT
475macro is only visible when 481macro is only visible when
476.Ic hw.acpi.debug.layer 482.Ic hw.acpi.debug.layer
477is either 483is either
478.Dv ACPI_BUS_COMPONENT 484.Dv ACPI_BUS_COMPONENT
479or a compound constant including it, and 485or a compound constant including it, and
480.Ic hw.acpi.debug.level 486.Ic hw.acpi.debug.level
481is 487is
482.Dv ACPI_LV_INFO 488.Dv ACPI_LV_INFO
483or some constant that includes it. 489or some constant that includes it.
484Finally, it can be noted that the 490Finally, it can be noted that the
485.Tn ACPI 491.Tn ACPI
486implementation uses the prefix 492implementation uses the prefix
487.Dv ACPI_DB , 493.Dv ACPI_DB ,
488whereas the debug level 494whereas the debug level
489.Xr sysctl 8 495.Xr sysctl 8
490variable is always specified with the prefix 496variable is always specified with the prefix
491.Dv ACPI_LV . 497.Dv ACPI_LV .
492.Pp 498.Pp
493Another example can be mentioned for the use of 499Another example can be mentioned for the use of
494.Ic hw.acpi.debug.object . 500.Ic hw.acpi.debug.object .
495The following could appear in an 501The following could appear in an
496.Tn ASL 502.Tn ASL
497code: 503code:
498.Bd -literal -offset indent 504.Bd -literal -offset indent
499Method(_Q19, 0, NotSerialized) 505Method(_Q19, 0, NotSerialized)
500{ 506{
501 Store("_Q19 invoked", Debug) 507 Store("_Q19 invoked", Debug)
502 Notify(ACAD, 0x80) 508 Notify(ACAD, 0x80)
503} 509}
504.Ed 510.Ed
505.Pp 511.Pp
506When 512When
507.Ic hw.acpi.debug.object 513.Ic hw.acpi.debug.object
508is set to 1, the message stored to the debug object 514is set to 1, the message stored to the debug object
509is printed every time the method is called by the interpreter. 515is printed every time the method is called by the interpreter.
510.Sh SEE ALSO 516.Sh SEE ALSO
511.Xr acpiacad 4 , 517.Xr acpiacad 4 ,
512.Xr acpibat 4 , 518.Xr acpibat 4 ,
513.Xr acpibut 4 , 519.Xr acpibut 4 ,
 520.Xr acpicpu 4 ,
514.Xr acpidalb 4 , 521.Xr acpidalb 4 ,
515.Xr acpiec 4 , 522.Xr acpiec 4 ,
516.Xr acpilid 4 , 523.Xr acpilid 4 ,
517.Xr acpismbus 4 , 524.Xr acpismbus 4 ,
518.Xr acpitz 4 , 525.Xr acpitz 4 ,
519.Xr acpiwmi 4 , 526.Xr acpiwmi 4 ,
520.Xr aibs 4 , 527.Xr aibs 4 ,
521.Xr apm 4 , 528.Xr apm 4 ,
522.Xr attimer 4 , 529.Xr attimer 4 ,
523.Xr com 4 , 530.Xr com 4 ,
524.Xr fdc 4 , 531.Xr fdc 4 ,
525.Xr hpqlb 4 , 532.Xr hpqlb 4 ,
526.Xr joy 4 , 533.Xr joy 4 ,
527.Xr lpt 4 , 534.Xr lpt 4 ,
528.Xr mpu 4 , 535.Xr mpu 4 ,
529.Xr npx 4 , 536.Xr npx 4 ,
530.Xr pci 4 , 537.Xr pci 4 ,
531.Xr pckbc 4 , 538.Xr pckbc 4 ,
532.Xr pcppi 4 , 539.Xr pcppi 4 ,
533.Xr sony 4 , 540.Xr sony 4 ,
534.Xr spic 4 , 541.Xr spic 4 ,
535.Xr thinkpad 4 , 542.Xr thinkpad 4 ,
536.Xr ug 4 , 543.Xr ug 4 ,
537.Xr vald 4 , 544.Xr vald 4 ,
538.Xr wb 4 , 545.Xr wb 4 ,
539.Xr wss 4 , 546.Xr wss 4 ,
540.Xr ym 4 , 547.Xr ym 4 ,
541.Xr acpidump 8 , 548.Xr acpidump 8 ,
542.Xr amldb 8 , 549.Xr amldb 8 ,
543.Xr iasl 8 550.Xr iasl 8
544.Rs 551.Rs
545.%A Hewlett-Packard Corporation 552.%A Hewlett-Packard Corporation
546.%A Intel Corporation 553.%A Intel Corporation
547.%A Microsoft Corporation 554.%A Microsoft Corporation
548.%A Phoenix Technologies Ltd. 555.%A Phoenix Technologies Ltd.
549.%A Toshiba Corporation 556.%A Toshiba Corporation
550.%T Advanced Configuration and Power Interface Specification 557.%T Advanced Configuration and Power Interface Specification
551.%N Revision 4.0 558.%N Revision 4.0
552.%D June 16, 2009 559.%D June 16, 2009
553.%U http://www.acpi.info/spec.htm 560.%U http://www.acpi.info/spec.htm
554.Re 561.Re
555.Rs 562.Rs
556.%A Intel Corporation 563.%A Intel Corporation
557.%T ACPI Component Architecture, 564.%T ACPI Component Architecture,
558.%T Programmer Reference, 565.%T Programmer Reference,
559.%T OS-Independent Subsystem, Debugger, and Utilities 566.%T OS-Independent Subsystem, Debugger, and Utilities
560.%N Revision 1.27 567.%N Revision 1.27
561.%D January 20, 2010 568.%D January 20, 2010
562.%U http://www.acpica.org/download/acpica-reference.pdf 569.%U http://www.acpica.org/download/acpica-reference.pdf
563.Re 570.Re
564.Rs 571.Rs
565.%A Joerg Sonnenberger 572.%A Joerg Sonnenberger
566.%A Jared D. McNeill 573.%A Jared D. McNeill
567.%T Sleeping Beauty - NetBSD on Modern Laptops 574.%T Sleeping Beauty - NetBSD on Modern Laptops
568.%D February 3, 2008 575.%D February 3, 2008
569.%O Proceedings of AsiaBSDCon 2008 576.%O Proceedings of AsiaBSDCon 2008
570.%P pp. 127-134 577.%P pp. 127-134
571.Re 578.Re
572.Sh HISTORY 579.Sh HISTORY
573The 580The
574.Nm 581.Nm
575driver 582driver
576appeared in 583appeared in
577.Nx 1.6 . 584.Nx 1.6 .
578.Sh BUGS 585.Sh BUGS
579Most of the 586Most of the
580.Tn ACPI 587.Tn ACPI
581power management functionalities are not implemented. 588power management functionalities are not implemented.