Skip site navigation (1)Skip section navigation (2)

CVS log for src/sys/dev/acpica/acpi_cmbat.c

[BACK] Up to [FreeBSD] / src / sys / dev / acpica

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.48.2.1.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 11 04:20:22 2011 UTC (2 months, 4 weeks ago) by kensmith
Branches: RELENG_9_0
CVS tags: RELENG_9_0_0_RELEASE
Diff to: previous 1.48.2.1: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48.2.1: +0 -0 lines
SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)

Revision 1.49: download - view: text, markup, annotated - select for diffs
Mon Nov 7 06:44:47 2011 UTC (3 months ago) by ed
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +2 -1 lines
SVN rev 227293 on 2011-11-07 06:44:47Z by ed

Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs.

This means that their use is restricted to a single C file.

Revision 1.48.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 23 00:51:37 2011 UTC (4 months, 2 weeks ago) by kensmith
Branches: RELENG_9
CVS tags: RELENG_9_0_BP
Branch point for: RELENG_9_0
Diff to: previous 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48: +0 -0 lines
SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)

Revision 1.46.2.1: download - view: text, markup, annotated - select for diffs
Fri Mar 11 17:12:39 2011 UTC (11 months ago) by avg
Branches: RELENG_7
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +6 -0 lines
SVN rev 219510 on 2011-03-11 17:12:39Z by avg

MFC r216503: small cleanup of acpi battery status setting and checking

PR:		kern/124744

Revision 1.47.2.2: download - view: text, markup, annotated - select for diffs
Fri Mar 11 16:43:39 2011 UTC (11 months ago) by avg
Branches: RELENG_8
Diff to: previous 1.47.2.1: preferred, colored; branchpoint 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.2.1: +6 -0 lines
SVN rev 219507 on 2011-03-11 16:43:39Z by avg

MFC r216503: small cleanup of acpi battery status setting and checking

PR:		kern/124744

Revision 1.46.12.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:10:29 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_7_4
CVS tags: RELENG_7_4_0_RELEASE
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +0 -0 lines
SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)

Revision 1.47.2.1.6.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:09:25 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_8_2
CVS tags: RELENG_8_2_0_RELEASE
Diff to: previous 1.47.2.1: preferred, colored; next MAIN 1.47.2.2: preferred, colored
Changes since revision 1.47.2.1: +0 -0 lines
SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)

Revision 1.48: download - view: text, markup, annotated - select for diffs
Fri Dec 17 16:21:30 2010 UTC (13 months, 3 weeks ago) by avg
Branches: MAIN
CVS tags: RELENG_9_BP
Branch point for: RELENG_9
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +6 -0 lines
SVN rev 216503 on 2010-12-17 16:21:30Z by avg

small cleanup of acpi battery status setting and checking

This is based on the patch submitted by Yuri Skripachov.
Overview of the changes:
- clarify double-use of some ACPI_BATT_STAT_* definitions
- clean up undefined/extended status bits returned by _BST
- warn about charging+discharging bits being set at the same time

PR:		kern/124744
Submitted by:	Yuri Skripachov <y.skripachov@gmail.com>
Tested by:	Yuri Skripachov <y.skripachov@gmail.com>
MFC after:	2 weeks

Revision 1.47.2.1.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 14 02:09:06 2010 UTC (19 months, 3 weeks ago) by kensmith
Branches: RELENG_8_1
CVS tags: RELENG_8_1_0_RELEASE
Diff to: previous 1.47.2.1: preferred, colored; next MAIN 1.47.2.2: preferred, colored
Changes since revision 1.47.2.1: +0 -0 lines
SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)

Revision 1.46.10.1: download - view: text, markup, annotated - select for diffs
Wed Feb 10 00:26:20 2010 UTC (23 months, 4 weeks ago) by kensmith
Branches: RELENG_7_3
CVS tags: RELENG_7_3_0_RELEASE
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +0 -0 lines
SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)

