Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

iasl(8) [freebsd man page]

IASL(8) 						    BSD System Manager's Manual 						   IASL(8)

iasl -- Intel ACPI compiler/decompiler SYNOPSIS
iasl [-2cefghl] [-b type] [-d file] [-dc file] [-hc] [-hr] [-i type] [-ln] [-ls] [-oa] [-of] [-oi] [-on] [-ot] [-p prefix] [-s type] [-t type] [-vi] [-vo] [-vr] [-vs] [-x level] [-w level] input-file DESCRIPTION
The iasl utility is a compiler/decompiler for ACPI Source Language (ASL) and ACPI Machine Language (AML). Major features of iasl include: o Full support for the ACPI 3.0b Specification including ASL grammar elements and operators. o Extensive compiler syntax and semantic error checking, especially in the area of control methods. This reduces the number of errors that are not discovered until the AML code is actually interpreted (i.e., the compile-time error checking reduces the number of run-time errors). o Multiple types of output files, including formatted listing files with intermixed source, several types of AML files, and error messages. OPTIONS
-2 Emit ACPI 2.0 compatible ASL code. -b p|t|b Create compiler debug/trace file (*.txt). Types: Parse/Tree/Both. -c Parse only, no output generation. -d file Disassemble AML to ASL source code file (*.dsl). -dc file Disassemble AML and immediately compile it. (Obtain DSDT from current system if no input file.) -e Generate External() statements for unresolved symbols. -f Ignore errors, force creation of AML output file(s). -g Get ACPI tables and write to files (*.dat). -h Additional help and compiler debug options. -hc Display operators allowed in constant expressions. -hr Display ACPI reserved method names. -i a|c Create assembler or C include file (*.inc or *.h). -l Create mixed listing file (ASL source and AML) (*.lst). -ln Create namespace file (*.nsp). -ls Create combined source file (expanded includes) (*.src). -oa Disable all optimizations (compatibility mode). -of Disable constant folding. -oi Disable integer optimization to Zero/One/Ones. -on Disable named reference string optimization. -ot Display compile times. -p prefix Specify filename prefix for all output files (including .aml). -s a|c Create AML in assembler or C source file (*.asm or *.c). -t a|c Create AML in assembler or C hex table (*.hex). -vi Less verbose errors and warnings for use with IDEs. -vo Enable optimization comments. -vr Disable remarks. -vs Disable signon. -x level Set debug level for trace output. -w level Set warning level. SEE ALSO
acpi(4), acpidump(8) HISTORY
The iasl utility is provided with Intel ACPI-CA. It first appeared in FreeBSD 5.2. AUTHORS
The iasl utility was written by Intel. This manual page was written by Nate Lawson. BSD
May 20, 2008 BSD

Check Out this Related Man Page

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

acpidump -- dump ACPI tables and ASL SYNOPSIS
acpidump [-cdhstv] [-f dsdt_input] [-o dsdt_output] DESCRIPTION
The acpidump utility analyzes ACPI tables in physical memory and can dump them to a file. In addition, acpidump can call iasl(8) to disas- semble AML (ACPI Machine Language) found in these tables and dump them as ASL (ACPI Source Language) to stdout. ACPI tables have an essential data block (the DSDT, Differentiated 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. The acpidump utility can extract the DSDT data block from physical memory and store it into an output file and optionally also disassemble it. If any Secondary System Description Table (SSDT) entries exist, they will also be included in the output file and disassembly. When acpidump is invoked without the -f option, it will read ACPI tables from physical memory via /dev/mem. First it searches for the RSDP (Root System Description Pointer), which has the signature "RSD PTR ", and then gets the RSDT (Root System Description Table), which includes a list of pointers to physical memory addresses for other tables. The RSDT itself and all other tables linked from RSDT are generically called SDTs (System Description Tables) and their header has a common format which consists of items such as Signature, Length, Revision, Checksum, OEMID, OEM Table ID, OEM Revision, Creator ID and Creator Revision. When invoked with the -t flag, the acpidump utility dumps con- tents of the following tables: APIC BERT BOOT CPEP DBGP DSDT ECDT EINJ ERST FACS FADT HEST HPET MADT MCFG MSCT RSD PTR RSDT SBST SLIT SPCR SRAT TCPA WAET WDAT WDRT The RSDT contains a pointer to the physical memory address of the FACP (Fixed ACPI Description Table). The FACP defines static system infor- mation 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. The FACP also has a pointer to a physical memory address for the DSDT. While the other tables are fixed format, the DSDT consists of free-formatted AML data. OPTIONS
The following options are supported by acpidump: -c Dump unknown table data as characters instead of hex. -d Disassemble the DSDT into ASL using iasl(8) and print the results to stdout. -f dsdt_input Load the DSDT from the specified file instead of physical memory. Since only the DSDT is stored in the file, the -t flag may not be used with this option. -h Displays usage and exit. -o dsdt_output Store the DSDT data block from physical memory into the specified file. -s Skip tables with bad checksums. -t Dump the contents of the various fixed tables listed above. -v Enable verbose messages. FILES
/dev/mem EXAMPLES
If a developer requests a copy of your ASL, please use the following command to dump all tables and compress the result. # acpidump -dt | gzip -c9 > my_computer.asl.gz This example dumps the DSDT from physical memory to foo.dsdt. It also prints the contents of various system tables and disassembles the AML contained in the DSDT to stdout, redirecting the output to foo.asl. # acpidump -t -d -o foo.dsdt > foo.asl This example reads a DSDT file and disassembles it to stdout. Verbose messages are enabled. # acpidump -v -d -f foo.dsdt SEE ALSO
acpi(4), amldb(8), iasl(8) HISTORY
The acpidump utility first appeared in FreeBSD 5.0 and was rewritten to use iasl(8) for FreeBSD 5.2. AUTHORS
Doug Rabson <> Mitsuru IWASAKI <> Yasuo YOKOYAMA <> Nate Lawson <> Some contributions made by Chitoshi Ohsawa <>, Takayasu IWANASHI <>, Yoshihiko SARUMARU <>, Hiroki Sato <>, Michael Lucas <> and Michael Smith <>. BUGS
The current implementation does not dump some miscellaneous tables. BSD
February 17, 2011 BSD
Man Page