summaryrefslogtreecommitdiffstats
path: root/sys/modules/acpi
Commit message (Collapse)AuthorAgeFilesLines
* Include "../Makefile.inc" to propagate the configuration to subdirectories.nyan2004-01-131-0/+3
|
* Hook up acpi_toshibanjl2004-01-121-1/+1
|
* Add the ACPI Toshiba extras driver (hotkeys, LCD backlight, video output,njl2004-01-111-0/+9
| | | | | | forced fan control, and CPU throttling). Submitted by: Hiroyuki Aizu <aizu@navi.org>
* Always clean all files, including ones under ACPI_DEBUG when doing anjl2004-01-081-7/+9
| | | | "make clean".
* Use double quotes instead of single quotes for echos to build optionsbde2003-12-291-1/+1
| | | | | headers as in most other modules Makefiles (5 yesterday, none now). Fixed any simple nearby style bugs (not many).
* Move the acpi module down a directory. This will allow us to importnjl2003-12-242-76/+81
| | | | other ACPI-specific drivers into sys/modules/acpi/.
* Remove SMP option support from building the ACPI module as it is no longerjhb2003-12-051-3/+0
| | | | | | | needed. Approved by: re (murray) Requested by: njl
* Add madt.c to the list of sources for i386.jhb2003-12-031-0/+3
| | | | Approved by: re (scottl / blanket)
* * Add acpi_pcpu_get_id(idx, *acpi_id, *cpu_id) which fetches thenjl2003-11-261-2/+5
| | | | | | | | | | | | | | | | | | | | | | idx'th present CPU with pc_acpi_id equal to *acpi_id. If *acpi_id does not match that processor's pc_acpi_id, return the value for ProcId derived from the MADT in *acpi_id. If pc_acpi_id is 0xffffffff, always override it with the value of *acpi_id. Finally, return pc_cpuid in *cpu_id and use that as our primary key. * Use pc_cpuid as our unique key because we know it is valid since MD code set it. The values for ProcId in the ASL and MADT don't match up on some machines (!), forcing us to fall back to ordered probing in that case. * Remove some #ifdef SMP since the refcount doesn't hurt performance and will be needed for dynamic _CST objects. Only one #ifdef SMP (for smp_rendezvous) remains. * Hook up SMP in the compile flags in the Makefile. Tested by: marcel, truckman Approved by: re (scottl)
* Implement Cx CPU idle states and updated throttling support.njl2003-11-151-1/+2
| | | | | | | | | | | | * Use the cpu_idle_hook() to do idling for C1-C3. * Use both _CST and the FADT to detect Cx states. * Use both _PTC and P_CNT for controlling throttling. * Add a notify handler to detect changes in _CST and _PSS * Call the _INI function for each processor if present. This will be done by ACPI-CA in the future. * Fix a bug on SMP systems where CPUs will attach multiple times if the bus is rescan. * Document new sysctls for controlling idling.
* Use the ACPICA AcpiEnterSleepStateS4bios instead of rolling our own. Thisnjl2003-08-291-3/+2
| | | | | | change also disables interrupts around non-S4 suspends whereas before we did not do this. Our version of AcpiEnterSleepStateS4bios was almost identical to the ACPICA version.
* Fix the ACPI_DEBUG build for the non-module case. Move the #define intonjl2003-07-151-1/+1
| | | | | | | acfreebsd.h and remove it from the Makefile. Now ACPI_DEBUG implies ACPI_DISASSEMBLER. Noticed by: marcel
* Fix build with ACPI_DEBUG option.njl2003-07-141-2/+2
| | | | Reported by: Mark Santcroos <marks@ripe.net>, des+tinderbox
* Add an ACPI to ISA psuedo bridge driver. It attaches an isab(4) device tojhb2003-07-081-1/+1
| | | | | | | | | ACPI nodes with the plug and play ID's defined for a "Generic ISA Bus Device" as defined in section 10.7 of the ACPI 2.0 specification. This gives machines like the Libretto that contain a fake ISA bus that is not connected via a PCI-ISA bridge an ISA bus for ISA devices to attach to. Tested by: markm
* Support functions for the new ACPI import.njl2003-04-291-18/+17
| | | | | | | | | | | * 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
* Add code for ACPI PCI link object manipulation.iwasaki2002-10-051-0/+1
| | | | | | | | | This allocate the best IRQ to boot-disable devices (have IRQ 0). Allocated IRQ will be used for PCI interrupt routing when ACPI is enabled. Note that verbose messaging enabled for the time being so that people can easily notice the strange behavior if it happened.
* Removed explicit rule for creating a null opt_bus.h. kmod.mk does thisbde2002-08-271-4/+2
| | | | | | | | automatically once opt_foo.h is in SRCS, modulo some carelessness in removing garbage in stale versions of opt_foo.h (touch(1) should not be used to create opt_foo.h in kmod.mk or elsewhere). Cleaned up nearby rule for creating opt_ddb.h.
* Have to create opt_bus.h for sys/bus.h to be happy. *sigh*jhb2002-08-261-1/+3
| | | | Noticed by: imp and others
* Oops, forgot to hook up the ACPI PCI bus in the module.jhb2002-08-261-3/+3
| | | | Noticed by: imp
* Hook up the new ACPI PCI bus and catch up to ACPI PCI bridge driver changes.jhb2002-08-261-1/+1
|
* Resolve conflicts arising from the ACPI CA 20020725 import.iwasaki2002-07-301-16/+26
|
* Resolve conflicts arising from the ACPI CA 20020611 import.iwasaki2002-07-091-1/+1
|
* Add generalized power profile code.iwasaki2002-03-041-1/+1
| | | | | | | | | | | | | This makes other power-management system (APM for now) to be able to generate power profile change events (ie. AC-line status changes), and other kernel components, not only the ACPI components, can be notified the events. - move subroutines in acpi_powerprofile.c (removed) to kern/subr_power.c - call power_profile_set_state() also from APM driver when AC-line status changes - add call-back function for Crusoe LongRun controlling on power profile changes for a example
* Add OS layer ACPI mutex and threading support.iwasaki2001-12-221-0/+6
| | | | | | | | | | | | | | | | | | - Temporary fix a bug of Intel ACPI CA core code. - Add OS layer ACPI mutex support. This can be disabled by specifying option ACPI_NO_SEMAPHORES. - Add ACPI threading support. Now that we have a dedicate taskqueue for ACPI tasks and more ACPI task threads can be created by specifying option ACPI_MAX_THREADS. - Change acpi_EvaluateIntoBuffer() behavior slightly to reuse given caller's buffer unless AE_BUFFER_OVERFLOW occurs. Also CM battery's evaluations were changed to use acpi_EvaluateIntoBuffer(). - Add new utility function acpi_ConvertBufferToInteger(). - Add simple locking for CM battery and temperature updating. - Fix a minor problem on EC locking. - Make the thermal zone polling rate to be changeable. - Change minor things on AcpiOsSignal(); in ACPI_SIGNAL_FATAL case, entering Debugger is easier to investigate the problem rather than panic.
* Add S4BIOS sleep (BIOS hibernation) and DSDT overriding support.iwasaki2001-11-061-0/+1
| | | | | | | | | | | | | | - Add S4BIOS sleep implementation. This will works well if MIB hw.acpi.s4bios is set (and of course BIOS supports it and hibernation is enabled correctly). - Add DSDT overriding support which is submitted by takawata originally. If loader tunable acpi_dsdt_load="YES" and DSDT file is set to acpi_dsdt_name (default DSDT file name is /boot/acpi_dsdt.aml), ACPI CA core loads DSDT from given file rather than BIOS memory block. DSDT file can be generated by iasl in ports/devel/acpicatools/. - Add new files so that we can add our proposed additional code to Intel ACPI CA into these files temporary. They will be removed when similar code is added into ACPI CA officially.
* Update to reflect files added/removed with the 20011018 ACPI CA update.msmith2001-10-311-2/+3
|
* Add APM compatibility feature to ACPI.iwasaki2001-10-261-2/+2
| | | | | | | | | | | | | | | | | This emulates APM device node interface APIs (mainly ioctl) and provides APM services for the applications. The goal is to support most of APM applications without any changes. Implemented ioctls in this commit are: - APMIO_SUSPEND (mapped ACPI S3 as default but changable by sysctl) - APMIO_STANDBY (mapped ACPI S1 as default but changable by sysctl) - APMIO_GETINFO and APMIO_GETINFO_OLD - APMIO_GETPWSTATUS With above, many APM applications which get batteries, ac-line info. and transition the system into suspend/standby mode (such as wmapm, xbatt) should work with ACPI enabled kernel (if ACPI works well :-) Reviewed by: arch@, audit@ and some guys
* Update list of sources to match 20010920 snapshot.msmith2001-10-041-2/+2
|
* Use MACHINE_ARCH instead of MACHINE to fix pc98 module.nyan2001-09-061-3/+3
|
* Update for slightly changed ACPI OSD module. Make debugging code conditionalmsmith2001-08-301-13/+22
| | | | on ACPI_DEBUG, so we can set it in /etc/make.conf.
* Add ACPI S2-S4BIOS Suspend/Resume code.takawata2001-07-201-1/+6
| | | | | | Some problems may remain. Reviewed by:iwasaki
* Ha! This time, I remembered the ACPI module. Update the sources listmsmith2001-07-071-4/+4
| | | | to reflect recent changes in the code.
* Follow Mike's commit by adding acpi_powerres.c.takawata2001-06-281-1/+1
|
* Fix include path for recent acpica update.takawata2001-05-301-1/+1
|
* New files for the ACPI CA 20010518 update.msmith2001-05-291-28/+24
|
* Zap some bad examples:peter2001-02-041-3/+0
| | | | | | opt_foo.h: touch opt_foo.h .. is unnecessary - kmod.mk does this for us.
* Update the module Makefile to reflect the state of things from the lastscottl2001-01-311-4/+4
| | | | | | acpi-ca import. Approved by: msmith
* Use a consistent style and one much closer to the rest of /usr/srcobrien2001-01-061-43/+42
|
* Add ACPI AC adaptor and ACPI Control Method Battery.takawata2000-12-221-0/+1
| | | | And install notify handler for thermal zone .
* Update Makefile to follow acpica-1115 import.takawata2000-12-051-1/+1
|
* Makefile for ACPI CA base acpi driver kernel module.takawata2000-10-311-0/+51
This module is intended to be loaded from /boot/loader,not from kldload(8).
OpenPOWER on IntegriCloud