Revision 1.47.2.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 25 01:10:29 2009 UTC (2 years, 3 months ago) by kensmith
Branches: RELENG_8_0
CVS tags: RELENG_8_0_0_RELEASE
Diff to: previous 1.47.2.1: preferred, colored; next MAIN 1.47.2.2: preferred, colored
Changes since revision 1.47.2.1: +0 -0 lines
SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)

Revision 1.47.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 3 08:13:06 2009 UTC (2 years, 6 months ago) by kensmith
Branches: RELENG_8
CVS tags: RELENG_8_2_BP, RELENG_8_1_BP, RELENG_8_0_BP
Branch point for: RELENG_8_2, RELENG_8_1, RELENG_8_0
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +0 -0 lines
SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)

Revision 1.47: download - view: text, markup, annotated - select for diffs
Fri Jun 5 18:44:36 2009 UTC (2 years, 8 months ago) by jkim
Branches: MAIN
CVS tags: RELENG_8_BP
Branch point for: RELENG_8
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +2 -1 lines
SVN rev 193530 on 2009-06-05 18:44:36Z by jkim

Import ACPICA 20090521.

Revision 1.46.8.1: download - view: text, markup, annotated - select for diffs
Wed Apr 15 03:14:26 2009 UTC (2 years, 9 months ago) by kensmith
Branches: RELENG_7_2
CVS tags: RELENG_7_2_0_RELEASE
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +0 -0 lines
SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)

Revision 1.46.6.1: download - view: text, markup, annotated - select for diffs
Tue Nov 25 02:59:29 2008 UTC (3 years, 2 months ago) by kensmith
Branches: RELENG_7_1
CVS tags: RELENG_7_1_0_RELEASE
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +0 -0 lines
SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)

Revision 1.39.2.5.6.1: download - view: text, markup, annotated - select for diffs
Thu Oct 2 02:57:24 2008 UTC (3 years, 4 months ago) by kensmith
Branches: RELENG_6_4
CVS tags: RELENG_6_4_0_RELEASE
Diff to: previous 1.39.2.5: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39.2.5: +0 -0 lines
SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)

Revision 1.46: download - view: text, markup, annotated - select for diffs
Thu Mar 22 18:16:40 2007 UTC (4 years, 10 months ago) by jkim
Branches: MAIN
CVS tags: RELENG_7_BP, RELENG_7_4_BP, RELENG_7_3_BP, RELENG_7_2_BP, RELENG_7_1_BP, RELENG_7_0_BP, RELENG_7_0_0_RELEASE, RELENG_7_0
Branch point for: RELENG_7_4, RELENG_7_3, RELENG_7_2, RELENG_7_1, RELENG_7
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -3 lines
Catch up with ACPI-CA 20070320 import.

Revision 1.39.2.5: download - view: text, markup, annotated - select for diffs
Sun Jun 11 20:50:08 2006 UTC (5 years, 8 months ago) by njl
Branches: RELENG_6
CVS tags: RELENG_6_4_BP, RELENG_6_3_BP, RELENG_6_3_0_RELEASE, RELENG_6_3, RELENG_6_2_BP, RELENG_6_2_0_RELEASE, RELENG_6_2
Branch point for: RELENG_6_4
Diff to: previous 1.39.2.4: preferred, colored; branchpoint 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39.2.4: +7 -0 lines
MFC: reduce diffs to current and include changes to allow the
eventual acpi_dock MFC and enabling reset register support.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sat Apr 15 16:10:53 2006 UTC (5 years, 9 months ago) by iwasaki
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -1 lines
Oops, untested code was included accidentally.
Fixed.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sat Apr 15 12:31:32 2006 UTC (5 years, 9 months ago) by iwasaki
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +5 -0 lines
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

