Deleted Added
full compact
27c27
< * $FreeBSD: head/sys/dev/acpica/acpiio.h 170976 2007-06-21 22:50:37Z njl $
---
> * $FreeBSD: head/sys/dev/acpica/acpiio.h 216503 2010-12-17 16:21:30Z avg $
76a77,84
> /*
> * Note that the following definitions represent status bits for internal
> * driver state. The first three of them (charging, discharging and critical)
> * conveninetly conform to ACPI specification of status returned by _BST
> * method. Other definitions (not present, etc) are synthetic.
> * Also note that according to the specification the charging and discharging
> * status bits must not be set at the same time.
> */
80,81c88,92
< #define ACPI_BATT_STAT_NOT_PRESENT 0x0007
< #define ACPI_BATT_STAT_MAX 0x0007
---
> #define ACPI_BATT_STAT_INVALID \
> (ACPI_BATT_STAT_DISCHARG | ACPI_BATT_STAT_CHARGING)
> #define ACPI_BATT_STAT_BST_MASK \
> (ACPI_BATT_STAT_INVALID | ACPI_BATT_STAT_CRITICAL)
> #define ACPI_BATT_STAT_NOT_PRESENT ACPI_BATT_STAT_BST_MASK