summaryrefslogtreecommitdiffstats
path: root/usr.sbin/acpi
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Fix style breakage.takawata2004-03-051-0/+1
| | | | Noticed by: njl
* Make unprivilaged user can see battery info.takawata2004-03-041-2/+5
|
* I don't normally use my middle name, so remove it from attributions indes2004-01-251-2/+2
| | | | | man pages (though not from copyright notices). While I'm here, add email addresses where appropriate.
* - Use the standard .y and .l transformation rules -- this fixesru2004-01-131-16/+11
| | | | | | | | | | | the usual parallel make race in custom .y rules. - Fixed some style bugs. - Removed -v from YFLAGS. Prodded by: bde Reviewed by: bde, njl
* Use my newly acquired magic stick and put aslcompiler.y.h intoru2004-01-111-3/+4
| | | | | | | | | SRCS to teach make(1) that many .c sources are dependent on it. This fixes parallel (-j) builds and makes it possible to build individual .o files separately. While here, removed PROG from CLEANFILES -- it's taken care of already by bsd.prog.mk.
* Clean up the check for invalid X_DSDT and X_FACS portions of the FADT.njl2004-01-041-16/+25
| | | | | Add fadt_revision for telling if the FADT has correct 64 bit addresses, separate from whether the XSDT has legal 64 bit addresses.
* Add support for /etc/rc.suspend and /etc/rc.resume for ACPI. They arenjl2003-12-302-4/+31
| | | | | called directly from acpiconf(8). Change both scripts to take a subsystem (apm|acpi) and sleep level (suspend,standby|1-5) argument.
* Add a newline even if IAPC_BOOT_ARCH == 0.njl2003-10-291-1/+2
|
* Only print an end '}' if the field was non-zero (i.e. there were some flagsnjl2003-09-211-2/+4
| | | | to print).
* Correct typo in comment.njl2003-09-141-1/+1
|
* For dumping the DSDT (-o option), be sure to use the X_DSDT address ifnjl2003-09-141-1/+7
| | | | appropriate. This should be the last change to make ia64 work.
* Add the -i flag to acpiconf(8) to retrieve battery information.njl2003-09-132-29/+69
| | | | Rename a few structure elements.
* C2/C3 latency is in microseconds (us), not ms.njl2003-09-131-1/+1
|
* Only print various optional fields if they are non-zero. Always print thenjl2003-09-131-24/+31
| | | | required fields, no matter what their value.
* Reduce the default width for IO port GAS printing.njl2003-09-131-4/+4
| | | | Courtesy of: rwatson's chart presentation
* Add dumping of the ECDT table.njl2003-09-102-0/+29
| | | | Courtesy of: USENIX hall track
* o Workaround a bug where my T23 reports that it is ACPI 2.0x compatiblenjl2003-09-102-29/+70
| | | | | | | | but has invalid 64 bit pointers for FACS and DSDT. o Finish work to print all of the FADT and FACS. o Resort the comment generating functions. Submitted by: marcel Courtesy of: BSDcon back wall
* Add support for ACPI 2.x and the XSDT.njl2003-09-091-25/+77
| | | | Submitted by: marcel
* Rename FACP to FADT throughout.njl2003-09-094-111/+206
| | | | | | | 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.
* Now that amldb(8) is no longer needed by acpidump, remove the last vestigesnjl2003-08-2826-7607/+0
| | | | | of the original userland ACPI implementation. amldb is still available from the devel/acpicatools port.
* Modify acpidump to use iasl(8) as the backend for disassembling AML.njl2003-08-288-2086/+366
| | | | | Also clean up the output of dumped tables. Update the man page for the new usage. Make WARNS=6 clean.
* Remove the band-aid to make these compile on amd64/ia64.njl2003-08-112-12/+2
|
* Apparently I limited my testing of the ductape and bubblegum solutionmarcel2003-08-092-1/+7
| | | | | | | to acpidb. The same problem exists in iasl. Add JIT patching there too. Add a comment to both makefiles to increase the chance that both kludges are removed when a real solution is committed.
* Perform first-aid: unbreak the build for amd64 and ia64 by patchingmarcel2003-08-091-1/+5
| | | | | | | osunixxf.c on the fly. This avoids having to pull it from the vendor branch or otherwise pollute the repository with new short-lived files. This should hold until the real fix arrives.
* Hook acpidb(8) and iasl(8) up to the build and unhook amldb(8). It willnjl2003-08-081-1/+1
| | | | be going away after a short while but still available in ports.
* Add man pages for acpidb and iaslnjl2003-08-072-0/+317
|
* Add the acpidb and iasl utilities. This is not yet hooked up to the build.njl2003-08-074-1/+595
| | | | Obtained from: acpicatools port by Iwasaki-san
* Hoo sed I kan spel?peter2003-08-021-1/+1
|
* Dump the HPET information block.peter2003-08-022-0/+38
| | | | | | | | | | | | What is the HPET I hear you ask? It is the High Precision Event Timer that is supposed to supplement and eventually replace the 8254 timer and the RTC periodic interrupts. Among other things, it is 64 bit (can be run in 32 bit mode for 32 bit cpus), and is suitable as a replacement for the ACPI timer on SMP systems (the specs are much better) and as a replacement for the ITC based synthetic clock for on ia64 systems. It seems IA64 and AMD64 systems tend to have this. It is likely to start showing up in i386 systems if it isn't already on some of them.
* Allow sleep states to be specified as S1, S2, ...njl2003-07-282-1/+5
| | | | This is used by zzz(8).
* Support functions for the new ACPI import.njl2003-04-291-2/+1
| | | | | | | | | | | * AcpiOsDerivePciId(): finds a bus number, given the slot/func and the acpi parse tree. * AcpiOsPredefinedOverride(): use the sysctl hw.acpi.os_name to override the value for _OS. Ideas from: takawata, jhb Reviewed by: takawata, marcel Tested on: i386, ia64
* Fix a warning about deprecated string literals.njl2003-04-151-8/+8
| | | | Reviewed by: diff
* Add code to parse the contents of an ACPI MADT table and to dump itsjhb2003-01-081-0/+176
| | | | | | | contents in the form of a comment in the acpidump output. The output is not in the prettiest output, but it does work correctly. Approved by: marcel
* Add structure definitions for the various items in a ACPI Multiplejhb2003-01-081-0/+105
| | | | | | APIC Descriptor Table (MADT) which has the signature 'ACPI'. Approved by: marcel
* english(4) police.schweikh2002-12-271-2/+2
|
* o Use sysctl machdep.acpi_root to get the physical address of themarcel2002-12-194-17/+42
| | | | | | | | | | | 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.
* mdoc(7) police: markup fixes.ru2002-11-271-9/+9
| | | | Approved by: re
* Use __packed.jhb2002-10-091-5/+5
|
* Only include parent directory Makefile.inc if it exists. Now you canjhb2002-09-171-1/+3
| | | | cvs co acpi and build acpi utilities w/o needing the usr.sbin Makefile.inc.
OpenPOWER on IntegriCloud