Revision tags: release/8.1.0_cvs, release/8.1.0, release/7.3.0_cvs, release/7.3.0, release/8.0.0_cvs, release/8.0.0 |
|
#
10b3b545 |
| 17-Sep-2009 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Merge from head
|
#
7e857dd1 |
| 12-Jun-2009 |
Oleksandr Tymoshenko <gonzo@FreeBSD.org> |
- Merge from HEAD
|
#
129d3046 |
| 05-Jun-2009 |
Jung-uk Kim <jkim@FreeBSD.org> |
Import ACPICA 20090521.
|
#
aaac7452 |
| 03-Jun-2009 |
Jung-uk Kim <jkim@FreeBSD.org> |
Chase ACPICA API changes (for kernel and boot loader).
|
Revision tags: release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0, release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0 |
|
#
2be4e471 |
| 22-Mar-2007 |
Jung-uk Kim <jkim@FreeBSD.org> |
Catch up with ACPI-CA 20070320 import.
|
Revision tags: release/6.2.0_cvs, release/6.2.0, release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0 |
|
#
1b951829 |
| 15-Apr-2006 |
Mitsuru IWASAKI <iwasaki@FreeBSD.org> |
Oops, untested code was included accidentally. Fixed.
|
#
858a52f4 |
| 15-Apr-2006 |
Mitsuru IWASAKI <iwasaki@FreeBSD.org> |
Import ACPI Dock Station support. Note that this is still very young. Additional detach implementaions (or maybe improvement) for other deivce drivers is required.
Reviewed by: njl, imp MFC after:
Import ACPI Dock Station support. Note that this is still very young. Additional detach implementaions (or maybe improvement) for other deivce drivers is required.
Reviewed by: njl, imp MFC after: 1 week
show more ...
|
#
c02106f3 |
| 26-Nov-2005 |
Nate Lawson <njl@FreeBSD.org> |
Add a locking stub to call acpi_cmbat_get_bif() now that it is directly run from the taskqueue. There should probably be a better way to do this later, but this suffices for now.
Submitted by: yong
Add a locking stub to call acpi_cmbat_get_bif() now that it is directly run from the taskqueue. There should probably be a better way to do this later, but this suffices for now.
Submitted by: yongari
show more ...
|
#
2010798d |
| 23-Nov-2005 |
Nate Lawson <njl@FreeBSD.org> |
Try to fix problems with periodic hangs by never directly calling _BIF. Instead, re-evaluate _BIF only when we get a notify and use the cached results. We also still evaluate _BIF once on boot. Als
Try to fix problems with periodic hangs by never directly calling _BIF. Instead, re-evaluate _BIF only when we get a notify and use the cached results. We also still evaluate _BIF once on boot. Also, optimize the init loop a little by only querying for a particular info if it's not valid.
MFC after: 2 days
show more ...
|
Revision tags: release/6.0.0_cvs, release/6.0.0 |
|
#
2a191126 |
| 11-Sep-2005 |
David E. O'Brien <obrien@FreeBSD.org> |
Canonize the include of acpi.h.
|
#
76f6fe4f |
| 23-Jul-2005 |
Nate Lawson <njl@FreeBSD.org> |
Rewrite the acpi_battery interface to allow for other battery types (i.e., smart battery) and fix various bugs found during the cleanup.
API changes: * kernel access: Access to individual batteries
Rewrite the acpi_battery interface to allow for other battery types (i.e., smart battery) and fix various bugs found during the cleanup.
API changes: * kernel access: Access to individual batteries is now via devclass_find("battery"). Introduce new methods ACPI_BATT_GET_STATUS (for _BST-formatted data) and ACPI_BATT_GET_INFO (for _BIF-formatted data). The helper function acpi_battery_get_battinfo() now takes a device_t instead of a unit # argument. If dev is NULL, this signifies all batteries.
* ioctl access: The ACPIIO_BATT_GET_TYPE and ACPIIO_BATT_GET_BATTDESC ioctls have been removed. Since there is now no need for a mapping between "virtual" unit and physical unit, usermode programs can just specify the unit directly and skip the old translation steps. In fact, acpiconf(8) was actually already doing this and virtual unit was the same as physical unit in all cases since there was previously only one battery type (acpi_cmbat). Additionally, we now map the ACPIIO_BATT_GET_BIF and ACPIIO_BATT_GET_BST ioctls for all batteries, if they provide the associated methods.
* apm compatibility device/ioctls: no change * sysctl: no change
Since most third-party applications use the apm(4) compat interface, there should be very few affected applications (if any).
Reviewed by: bruno MFC after: 5 days
show more ...
|
Revision tags: release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0 |
|
#
54640fac |
| 20-Dec-2004 |
Nate Lawson <njl@FreeBSD.org> |
Only report a critical battery level once until it's gone non-critical. An improvement would be to check all batteries for critical state before printing a message.
Reported by: Kevin Oberman (oberm
Only report a critical battery level once until it's gone non-critical. An improvement would be to check all batteries for critical state before printing a message.
Reported by: Kevin Oberman (oberman at es net)
show more ...
|
#
f8c60df7 |
| 02-Dec-2004 |
Mark Santcroos <marks@FreeBSD.org> |
Catch up with AcpiOsSleep() interface change. Catch up with some #define's renaming. Implement AcpiOsGetTimer() as per ACPI 3.0.
Approved by: njl MFC after: 1 week
|
Revision tags: release/5.3.0_cvs, release/5.3.0 |
|
#
a0885d3f |
| 11-Oct-2004 |
Nate Lawson <njl@FreeBSD.org> |
Notify the user when the battery is critically low. In the future, we may want to shut down here but the chance of BIOS vendors getting this wrong is high. They're only supposed to announce this wh
Notify the user when the battery is critically low. In the future, we may want to shut down here but the chance of BIOS vendors getting this wrong is high. They're only supposed to announce this when all batteries hit their critical level but past experience indicates we should be conservative about this for now.
show more ...
|
#
4c37803a |
| 17-Aug-2004 |
Nate Lawson <njl@FreeBSD.org> |
Fix a deadlock on boot for some systems where reading the battery status also generates a notify. Since we held the lock over this call, the notify never got to run and the battery status read never
Fix a deadlock on boot for some systems where reading the battery status also generates a notify. Since we held the lock over this call, the notify never got to run and the battery status read never returned. Document this also.
Tested by: Maxim Maximov <mcsi_at_mcsi.pp.ru> Approved by: re (scottl)
show more ...
|
#
98b2573f |
| 13-Aug-2004 |
Nate Lawson <njl@FreeBSD.org> |
MPSAFE locking
* Serialize ops in acpi_cmbat_notify_handler(), acpi_cmbat_ioctl(), acpi_cmbat_init_battery(), and acpi_cmbat_get_battinfo(). * Get the softc directly in acpi_cmbat_get_total_battin
MPSAFE locking
* Serialize ops in acpi_cmbat_notify_handler(), acpi_cmbat_ioctl(), acpi_cmbat_init_battery(), and acpi_cmbat_get_battinfo(). * Get the softc directly in acpi_cmbat_get_total_battinfo() rather than build an array of them. * Don't queue a _BIF query after receiving a notify. Since we clear the timespec, a _BIF query will be done in the context of the next caller. * Add asserts to leaf functions that operate on shared data. * Remove the bst/bif updating flags now that we hold the lock over the full query. * Explain various comments in more detail.
show more ...
|
#
021730ab |
| 16-Jul-2004 |
Nate Lawson <njl@FreeBSD.org> |
Use ACPI_ALL_NOTIFY instead of registering handlers separately.
|
#
9b7b2aef |
| 14-Jul-2004 |
Mark Santcroos <marks@FreeBSD.org> |
Some laptops report the "design-capacity" instead of the "real-capacity" when the battery is fully charged. That breaks some of the arithmetic in calculating the remaining capacity (ends up with more
Some laptops report the "design-capacity" instead of the "real-capacity" when the battery is fully charged. That breaks some of the arithmetic in calculating the remaining capacity (ends up with more than 100%). This commit makes sure the max is 100.
Approved by: njl
show more ...
|
#
7a5230b8 |
| 12-Jul-2004 |
Nate Lawson <njl@FreeBSD.org> |
Add the ability to detach a battery. Now batteries that are detached are also removed from the battery list.
|
#
5fcc8a58 |
| 29-Jun-2004 |
Nate Lawson <njl@FreeBSD.org> |
Use the acpi_id_probe() method instead of acpi_MatchHid(), which is now static.
|
#
91233413 |
| 14-Jun-2004 |
Nate Lawson <njl@FreeBSD.org> |
Add support to ACPI to manage its own resources. Previously, resource allocation was passed up to nexus. Now, we probe sysresource objects and manage the resources they describe in a local rman poo
Add support to ACPI to manage its own resources. Previously, resource allocation was passed up to nexus. Now, we probe sysresource objects and manage the resources they describe in a local rman pool. This helps devices which attach/detach varying resources (like the _CST object) and module loads/unloads. The allocation/release routines now check to see if the resource is described in a child sysresource object and if so, allocate from the local rman. Sysresource objects add their resources to the pool and reserve them upon boot. This means sysresources need to be probed before other ACPI devices.
Changes include: * Add ordering to the child device probe. The current order is: system resource objects, embedded controllers, then everything else. * Make acpi_MatchHid take a handle instead of a device_t arg. * Replace acpi_{get,set}_resource with the generic equivalents.
show more ...
|
#
fe12f24b |
| 30-May-2004 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Add missing <sys/module.h> includes
|
Revision tags: release/4.10.0_cvs, release/4.10.0 |
|
#
64278df5 |
| 09-Apr-2004 |
Nate Lawson <njl@FreeBSD.org> |
Add MODULE_DEPEND entries so some of these drivers can eventually be loaded separately from ACPI (i.e., embedded use).
|
Revision tags: release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0 |
|
#
8d181eb5 |
| 23-Dec-2003 |
Nate Lawson <njl@FreeBSD.org> |
Update to use the new package routines instead of rolling our own macros.
|
Revision tags: release/4.9.0_cvs, release/4.9.0 |
|
#
9b937d48 |
| 25-Oct-2003 |
Nate Lawson <njl@FreeBSD.org> |
Add devctl(4) notify support to ACPI. Various subsystems now notify userland whenever events occur. See the example in devd.conf below to see how to use it.
|