]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - usr.sbin/acpi/iasl/iasl.8
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / usr.sbin / acpi / iasl / iasl.8
1 .\"-
2 .\" Copyright (c) 2003 Nate Lawson
3 .\" All rights reserved.
4 .\"
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
7 .\" are met:
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\"    notice, this list of conditions and the following disclaimer
10 .\"    in this position and unchanged.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\"    notice, this list of conditions and the following disclaimer in the
13 .\"    documentation and/or other materials provided with the distribution.
14 .\" 3. The name of the author may not be used to endorse or promote products
15 .\"    derived from this software without specific prior written permission.
16 .\"
17 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 .\"
28 .\" $FreeBSD$
29 .\"
30 .Dd May 20, 2008
31 .Dt IASL 8
32 .Os
33 .Sh NAME
34 .Nm iasl
35 .Nd Intel ACPI compiler/decompiler
36 .Sh SYNOPSIS
37 .Nm
38 .Op Fl 2cefghl
39 .Op Fl b Ar type
40 .Op Fl d Ar file
41 .Op Fl dc Ar file
42 .Op Fl hc
43 .Op Fl hr
44 .Op Fl i Ar type
45 .Op Fl ln
46 .Op Fl ls
47 .Op Fl oa
48 .Op Fl of
49 .Op Fl oi
50 .Op Fl on
51 .Op Fl ot
52 .Op Fl p Ar prefix
53 .Op Fl s Ar type
54 .Op Fl t Ar type
55 .Op Fl vi
56 .Op Fl vo
57 .Op Fl vr
58 .Op Fl vs
59 .Op Fl x Ar level
60 .Op Fl w Ar level
61 .Ar input-file
62 .Sh DESCRIPTION
63 The
64 .Nm
65 utility is a compiler/decompiler for ACPI Source Language (ASL)
66 and ACPI Machine Language (AML).
67 Major features of
68 .Nm
69 include:
70 .Bl -bullet -offset indent
71 .It
72 Full support for the ACPI 3.0b Specification including ASL grammar
73 elements and operators.
74 .It
75 Extensive compiler syntax and semantic error checking, especially in
76 the area of control methods.
77 This reduces the number of errors that are
78 not discovered until the AML code is actually interpreted (i.e., the
79 compile-time error checking reduces the number of run-time errors).
80 .It
81 Multiple types of output files, including formatted listing files with
82 intermixed source, several types of AML files, and error messages.
83 .El
84 .Sh OPTIONS
85 .Bl -tag -width indent
86 .It Fl 2
87 Emit ACPI 2.0 compatible ASL code.
88 .It Fl b Sm Cm p | t | b Sm
89 Create compiler debug/trace file
90 .Pq Pa *.txt .
91 Types: Parse/Tree/Both.
92 .It Fl c
93 Parse only, no output generation.
94 .It Fl d Ar file
95 Disassemble AML to ASL source code file
96 .Pq Pa *.dsl .
97 .It Fl dc Ar file
98 Disassemble AML and immediately compile it.
99 (Obtain DSDT from current system if no input file.)
100 .It Fl e
101 Generate
102 .Fn External
103 statements for unresolved symbols.
104 .It Fl f
105 Ignore errors, force creation of AML output file(s).
106 .It Fl g
107 Get ACPI tables and write to files
108 .Pq Pa *.dat .
109 .It Fl h
110 Additional help and compiler debug options.
111 .It Fl hc
112 Display operators allowed in constant expressions.
113 .It Fl hr
114 Display ACPI reserved method names.
115 .It Fl i Sm Cm a | c Sm
116 Create assembler or C include file
117 .Pa ( *.inc
118 or
119 .Pa *.h ) .
120 .It Fl l
121 Create mixed listing file (ASL source and AML)
122 .Pq Pa *.lst .
123 .It Fl ln
124 Create namespace file
125 .Pq Pa *.nsp .
126 .It Fl ls
127 Create combined source file (expanded includes)
128 .Pq Pa *.src .
129 .It Fl oa
130 Disable all optimizations (compatibility mode).
131 .It Fl of
132 Disable constant folding.
133 .It Fl oi
134 Disable integer optimization to Zero/One/Ones.
135 .It Fl on
136 Disable named reference string optimization.
137 .It Fl ot
138 Display compile times.
139 .It Fl p Ar prefix
140 Specify filename prefix for all output files (including
141 .Pa .aml ) .
142 .It Fl s Sm Cm a | c Sm
143 Create AML in assembler or C source file
144 .Pa ( *.asm
145 or
146 .Pa *.c ) .
147 .It Fl t Ar a|c
148 Create AML in assembler or C hex table
149 .Pq Pa *.hex .
150 .It Fl vi
151 Less verbose errors and warnings for use with IDEs.
152 .It Fl vo
153 Enable optimization comments.
154 .It Fl vr
155 Disable remarks.
156 .It Fl vs
157 Disable signon.
158 .It Fl x Ar level
159 Set debug level for trace output.
160 .It Fl w Ar level
161 Set warning level.
162 .El
163 .Sh SEE ALSO
164 .Xr acpi 4 ,
165 .Xr acpidump 8
166 .Sh HISTORY
167 The
168 .Nm
169 utility is provided with Intel ACPI-CA.
170 It first appeared in
171 .Fx 5.2 .
172 .Sh AUTHORS
173 .An -nosplit
174 The
175 .Nm
176 utility was written by
177 .An Intel .
178 This manual page was written by
179 .An Nate Lawson .