aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/acpi
Commit message (Collapse)AuthorAgeFilesLines
* Update to reflect reality:Rui Paulo2008-05-201-3/+8
| | | | | | | | | | * iasl(8) supports ACPI 3.0b. * Add new options. MFC after: 1 week Notes: svn path=/head/; revision=179153
* These are the things that the tinderbox has problems with because itJohn Birrell2007-11-201-0/+1
| | | | | | | | | | | doesn't use the default CFLAGS which contain -fno-strict-aliasing. Until the code is cleaned up, just add -fno-strict-aliasing to the CFLAGS of these for the tinderboxes' sake, allowing the rest of the tree to have -Werror enabled again. Notes: svn path=/head/; revision=173766
* Use an explicit pointer cast since NULL isn't guaranteed to be definedJohn Birrell2007-11-181-1/+1
| | | | | | | | | as a pointer type. Submitted by: Christoph Mallon - christoph mallon at gmx de Notes: svn path=/head/; revision=173726
* Use a NULL instead of a zero to avoid a compiler warning about a missing ↵John Birrell2007-11-181-1/+1
| | | | | | | sentinel. Notes: svn path=/head/; revision=173723
* 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
* Update the suspend/resume user API while maintaining backwards compat.Nate Lawson2007-06-211-28/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improvements: * /etc/rc.suspend,rc.resume are always run, no matter the source of the suspend request (user or kernel, apm or acpi) * suspend now requires positive user acknowledgement. If a user program wants to cancel the suspend, they can. If one of the user programs hangs or doesn't respond within 10 seconds, the system suspends anyway. * /dev/apm is clonable, allowing multiple listeners for suspend events. In the future, xorg-server can use this to be informed about suspend even if there are other listeners (i.e. apmd). Changes: * Two new ACPI ioctls: REQSLPSTATE and ACKSLPSTATE. Request begins the process of suspending by notifying all listeners. acpi is monitored by devd(8) and /dev/apm listener(s) are also counted. Users register their approval or disapproval via Ack. If anyone disapproves, suspend is vetoed. * Old user programs or kernel modules that used SETSLPSTATE continue to work. A message is printed once that this interface is deprecated. * acpiconf gains the -k flag to ack the suspend request. This flag is undocumented on purpose since it's only used by /etc/rc.suspend. It is not intended to be a permanent change and will be removed once a better power API is implemented. * S5 (power off) is no longer supported via acpiconf -s 5 or apm -z/-Z. This restores previous behavior of halt/shutdown -p being the interface. * Miscellaneous improvements to error reporting Approved by: re Notes: svn path=/head/; revision=170976
* Correct HPET header handling.Takanori Watanabe2007-03-272-3/+3
| | | | | | | MFC after: 7 days Notes: svn path=/head/; revision=167945
* Catch up with ACPI-CA 20070320 import.Jung-uk Kim2007-03-224-40/+39
| | | | Notes: svn path=/head/; revision=167814
* Document exact command preferred for sending ASL as part of bug reports.Nate Lawson2007-03-142-0/+8
| | | | Notes: svn path=/head/; revision=167579
* Catch up with ACPI-CA 20051021 importJung-uk Kim2005-11-014-63/+108
| | | | Notes: svn path=/head/; revision=151948
* Correct column alignment.Nate Lawson2005-07-281-1/+1
| | | | Notes: svn path=/head/; revision=148493
* Fix nits in reporting battery information and add battery status reporting.Nate Lawson2005-07-281-35/+54
| | | | | | | | | | | Rate units are mA/mW, not mAh/mWh. Get full battery status and time remaining from ACPIIO_BATT_GET_BATTINFO instead of BST. PR: bin/83672 MFC after: 2 days Notes: svn path=/head/; revision=148491
* Use the current BST/BIF ioctls, not the deprecated ones.Nate Lawson2005-07-221-2/+2
| | | | | | | MFC after: 2 days Notes: svn path=/head/; revision=148310
* Fix a small style problem and add a __packed pragma for safety.Scott Long2005-02-171-1/+1
| | | | Notes: svn path=/head/; revision=142028
* Note addition of MCFG support.Nate Lawson2005-02-141-1/+2
| | | | Notes: svn path=/head/; revision=141916
* Add support for parsing MCFG tables.Scott Long2005-02-142-0/+36
| | | | Notes: svn path=/head/; revision=141905
* Fixed the misplaced $FreeBSD$.Ruslan Ermilov2005-02-091-1/+1
| | | | Notes: svn path=/head/; revision=141580
* Sort sections.Ruslan Ermilov2005-01-181-16/+16
| | | | Notes: svn path=/head/; revision=140442
* Catch up with the kernel and set any global variables we are using, inNate Lawson2005-01-031-0/+6
| | | | | | | | | particular, enabling interpreter workarounds for bad ASL. MFC after: 1 day Notes: svn path=/head/; revision=139602
* o Report charge/discharge rate and remaining capacity in the properWarner Losh2004-11-241-7/+38
| | | | | | | | | | units (as specified in _BIF). (noted by Bruno Ducrot) o In looking in the standard, if the cap numbers are 0xffffffff, then acpi is reporting unknown for that field. Report unknown numbers properly. o Update the state to reflect charging, discharging and critical. Notes: svn path=/head/; revision=138049
* phk jumped the gun and posted what looks like a preliminary version ofWarner Losh2004-11-241-4/+8
| | | | | | | | | | | my patches for this information. Commit my more complete version. This version isn't complete yet, since some details aren't handled right just yet. Poaching by: phk Notes: svn path=/head/; revision=138047
* Dump current status of battery as well.Poul-Henning Kamp2004-11-241-0/+8
| | | | | | | | The -i code doesn't really belong here in the first place I would think, but keep it together for now. Notes: svn path=/head/; revision=138044
* Minor style(9) before possible larger commits.Warner Losh2004-11-161-4/+2
| | | | Notes: svn path=/head/; revision=137763
* Somehow I missed this last night, acpi_init() doesn't return an int.Philip Paeps2004-11-131-1/+1
| | | | | | | Spotted by: Randy Bush <randy@psg.com> Notes: svn path=/head/; revision=137666
* With the addition of a proper prototype, this is now WARNS=6 clean.Philip Paeps2004-11-132-1/+2
| | | | Notes: svn path=/head/; revision=137638
* Two uint32_t casts crept in where they shouldn't have.Philip Paeps2004-11-131-2/+2
| | | | | | | ACPI_TYPE_INTEGER can be 64 bits wide in acpi v2. Notes: svn path=/head/; revision=137637
* Change some formats and add some casts to make thisPhilip Paeps2004-11-132-22/+20
| | | | | | | | | | WARNS=2 clean, and mark it as such. PR: 71672 (partly) Reviewed by: njl Notes: svn path=/head/; revision=137636
* Update a comment that was outdated.Nate Lawson2004-10-051-1/+1
| | | | Notes: svn path=/head/; revision=136168
* Back out the -s flag and go back to dumping the SSDTs by default.Nate Lawson2004-10-054-22/+6
| | | | Notes: svn path=/head/; revision=136165
* Update the man page for the -s flag and other changes that we've missed.Nate Lawson2004-10-051-5/+19
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=136129
* Add the -s flag to make dumping SSDTs optional (disabled by default).Nate Lawson2004-10-053-5/+16
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=136128
* When one entry in the RSDT is corrupted, just skip it instead of bailing out.Nate Lawson2004-08-181-2/+5
| | | | | | | | | | | | This gets us the info we need on systems which have proprietary tables that don't match the standard. For instance, an AMI system has a table of type "OEMB" with an invalid checksum. Tested by: Maxim Maximov <mcsi_at_mcsi.pp.ru> MFC after: 1 day Notes: svn path=/head/; revision=133935
* Update man page for supported table types.Nate Lawson2004-08-181-5/+2
| | | | | | | MFC after: 1 day Notes: svn path=/head/; revision=133934
* Remove the ACPIIO_ENABLE and ACPIIO_DISABLE ioctls as well as allNate Lawson2004-08-182-31/+4
| | | | | | | | | | | | | callers. These ioctls attempted to enable and disable the ACPI interpreter at runtime. In practice, it is not possible to boot with ACPI and then disable it on many systems and trying to do so can cause crashes, interrupt storms, etc. Binary compatibility with userland is retained. MFC after: 2 days Notes: svn path=/head/; revision=133933
* We now handle SSDT tables. Remove a reference from the BUGS sectionMarcel Moolenaar2004-08-161-2/+4
| | | | | | | | | | | and explicitly mention SSDT when we talk about the DSDT so that people don't have to guess whether it includes the SSDT. While here, touch date. Pointed out by: le@ Notes: svn path=/head/; revision=133883
* Comment out the ability to enable/disable ACPI at runtime. This appearsNate Lawson2004-08-151-0/+4
| | | | | | | | to not work reliably and crash some systems. It is not supported at all on others. Pending discussion, the underlying ioctls will be removed. Notes: svn path=/head/; revision=133788
* Add support for SSDT tables. Dumping or disassembling the DSDT willMarcel Moolenaar2004-08-133-20/+58
| | | | | | | | | | | | 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@ Notes: svn path=/head/; revision=133679
* Removed trailing whitespace.Ruslan Ermilov2004-07-021-2/+2
| | | | Notes: svn path=/head/; revision=131472
* Also print out the standard header for FADT since it has one.Nate Lawson2004-06-301-7/+12
| | | | Notes: svn path=/head/; revision=131307
* Assorted markup, grammar, and spelling fixes.Ruslan Ermilov2004-06-131-38/+57
| | | | Notes: svn path=/head/; revision=130420
* Tidy up markup.Ruslan Ermilov2004-06-061-19/+24
| | | | Notes: svn path=/head/; revision=130159
* Expand contraction.Ruslan Ermilov2004-06-041-1/+1
| | | | Notes: svn path=/head/; revision=130083
* Markup nit: make the list of options look better.Ruslan Ermilov2004-06-041-1/+1
| | | | Notes: svn path=/head/; revision=130082
* Unify the start/size parameters for the RSDP search area. Don't botherNate Lawson2004-05-282-4/+6
| | | | | | | | | 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-252-19/+31
| | | | | | | | | 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
* Add suspend/resume support to the debugger.Nate Lawson2004-05-251-1/+1
| | | | Notes: svn path=/head/; revision=129693
* 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-142-29/+53
| | | | | | | | | | | | | 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-103-6/+6
| | | | Notes: svn path=/head/; revision=129102