The NetBSD Project

CVS log for src/sys/dev/acpi/acpi_util.h

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / acpi

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.15 / (download) - annotate - [select for diffs], Sat Jul 23 03:08:17 2022 UTC (19 months, 1 week ago) by thorpej
Branch: MAIN
CVS Tags: triaxx-drm, thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

- Handle dtlink in acpi_pack_compat_list().
- Don't pass the _HID value as the device name; always use the ACPI
  node name.

Revision 1.14 / (download) - annotate - [select for diffs], Sat Jan 22 11:49:17 2022 UTC (2 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

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.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Jan 15 14:40:33 2022 UTC (2 years, 1 month ago) by jmcneill
Branch: MAIN
Changes since 1.12: +3 -1 lines
Diff to previous 1.12 (colored)

acpi: Add helper for querying DSM function 0.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jan 9 14:28:23 2022 UTC (2 years, 1 month ago) by jmcneill
Branch: MAIN
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored)

acpi: Add acpi_dsd_bool helper

Revision 1.8.8.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:43 2021 UTC (2 years, 11 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.8: +20 -1 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

Sync with HEAD.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Feb 5 17:12:43 2021 UTC (3 years ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.10: +7 -1 lines
Diff to previous 1.10 (colored)

ACPI device handle implementation.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jan 26 00:19:53 2021 UTC (3 years, 1 month ago) by jmcneill
Branch: MAIN
Changes since 1.9: +3 -1 lines
Diff to previous 1.9 (colored)

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.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Jan 14 14:35:53 2021 UTC (3 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.8: +12 -1 lines
Diff to previous 1.8 (colored)

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

Revision 1.5.54.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:02 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.5.54.1: +2 -1 lines
Diff to previous 1.5.54.1 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Merge changes from current as of 20200406

Revision 1.8 / (download) - annotate - [select for diffs], Sun Dec 29 13:45:11 2019 UTC (4 years, 2 months ago) by jmcneill
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: thorpej-futex
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

Add support for reading _DSD string property values.

Revision 1.5.54.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:05 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.5: +4 -1 lines
Diff to previous 1.5 (colored)

Sync with HEAD

Revision 1.5.52.2 / (download) - annotate - [select for diffs], Wed Dec 26 14:01:47 2018 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.5.52.1: +3 -1 lines
Diff to previous 1.5.52.1 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.7 / (download) - annotate - [select for diffs], Fri Dec 21 14:51:12 2018 UTC (5 years, 2 months ago) by jmcneill
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Changes since 1.6: +3 -1 lines
Diff to previous 1.6 (colored)

Add acpi_dsd_integer, which reads an integer value from an ACPI 5.0 _DSD
key/value package list.

Revision 1.5.52.1 / (download) - annotate - [select for diffs], Sat Oct 20 06:58:30 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)

Sync with head

Revision 1.6 / (download) - annotate - [select for diffs], Fri Oct 12 23:25:29 2018 UTC (5 years, 4 months ago) by jmcneill
Branch: MAIN
CVS Tags: pgoyette-compat-1126, pgoyette-compat-1020
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)

Add helper function to match a PCI-defined class/subclass/interface
against a _CLS object.

Revision 1.3.8.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:19:56 2011 UTC (12 years, 8 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.3: +7 -6 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jun 21 03:37:21 2011 UTC (12 years, 8 months ago) by jruoho
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base-20171202, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, nick-nhusb, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb8-mediatek-base, matt-nb8-mediatek, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, localcount-20160914, khorben-n900, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, jdolecek-ncqfixes-base, jdolecek-ncqfixes, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Rename acpi_get_node() to acpi_match_node() for consistency.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Jun 20 15:31:52 2011 UTC (12 years, 8 months ago) by jruoho
Branch: MAIN
Changes since 1.3: +5 -4 lines
Diff to previous 1.3 (colored)

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.

Revision 1.2.2.3 / (download) - annotate - [select for diffs], Tue Aug 17 06:46:01 2010 UTC (13 years, 6 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.2.2.2: +2 -0 lines
Diff to previous 1.2.2.2 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with HEAD.

Revision 1.3.2.2 / (download) - annotate - [select for diffs], Wed Aug 11 22:53:16 2010 UTC (13 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.3.2.1: +89 -0 lines
Diff to previous 1.3.2.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

sync with head.

Revision 1.2.4.3 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:34 2010 UTC (13 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.2.4.2: +3 -1 lines
Diff to previous 1.2.4.2 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

sync with head

Revision 1.3.2.1, Mon Jun 7 17:13:52 2010 UTC (13 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.3: +0 -89 lines
FILE REMOVED

file acpi_util.h was added on branch yamt-nfs-mp on 2010-08-11 22:53:16 +0000

Revision 1.3 / (download) - annotate - [select for diffs], Mon Jun 7 17:13:52 2010 UTC (13 years, 9 months ago) by jruoho
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-nfs-mp, cherry-xenmp
Changes since 1.2: +3 -1 lines
Diff to previous 1.2 (colored)

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.

Revision 1.2.4.2 / (download) - annotate - [select for diffs], Sun May 30 05:17:17 2010 UTC (13 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.2.4.1: +87 -0 lines
Diff to previous 1.2.4.1 (colored) to branchpoint 1.2 (colored)

sync with head

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:06 2010 UTC (13 years, 10 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.2.2.1: +87 -0 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored)

Sync with HEAD.

Revision 1.2.4.1, Sat Apr 24 06:57:10 2010 UTC (13 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.2: +0 -87 lines
FILE REMOVED

file acpi_util.h was added on branch rmind-uvmplock on 2010-05-30 05:17:17 +0000

Revision 1.2.2.1, Sat Apr 24 06:57:10 2010 UTC (13 years, 10 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.2: +0 -87 lines
FILE REMOVED

file acpi_util.h was added on branch uebayasi-xip on 2010-04-30 14:43:06 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Sat Apr 24 06:57:10 2010 UTC (13 years, 10 months ago) by jruoho
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

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.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Apr 14 17:12:14 2010 UTC (13 years, 10 months ago) by jruoho
Branch: MAIN

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

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>