Home | History | Annotate | Download | only in acpi
History log of /src/sys/dev/acpi/acpi_util.h
RevisionDateAuthorComments
 1.16  11-Jan-2025  jmcneill acpi: i2c: only claim child devices with a _CRS or _ADR method

acpi_enter_i2c_devs is too aggressive with claiming child device nodes.
Restrict it to devices with either a _CRS or _ADR method. A driver is
free to claim more if appropriate.

Fixes missing HKEY (LEN0268) device on Thinkpad T14s Gen 6 (X1E).
 1.15  23-Jul-2022  thorpej branches: 1.15.10;
- Handle dtlink in acpi_pack_compat_list().
- Don't pass the _HID value as the device name; always use the ACPI
node name.
 1.14  22-Jan-2022  thorpej Change the devhandle_from_*() functions to also take a "super handle",
from which the newly created handle will inherit it's implementation.
The root implementation for a new handle type is used if an invalid
"super handle" is passed.
 1.13  15-Jan-2022  jmcneill acpi: Add helper for querying DSM function 0.
 1.12  09-Jan-2022  jmcneill acpi: Add acpi_dsd_bool helper
 1.11  05-Feb-2021  thorpej ACPI device handle implementation.
 1.10  26-Jan-2021  jmcneill Add a device_t parameter to acpi_enter_i2c_devs. If non-NULL, all child
acpi_devnodes will be claimed by that device so we don't later try to
attach a duplicate device to that node at acpinodebus.
 1.9  14-Jan-2021  thorpej - Add a new routine, acpi_pack_compat_list(), that packs the _HID
and _CID device ID strings into an OpenFirmware-like string list,
analogous to how the "compatible" property is represented in
OpenFirmware and the Device Tree specifications.
- Add generic routines for evaluating Device Specific Methods (_DSM).
 1.8  29-Dec-2019  jmcneill branches: 1.8.8;
Add support for reading _DSD string property values.
 1.7  21-Dec-2018  jmcneill Add acpi_dsd_integer, which reads an integer value from an ACPI 5.0 _DSD
key/value package list.
 1.6  12-Oct-2018  jmcneill Add helper function to match a PCI-defined class/subclass/interface
against a _CLS object.
 1.5  21-Jun-2011  jruoho branches: 1.5.52; 1.5.54;
Rename acpi_get_node() to acpi_match_node() for consistency.
 1.4  20-Jun-2011  jruoho Add two new functions, acpi_match_cpu_info() and acpi_match_cpu_handle(),
which will match a given struct cpu_info with the corresponding ACPI handle,
and vice versa.
 1.3  07-Jun-2010  jruoho branches: 1.3.2; 1.3.8;
Use the new ACPICA functions AcpiAttachData() and AcpiGetData() to associate
all "struct acpi_devnodes" to their corresponding ACPI_HANDLEs. Anywhere in
the acpi(4) subtree, the node-structure can be obtained from a handle via
acpi_get_node(). The idea is similar to e.g. device_private().

Benefits: (a) simplifies code, (b) avoids issues with locking as ACPICA does
the serialization for us, (c) avoids the need to access the glocal softc, and
(d) avoids the O(n) loop required to search for a handle from the node queue.
 1.2  24-Apr-2010  jruoho branches: 1.2.2; 1.2.4;
Add utility function acpi_get_node().

This retrieves a struct acpi_devnode from a handle. Since this requires
accessing the global softc, it is better to do it in one place alone. The
same goes for possible locking of the node-queue; it is better not to
publicize such a lock for generic device drivers.
 1.1  14-Apr-2010  jruoho Reorganize the main file: add several missing prototypes, move the functions
around so that they appear in their logical order and place, etc. In
addition, split the utility functions to a separate file.

No functional change. Ok jmcneill@.
 1.2.4.3  03-Jul-2010  rmind sync with head
 1.2.4.2  30-May-2010  rmind sync with head
 1.2.4.1  24-Apr-2010  rmind file acpi_util.h was added on branch rmind-uvmplock on 2010-05-30 05:17:17 +0000
 1.2.2.3  17-Aug-2010  uebayasi Sync with HEAD.
 1.2.2.2  30-Apr-2010  uebayasi Sync with HEAD.
 1.2.2.1  24-Apr-2010  uebayasi file acpi_util.h was added on branch uebayasi-xip on 2010-04-30 14:43:06 +0000
 1.3.8.1  23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.3.2.2  11-Aug-2010  yamt sync with head.
 1.3.2.1  07-Jun-2010  yamt file acpi_util.h was added on branch yamt-nfs-mp on 2010-08-11 22:53:16 +0000
 1.5.54.2  08-Apr-2020  martin Merge changes from current as of 20200406
 1.5.54.1  10-Jun-2019  christos Sync with HEAD
 1.5.52.2  26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.5.52.1  20-Oct-2018  pgoyette Sync with head
 1.8.8.1  03-Apr-2021  thorpej Sync with HEAD.
 1.15.10.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed