ACPIDUMP(8)             OpenBSD System Manager's Manual            ACPIDUMP(8)

NAME
     acpidump - dump ACPI tables

SYNOPSIS
     acpidump [-f dsdt_file_for_input]
     acpidump [-o prefix_for_output]

DESCRIPTION
     The acpidump command analyzes ACPI tables in physical memory and dumps
     them to standard output.  In addition, acpidump can disassemble some con-
     tents of the tables in AML (ACPI Machine Language) and dump them in ASL
     (ACPI Source Language).

     ACPI tables have an notably essential data block called DSDT (Differenti-
     ated System Description Table), that includes information used on the
     kernel side such as detailed information about PnP hardware, procedures
     for controlling power management support, and so on.  acpidump can ex-
     tract a DSDT data block from physical memory and store it into a DSDT da-
     ta file, and can also generate an output in ASL from a given DSDT data
     file.

     The options are as follows:

     -f dsdt_file_for_input
             Interpret AML data in DSDT from a file specified in
             dsdt_file_for_input and dumps them in ASL to standard output.

     -o prefix_for_output
             Store ACPI tables from physical memory into files specified by
             prefix_for_output.  The files generated will be of the form <pre-
             fix>.<sig>.<id>.  ``sig'' is the signature of the ACPI Table;
             ``id'' is unique for each table.

             The following are common table signatures (there may be others):
             RSDP, FACP, DSDT, SSDT, HPET, MCFG, SPMI, APIC, SPCR, SRAT, XSDT.

     When acpidump is invoked with no options, it will search ACPI tables from
     physical memory via a special file /dev/mem and dump them.  First, it
     searches Root System Description Pointer, that has a signature "RSD
     PTR ", and then gets RSDT (Root System Description Table), which includes
     a list of pointers to physical memory addresses for other tables.  RSDT
     itself and all other tables linked from RSDT are generically called SDT
     (System Description Table) and their header has the common format which
     consists of items such as Signature, Length, Revision, Checksum, OEMID,
     OEM Table ID, OEM Revision, Creator ID, and Creator Revision.  acpidump
     dumps the contents of these SDTs.  For further information about the for-
     mats of each table, see chapter 5: ACPI Software Programming Model,
     ``Advanced Configuration and Power Interface Specification Revision
     1.0b'' from Intel/Microsoft/Toshiba.

     There is always a pointer to a physical memory address in RSDT for FACP
     (Fixed ACPI Description Table).  FACP defines static system information
     about power management support (ACPI Hardware Register Implementation)
     such as interrupt mode (INT_MODEL), SCI interrupt number, SMI command
     port (SMI_CMD), and the location of ACPI registers.  FACP also has a
     pointer to a physical memory address for DSDT, which includes information
     used on the kernel side such as PnP, power management support, and so on.
     While the other tables are described in a fixed format, DSDT consists of
     AML data which is compiled from sources written in free formatted ASL, a
     description language for ACPI.  When acpidump outputs DSDT, it disassem-
     bles the AML data and translates them into ASL.

FILES
     /dev/mem

SEE ALSO
     mem(4)

     Intel, Microsoft, and Toshiba, Advanced Configuration and Power Interface
     Specification, Revision 1.0b.

HISTORY
     The acpidump command first appeared in OpenBSD 3.8.

AUTHORS
     Doug Rabson <dfr@FreeBSD.org>
     Mitsuru IWASAKI <iwasaki@FreeBSD.org>
     Yasuo YOKOYAMA <yokoyama@jp.FreeBSD.org>

     Some contributions made by:
     Chitoshi Ohsawa <ohsawa@catv1.ccn-net.ne.jp>,
     Takayasu IWANASHI <takayasu@wendy.a.perfect-liberty.or.jp>,
     Yoshihiko SARUMARU <mistral@imasy.or.jp>,
     Hiroki Sato <hrs@FreeBSD.org>,
     Jordan Hargrave <jordan@openbsd.org> and
     Michael Lucas <mwlucas@blackhelicopters.org>.

BUGS
     In the current implementation, acpidump doesn't dump any information of
     Firmware ACPI Control Structure (FACS) specified by a pointer in FACP.

OpenBSD 4.7                    October 30, 2008                              2
