1.\" ACPI (ACPI Package) 2.\" 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. 8.\" 9.\" Redistribution and use in source and binary forms, with or without 10.\" modification, are permitted provided that the following conditions 11.\" are met: 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. 17.\" 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 28.\" SUCH DAMAGE. 29.\" 30.\" $FreeBSD: src/usr.sbin/acpi/acpidump/acpidump.8,v 1.23 2005/02/14 16:32:32 njl Exp $ 31.\" $DragonFly: src/usr.sbin/acpi/acpidump/acpidump.8,v 1.8 2007/01/10 11:54:45 hsu Exp $ 32.\" 33.Dd February 14, 2005 34.Dt ACPIDUMP 8 35.Os 36.Sh NAME 37.Nm acpidump 38.Nd dump ACPI tables and ASL 39.Sh SYNOPSIS 40.Nm 41.Op Fl d 42.Op Fl t 43.Op Fl h 44.Op Fl v 45.Op Fl f Ar dsdt_input 46.Op Fl o Ar dsdt_output 47.Sh DESCRIPTION 48The 49.Nm 50utility analyzes ACPI tables in physical memory and can dump them to a file. 51In addition, 52.Nm 53can call 54.Xr iasl 8 55to disassemble AML 56(ACPI Machine Language) 57found in these tables and dump them as ASL 58(ACPI Source Language) 59to stdout. 60.Pp 61ACPI tables have an essential data block (the DSDT, 62Differentiated System Description Table) 63that includes information used on the kernel side such as 64detailed information about PnP hardware, procedures for controlling 65power management support, and so on. 66The 67.Nm 68utility can extract the DSDT data block from physical memory and store it into 69an output file and optionally also disassemble it. 70If any Secondary System Description Table 71(SSDT) 72entries exist, they will also be included in the output file and disassembly. 73.Pp 74When 75.Nm 76is invoked without the 77.Fl f 78option, it will read ACPI tables from physical memory via 79.Pa /dev/mem . 80First it searches for the RSDP 81(Root System Description Pointer), 82which has the signature 83.Qq RSD PTR\ \& , 84and then gets the RSDT 85(Root System Description Table), 86which includes a list of pointers to physical memory addresses 87for other tables. 88The RSDT itself and all other tables linked from RSDT are generically 89called SDTs 90(System Description Tables) 91and their header has a common format which consists of items 92such as Signature, Length, Revision, Checksum, OEMID, OEM Table ID, 93OEM Revision, Creator ID and Creator Revision. 94When invoked with the 95.Fl t 96flag, the 97.Nm 98utility dumps contents of the following tables: 99.Pp 100.Bl -tag -offset indent -width 12345 -compact 101.It DSDT 102.It ECDT 103.It FACS 104.It FADT 105.It HPET 106.It MADT 107.It MCFG 108.It RSD PTR 109.It RSDT 110.El 111.Pp 112The RSDT contains a pointer to the physical memory address of the FACP 113(Fixed ACPI Description Table). 114The FACP defines static system information about power management support 115(ACPI Hardware Register Implementation) 116such as interrupt mode (INT_MODEL), 117SCI interrupt number, SMI command port (SMI_CMD) 118and the location of ACPI registers. 119The FACP also has a pointer to a physical memory address for the DSDT. 120While the other tables are fixed format, 121the DSDT consists of free-formatted AML data. 122.Sh OPTIONS 123The following options are supported by 124.Nm : 125.Bl -tag -width indent 126.It Fl d 127Disassemble the DSDT into ASL using 128.Xr iasl 8 129and print the results to stdout. 130.It Fl t 131Dump the contents of the various fixed tables listed above. 132.It Fl h 133Displays usage and exit. 134.It Fl v 135Enable verbose messages. 136.It Fl f Ar dsdt_input 137Load the DSDT from the specified file instead of physical memory. 138Since only the DSDT is stored in the file, the 139.Fl t 140flag may not be used with this option. 141.It Fl o Ar dsdt_output 142Store the DSDT data block from physical memory into the specified file. 143.El 144.Sh FILES 145.Bl -tag -width /dev/mem 146.It Pa /dev/mem 147.El 148.Sh EXAMPLES 149This example dumps the DSDT from physical memory to foo.dsdt. 150It also prints the contents of various system tables and disassembles 151the AML contained in the DSDT to stdout, redirecting the output 152to foo.asl. 153.Bd -literal -offset indent 154# acpidump -t -d -o foo.dsdt > foo.asl 155.Ed 156.Pp 157This example reads a DSDT file and disassembles it to stdout. 158Verbose messages are enabled. 159.Bd -literal -offset indent 160# acpidump -v -d -f foo.dsdt 161.Ed 162.Sh SEE ALSO 163.Xr acpi 4 , 164.Xr mem 4 , 165.Xr acpiconf 8 , 166.Xr acpidb 8 , 167.Xr iasl 8 168.Sh HISTORY 169The 170.Nm 171utility first appeared in 172.Fx 5.0 173and was rewritten to use 174.Xr iasl 8 175for 176.Fx 5.2 . 177.Sh AUTHORS 178.An Doug Rabson Aq dfr@FreeBSD.org 179.An Mitsuru IWASAKI Aq iwasaki@FreeBSD.org 180.An Yasuo YOKOYAMA Aq yokoyama@jp.FreeBSD.org 181.An Nate Lawson Aq njl@FreeBSD.org 182.Pp 183.An -nosplit 184Some contributions made by 185.An Chitoshi Ohsawa Aq ohsawa@catv1.ccn-net.ne.jp , 186.An Takayasu IWANASHI Aq takayasu@wendy.a.perfect-liberty.or.jp , 187.An Yoshihiko SARUMARU Aq mistral@imasy.or.jp , 188.An Hiroki Sato Aq hrs@FreeBSD.org , 189.An Michael Lucas Aq mwlucas@blackhelicopters.org 190and 191.An Michael Smith Aq msmith@FreeBSD.org . 192.Sh BUGS 193The current implementation does not dump the BOOT structure or 194other miscellaneous tables. 195