History log of /freebsd/sys/dev/acpica/acpi_cmbat.c (Results 101 – 124 of 124)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 64fdad23 13-Sep-2003 Nate Lawson <njl@FreeBSD.org>

Add the -i flag to acpiconf(8) to retrieve battery information.
Rename a few structure elements.


# 5c596708 11-Sep-2003 Nate Lawson <njl@FreeBSD.org>

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>


# ec2e60b4 15-Aug-2003 Nate Lawson <njl@FreeBSD.org>

De-inline functions which do not need to be inline. Move the DEVMETHOD
block to where it is in similar drivers.


# 798fb860 11-Aug-2003 Nate Lawson <njl@FreeBSD.org>

Style cleanups to match the rest of this directory. For acpi_battery.c,
remove unused includes.


Revision tags: release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0
# a89fcf28 15-Feb-2003 Takanori Watanabe <takawata@FreeBSD.org>

Allow non-privilaged user to retrive battery or AC line information.

Reviewed by: rwatson


Revision tags: release/5.0.0_cvs, release/5.0.0
# 9bb04eb4 03-Nov-2002 Mitsuru IWASAKI <iwasaki@FreeBSD.org>

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
c

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.

show more ...


Revision tags: release/4.7.0_cvs
# 11dfccde 21-Aug-2002 John Baldwin <jhb@FreeBSD.org>

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 tags: release/4.6.2_cvs, release/4.6.2
# 3c24196d 23-Jul-2002 Mitsuru IWASAKI <iwasaki@FreeBSD.org>

Add NULL check for the output buffer from AcpiEvaluateObject().

Submitted by: jon


Revision tags: release/4.6.1, release/4.6.0_cvs
# 8b79649b 12-Mar-2002 Peter Wemm <peter@FreeBSD.org>

Do not concatenate __func__ with strings, because it is not a string.
Later gcc's blow up on this.


# 595a0897 23-Feb-2002 Mike Smith <msmith@FreeBSD.org>

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

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.

show more ...


Revision tags: release/4.5.0_cvs, release/4.4.0_cvs
# c573e654 22-Dec-2001 Mitsuru IWASAKI <iwasaki@FreeBSD.org>

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 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.

show more ...


# dc2183bf 22-Nov-2001 Mitsuru IWASAKI <iwasaki@FreeBSD.org>

Add disabling code via the debug.acpi.disable environment variable.


# 6971b3c7 18-Nov-2001 Mitsuru IWASAKI <iwasaki@FreeBSD.org>

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 prob

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.

show more ...


# 3fa01022 01-Nov-2001 Mitsuru IWASAKI <iwasaki@FreeBSD.org>

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.


# a296c021 30-Oct-2001 Mitsuru IWASAKI <iwasaki@FreeBSD.org>

Style(9) fix, mainly white spaces.


# 9febbb40 30-Oct-2001 Mitsuru IWASAKI <iwasaki@FreeBSD.org>

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.in

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.

show more ...


# c7a97680 22-Oct-2001 Mitsuru IWASAKI <iwasaki@FreeBSD.org>

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 a

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

show more ...


# 6454a61b 24-Jun-2001 Mitsuru IWASAKI <iwasaki@FreeBSD.org>

Reset timestamps of battery info. and status by thier notify handler.

Suggested by: takawata


# 4eb77744 23-Jun-2001 Mitsuru IWASAKI <iwasaki@FreeBSD.org>

Add sysctl interface (Read-only) for temprature, AC-line and Battery.
Patches for acpi_cmbat.c submitted by Munehiro Matsuda.


# 2a4ac806 29-May-2001 Mike Smith <msmith@FreeBSD.org>

- 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)

- 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).

show more ...


Revision tags: release/4.3.0_cvs, release/4.3.0
# e3225e78 26-Feb-2001 John Baldwin <jhb@FreeBSD.org>

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

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.

show more ...


# 91467fc6 31-Jan-2001 Mike Smith <msmith@FreeBSD.org>

ACPI_NUMBER becomes ACPI_INTEGER. acpi_EvaluateNumber becomes
acpi_EvaluateInteger.

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

AcpiSetSystemSleepState (unofficia

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.

show more ...


# 917d44c8 24-Dec-2000 Mitsuru IWASAKI <iwasaki@FreeBSD.org>

Add ioctls to acpi_cmbat and acpi_acad. These use mike's acpi_register_ioctl().
Fix wrong AML method calling in acpi_cmbat.


# d8c616ae 22-Dec-2000 Takanori Watanabe <takawata@FreeBSD.org>

Add ACPI AC adaptor and ACPI Control Method Battery.
And install notify handler for thermal zone .


12345