Revision 1.39.2.4: download - view: text, markup, annotated - select for diffs
Sat Nov 26 07:37:40 2005 UTC (6 years, 2 months ago) by njl
Branches: RELENG_6
CVS tags: RELENG_6_1_BP, RELENG_6_1_0_RELEASE, RELENG_6_1
Diff to: previous 1.39.2.3: preferred, colored; branchpoint 1.39: preferred, colored
Changes since revision 1.39.2.3: +12 -1 lines
MFC 1.43: Acquire locks around call to acpi_cmbat_get_bif()

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sat Nov 26 07:36:53 2005 UTC (6 years, 2 months ago) by njl
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +12 -1 lines
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

Revision 1.39.2.3: download - view: text, markup, annotated - select for diffs
Thu Nov 24 05:29:15 2005 UTC (6 years, 2 months ago) by njl
Branches: RELENG_6
Diff to: previous 1.39.2.2: preferred, colored; branchpoint 1.39: preferred, colored
Changes since revision 1.39.2.2: +34 -22 lines
MFC: acpi_battery.c 1.22, acpi_cmbat.c 1.42, acpi_smbat.c 1.2 and 1.3
Cache smbat battery states like cmbat (Original by ume@).  Only re-evaluate
_BIF when there is a notify and on boot.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Wed Nov 23 00:57:51 2005 UTC (6 years, 2 months ago) by njl
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +34 -22 lines
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

Revision 1.39.2.2: download - view: text, markup, annotated - select for diffs
Mon Nov 7 09:53:22 2005 UTC (6 years, 3 months ago) by obrien
Branches: RELENG_6
Diff to: previous 1.39.2.1: preferred, colored; branchpoint 1.39: preferred, colored
Changes since revision 1.39.2.1: +1 -1 lines
MFC: canonify the include of acpi.h.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun Sep 11 18:39:01 2005 UTC (6 years, 5 months ago) by obrien
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +1 -1 lines
Canonize the include of acpi.h.

Revision 1.39.2.1: download - view: text, markup, annotated - select for diffs
Fri Jul 29 16:27:07 2005 UTC (6 years, 6 months ago) by njl
Branches: RELENG_6
CVS tags: RELENG_6_0_BP, RELENG_6_0_0_RELEASE, RELENG_6_0
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +149 -360 lines
MFC: Bring acpi_battery support up to HEAD, changing the API slightly
and fixing various bugs.

Approved by:	re (kensmith)

Revision 1.40: download - view: text, markup, annotated - select for diffs
Sat Jul 23 19:35:59 2005 UTC (6 years, 6 months ago) by njl
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +149 -360 lines
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

Revision 1.36.2.3: download - view: text, markup, annotated - select for diffs
Mon Dec 27 05:45:38 2004 UTC (7 years, 1 month ago) by njl
Branches: RELENG_5
CVS tags: RELENG_5_5_BP, RELENG_5_5_0_RELEASE, RELENG_5_5, RELENG_5_4_BP, RELENG_5_4_0_RELEASE, RELENG_5_4
Diff to: previous 1.36.2.2: preferred, colored; branchpoint 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36.2.2: +9 -3 lines
MFC 1.39: Only report a critical battery level once.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Mon Dec 20 05:03:41 2004 UTC (7 years, 1 month ago) by njl
Branches: MAIN
CVS tags: RELENG_6_BP
Branch point for: RELENG_6
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +9 -3 lines
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)

