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