summaryrefslogtreecommitdiffstats
path: root/usr.sbin/acpi
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Add sleep state explanation.takawata2002-09-161-4/+10
| | | | Requested by: murray at Cafe in Tokyo.
* mdoc(7) police: Removed redundant .Ns calls.ru2002-08-131-1/+1
|
* The .Nm utilitycharnier2002-07-143-13/+18
|
* Resolve conflicts arising from the ACPI CA 20020611 import.iwasaki2002-07-091-1/+1
|
* Fix bug on method local named object related panic and Bankfieldtakawata2002-03-021-1/+17
| | | | operation.
* mdoc(7) police: kill WEOL and HSB, tidy up the AUTHORS section.ru2002-01-101-4/+6
|
* Add support for decoding Buffer objects that contain PnP/ACPI resourcemsmith2002-01-024-28/+406
| | | | | | | | 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.
* Make the error messaging more helpful.cjc2001-11-301-9/+11
| | | | | | PR: 31483 Approved by: iwasaki, ru MFC after: 4 days
* Collect multi name handling.takawata2001-10-232-0/+4
| | | | Reported by : Stephan Kulow <coolo@caldera.de>
* Fix UserTerms disassembling. Now that dumped ASL can be compiled withiwasaki2001-10-2210-35/+266
| | | | | | | | | | | 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)
* Fix typo.dd2001-09-051-1/+1
| | | | | PR: 30342 Submitted by: Giorgos Keramidas <charon@labs.gr>
OpenPOWER on IntegriCloud