1 .\" ACPI (ACPI Package)
3 .\" Copyright (c) 1999 Doug Rabson <dfr@FreeBSD.org>
4 .\" Copyright (c) 2000 Mitsuru IWASAKI <iwasaki@FreeBSD.org>
5 .\" Copyright (c) 2000 Yasuo YOKOYAMA <yokoyama@jp.FreeBSD.org>
6 .\" Copyright (c) 2000 Hiroki Sato <hrs@FreeBSD.org>
7 .\" All rights reserved.
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 .Nd dump ACPI tables and ASL
44 .Op Fl f Ar dsdt_input
45 .Op Fl o Ar dsdt_output
49 utility analyzes ACPI tables in physical memory and can dump them to a file.
55 (ACPI Machine Language)
56 found in these tables and dump them as ASL
57 (ACPI Source Language)
60 ACPI tables have an essential data block (the DSDT,
61 Differentiated System Description Table)
62 that includes information used on the kernel side such as
63 detailed information about PnP hardware, procedures for controlling
64 power management support, and so on.
67 utility can extract the DSDT data block from physical memory and store it into
68 an output file and optionally also disassemble it.
69 If any Secondary System Description Table
71 entries exist, they will also be included in the output file and disassembly.
75 is invoked without the
77 option, it will read ACPI tables from physical memory via
79 First it searches for the RSDP
80 (Root System Description Pointer),
81 which has the signature
83 and then gets the RSDT
84 (Root System Description Table),
85 which includes a list of pointers to physical memory addresses
87 The RSDT itself and all other tables linked from RSDT are generically
89 (System Description Tables)
90 and their header has a common format which consists of items
91 such as Signature, Length, Revision, Checksum, OEMID, OEM Table ID,
92 OEM Revision, Creator ID and Creator Revision.
97 utility dumps contents of the following tables:
99 .Bl -tag -offset indent -width 12345 -compact
115 The RSDT contains a pointer to the physical memory address of the FACP
116 (Fixed ACPI Description Table).
117 The FACP defines static system information about power management support
118 (ACPI Hardware Register Implementation)
119 such as interrupt mode (INT_MODEL),
120 SCI interrupt number, SMI command port (SMI_CMD)
121 and the location of ACPI registers.
122 The FACP also has a pointer to a physical memory address for the DSDT.
123 While the other tables are fixed format,
124 the DSDT consists of free-formatted AML data.
126 The following options are supported by
128 .Bl -tag -width indent
130 Disassemble the DSDT into ASL using
132 and print the results to stdout.
134 Dump the contents of the various fixed tables listed above.
136 Displays usage and exit.
138 Enable verbose messages.
139 .It Fl f Ar dsdt_input
140 Load the DSDT from the specified file instead of physical memory.
141 Since only the DSDT is stored in the file, the
143 flag may not be used with this option.
144 .It Fl o Ar dsdt_output
145 Store the DSDT data block from physical memory into the specified file.
148 .Bl -tag -width /dev/mem
152 If a developer requests a copy of your ASL, please use the following
153 command to dump all tables and compress the result.
154 .Bd -literal -offset indent
155 # acpidump -dt | gzip -c9 > my_computer.asl.gz
158 This example dumps the DSDT from physical memory to foo.dsdt.
159 It also prints the contents of various system tables and disassembles
160 the AML contained in the DSDT to stdout, redirecting the output
162 .Bd -literal -offset indent
163 # acpidump -t -d -o foo.dsdt > foo.asl
166 This example reads a DSDT file and disassembles it to stdout.
167 Verbose messages are enabled.
168 .Bd -literal -offset indent
169 # acpidump -v -d -f foo.dsdt
180 utility first appeared in
182 and was rewritten to use
187 .An Doug Rabson Aq Mt dfr@FreeBSD.org
188 .An Mitsuru IWASAKI Aq Mt iwasaki@FreeBSD.org
189 .An Yasuo YOKOYAMA Aq Mt yokoyama@jp.FreeBSD.org
190 .An Nate Lawson Aq Mt njl@FreeBSD.org
193 Some contributions made by
194 .An Chitoshi Ohsawa Aq Mt ohsawa@catv1.ccn-net.ne.jp ,
195 .An Takayasu IWANASHI Aq Mt takayasu@wendy.a.perfect-liberty.or.jp ,
196 .An Yoshihiko SARUMARU Aq Mt mistral@imasy.or.jp ,
197 .An Hiroki Sato Aq Mt hrs@FreeBSD.org ,
198 .An Michael Lucas Aq Mt mwlucas@blackhelicopters.org
200 .An Michael Smith Aq Mt msmith@FreeBSD.org .
202 The current implementation does not dump the BOOT structure or
203 other miscellaneous tables.