[Midnightbsd-cvs] [MidnightBSD/src] ff3297: |Add ACPI battery subsystem man page.
Lucas Holt
noreply at github.com
Tue Nov 17 23:32:45 EST 2020
Branch: refs/heads/master
Home: https://github.com/MidnightBSD/src
Commit: ff329798722dbe3fae62da838c9e2c71839d42a2
https://github.com/MidnightBSD/src/commit/ff329798722dbe3fae62da838c9e2c71839d42a2
Author: Lucas Holt <luke at foolishgames.com>
Date: 2020-11-17 (Tue, 17 Nov 2020)
Changed paths:
M sys/dev/acpica/acpi_battery.c
M sys/dev/acpica/acpi_cmbat.c
M sys/dev/acpica/acpi_if.m
M sys/dev/acpica/acpi_package.c
M sys/dev/acpica/acpi_smbat.c
M sys/dev/acpica/acpiio.h
M sys/dev/acpica/acpivar.h
M usr.sbin/acpi/acpiconf/acpiconf.c
Log Message:
-----------
|Add ACPI battery subsystem man page.
|
|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.
|
|Add workaround for models which do not follow the ACPI specification strictly.
|Extra objects are now simply ignored instead of rejecting everything.
Commit: 92d03461bbc87988efe14d209edb2604005f6344
https://github.com/MidnightBSD/src/commit/92d03461bbc87988efe14d209edb2604005f6344
Author: Lucas Holt <luke at foolishgames.com>
Date: 2020-11-17 (Tue, 17 Nov 2020)
Changed paths:
M sys/dev/ciss/ciss.c
Log Message:
-----------
Fix model number
Compare: https://github.com/MidnightBSD/src/compare/ac15dc59e083...92d03461bbc8
More information about the Midnightbsd-cvs
mailing list