summaryrefslogtreecommitdiffstats
path: root/usr.sbin/acpi
Commit message (Collapse)AuthorAgeFilesLines
* These are the things that the tinderbox has problems with because itjb2007-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.
* Use an explicit pointer cast since NULL isn't guaranteed to be definedjb2007-11-181-1/+1
| | | | | | as a pointer type. Submitted by: Christoph Mallon - christoph mallon at gmx de
* Use a NULL instead of a zero to avoid a compiler warning about a missing ↵jb2007-11-181-1/+1
| | | | sentinel.
* Fix acpidump(8) on ia64. Revision 1.13 introduced an uninitializedmarcel2007-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)
* Update the suspend/resume user API while maintaining backwards compat.njl2007-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
* Correct HPET header handling.takawata2007-03-272-3/+3
| | | | MFC after: 7 days
* Catch up with ACPI-CA 20070320 import.jkim2007-03-224-40/+39
|
* Document exact command preferred for sending ASL as part of bug reports.njl2007-03-142-0/+8
|
* Catch up with ACPI-CA 20051021 importjkim2005-11-014-63/+108
|
* Correct column alignment.njl2005-07-281-1/+1
|
* Fix nits in reporting battery information and add battery status reporting.njl2005-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
* Use the current BST/BIF ioctls, not the deprecated ones.njl2005-07-221-2/+2
| | | | MFC after: 2 days
* Fix a small style problem and add a __packed pragma for safety.scottl2005-02-171-1/+1
|
* Note addition of MCFG support.njl2005-02-141-1/+2
|
* Add support for parsing MCFG tables.scottl2005-02-142-0/+36
|
* Fixed the misplaced $FreeBSD$.ru2005-02-091-1/+1
|
* Sort sections.ru2005-01-181-16/+16
|
* Catch up with the kernel and set any global variables we are using, innjl2005-01-031-0/+6
| | | | | | particular, enabling interpreter workarounds for bad ASL. MFC after: 1 day
* o Report charge/discharge rate and remaining capacity in the properimp2004-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.
* phk jumped the gun and posted what looks like a preliminary version ofimp2004-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
* Dump current status of battery as well.phk2004-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.
* Minor style(9) before possible larger commits.imp2004-11-161-4/+2
|
* Somehow I missed this last night, acpi_init() doesn't return an int.philip2004-11-131-1/+1
| | | | Spotted by: Randy Bush <randy@psg.com>
* With the addition of a proper prototype, this is now WARNS=6 clean.philip2004-11-132-1/+2
|
* Two uint32_t casts crept in where they shouldn't have.philip2004-11-131-2/+2
| | | | ACPI_TYPE_INTEGER can be 64 bits wide in acpi v2.
* Change some formats and add some casts to make thisphilip2004-11-132-22/+20
| | | | | | | WARNS=2 clean, and mark it as such. PR: 71672 (partly) Reviewed by: njl
* Update a comment that was outdated.njl2004-10-051-1/+1
|
* Back out the -s flag and go back to dumping the SSDTs by default.njl2004-10-054-22/+6
|
* Update the man page for the -s flag and other changes that we've missed.njl2004-10-051-5/+19
| | | | MFC after: 3 days
* Add the -s flag to make dumping SSDTs optional (disabled by default).njl2004-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
* When one entry in the RSDT is corrupted, just skip it instead of bailing out.njl2004-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
* Update man page for supported table types.njl2004-08-181-5/+2
| | | | MFC after: 1 day
* Remove the ACPIIO_ENABLE and ACPIIO_DISABLE ioctls as well as allnjl2004-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
* We now handle SSDT tables. Remove a reference from the BUGS sectionmarcel2004-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@
* Comment out the ability to enable/disable ACPI at runtime. This appearsnjl2004-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.
* Add support for SSDT tables. Dumping or disassembling the DSDT willmarcel2004-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@
* Removed trailing whitespace.ru2004-07-021-2/+2
|
* Also print out the standard header for FADT since it has one.njl2004-06-301-7/+12
|
* Assorted markup, grammar, and spelling fixes.ru2004-06-131-38/+57
|
* Tidy up markup.ru2004-06-061-19/+24
|
* Expand contraction.ru2004-06-041-1/+1
|
* Markup nit: make the list of options look better.ru2004-06-041-1/+1
|
* Unify the start/size parameters for the RSDP search area. Don't bothernjl2004-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.
* Use the correct location of the EBDA for searching for the RSDP.njl2004-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
* Add suspend/resume support to the debugger.njl2004-05-251-1/+1
|
* If the revision is 0, don't trust the length in the RSDP. Instead assumenjl2004-05-161-2/+7
| | | | an ACPI version 1.0 length.
* Read in the entire RSDP but only run the standard checksum over thenjl2004-05-161-7/+12
| | | | | | version 1 header. Add comments to explain what we're doing here better. Reported by: Alex Vasylenko <lxv@omut.org>
* Instead of scanning the entire lower 1 MB of RAM, only scan locationsnjl2004-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.
* Minor style issues.des2004-05-103-6/+6
|
* Instead of using a static, check for the FADT revision before using it.njl2004-04-181-12/+20
| | | | | | This fixes a bug where acpidump -d crashed (but not -t -d). Submitted by: Alex Vasylenko <lxv@omut.org>
OpenPOWER on IntegriCloud