Revision 1.36.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 19 04:17:49 2004 UTC (7 years, 1 month ago) by marks
Branches: RELENG_5
Diff to: previous 1.36.2.1: preferred, colored; branchpoint 1.36: preferred, colored
Changes since revision 1.36.2.1: +1 -1 lines
MFC acpi_acad.c:1.32
MFC acpi_cmbat.c:1.38
MFC OsdInterrupt.c:1.19
MFC OsdSchedule.c:1.30

  Catch up with AcpiOsSleep() interface change.
  Catch up with some #define's renaming.
  Implement AcpiOsGetTimer() as per ACPI 3.0.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu Dec 2 00:25:35 2004 UTC (7 years, 2 months ago) by marks
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +1 -1 lines
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 1.36.2.1: download - view: text, markup, annotated - select for diffs
Sun Nov 7 20:24:05 2004 UTC (7 years, 3 months ago) by njl
Branches: RELENG_5
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +4 -0 lines
MFC: Bring most of ACPI up to HEAD.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Mon Oct 11 06:18:07 2004 UTC (7 years, 4 months ago) by njl
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +4 -0 lines
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.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Tue Aug 17 18:36:07 2004 UTC (7 years, 5 months ago) by njl
Branches: MAIN
CVS tags: RELENG_5_BP, RELENG_5_3_BP, RELENG_5_3_0_RELEASE, RELENG_5_3
Branch point for: RELENG_5
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +6 -2 lines
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)

Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri Aug 13 06:21:44 2004 UTC (7 years, 5 months ago) by njl
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +125 -169 lines
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.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Fri Jul 16 19:05:40 2004 UTC (7 years, 6 months ago) by njl
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +1 -3 lines
Use ACPI_ALL_NOTIFY instead of registering handlers separately.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Wed Jul 14 19:31:31 2004 UTC (7 years, 6 months ago) by marks
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +9 -0 lines
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

Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Jul 12 20:53:04 2004 UTC (7 years, 7 months ago) by njl
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +16 -1 lines
Add the ability to detach a battery.  Now batteries that are detached are
also removed from the battery list.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Tue Jun 29 19:02:27 2004 UTC (7 years, 7 months ago) by njl
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +7 -6 lines
Use the acpi_id_probe() method instead of acpi_MatchHid(), which is now
static.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sun Jun 13 22:52:30 2004 UTC (7 years, 7 months ago) by njl
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -2 lines
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.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun May 30 20:08:23 2004 UTC (7 years, 8 months ago) by phk
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +1 -0 lines
Add missing <sys/module.h> includes

Revision 1.28: download - view: text, markup, annotated - select for diffs
Fri Apr 9 18:14:32 2004 UTC (7 years, 10 months ago) by njl
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +1 -0 lines
Add MODULE_DEPEND entries so some of these drivers can eventually be
loaded separately from ACPI (i.e., embedded use).

Revision 1.27: download - view: text, markup, annotated - select for diffs
Tue Dec 23 18:27:35 2003 UTC (8 years, 1 month ago) by njl
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +40 -66 lines
Update to use the new package routines instead of rolling our own
macros.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Oct 25 05:03:24 2003 UTC (8 years, 3 months ago) by njl
Branches: MAIN
CVS tags: RELENG_5_2_BP, RELENG_5_2_1_RELEASE, RELENG_5_2_0_RELEASE, RELENG_5_2
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -0 lines
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.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Fri Sep 26 05:24:55 2003 UTC (8 years, 4 months ago) by njl
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +1 -1 lines
Consistently print attach messages.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Sep 13 20:13:01 2003 UTC (8 years, 4 months ago) by njl
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -2 lines
Add the -i flag to acpiconf(8) to retrieve battery information.
Rename a few structure elements.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Sep 11 03:17:33 2003 UTC (8 years, 5 months ago) by njl
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +9 -0 lines
Add a system notify handler in addition to the device notify handler.
At least some Toshiba notebooks use a Notify of 0 or 1 for this.

PR:
Submitted by:	Hiroyuki Aizu <aizu@navi.org>

Revision 1.22.2.1: download - view: text, markup, annotated - select for diffs
Fri Aug 22 20:49:20 2003 UTC (8 years, 5 months ago) by jhb
Branches: RELENG_4
CVS tags: RELENG_4_9_BP, RELENG_4_9_0_RELEASE, RELENG_4_9, RELENG_4_11_BP, RELENG_4_11_0_RELEASE, RELENG_4_11, RELENG_4_10_BP, RELENG_4_10_0_RELEASE, RELENG_4_10
Diff to: previous 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22: +533 -494 lines
MFC: FreeBSD OSPM ACPI driver.  Note that this driver does not include
support for PCI interrupt routing or enumeration of ISA bridges or
Host to PCI bridges.  While functional on some machines, this driver
should be considered experimental and should be tested prior to being
deployed in a production environment.

