2001-07-03 07:45:04 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 2001 Michael Smith
|
|
|
|
.\" 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 AND CONTRIBUTORS ``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 OR CONTRIBUTORS 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 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.
|
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
|
|
|
.Dd July 2, 2001
|
|
|
|
.Dt ACPI 4
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm acpi
|
|
|
|
.Nd Advanced Configuration and Power Management support
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Cd device acpica
|
|
|
|
.Pp
|
|
|
|
.Cd options ACPI_DEBUG
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver provides support for the Intel/Microsoft/Compaq/Toshiba ACPI
|
|
|
|
standard.
|
|
|
|
This support includes platform hardware discovery (superseding the
|
|
|
|
PnP and PCI BIOS), as well as power management (superseding APM) and
|
|
|
|
other features.
|
|
|
|
ACPI core support is provided by the ACPI CA reference implementation
|
|
|
|
from Intel.
|
2001-08-26 22:51:52 +00:00
|
|
|
.Pp
|
|
|
|
Note that the
|
|
|
|
.Nm
|
|
|
|
driver is automatically loaded by the bootloader, and should not normally
|
|
|
|
be compiled into the kernel.
|
2001-07-03 07:45:04 +00:00
|
|
|
.Sh ENVIRONMENT
|
|
|
|
This support is still experimental, and thus there are many debugging
|
|
|
|
and tuning options which are managed via the kernel environment
|
2001-07-06 08:10:59 +00:00
|
|
|
space, and set in the
|
|
|
|
.Xr loader 8
|
|
|
|
before booting the kernel.
|
2001-07-03 07:45:04 +00:00
|
|
|
.Pp
|
|
|
|
Debugging is separated between layers and levels, where a layer is
|
|
|
|
a portion of the ACPI subsystem, and a level is a particular kind
|
|
|
|
of debugging output.
|
|
|
|
.Pp
|
|
|
|
Both layers and levels are specified as a whitespace-separated list of
|
|
|
|
tokens, with layers listed in
|
|
|
|
.Va debug.acpi.layer
|
|
|
|
and levels in
|
|
|
|
.Va debug.acpi.level .
|
|
|
|
The supported layers are:
|
2001-07-06 08:10:59 +00:00
|
|
|
.Pp
|
|
|
|
.Bl -item -offset indent -compact
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-07-06 08:10:59 +00:00
|
|
|
.Li ACPI_UTILITIES
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-07-06 08:10:59 +00:00
|
|
|
.Li ACPI_HARDWARE
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-07-06 08:10:59 +00:00
|
|
|
.Li ACPI_EVENTS
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-07-06 08:10:59 +00:00
|
|
|
.Li ACPI_TABLES
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-07-06 08:10:59 +00:00
|
|
|
.Li ACPI_NAMESPACE
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-07-06 08:10:59 +00:00
|
|
|
.Li ACPI_PARSER
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-07-06 08:10:59 +00:00
|
|
|
.Li ACPI_DISPATCHER
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-07-06 08:10:59 +00:00
|
|
|
.Li ACPI_EXECUTER
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-07-06 08:10:59 +00:00
|
|
|
.Li ACPI_RESOURCES
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_DEBUGGER
|
|
|
|
.It
|
|
|
|
.Li ACPI_OS_SERVICES
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-07-06 08:10:59 +00:00
|
|
|
.Li ACPI_BUS
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_SYSTEM
|
|
|
|
.It
|
2001-07-06 08:10:59 +00:00
|
|
|
.Li ACPI_POWER
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-07-06 08:10:59 +00:00
|
|
|
.Li ACPI_EC
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-07-06 08:10:59 +00:00
|
|
|
.Li ACPI_AC_ADAPTER
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-07-06 08:10:59 +00:00
|
|
|
.Li ACPI_BATTERY
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-07-06 08:10:59 +00:00
|
|
|
.Li ACPI_BUTTON
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_PROCESSOR
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-07-06 08:10:59 +00:00
|
|
|
.Li ACPI_THERMAL
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_FAN
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-07-06 08:10:59 +00:00
|
|
|
.Li ACPI_ALL_COMPONENTS
|
2001-07-03 07:45:04 +00:00
|
|
|
.El
|
2001-07-06 08:10:59 +00:00
|
|
|
.Pp
|
2001-07-03 07:45:04 +00:00
|
|
|
The supported levels are:
|
2001-07-06 08:10:59 +00:00
|
|
|
.Pp
|
|
|
|
.Bl -item -offset indent -compact
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_OK
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_INFO
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_WARN
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_ERROR
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_FATAL
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_DEBUG_OBJECT
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_ALL_EXCEPTIONS
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_THREADS
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_PARSE
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_DISPATCH
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_LOAD
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_EXEC
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_NAMES
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_OPREGION
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_BFIELD
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_TRASH
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_TABLES
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_FUNCTIONS
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_VALUES
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_OBJECTS
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_ALLOCATIONS
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_RESOURCES
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_IO
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_INTERRUPTS
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_USER_REQUESTS
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_PACKAGE
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_MUTEX
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_INIT
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_LV_ALL
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_DB_AML_DISASSEMBLE
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_DB_VERBOSE_INFO
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_DB_FULL_TABLES
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_DB_EVENTS
|
2001-07-03 07:45:04 +00:00
|
|
|
.It
|
2001-08-26 22:51:52 +00:00
|
|
|
.Li ACPI_DB_VERBOSE
|
2001-07-03 07:45:04 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Selection of the appropriate layer and level values is important
|
|
|
|
to avoid massive amounts of debugging output.
|
|
|
|
Check the code to see which you need.
|
|
|
|
.Pp
|
|
|
|
Debugging output by the ACPI CA subsystem is prefixed with the
|
|
|
|
module name in lowercase, followed by a source line number.
|
2001-07-06 08:10:59 +00:00
|
|
|
Output from the
|
|
|
|
.Fx Ns -local
|
|
|
|
code follows the same format, but
|
2001-07-03 07:45:04 +00:00
|
|
|
the module name is uppercased.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver comprises a set of drivers, which may be selectively disabled
|
|
|
|
in case of problems.
|
|
|
|
To disable a sub-driver, list it in the kernel
|
|
|
|
environment variable
|
|
|
|
.Va debug.acpi.disable .
|
|
|
|
.Pp
|
|
|
|
ACPI sub-devices and features that can be disabled:
|
|
|
|
.Bl -tag -width processor
|
2001-07-06 08:10:59 +00:00
|
|
|
.It Li bus
|
2001-07-03 07:45:04 +00:00
|
|
|
.Pq Vt feature
|
|
|
|
Probes and attaches subdevices.
|
|
|
|
Disabling will avoid scanning the ACPI namespace entirely.
|
2001-07-06 08:10:59 +00:00
|
|
|
.It Li children
|
2001-07-03 07:45:04 +00:00
|
|
|
.Pq Vt feature
|
|
|
|
Attaches standard ACPI sub-drivers and devices enumerated in the
|
|
|
|
ACPI namespace.
|
|
|
|
Disabling this has a similar effect to disabling
|
2001-07-06 08:10:59 +00:00
|
|
|
.Dq Li bus ,
|
2001-07-03 07:45:04 +00:00
|
|
|
except that the
|
|
|
|
ACPI namespace will still be scanned.
|
2001-07-06 08:10:59 +00:00
|
|
|
.It Li button
|
2001-07-03 07:45:04 +00:00
|
|
|
.Pq Vt device
|
|
|
|
Supports ACPI button devices (typically power and sleep buttons).
|
2001-07-06 08:10:59 +00:00
|
|
|
.It Li ec
|
2001-07-03 07:45:04 +00:00
|
|
|
.Pq Vt device
|
|
|
|
Supports the ACPI Embedded Controller interface, used to
|
|
|
|
communicate with embedded platform controllers.
|
2001-07-06 08:10:59 +00:00
|
|
|
.It Li isa
|
2001-07-03 07:45:04 +00:00
|
|
|
.Pq Vt device
|
|
|
|
Supports an ISA bus bridge defined in the ACPI namespace,
|
|
|
|
typically as a child of a PCI bus.
|
2001-07-06 08:10:59 +00:00
|
|
|
.It Li lid
|
2001-07-03 07:45:04 +00:00
|
|
|
.Pq Vt device
|
|
|
|
Supports an ACPI laptop lid switch, which typically puts a
|
|
|
|
system to sleep.
|
2001-07-06 08:10:59 +00:00
|
|
|
.It Li pci
|
2001-07-03 07:45:04 +00:00
|
|
|
.Pq Vt device
|
|
|
|
Supports Host to PCI bridges.
|
2001-07-06 08:10:59 +00:00
|
|
|
.It Li processor
|
2001-07-03 07:45:04 +00:00
|
|
|
.Pq Vt device
|
|
|
|
Supports CPU power-saving and speed-setting functions.
|
2001-07-06 08:10:59 +00:00
|
|
|
.It Li thermal
|
2001-07-03 07:45:04 +00:00
|
|
|
.Pq Vt device
|
|
|
|
Supports system cooling and heat management.
|
2001-07-06 08:10:59 +00:00
|
|
|
.It Li timer
|
2001-07-03 07:45:04 +00:00
|
|
|
.Pq Vt device
|
|
|
|
Implements a timecounter using the ACPI fixed-frequency timer.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
It is also possible to avoid portions of the ACPI namespace which
|
|
|
|
may be causing problems, by listing the full path of the root of
|
|
|
|
the region to be avoided in the kernel environment variable
|
|
|
|
.Va debug.acpi.avoid .
|
|
|
|
The object and all of its children will be ignored during the
|
2001-07-06 08:10:59 +00:00
|
|
|
bus/children scan of the namespace.
|
|
|
|
The ACPI CA code will still
|
2001-07-03 07:45:04 +00:00
|
|
|
know about the avoided region.
|
|
|
|
.Sh COMPATIBILITY
|
|
|
|
ACPI is only found/supported on Intel platforms (i386/IA32 and IA64).
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr config 8 ,
|
|
|
|
.Xr acpi 9
|
2001-07-06 08:10:59 +00:00
|
|
|
.Sh AUTHORS
|
|
|
|
.An -nosplit
|
2001-07-03 07:45:04 +00:00
|
|
|
The ACPI CA subsystem is developed and maintained by
|
|
|
|
Intel Architecture Labs.
|
|
|
|
.Pp
|
|
|
|
The following people made notable contributions to the ACPI subsystem
|
|
|
|
in
|
|
|
|
.Fx :
|
2001-07-06 08:10:59 +00:00
|
|
|
.An Michael Smith Aq msmith@FreeBSD.org ,
|
|
|
|
.An Takanori Watanabe Aq takawata@jp.FreeBSD.org ,
|
|
|
|
.An Mitsuru IWASAKI Aq iwasaki@jp.FreeBSD.org ,
|
2001-07-03 07:45:04 +00:00
|
|
|
.An Munehiro Matsuda ,
|
|
|
|
the ACPI-jp mailing list at
|
2001-07-06 08:10:59 +00:00
|
|
|
.Aq acpi-jp@jp.FreeBSD.org ,
|
2001-07-03 07:45:04 +00:00
|
|
|
and many other contributors.
|
|
|
|
.Pp
|
|
|
|
This manual page was written by
|
2001-07-06 08:10:59 +00:00
|
|
|
.An Michael Smith Aq msmith@FreeBSD.org .
|
2001-07-03 07:45:04 +00:00
|
|
|
.Sh BUGS
|
|
|
|
The kernel device is
|
|
|
|
.Cd device acpica
|
2001-07-06 08:10:59 +00:00
|
|
|
for historical reasons.
|
2001-08-26 22:51:52 +00:00
|
|
|
.Pp
|
|
|
|
If the
|
|
|
|
.Nm
|
|
|
|
driver is loaded as a module when it is already linked as part of the
|
|
|
|
kernel, odd things may happen.
|