summaryrefslogtreecommitdiff
path: root/usr.sbin/acpi/acpidump/acpi_user.c
Commit message (Collapse)AuthorAgeFilesLines
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326276
* Fix a long standing logic bug introduced in r167814. The code was added toJung-uk Kim2013-05-311-1/+1
| | | | | | | | | | get RSDP from loader(8) hint via kenv(2) but the bug nullified the new code and we always fell back to the previous method, i. e., sysctlbyname(3). MFC after: 3 days Notes: svn path=/head/; revision=251186
* More -Wmissing-variable-declarations fixes.Ed Schouten2012-10-191-1/+1
| | | | | | | | | | | | | | | | | | | In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'. Notes: svn path=/head/; revision=241737
* Merge ACPICA 20100702.Jung-uk Kim2010-07-061-1/+1
| | | | Notes: svn path=/head/; revision=209746
* - Use the headers from ACPI-CA to define various constants and structuresJohn Baldwin2009-08-251-22/+26
| | | | | | | | | | | | | | | for table layouts, etc. rather than homerolling our own structures and constants in acpidump.h. - Verify the extended checksum on the RSDP. - Handle new ACPI 3.0 fields in MADT including X2APIC entries and UIDs for local SAPICs. - Add handling for new ACPI 3.0 flags in the FADT. Reviewed by: jkim MFC after: 1 month Notes: svn path=/head/; revision=196555
* Fix acpidump(8) on ia64. Revision 1.13 introduced an uninitializedMarcel Moolenaar2007-07-281-0/+2
| | | | | | | | | | variable bug that's hidden by the precense of the hint_acpi_0_rsdp hint on 386 and amd64. There's never a need for such hint on ia64. Approved by: re (kensmith) Notes: svn path=/head/; revision=171642
* Catch up with ACPI-CA 20070320 import.Jung-uk Kim2007-03-221-10/+14
| | | | Notes: svn path=/head/; revision=167814
* Unify the start/size parameters for the RSDP search area. Don't botherNate Lawson2004-05-281-1/+3
| | | | | | | | | trying to exclude the top end of the range since it should hurt to overlap by 4 bytes in the off-chance the RSDP signature appears incorrectly at the very top of our search space. Notes: svn path=/head/; revision=129808
* Use the correct location of the EBDA for searching for the RSDP.Nate Lawson2004-05-251-17/+29
| | | | | | | | | The EBDA is the 1 KB area addressed by the 16 bit pointer at 0x40E. Pointed out by: robert.moore AT intel.com Notes: svn path=/head/; revision=129702
* If the revision is 0, don't trust the length in the RSDP. Instead assumeNate Lawson2004-05-161-2/+7
| | | | | | | an ACPI version 1.0 length. Notes: svn path=/head/; revision=129278
* Read in the entire RSDP but only run the standard checksum over theNate Lawson2004-05-161-7/+12
| | | | | | | | | version 1 header. Add comments to explain what we're doing here better. Reported by: Alex Vasylenko <lxv@omut.org> Notes: svn path=/head/; revision=129272
* Instead of scanning the entire lower 1 MB of RAM, only scan locationsNate Lawson2004-05-141-29/+42
| | | | | | | | | | | | | where the RSD PTR can actually occur. According to section 5.2.2 of the ACPI spec, we only consider two regions for the base address: 1. EBDA (0x0 - 0x3FF) 2. High memory (0xE0000 - 0xFFFFF) I don't know whether this fixes any actual problems but is more correct. Notes: svn path=/head/; revision=129230
* Minor style issues.Dag-Erling Smørgrav2004-05-101-2/+2
| | | | Notes: svn path=/head/; revision=129102
* Modify acpidump to use iasl(8) as the backend for disassembling AML.Nate Lawson2003-08-281-33/+26
| | | | | | | | Also clean up the output of dumped tables. Update the man page for the new usage. Make WARNS=6 clean. Notes: svn path=/head/; revision=119515
* o Use sysctl machdep.acpi_root to get the physical address of theMarcel Moolenaar2002-12-191-13/+34
| | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=108082
* Fix UserTerms disassembling. Now that dumped ASL can be compiled withMitsuru IWASAKI2001-10-221-8/+5
| | | | | | | | | | | | | | 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) Notes: svn path=/head/; revision=85323
* Remove dependence on old acpi driver from acpi userland tools.Mitsuru IWASAKI2000-11-081-2/+0
| | | | | | | | | | | | | - 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. Notes: svn path=/head/; revision=68475
* Update include paths for new header locations.Mike Smith2000-09-301-1/+2
| | | | | | | Submitted by: iwasaki Notes: svn path=/head/; revision=66490
* import acpidump(8) from ACPI For FreeBSD project.Mitsuru IWASAKI2000-08-311-0/+165
Obtained from: ACPI For FreeBSD project Notes: svn path=/cvs2svn/branches/ACPI4FREEBSD/; revision=65285