Sponsored by:	The Weather Channel

Revision 1.22: download - view: text, markup, annotated - select for diffs
Fri Aug 15 02:18:15 2003 UTC (8 years, 5 months ago) by njl
Branches: MAIN
Branch point for: RELENG_4
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +23 -23 lines
De-inline functions which do not need to be inline.  Move the DEVMETHOD
block to where it is in similar drivers.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Aug 11 15:34:43 2003 UTC (8 years, 6 months ago) by njl
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +480 -519 lines
Style cleanups to match the rest of this directory.  For acpi_battery.c,
remove unused includes.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Feb 15 01:46:22 2003 UTC (8 years, 11 months ago) by takawata
Branches: MAIN
CVS tags: RELENG_5_1_BP, RELENG_5_1_0_RELEASE, RELENG_5_1
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +5 -0 lines
Allow non-privilaged user to retrive battery or AC line information.

Reviewed by: rwatson

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Nov 3 10:49:24 2002 UTC (9 years, 3 months ago) by iwasaki
Branches: MAIN
CVS tags: RELENG_5_0_BP, RELENG_5_0_0_RELEASE, RELENG_5_0
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +83 -6 lines
Add status initialization code for acpi_cmbat and acpi_acad,
acpi_cmbat_init_battery() and acpi_cmbat_init_acline() respectively.
Call acpi_cmbat_init_battery() from acpi_cmbat_resume() too just in
case.
This is a workaround for embedded controller operations which is
unstable for about a minute (typically 30 or 40 sec.) at boot time.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Wed Aug 21 15:01:53 2002 UTC (9 years, 5 months ago) by jhb
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +16 -10 lines
Use the _STA method of a battery control method to see if a battery is
present or not.  My laptop now properly notices when a battery is removed.

Reviewed by:	iwasaki

Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Jul 23 00:47:13 2002 UTC (9 years, 6 months ago) by iwasaki
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -2 lines
Add NULL check for the output buffer from AcpiEvaluateObject().

Submitted by:	jon

Revision 1.16: download - view: text, markup, annotated - select for diffs
Tue Mar 12 00:15:06 2002 UTC (9 years, 11 months ago) by peter
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2 lines
Do not concatenate __func__ with strings, because it is not a string.
Later gcc's blow up on this.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Feb 23 05:24:14 2002 UTC (9 years, 11 months ago) by msmith
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +15 -34 lines
Match namespace cleanup changes in ACPI CA 20020217 update.
Use ACPI_SUCCESS/ACPI_FAILURE consistently.
The AcpiGetInto* interfaces are obsoleted by ACPI_ALLOCATE_BUFFER.

Kill off the timeouts that used to read _BIF and _BST.  These are
invoked when the battery is actually read.  timeout() is dangerous
in combination with ACPI, as the interpreter can block.

