2003-08-07 18:09:17 +00:00
|
|
|
.\"-
|
|
|
|
.\" Copyright (c) 2003 Nate Lawson
|
|
|
|
.\" 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
|
|
|
|
.\" in this position and unchanged.
|
|
|
|
.\" 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.
|
|
|
|
.\" 3. The name of the author may not be used to endorse or promote products
|
|
|
|
.\" derived from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 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.
|
|
|
|
.\"
|
2004-06-13 18:03:44 +00:00
|
|
|
.\" $FreeBSD$
|
2003-08-07 18:09:17 +00:00
|
|
|
.\"
|
2008-05-20 12:07:02 +00:00
|
|
|
.Dd May 20, 2008
|
2003-08-07 18:09:17 +00:00
|
|
|
.Dt IASL 8
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm iasl
|
|
|
|
.Nd Intel ACPI compiler/decompiler
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
2008-05-20 12:07:02 +00:00
|
|
|
.Op Fl 2cefghl
|
2003-08-07 18:09:17 +00:00
|
|
|
.Op Fl b Ar type
|
|
|
|
.Op Fl d Ar file
|
|
|
|
.Op Fl dc Ar file
|
|
|
|
.Op Fl hc
|
|
|
|
.Op Fl hr
|
|
|
|
.Op Fl i Ar type
|
|
|
|
.Op Fl ln
|
|
|
|
.Op Fl ls
|
|
|
|
.Op Fl oa
|
|
|
|
.Op Fl of
|
|
|
|
.Op Fl oi
|
|
|
|
.Op Fl on
|
|
|
|
.Op Fl ot
|
|
|
|
.Op Fl p Ar prefix
|
|
|
|
.Op Fl s Ar type
|
|
|
|
.Op Fl t Ar type
|
|
|
|
.Op Fl vi
|
|
|
|
.Op Fl vo
|
|
|
|
.Op Fl vr
|
|
|
|
.Op Fl vs
|
|
|
|
.Op Fl x Ar level
|
2008-05-20 12:07:02 +00:00
|
|
|
.Op Fl w Ar level
|
2003-08-07 18:09:17 +00:00
|
|
|
.Ar input-file
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility is a compiler/decompiler for ACPI Source Language (ASL)
|
2004-06-13 18:03:44 +00:00
|
|
|
and ACPI Machine Language (AML).
|
|
|
|
Major features of
|
2003-08-07 18:09:17 +00:00
|
|
|
.Nm
|
|
|
|
include:
|
2004-06-13 18:03:44 +00:00
|
|
|
.Bl -bullet -offset indent
|
2003-08-07 18:09:17 +00:00
|
|
|
.It
|
2008-05-20 12:07:02 +00:00
|
|
|
Full support for the ACPI 3.0b Specification including ASL grammar
|
2003-08-07 18:09:17 +00:00
|
|
|
elements and operators.
|
|
|
|
.It
|
|
|
|
Extensive compiler syntax and semantic error checking, especially in
|
2004-06-13 18:03:44 +00:00
|
|
|
the area of control methods.
|
|
|
|
This reduces the number of errors that are
|
2003-08-07 18:09:17 +00:00
|
|
|
not discovered until the AML code is actually interpreted (i.e., the
|
2004-06-13 18:03:44 +00:00
|
|
|
compile-time error checking reduces the number of run-time errors).
|
2003-08-07 18:09:17 +00:00
|
|
|
.It
|
|
|
|
Multiple types of output files, including formatted listing files with
|
|
|
|
intermixed source, several types of AML files, and error messages.
|
|
|
|
.El
|
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width indent
|
2008-05-20 12:07:02 +00:00
|
|
|
.It Fl 2
|
|
|
|
Emit ACPI 2.0 compatible ASL code.
|
2004-06-13 18:03:44 +00:00
|
|
|
.It Fl b Sm Cm p | t | b Sm
|
|
|
|
Create compiler debug/trace file
|
|
|
|
.Pq Pa *.txt .
|
|
|
|
Types: Parse/Tree/Both.
|
2003-08-07 18:09:17 +00:00
|
|
|
.It Fl c
|
2004-06-13 18:03:44 +00:00
|
|
|
Parse only, no output generation.
|
2003-08-07 18:09:17 +00:00
|
|
|
.It Fl d Ar file
|
2004-06-13 18:03:44 +00:00
|
|
|
Disassemble AML to ASL source code file
|
|
|
|
.Pq Pa *.dsl .
|
2003-08-07 18:09:17 +00:00
|
|
|
.It Fl dc Ar file
|
2004-06-13 18:03:44 +00:00
|
|
|
Disassemble AML and immediately compile it.
|
|
|
|
(Obtain DSDT from current system if no input file.)
|
2003-08-07 18:09:17 +00:00
|
|
|
.It Fl e
|
2004-06-13 18:03:44 +00:00
|
|
|
Generate
|
|
|
|
.Fn External
|
|
|
|
statements for unresolved symbols.
|
2003-08-07 18:09:17 +00:00
|
|
|
.It Fl f
|
2004-06-13 18:03:44 +00:00
|
|
|
Ignore errors, force creation of AML output file(s).
|
2003-08-07 18:09:17 +00:00
|
|
|
.It Fl g
|
2004-06-13 18:03:44 +00:00
|
|
|
Get ACPI tables and write to files
|
|
|
|
.Pq Pa *.dat .
|
2003-08-07 18:09:17 +00:00
|
|
|
.It Fl h
|
2004-06-13 18:03:44 +00:00
|
|
|
Additional help and compiler debug options.
|
2003-08-07 18:09:17 +00:00
|
|
|
.It Fl hc
|
2004-06-13 18:03:44 +00:00
|
|
|
Display operators allowed in constant expressions.
|
2003-08-07 18:09:17 +00:00
|
|
|
.It Fl hr
|
2004-06-13 18:03:44 +00:00
|
|
|
Display ACPI reserved method names.
|
|
|
|
.It Fl i Sm Cm a | c Sm
|
|
|
|
Create assembler or C include file
|
|
|
|
.Pa ( *.inc
|
|
|
|
or
|
|
|
|
.Pa *.h ) .
|
2003-08-07 18:09:17 +00:00
|
|
|
.It Fl l
|
2004-06-13 18:03:44 +00:00
|
|
|
Create mixed listing file (ASL source and AML)
|
|
|
|
.Pq Pa *.lst .
|
2003-08-07 18:09:17 +00:00
|
|
|
.It Fl ln
|
2004-06-13 18:03:44 +00:00
|
|
|
Create namespace file
|
|
|
|
.Pq Pa *.nsp .
|
2003-08-07 18:09:17 +00:00
|
|
|
.It Fl ls
|
2004-06-13 18:03:44 +00:00
|
|
|
Create combined source file (expanded includes)
|
|
|
|
.Pq Pa *.src .
|
2003-08-07 18:09:17 +00:00
|
|
|
.It Fl oa
|
2004-06-13 18:03:44 +00:00
|
|
|
Disable all optimizations (compatibility mode).
|
2003-08-07 18:09:17 +00:00
|
|
|
.It Fl of
|
2004-06-13 18:03:44 +00:00
|
|
|
Disable constant folding.
|
2003-08-07 18:09:17 +00:00
|
|
|
.It Fl oi
|
2004-06-13 18:03:44 +00:00
|
|
|
Disable integer optimization to Zero/One/Ones.
|
2003-08-07 18:09:17 +00:00
|
|
|
.It Fl on
|
2004-06-13 18:03:44 +00:00
|
|
|
Disable named reference string optimization.
|
2003-08-07 18:09:17 +00:00
|
|
|
.It Fl ot
|
2004-06-13 18:03:44 +00:00
|
|
|
Display compile times.
|
2003-08-07 18:09:17 +00:00
|
|
|
.It Fl p Ar prefix
|
2004-06-13 18:03:44 +00:00
|
|
|
Specify filename prefix for all output files (including
|
|
|
|
.Pa .aml ) .
|
|
|
|
.It Fl s Sm Cm a | c Sm
|
|
|
|
Create AML in assembler or C source file
|
|
|
|
.Pa ( *.asm
|
|
|
|
or
|
|
|
|
.Pa *.c ) .
|
2003-08-07 18:09:17 +00:00
|
|
|
.It Fl t Ar a|c
|
2004-06-13 18:03:44 +00:00
|
|
|
Create AML in assembler or C hex table
|
|
|
|
.Pq Pa *.hex .
|
2003-08-07 18:09:17 +00:00
|
|
|
.It Fl vi
|
2004-06-13 18:03:44 +00:00
|
|
|
Less verbose errors and warnings for use with IDEs.
|
2003-08-07 18:09:17 +00:00
|
|
|
.It Fl vo
|
2004-06-13 18:03:44 +00:00
|
|
|
Enable optimization comments.
|
2003-08-07 18:09:17 +00:00
|
|
|
.It Fl vr
|
2004-06-13 18:03:44 +00:00
|
|
|
Disable remarks.
|
2003-08-07 18:09:17 +00:00
|
|
|
.It Fl vs
|
2004-06-13 18:03:44 +00:00
|
|
|
Disable signon.
|
2003-08-07 18:09:17 +00:00
|
|
|
.It Fl x Ar level
|
2004-06-13 18:03:44 +00:00
|
|
|
Set debug level for trace output.
|
2008-05-20 12:07:02 +00:00
|
|
|
.It Fl w Ar level
|
|
|
|
Set warning level.
|
2003-08-07 18:09:17 +00:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr acpi 4 ,
|
|
|
|
.Xr acpidump 8
|
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
2004-06-13 18:03:44 +00:00
|
|
|
utility is provided with Intel ACPI-CA.
|
|
|
|
It first appeared in
|
2003-08-07 18:09:17 +00:00
|
|
|
.Fx 5.2 .
|
|
|
|
.Sh AUTHORS
|
|
|
|
.An -nosplit
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility was written by
|
|
|
|
.An Intel .
|
|
|
|
This manual page was written by
|
|
|
|
.An Nate Lawson .
|