CVS log for src/sys/dev/acpi/acpi_util.c
Up to [cvs.NetBSD.org] / src / sys / dev / acpi
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.33: download - view: text, markup, annotated - select for diffs
Sat Jul 23 03:08:17 2022 UTC (2 years, 3 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-10-base,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
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
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +64 -8
lines
- 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.32: download - view: text, markup, annotated - select for diffs
Sat Jan 22 11:49:17 2022 UTC (2 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +15 -8
lines
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.31: download - view: text, markup, annotated - select for diffs
Sat Jan 15 14:40:22 2022 UTC (2 years, 9 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +34 -2
lines
acpi: Add helper for querying DSM function 0.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Sun Jan 9 14:28:23 2022 UTC (2 years, 9 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +15 -2
lines
acpi: Add acpi_dsd_bool helper
Revision 1.29: download - view: text, markup, annotated - select for diffs
Fri Dec 31 13:15:00 2021 UTC (2 years, 10 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +59 -18
lines
acpi: Support DT link compat string lists
A "compatible" DSD property may either be a string, or a package of
strings. Support both variants in acpi_compatible_match.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Dec 26 14:34:39 2021 UTC (2 years, 10 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +39 -7
lines
acpi: Support DT link device ID
The PRP0001 device ID is used to tell the OS to match a driver against
the "compatible" _DSD property. Make acpi_compatible_match aware of this
special device ID and match device compatible entries against the
compatible property when applicable.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Dec 20 11:17:40 2021 UTC (2 years, 10 months ago) by skrll
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -3
lines
Fix struct member prefix to be consistent. same code before and after.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Wed Sep 15 17:33:08 2021 UTC (3 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +5 -3
lines
Adjust the device_call() calling convention so as to provide type checking
of the arguments passed to the call, using auto-generated argument
structures and binding macros.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Aug 9 20:49:09 2021 UTC (3 years, 2 months ago) by andvar
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3
lines
fix various typos in compatibility, mainly in comments.
Revision 1.19.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:28:43 2021 UTC (3 years, 7 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +321 -5
lines
Sync with HEAD.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Feb 5 17:12:43 2021 UTC (3 years, 8 months ago) by thorpej
Branches: 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
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +71 -2
lines
ACPI device handle implementation.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Wed Jan 27 05:11:54 2021 UTC (3 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +119 -25
lines
Introduce weighted matching for ACPI autoconfiguration, and provide
acpi_compatible_match() based around device_compatible_entry. Matches
against _HID score big, matches against _CID are weighted in the
standard most-to-least-specific ordering, less than _HID.
Also provide a maching value for _CLS, that's always less than _HID
and _CID matches, and use that in acpi_match_class().
Also provide acpi_compatible_lookup(), that returing the matching
entry based on the same criteria.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Jan 26 00:23:16 2021 UTC (3 years, 9 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +4 -3
lines
build fix
Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Jan 26 00:19:53 2021 UTC (3 years, 9 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +18 -2
lines
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.20: download - view: text, markup, annotated - select for diffs
Thu Jan 14 14:35:53 2021 UTC (3 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +140 -4
lines
- 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.19: download - view: text, markup, annotated - select for diffs
Fri Oct 23 10:59:37 2020 UTC (4 years ago) by jmcneill
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +20 -9
lines
Add acpi_intr_establish_irq, which is like acpi_intr_establish except
it takes a struct acpi_irq * instead of ACPI_HANDLE. Useful if a device
has more than one IRQ resource (acpi_intr_establish always picks the
first).
Revision 1.11.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:02 2020 UTC (4 years, 6 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.11.2.1: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.2.1: +66 -20
lines
Merge changes from current as of 20200406
Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Dec 31 09:10:15 2019 UTC (4 years, 10 months ago) by mlelstv
Branches: 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
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +6 -4
lines
Free buffers only when allocated.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Dec 29 13:45:11 2019 UTC (4 years, 10 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +47 -19
lines
Add support for reading _DSD string property values.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Dec 22 15:57:07 2019 UTC (4 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +18 -2
lines
Add acpi_intr_mask() and acpi_intr_unmask() which, following the pre-existing
ACPI software layering model, are wrappers around acpi_md_intr_mask() and
acpi_md_intr_unmask(), which in turn are wrappers around intr_mask() and
intr_unmask().
XXX ARM and IA64 implementations of acpi_md_intr_mask() and
acpi_md_intr_unmask() are just stubs for now.
Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:05 2019 UTC (5 years, 4 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +118 -15
lines
Sync with HEAD
Revision 1.10.2.4: download - view: text, markup, annotated - select for diffs
Wed Dec 26 14:01:47 2018 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.10.2.3: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.2.3: +66 -2
lines
Sync with HEAD, resolve a few conflicts
Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri Dec 21 14:51:12 2018 UTC (5 years, 10 months ago) by jmcneill
Branches: MAIN
CVS tags: phil-wifi-20191119,
phil-wifi-20190609,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
netbsd-9-base,
netbsd-9-4-RELEASE,
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
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +66 -2
lines
Add acpi_dsd_integer, which reads an integer value from an ACPI 5.0 _DSD
key/value package list.
Revision 1.10.2.3: download - view: text, markup, annotated - select for diffs
Mon Nov 26 01:52:30 2018 UTC (5 years, 11 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.10.2.2: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.2: +16 -15
lines
Sync with HEAD, resolve a couple of conflicts
Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri Nov 16 23:05:50 2018 UTC (5 years, 11 months ago) by jmcneill
Branches: MAIN
CVS tags: pgoyette-compat-1126
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +16 -15
lines
Use acpi_md_intr_establish/disestablish to handle device IRQs. The existing
code abused AcpiOsInstallInterruptHandler, which is meant for installing
the SCI handler.
Revision 1.10.2.2: download - view: text, markup, annotated - select for diffs
Sat Oct 20 06:58:30 2018 UTC (6 years ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.10.2.1: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.1: +40 -2
lines
Sync with head
Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Oct 12 23:25:29 2018 UTC (6 years ago) by jmcneill
Branches: MAIN
CVS tags: pgoyette-compat-1020
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +39 -2
lines
Add helper function to match a PCI-defined class/subclass/interface
against a _CLS object.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Oct 12 21:19:11 2018 UTC (6 years ago) by jmcneill
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -2
lines
Pull in sys/cpu.h for struct cpu_info and CPU_INFO_ITERATOR.
Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Thu Mar 22 01:44:48 2018 UTC (6 years, 7 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +4 -4
lines
Synch with HEAD, resolve conflicts
Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Mar 20 12:14:52 2018 UTC (6 years, 7 months ago) by bouyer
Branches: MAIN
CVS tags: phil-wifi-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,
jdolecek-ncqfixes-base,
jdolecek-ncqfixes
Branch point for: phil-wifi
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +4 -4
lines
Allow registering ACPI interrupt handlers with a xname.
AcpiOsInstallInterruptHandler(), part of ACPICA API, doesn't allow passing
the xname. I extend the API with AcpiOsInstallInterruptHandler_xname()
for this purpose, and change acpi_md_OsInstallInterruptHandler() to
accept and use the xname (ia64 doens't use it).
The xname was hardcoded to "acpi SCI" in the
x86 acpi_md_OsInstallInterruptHandler(), so I make
AcpiOsInstallInterruptHandler() call
AcpiOsInstallInterruptHandler_xname with xname = "acpi SCI".
Now 'vmstat -i' shows the device's name instead of "acpi SCI" for for i2c HID
interrupts.
Proposed on tech-kern@ on Dec 29.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Dec 10 18:52:41 2017 UTC (6 years, 10 months ago) by bouyer
Branches: MAIN
CVS tags: pgoyette-compat-base,
pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3
lines
Cast to uintptr_t before casting to void *; fix a warning on i386
Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Dec 10 16:51:30 2017 UTC (6 years, 10 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +64 -2
lines
Implement a ACPI helper to fill the property array expected from our I2C
framework from the ACPI tables.
Also implement acpi_intr_establish(), acpi_intr_disestablish() and
acpi_intr_string().
Needed for the upcoming HID over I2C support, proposed on tech-kern@
on Dec, 1.
Revision 1.6.6.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:19:56 2011 UTC (13 years, 4 months ago) by cherry
Branches: cherry-xenmp
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +180 -41
lines
Catchup with rmind-uvmplock merge.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Jun 21 03:37:21 2011 UTC (13 years, 4 months ago) by jruoho
Branches: 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,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
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-3-RELEASE,
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-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan,
agc-symver-base,
agc-symver
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +39 -40
lines
Rename acpi_get_node() to acpi_match_node() for consistency.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Jun 20 15:31:52 2011 UTC (13 years, 4 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +145 -5
lines
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.4.4.4: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:53:03 2011 UTC (13 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.4.4.3: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.4.3: +7 -2
lines
sync with head
Revision 1.4.2.4: download - view: text, markup, annotated - select for diffs
Sat Nov 6 08:08:27 2010 UTC (14 years ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.4.2.3: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.2.3: +7 -2
lines
Sync with HEAD.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Nov 2 16:45:48 2010 UTC (14 years ago) by gsutre
Branches: MAIN
CVS tags: uebayasi-xip-base4,
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: cherry-xenmp
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +7 -2
lines
acpi_eval_integer: check that the evaluation produced a result.
ok jruoho@
Revision 1.4.2.3: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:46:00 2010 UTC (14 years, 2 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.4.2.2: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.2.2: +23 -9
lines
Sync with HEAD.
Revision 1.5.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:53:16 2010 UTC (14 years, 2 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.5.2.1: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.2.1: +364 -0
lines
sync with head.
Revision 1.4.4.3: download - view: text, markup, annotated - select for diffs
Sat Jul 3 01:19:34 2010 UTC (14 years, 4 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.4.4.2: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.2: +25 -11
lines
sync with head
Revision 1.5.2.1
Mon Jun 7 17:13:52 2010 UTC (14 years, 5 months ago) by yamt
Branches: yamt-nfs-mp
FILE REMOVED
Changes since revision 1.5: +0 -364
lines
file acpi_util.c was added on branch yamt-nfs-mp on 2010-08-11 22:53:16 +0000
Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Jun 7 17:13:52 2010 UTC (14 years, 5 months ago) by jruoho
Branches: MAIN
CVS tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base3,
uebayasi-xip-base2
Branch point for: yamt-nfs-mp
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +25 -11
lines
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.4.4.2: download - view: text, markup, annotated - select for diffs
Sun May 30 05:17:17 2010 UTC (14 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.4.4.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.1: +350 -0
lines
sync with head
Revision 1.4.2.2: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:43:06 2010 UTC (14 years, 6 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.4.2.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.2.1: +350 -0
lines
Sync with HEAD.
Revision 1.4.4.1
Tue Apr 27 08:15:07 2010 UTC (14 years, 6 months ago) by rmind
Branches: rmind-uvmplock
FILE REMOVED
Changes since revision 1.4: +0 -350
lines
file acpi_util.c was added on branch rmind-uvmplock on 2010-05-30 05:17:17 +0000
Revision 1.4.2.1
Tue Apr 27 08:15:07 2010 UTC (14 years, 6 months ago) by uebayasi
Branches: uebayasi-xip
FILE REMOVED
Changes since revision 1.4: +0 -350
lines
file acpi_util.c was added on branch uebayasi-xip on 2010-04-30 14:43:06 +0000
Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Apr 27 08:15:07 2010 UTC (14 years, 6 months ago) by jruoho
Branches: MAIN
CVS tags: uebayasi-xip-base1
Branch point for: uebayasi-xip,
rmind-uvmplock
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +9 -3
lines
Be consistent with the returned exception codes. Check for NULL pointers.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Apr 24 06:57:10 2010 UTC (14 years, 6 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +26 -2
lines
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.2: download - view: text, markup, annotated - select for diffs
Thu Apr 15 04:03:39 2010 UTC (14 years, 6 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +17 -36
lines
Arrange some comments.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Apr 14 17:12:14 2010 UTC (14 years, 6 months ago) by jruoho
Branches: 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@.
CVSweb <webmaster@jp.NetBSD.org>