This driver still needs more work.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Dec 22 16:05:34 2001 UTC (10 years, 1 month ago) by iwasaki
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +23 -68 lines
Add OS layer ACPI mutex and threading support.
 - 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.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Nov 22 17:43:15 2001 UTC (10 years, 2 months ago) by iwasaki
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +1 -0 lines
Add disabling code via the debug.acpi.disable environment variable.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Nov 18 18:12:07 2001 UTC (10 years, 2 months ago) by iwasaki
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +20 -21 lines
Cleanups of verbose printing.  All the messages for the debugging is
disabled unless verbose flag is set.  Also fix some messages in terms
of English.
The critical messages and error messages in probe/attach routine are
unchanged by this commit.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Nov 1 22:20:41 2001 UTC (10 years, 3 months ago) by iwasaki
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +1 -1 lines
Oops, deleted wrong BIF acquisition timeout invocation by mistake
in my previous commit.
acpi_cmbat_get_bif() from taskqueue calls acpi_cmbat_timeout() so it's
better for startup.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Oct 30 15:51:52 2001 UTC (10 years, 3 months ago) by iwasaki
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +102 -85 lines
Style(9) fix, mainly white spaces.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Oct 30 14:24:26 2001 UTC (10 years, 3 months ago) by iwasaki
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +43 -23 lines
Some improvements of control method battery driver.
 - Add a new MIB for battery info expire time in order to make it changeable.
   Battery info expire time can be specified by
   hw.acpi.battery.info_expire in sec.
 - Add own MALLOC type and fix some potential memory leakages.
 - Change some frequent printings to verbose printing.
 - Stop timeout during acpi_cmbat_get_bst() too.  This should reduce
   the races with BIF evaluation.
 - Remove acpi_cmbat_get_bif() invocation from acpi_cmbat_attach().
   This was redundant because this should be called from
   acpi_cmbat_timeout() now.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Oct 22 18:01:37 2001 UTC (10 years, 3 months ago) by iwasaki
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +39 -7 lines
Reduce frequency of Battery info (_BIF) acquisition.  This helps
avoiding EC read errors on some laptops.
 - Stop updating Battery info for all user requests
 - Update Battery info by notify events and resume method
 - Poll Battery info every one minute

Suggested by:	takawata

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Jun 24 02:39:08 2001 UTC (10 years, 7 months ago) by iwasaki
Branches: MAIN
CVS tags: KSE_PRE_MILESTONE_2, KSE_MILESTONE_2
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +14 -11 lines
Reset timestamps of battery info. and status by thier notify handler.

Suggested by:   takawata

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Jun 23 10:38:25 2001 UTC (10 years, 7 months ago) by iwasaki
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +303 -49 lines
Add sysctl interface (Read-only) for temprature, AC-line and Battery.
Patches for acpi_cmbat.c submitted by Munehiro Matsuda.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue May 29 20:13:34 2001 UTC (10 years, 8 months ago) by msmith
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +7 -1 lines
 - Updates for new constant naming in the ACPI CA 20010518 update.
 - Use __func__ instead of __FUNCTION.
 - Support power-off to S3 or S5 (takawata)
 - Enable ACPI debugging earlier (with a sysinit)
 - Fix a deadlock in the EC code (takawata)
 - Improve arithmetic and reduce the risk of spurious wakeup in
   AcpiOsSleep.
 - Add AcpiOsGetThreadId.
 - Simplify mutex code (still disabled).

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Feb 26 20:32:18 2001 UTC (10 years, 11 months ago) by jhb
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
When ensuring the destination buffer is truncated for a string obtained
from a BIF, use the size of the destinatino buffer, not the length of the
string to determine where to put the nul char.  As a side effect, the
old code would truncate the string by one character while it was possibly
overflowing the buffer.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Jan 31 09:30:57 2001 UTC (11 years ago) by msmith
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -3 lines
ACPI_NUMBER becomes ACPI_INTEGER.  acpi_EvaluateNumber becomes
acpi_EvaluateInteger.

Use acpi_EvaluateInteger instead of doing things the hard way where
possible.

AcpiSetSystemSleepState (unofficial) becomes AcpiEnterSleepState.

Use the AcpiGbl_FADT pointer rather than searching for the FADT.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Dec 24 19:12:10 2000 UTC (11 years, 1 month ago) by iwasaki
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +89 -5 lines
Add ioctls to acpi_cmbat and acpi_acad.  These use mike's acpi_register_ioctl().
Fix wrong AML method calling in acpi_cmbat.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Dec 22 14:41:49 2000 UTC (11 years, 1 month ago) by takawata
Branches: MAIN
Add ACPI AC adaptor and ACPI Control Method Battery.
And install notify handler for thermal zone .

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options