summaryrefslogtreecommitdiffstats
path: root/usr.sbin/acpi/acpidump/acpidump.c
Commit message (Collapse)AuthorAgeFilesLines
* Back out the -s flag and go back to dumping the SSDTs by default.njl2004-10-051-6/+2
|
* Add the -s flag to make dumping SSDTs optional (disabled by default).njl2004-10-051-3/+7
| | | | | | | | | Since we can only override the DSDT, a custom ASL dumped previously that contained SSDTs would result in lots of multiple definition errors. A longer-term fix involves adding the ability to override SSDTs to ACPI-CA. MFC after: 3 days
* Add support for SSDT tables. Dumping or disassembling the DSDT willmarcel2004-08-131-7/+10
| | | | | | | | | now include the contents if any SSDT table as well. This makes use of the property that one can concatenate the body of SSDT tables to the DSDT, updating the DSDT header (length and checksum) and end up with a larger and valid DSDT table. Hence, this also works with -f. Reviewed by: njl@
* Rename FACP to FADT throughout.njl2003-09-091-1/+1
| | | | | | | Update FADT for new fields including pm_profile, pstate_cnt, and cst_cnt. Add acpi_print_gas() for printing various address formats. Print FACS contents. Remove unused code.
* Modify acpidump to use iasl(8) as the backend for disassembling AML.njl2003-08-281-47/+79
| | | | | Also clean up the output of dumped tables. Update the man page for the new usage. Make WARNS=6 clean.
* o Use sysctl machdep.acpi_root to get the physical address of themarcel2002-12-191-1/+1
| | | | | | | | | | | RSDP. Scan the first 1MB on i386 if the sysctl fails, o Extend struct ACPIrsdp with the ACPI 2.0 fields which involves changing a prior reserved field into the ACPI revision, o Only calculate the RSDP checksum on the first 20 bytes to remain compatible with ACPI 1.0 tables; we don't check the extended checksum covering the whole table, o Use the length field in the RSDP to map the RSDP into the address space so that we don't have to know about future extensions here.
* Add support for decoding Buffer objects that contain PnP/ACPI resourcemsmith2002-01-021-3/+6
| | | | | | | | streams. Since the output is bulky, it's controlled by the '-r' option. Document this in the manpage, and clean up some awkward English a little.
* Fix UserTerms disassembling. Now that dumped ASL can be compiled withiwasaki2001-10-221-1/+2
| | | | | | | | | | | ports/devel/acpitools (iasl). - Merge AML parser to build ACPI namespace - Comment header info. out so that ASL compiler ignore them - Fix DSDT header size to be discarded when DSDT file is specified for input (acpidump and amldb) - Write DSDT header as well into DSDT file for output - Fix some trivial typo (Concatenate and SizeOf) - Remove DEBUG_FLAGS from Makefile (acpidump and amldb)
* Remove dependence on old acpi driver from acpi userland tools.iwasaki2000-11-081-3/+2
| | | | | | | | | | - acpiconf Replace include files from old acpi driver to acpica driver. New sleep type `4b' had been added (S4BIOS) for `-s' option. Of course this has no effect because driver doesn't support it for now :-) - acpidump All needed structs in sys/dev/acpi/*.h had been merged into local header file. No changes on its usage.
* Update include paths for new header locations.msmith2000-09-301-1/+2
| | | | Submitted by: iwasaki
* import acpidump(8) from ACPI For FreeBSD project.iwasaki2000-08-311-0/+103
Obtained from: ACPI For FreeBSD project
OpenPOWER on IntegriCloud