Hiroki Sato
294de6bbd6
Add _BIX (Battery Information Extended) object support.
...
ACPI Control Method Batteries have a _BIF and/or _BIX object which
provide static properties of the battery. FreeBSD acpi_cmbat module
supported _BIF object only, which was deprecated as of ACPI 4.0.
_BIX is an extended version of _BIF defined in ACPI 4.0 or later.
As of writing, _BIX has two revisions. One is in ACPI 4.0 (rev.0) and
another is in ACPI 6.0 (rev.1). It seems that hardware vendors still
stick to _BIF only or _BIX rev.0 + _BIF for the maximum compatibility.
Microsoft requires _BIX rev.0 for Windows machines, so there are some
laptop machines with _BIX rev.0 only. In this case, FreeBSD does not
recognize the battery information.
After this change, the acpi_cmbat module gets battery information from
_BIX or _BIF object and internally uses _BIX rev.1 data structure as
the primary information store in the kernel. ACPIIO_BATT_GET_BI[FX]
returns an acpi_bi[fx] structure built by using information obtained
from a _BIF or a _BIX object found on the system. The revision number
field can be used to check which field is available. The acpiconf(8)
utility will show additional information if _BIX is available.
Although ABIs of ACPIIO_BATT_* were changed, the existing APIs for
userland utilities are not changed and the backward-compatible ABIs
are provided. This means that older versions of acpiconf(8) can also
work with the new kernel. The (union acpi_battery_ioctl_arg) was
padded to 256 byte long to avoid another ABI change in the future.
A _BIX object with its revision number >1 will be treated as
compatible with the rev.1 _BIX format.
Reviewed by: takawata
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D23728
2020-02-19 06:28:55 +00:00
..
2019-12-03 21:00:45 +00:00
2019-12-03 21:00:45 +00:00
2019-07-19 15:12:20 +00:00
2019-07-19 15:12:20 +00:00
2020-02-19 06:28:55 +00:00
2020-01-15 19:43:45 +00:00
2019-09-06 10:12:05 +00:00
2017-12-21 04:23:00 +00:00
2017-05-06 06:01:17 +00:00
2019-12-09 02:29:16 +00:00
2019-05-17 18:16:55 +00:00
2017-09-26 23:12:32 +00:00
2018-10-22 02:34:25 +00:00
2019-08-21 22:18:07 +00:00
2017-06-23 00:40:09 +00:00
2017-01-16 03:03:47 +00:00
2019-10-09 21:48:00 +00:00
2016-07-20 20:18:52 +00:00
2016-09-08 12:09:13 +00:00
2016-07-20 20:18:52 +00:00
2017-09-05 15:13:41 +00:00
2017-09-05 15:19:14 +00:00
2017-01-28 02:22:15 +00:00
2017-11-08 08:21:17 +00:00
2019-04-02 20:03:03 +00:00
2019-03-02 23:20:47 +00:00
2019-01-25 13:48:40 +00:00
2019-01-25 13:48:40 +00:00
2016-06-08 08:50:35 +00:00
2018-03-13 09:42:33 +00:00
2019-04-28 16:28:36 +00:00
2019-04-28 16:28:36 +00:00
2017-11-27 21:30:49 +00:00
2017-08-18 20:35:35 +00:00
2017-11-27 21:30:49 +00:00
2017-11-27 21:30:49 +00:00
2017-11-27 21:30:49 +00:00
2017-11-27 21:30:49 +00:00
2017-11-27 21:30:49 +00:00
2016-06-08 08:50:35 +00:00
2018-05-28 12:50:36 +00:00
2019-01-31 19:05:56 +00:00
2016-10-21 06:55:07 +00:00
2020-02-01 10:25:13 +00:00
2017-02-16 21:57:25 +00:00
2018-02-05 23:38:15 +00:00
2017-05-09 20:39:57 +00:00
2017-05-24 00:58:30 +00:00
2019-12-04 16:56:11 +00:00
2018-07-01 15:17:53 +00:00
2020-02-12 06:52:22 +00:00
2019-07-29 08:50:35 +00:00
2019-08-06 11:26:30 +00:00
2019-06-03 15:41:54 +00:00
2019-08-07 18:14:45 +00:00
2019-11-07 18:16:46 +00:00
2019-04-22 17:52:46 +00:00
2018-04-21 14:56:41 +00:00
2016-11-23 18:45:15 +00:00
2018-02-22 19:12:32 +00:00
2017-11-30 17:58:48 +00:00
2016-06-08 10:26:17 +00:00
2017-03-20 04:41:36 +00:00
2020-01-31 17:40:41 +00:00
2019-12-18 01:27:49 +00:00
2019-02-23 09:34:57 +00:00
2019-07-24 07:07:46 +00:00
2020-02-04 00:51:10 +00:00
2017-11-15 23:48:02 +00:00
2017-04-27 16:14:32 +00:00
2018-12-18 21:43:33 +00:00
2017-12-21 04:23:00 +00:00
2020-02-12 06:52:22 +00:00
2016-06-09 06:55:00 +00:00
2020-02-12 06:52:22 +00:00
2019-12-04 16:56:11 +00:00
2019-04-28 13:07:38 +00:00
2018-10-15 18:28:34 +00:00
2019-08-21 23:43:58 +00:00
2018-08-22 21:23:32 +00:00
2018-07-31 22:56:03 +00:00
2018-07-31 22:56:03 +00:00
2018-07-31 22:56:03 +00:00
2017-05-06 06:01:17 +00:00
2018-08-20 22:16:15 +00:00
2019-02-23 09:34:57 +00:00
2019-02-23 09:34:57 +00:00
2019-05-30 13:50:45 +00:00
2017-08-09 12:24:07 +00:00
2017-01-28 02:22:15 +00:00
2017-05-06 06:01:17 +00:00
2019-12-04 16:56:11 +00:00
2017-04-07 16:14:25 +00:00
2018-03-03 21:41:16 +00:00
2019-04-17 03:29:16 +00:00
2016-06-08 08:50:35 +00:00
2019-06-16 05:12:17 +00:00
2018-07-27 10:40:48 +00:00
2018-05-19 20:35:15 +00:00
2017-01-28 02:22:15 +00:00
2020-02-12 06:52:22 +00:00
2019-08-13 23:32:56 +00:00
2019-08-13 20:06:55 +00:00
2018-10-21 18:06:15 +00:00
2019-06-27 15:46:06 +00:00
2019-12-01 23:05:20 +00:00
2019-05-23 11:35:00 +00:00
2019-12-09 03:02:54 +00:00
2019-04-24 09:05:45 +00:00
2020-02-12 06:52:22 +00:00
2016-06-08 08:50:35 +00:00
2019-11-26 17:25:49 +00:00
2016-06-08 08:50:35 +00:00
2016-11-18 07:36:00 +00:00
2017-08-30 01:37:58 +00:00
2020-02-01 19:50:10 +00:00
2019-01-31 19:05:56 +00:00
2016-07-20 20:18:52 +00:00
2018-11-01 08:17:27 +00:00
2017-02-16 21:56:57 +00:00
2017-02-06 08:49:57 +00:00
2017-09-02 11:57:08 +00:00
2019-04-25 21:24:56 +00:00
2018-09-13 17:39:08 +00:00
2020-01-02 17:51:49 +00:00
2019-12-04 16:56:11 +00:00
2017-01-15 17:54:01 +00:00
2020-01-02 17:51:49 +00:00
2019-01-30 16:55:00 +00:00
2018-08-14 17:36:21 +00:00
2018-08-14 17:36:21 +00:00
2016-09-22 21:34:35 +00:00
2019-04-04 18:52:03 +00:00
2018-11-01 08:17:27 +00:00
2019-02-23 06:03:18 +00:00
2019-08-07 18:14:45 +00:00
2017-10-25 23:24:30 +00:00
2019-02-23 09:34:57 +00:00
2017-02-06 08:49:57 +00:00
2017-05-28 17:02:29 +00:00
2016-06-08 07:36:00 +00:00
2018-12-18 21:43:33 +00:00
2016-07-20 20:18:52 +00:00
2019-02-28 15:24:00 +00:00
2019-10-16 14:57:38 +00:00
2019-11-07 23:39:33 +00:00
2019-11-07 23:39:33 +00:00
2019-07-17 01:56:40 +00:00
2019-07-17 01:56:40 +00:00
2019-01-30 16:55:00 +00:00
2018-12-19 21:56:54 +00:00
2017-08-03 00:38:13 +00:00
2017-05-06 06:01:17 +00:00
2019-03-06 22:11:45 +00:00
2019-07-24 07:07:46 +00:00
2019-12-22 21:56:47 +00:00
2020-02-12 06:52:22 +00:00
2017-10-29 08:17:03 +00:00
2019-12-16 20:15:44 +00:00
2019-02-23 09:34:57 +00:00
2017-12-26 18:42:29 +00:00
2017-02-28 23:42:47 +00:00
2020-01-02 17:51:49 +00:00
2018-07-20 16:06:44 +00:00
2017-10-29 08:17:03 +00:00
2020-02-02 04:53:27 +00:00
2020-01-09 04:39:37 +00:00
2016-06-08 08:50:35 +00:00
2019-03-13 09:48:33 +00:00
2019-11-06 19:52:31 +00:00
2017-03-02 06:57:13 +00:00
2017-03-02 06:57:13 +00:00
2019-05-08 10:49:05 +00:00
2017-08-23 12:09:37 +00:00
2019-10-02 10:14:55 +00:00
2017-02-16 21:56:32 +00:00
2019-12-04 16:56:11 +00:00
2019-12-04 16:56:11 +00:00
2019-08-06 11:26:30 +00:00
2018-10-22 02:34:10 +00:00
2019-06-01 16:04:20 +00:00
2019-06-01 16:04:20 +00:00
2016-06-08 08:50:35 +00:00
2019-03-13 09:48:33 +00:00
2018-12-06 20:04:01 +00:00
2019-02-26 22:50:01 +00:00
2019-08-04 04:51:32 +00:00
2019-02-23 09:34:57 +00:00
2019-10-17 19:49:20 +00:00
2019-10-17 21:33:01 +00:00
2020-02-07 19:26:26 +00:00
2018-12-14 09:24:14 +00:00
2019-10-03 02:32:55 +00:00
2016-06-08 08:50:35 +00:00
2016-12-02 09:51:12 +00:00
2016-06-08 08:50:35 +00:00
2019-05-14 15:41:34 +00:00
2016-06-08 08:50:35 +00:00
2019-02-08 06:19:28 +00:00
2016-11-23 18:45:15 +00:00
2020-01-23 16:45:48 +00:00
2016-06-08 08:50:35 +00:00
2016-12-02 10:47:10 +00:00
2019-10-20 20:57:57 +00:00
2018-02-14 21:17:44 +00:00
2018-11-04 19:10:44 +00:00
2016-06-08 08:50:35 +00:00
2016-06-09 06:55:00 +00:00
2018-01-23 03:36:49 +00:00
2019-08-29 13:46:54 +00:00
2017-08-30 21:16:32 +00:00
2019-11-10 03:24:53 +00:00
2019-11-10 18:07:02 +00:00
2019-08-29 13:46:54 +00:00
2019-08-30 21:49:00 +00:00
2019-02-12 21:06:07 +00:00
2019-05-19 06:01:11 +00:00
2019-11-07 15:47:05 +00:00
2020-01-07 23:29:54 +00:00
2016-06-08 08:50:35 +00:00
2016-06-08 10:26:17 +00:00
2018-03-30 15:28:25 +00:00
2019-02-23 09:34:57 +00:00
2019-01-26 14:14:25 +00:00
2019-12-04 16:56:11 +00:00
2019-12-04 16:56:11 +00:00
2019-12-04 16:56:11 +00:00
2017-05-03 20:59:47 +00:00
2019-12-04 16:56:11 +00:00
2019-12-04 16:56:11 +00:00
2019-07-02 17:48:27 +00:00
2019-12-04 16:56:11 +00:00
2019-12-04 16:56:11 +00:00
2020-02-12 06:52:22 +00:00
2018-08-05 13:54:37 +00:00
2019-04-18 11:06:45 +00:00
2018-12-06 19:27:15 +00:00
2018-05-02 15:59:15 +00:00
2020-02-02 04:53:27 +00:00
2018-10-14 18:42:54 +00:00
2016-06-08 08:50:35 +00:00
2019-04-20 21:04:56 +00:00
2018-12-12 17:05:47 +00:00
2016-06-08 08:50:35 +00:00
2019-10-28 21:22:46 +00:00
2016-06-09 06:55:00 +00:00
2019-11-14 23:31:20 +00:00
2019-06-18 04:32:19 +00:00
2018-07-24 18:39:46 +00:00
2017-03-30 23:49:57 +00:00
2016-06-08 10:26:17 +00:00
2017-04-04 17:18:45 +00:00
2019-06-21 00:16:30 +00:00
2019-11-21 01:24:49 +00:00
2017-05-28 17:25:47 +00:00
2016-09-21 14:15:15 +00:00
2019-07-24 07:07:46 +00:00
2019-02-28 18:12:14 +00:00
2018-05-03 18:20:35 +00:00
2018-05-03 18:20:35 +00:00
2019-01-02 18:30:22 +00:00
2019-09-01 06:40:58 +00:00
2019-01-02 18:30:22 +00:00
2019-01-03 03:27:37 +00:00
2018-11-08 14:46:21 +00:00
2018-11-08 14:46:21 +00:00
2017-08-19 00:37:33 +00:00
2018-10-22 02:34:59 +00:00
2020-01-04 20:33:12 +00:00
2016-06-08 08:50:35 +00:00
2019-11-18 14:12:33 +00:00
2018-11-30 07:10:43 +00:00
2017-11-27 21:30:49 +00:00
2019-10-07 20:35:04 +00:00
2016-06-08 08:50:35 +00:00
2019-02-23 09:34:57 +00:00
2016-11-11 15:16:37 +00:00
2020-02-12 06:52:22 +00:00
2019-08-13 01:24:43 +00:00
2018-08-11 13:01:46 +00:00
2019-07-17 04:13:46 +00:00
2019-08-13 01:25:07 +00:00
2016-11-12 19:45:55 +00:00
2019-11-21 01:24:49 +00:00
2018-04-07 23:31:55 +00:00
2016-06-08 08:50:35 +00:00
2019-10-11 11:31:45 +00:00
2018-10-22 02:36:18 +00:00
2019-02-22 06:41:47 +00:00
2019-02-23 09:34:57 +00:00
2020-01-13 18:26:27 +00:00
2019-12-02 20:58:04 +00:00
2019-08-13 15:41:36 +00:00
2019-10-18 12:32:01 +00:00
2018-10-31 12:53:58 +00:00
2019-11-30 20:10:50 +00:00
2019-05-08 02:32:11 +00:00
2018-09-11 17:05:26 +00:00
2017-05-09 08:36:09 +00:00
2018-08-14 13:52:10 +00:00
2019-02-23 09:34:57 +00:00
2017-05-09 08:36:09 +00:00
2017-05-09 08:36:09 +00:00
2017-05-09 08:36:09 +00:00
2019-02-23 09:34:57 +00:00
2017-05-09 08:36:09 +00:00
2017-10-22 11:40:55 +00:00
2017-02-06 08:49:57 +00:00
2018-08-05 11:14:13 +00:00
2019-12-04 16:56:11 +00:00
2017-05-09 08:36:09 +00:00
2019-02-23 09:34:57 +00:00
2019-02-23 09:34:57 +00:00
2019-02-23 09:34:57 +00:00
2017-05-09 08:36:09 +00:00
2019-02-23 09:34:57 +00:00
2017-03-31 08:20:59 +00:00
2020-01-28 00:36:46 +00:00
2017-05-09 08:36:09 +00:00
2017-05-09 08:36:09 +00:00
2018-04-26 17:36:48 +00:00
2019-02-23 09:34:57 +00:00
2019-02-23 09:34:57 +00:00
2019-05-30 14:24:26 +00:00
2019-02-23 09:34:57 +00:00
2016-10-31 05:58:11 +00:00
2019-08-07 18:14:45 +00:00
2017-08-19 17:00:10 +00:00
2019-08-07 18:14:45 +00:00
2019-02-23 09:34:57 +00:00
2018-05-17 15:21:19 +00:00
2019-12-09 21:55:44 +00:00
2017-05-09 08:36:09 +00:00
2019-02-23 09:34:57 +00:00
2020-02-07 19:26:26 +00:00
2016-06-08 08:50:35 +00:00
2019-05-27 00:51:27 +00:00
2018-05-08 21:14:29 +00:00
2019-02-23 09:34:57 +00:00
2019-10-10 03:12:17 +00:00
2019-02-23 09:34:57 +00:00
2019-07-17 01:56:40 +00:00
2018-06-25 09:39:16 +00:00
2018-12-06 20:04:01 +00:00
2018-01-03 00:56:30 +00:00
2019-10-16 14:46:04 +00:00
2019-02-23 09:34:57 +00:00
2019-03-06 22:11:45 +00:00
2019-01-27 15:10:20 +00:00
2017-08-19 17:00:10 +00:00
2017-03-02 06:25:50 +00:00
2018-01-15 21:53:33 +00:00
2016-12-20 18:02:07 +00:00
2019-02-23 09:34:57 +00:00