The NetBSD Project

CVS log for src/sys/dev/acpi/acpi.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.298.4.1: download - view: text, markup, annotated - select for diffs
Mon Mar 25 15:05:17 2024 UTC (8 months, 2 weeks ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-0-RELEASE
Diff to: previous 1.298: preferred, colored; next MAIN 1.299: preferred, colored
Changes since revision 1.298: +10 -2 lines
Pull up following revision(s) (requested by riastradh in ticket #639):

	sys/dev/acpi/acpivar.h: revision 1.90
	sys/dev/acpi/files.acpi: revision 1.129
	sys/dev/acpi/acpi.c: revision 1.299
	sys/dev/acpi/files.acpi: revision 1.130

acpi(4): New iattr `apeibus' for attaching an APEI driver.

APEI is the ACPI Platform Error Interface, a standard (if very
complicated) interface for reporting hardware errors to the OS.
Firmware support for APEI is presented through the ACPI tables BERT
(Boot Error Record Table), ERST (Error Record Serialization Table),
EINJ (Error Injection Table), and HEST (Hardware Error Source Table),
rather than through nodes in the ACPI device tree, so it can't just
attach through the existing acpinodebus iattr and instead requires a
special pseudo-bus like acpiwdrt(4).

No driver yet -- this is just the hook to attach one in a module.

The new member sc_apei of struct acpi_softc is placed at the end of
the structure so that this change can be safely pulled up to release
branches without risk to ABI compatibility in existing modules such
as acpiverbose.kmod which may rely on the layout (but not size) of
struct acpi_softc.

PR kern/58046

acpi(4): Make apeibus actually work as an iattr.
PR kern/58046

Revision 1.299: download - view: text, markup, annotated - select for diffs
Wed Mar 20 03:14:45 2024 UTC (8 months, 3 weeks ago) by riastradh
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.298: preferred, colored
Changes since revision 1.298: +10 -2 lines
acpi(4): New iattr `apeibus' for attaching an APEI driver.

APEI is the ACPI Platform Error Interface, a standard (if very
complicated) interface for reporting hardware errors to the OS.

Firmware support for APEI is presented through the ACPI tables BERT
(Boot Error Record Table), ERST (Error Record Serialization Table),
EINJ (Error Injection Table), and HEST (Hardware Error Source Table),
rather than through nodes in the ACPI device tree, so it can't just
attach through the existing acpinodebus iattr and instead requires a
special pseudo-bus like acpiwdrt(4).

No driver yet -- this is just the hook to attach one in a module.

The new member sc_apei of struct acpi_softc is placed at the end of
the structure so that this change can be safely pulled up to release
branches without risk to ABI compatibility in existing modules such
as acpiverbose.kmod which may rely on the layout (but not size) of
struct acpi_softc.

PR kern/58046

Revision 1.278.4.1: download - view: text, markup, annotated - select for diffs
Mon Nov 27 19:39:53 2023 UTC (12 months, 1 week ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE
Diff to: previous 1.278: preferred, colored; next MAIN 1.279: preferred, colored
Changes since revision 1.278: +4 -4 lines
Pull up following revision(s) (requested by abs in ticket #1765):

	sys/dev/acpi/acpi.c: revision 1.284

Stop walking MADT / GTDT subtables if we hit a header with length 0

Revision 1.298: download - view: text, markup, annotated - select for diffs
Tue May 31 20:28:57 2022 UTC (2 years, 6 months ago) by mrg
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Diff to: previous 1.297: preferred, colored
Changes since revision 1.297: +4 -2 lines
allow ACPI to compile without PCI support.  fixes ia64 build.

Revision 1.297: download - view: text, markup, annotated - select for diffs
Sun Feb 27 21:22:09 2022 UTC (2 years, 9 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.296: preferred, colored
Changes since revision 1.296: +7 -2 lines
acpi: Assert acpi_register_notify is not called twice.

Revision 1.296: download - view: text, markup, annotated - select for diffs
Sat Jan 22 11:49:17 2022 UTC (2 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.295: preferred, colored
Changes since revision 1.295: +6 -4 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.295: download - view: text, markup, annotated - select for diffs
Fri Dec 31 14:22:42 2021 UTC (2 years, 11 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.294: preferred, colored
Changes since revision 1.294: +11 -6 lines
acpi(9): Fix memory ordering and completion bugs in notifiers.

1. Guarantee everything which happened before acpi_register_notify
   has also happened before the notifier is actually called.

2. On acpi_deregister_notify, don't return until the notifier is
   definitely not running any more on any CPU, using
   AcpiOsWaitEventsComplete.

Revision 1.294: download - view: text, markup, annotated - select for diffs
Mon Dec 20 11:17:40 2021 UTC (2 years, 11 months ago) by skrll
Branches: MAIN
Diff to: previous 1.293: preferred, colored
Changes since revision 1.293: +11 -10 lines
Fix struct member prefix to be consistent.  same code before and after.

Revision 1.293: download - view: text, markup, annotated - select for diffs
Sat Aug 7 16:19:09 2021 UTC (3 years, 4 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Diff to: previous 1.292: preferred, colored
Changes since revision 1.292: +13 -21 lines
Merge thorpej-cfargs2.

Revision 1.292.4.1: download - view: text, markup, annotated - select for diffs
Wed Aug 4 17:24:17 2021 UTC (3 years, 4 months ago) by thorpej
Branches: thorpej-cfargs2
Diff to: previous 1.292: preferred, colored; next MAIN 1.293: preferred, colored
Changes since revision 1.292: +13 -21 lines
Adapt to CFARGS().

Revision 1.291.4.1: download - view: text, markup, annotated - select for diffs
Mon May 31 22:15:17 2021 UTC (3 years, 6 months ago) by cjep
Branches: cjep_staticlib_x
Diff to: previous 1.291: preferred, colored; next MAIN 1.292: preferred, colored
Changes since revision 1.291: +2 -39 lines
sync with head

Revision 1.291.2.1: download - view: text, markup, annotated - select for diffs
Thu May 13 00:47:29 2021 UTC (3 years, 6 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.291: preferred, colored; next MAIN 1.292: preferred, colored
Changes since revision 1.291: +2 -39 lines
Sync with HEAD.

Revision 1.292: download - view: text, markup, annotated - select for diffs
Wed May 12 23:22:33 2021 UTC (3 years, 6 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1
Branch point for: thorpej-cfargs2
Diff to: previous 1.291: preferred, colored
Changes since revision 1.291: +2 -39 lines
- Define a device call for PCI bus instances to fetch a direct child's
  device handle given the device's device/function #s (extracted from
  a pcitag_t).  Use it to associate the handle with the child device
  at config_found() time.
- Implement this device call for ACPI and OpenFirmware.
- Enable the OpenFirmware variant for evbarm FDT, macppc, ofppc, sparc64.
- Obsolete acpi_device_register(); it is no longer needed.
- Obsolete setting the OpenFirmware handle in PCI devices in the
  sparc64 device_register(); it is no longer needed.

Revision 1.291: download - view: text, markup, annotated - select for diffs
Sat Apr 24 23:36:52 2021 UTC (3 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: cjep_staticlib_x-base
Branch point for: thorpej-i2c-spi-conf, cjep_staticlib_x
Diff to: previous 1.290: preferred, colored
Changes since revision 1.290: +41 -27 lines
Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
  actually needed.
- Don't be explicit about what interface attribute is attaching if
  the device only has one.  (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
  situations, making is visibly easier to see when indirect config is
  in play, and allowing for future change in semantics.  (As of now,
  this is just a wrapper around config_match(), but that is an
  implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance.  This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).

Revision 1.285.2.2: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:28:43 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.285.2.1: preferred, colored; next MAIN 1.286: preferred, colored
Changes since revision 1.285.2.1: +46 -2 lines
Sync with HEAD.

Revision 1.290.2.3: download - view: text, markup, annotated - select for diffs
Sat Apr 3 16:10:39 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.290.2.2: preferred, colored; branchpoint 1.290: preferred, colored; next MAIN 1.291: preferred, colored
Changes since revision 1.290.2.2: +9 -10 lines
Pass CFARG_DEVHANDLE to config_found(), rather than setting the device
handle in acpi_device_register().

Revision 1.290.2.2: download - view: text, markup, annotated - select for diffs
Fri Apr 2 22:17:43 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.290.2.1: preferred, colored; branchpoint 1.290: preferred, colored
Changes since revision 1.290.2.1: +30 -18 lines
config_found_ia() -> config_found() w/ CFARG_IATTR.

Revision 1.290.2.1: download - view: text, markup, annotated - select for diffs
Sat Mar 20 19:33:39 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.290: preferred, colored
Changes since revision 1.290: +6 -3 lines
The proliferation if config_search_*() and config_found_*() combinations
is a little absurd, so begin to tidy this up:

- Introduce a new cfarg_t enumerated type, that defines the types of
  tag-value variadic arguments that can be passed to the various
  config_*() functions (CFARG_SUBMATCH, CFARG_IATTR, and CFARG_LOCATORS,
  for now, plus a CFARG_EOL sentinel).
- Collapse config_search_*() into config_search() that takes these
  variadic arguments.
- Convert all call sites of config_search_*() to the new signature.
  Noticed several incorrect usages along the way, which will be
  audited in a future commit.

Revision 1.290: download - view: text, markup, annotated - select for diffs
Fri Feb 5 17:13:40 2021 UTC (3 years, 10 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Diff to: previous 1.289: preferred, colored
Changes since revision 1.289: +37 -4 lines
Assign device handles to "at acpi" and "at pci" devices in
acpi_device_register().

Revision 1.289: download - view: text, markup, annotated - select for diffs
Thu Feb 4 21:39:00 2021 UTC (3 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.288: preferred, colored
Changes since revision 1.288: +13 -2 lines
Add acpi_device_register().  Just a placeholder for now.

Revision 1.285.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 14 14:38:05 2020 UTC (3 years, 11 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.285: preferred, colored
Changes since revision 1.285: +18 -4 lines
Sync w/ HEAD.

Revision 1.288: download - view: text, markup, annotated - select for diffs
Sun Dec 13 20:24:26 2020 UTC (3 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.287: preferred, colored
Changes since revision 1.287: +16 -3 lines
Add MI support for attaching drivers to arbitrary System Description
Tables.

Revision 1.287: download - view: text, markup, annotated - select for diffs
Mon Dec 7 10:57:41 2020 UTC (4 years ago) by jmcneill
Branches: MAIN
Diff to: previous 1.286: preferred, colored
Changes since revision 1.286: +2 -3 lines
acpicpu: Add support for ACPI P-states and T-states on Arm.

Revision 1.286: download - view: text, markup, annotated - select for diffs
Sun Nov 8 14:16:59 2020 UTC (4 years, 1 month ago) by jmcneill
Branches: MAIN
Diff to: previous 1.285: preferred, colored
Changes since revision 1.285: +4 -2 lines
Ignore PNP0001 (EISA interrupt controller) and PNP0C02 (motherboard
resources) when enumerating devices.

Revision 1.285: download - view: text, markup, annotated - select for diffs
Mon Jun 22 16:14:18 2020 UTC (4 years, 5 months ago) by maxv
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.284: preferred, colored
Changes since revision 1.284: +7 -2 lines
Fix memory leak. Found by kLSan.

Revision 1.283.4.1: download - view: text, markup, annotated - select for diffs
Mon Apr 20 11:29:02 2020 UTC (4 years, 7 months ago) by bouyer
Branches: bouyer-xenpvh
Diff to: previous 1.283: preferred, colored; next MAIN 1.284: preferred, colored
Changes since revision 1.283: +4 -4 lines
Sync with HEAD

Revision 1.271.2.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:18 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.271.2.2: preferred, colored; branchpoint 1.271: preferred, colored; next MAIN 1.272: preferred, colored
Changes since revision 1.271.2.2: +2 -2 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.284: download - view: text, markup, annotated - select for diffs
Thu Apr 9 10:46:19 2020 UTC (4 years, 8 months ago) by jmcneill
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, bouyer-xenpvh-base2, bouyer-xenpvh-base1
Diff to: previous 1.283: preferred, colored
Changes since revision 1.283: +4 -4 lines
Stop walking MADT / GTDT subtables if we hit a header with length 0

Revision 1.271.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:02 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.271.2.1: preferred, colored; branchpoint 1.271: preferred, colored
Changes since revision 1.271.2.1: +63 -11 lines
Merge changes from current as of 20200406

Revision 1.282.2.1: download - view: text, markup, annotated - select for diffs
Fri Jan 17 21:47:30 2020 UTC (4 years, 10 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.282: preferred, colored; next MAIN 1.283: preferred, colored
Changes since revision 1.282: +18 -7 lines
Sync with head.

Revision 1.283: download - view: text, markup, annotated - select for diffs
Fri Jan 17 17:06:32 2020 UTC (4 years, 10 months ago) by jmcneill
Branches: MAIN
CVS tags: phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1
Branch point for: bouyer-xenpvh
Diff to: previous 1.282: preferred, colored
Changes since revision 1.282: +18 -7 lines
Add support for Arm N1 SDP PCIe host controller.

The N1 SDP has a few bugs that we need to work around:
 - PCIe root port config space lives in a non-standard location.
 - Access to PCIe config space of devices that do not exist results in
   an sync SError. Firmware creates a "known devices" table at a fixed
   physical address that we use to filter PCI conf access to only known
   devices.

This change splits the Arm ACPI PCI quirks into separate files for each
host controller, and allows per-segment quirks to be applied.

These changes exposed some bugs in the MI ACPI layer related to
multi-segment support. The MI ACPI PCI code was using a shared PCI
chipset tag to access devices, and these accesses can happen before our
PCI host bridge drivers are attached! The global chipset tag is now gone,
and an MD callback can provide a custom tag on a per-segment basis.

Revision 1.282: download - view: text, markup, annotated - select for diffs
Tue Dec 31 12:27:50 2019 UTC (4 years, 11 months ago) by jmcneill
Branches: MAIN
CVS tags: ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.281: preferred, colored
Changes since revision 1.281: +29 -20 lines
Fetch bus_dma tags when acpi devnodes are created. They do not change
and this allows MD code to create more complex tags without being
concerned with the tag being destroyed later. While here, capture
translations offsets for address32/address64 resources.

Revision 1.281: download - view: text, markup, annotated - select for diffs
Mon Dec 30 19:52:11 2019 UTC (4 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.280: preferred, colored
Changes since revision 1.280: +3 -2 lines
Hide ACPI0004 devices on aarch64

Revision 1.280: download - view: text, markup, annotated - select for diffs
Mon Dec 30 19:49:38 2019 UTC (4 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.279: preferred, colored
Changes since revision 1.279: +16 -2 lines
MD code may allocate a new dma tag for attach args, so destroy it if the device node is not claimed

Revision 1.279: download - view: text, markup, annotated - select for diffs
Sun Dec 29 23:47:56 2019 UTC (4 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.278: preferred, colored
Changes since revision 1.278: +23 -6 lines
Allow MD code to provide custom bus_dma tags on a per-node basis. On Arm
this is required to return non-coherent bus_dma tags for device nodes with
_CCA=0

Revision 1.271.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:05 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.271: preferred, colored
Changes since revision 1.271: +66 -13 lines
Sync with HEAD

Revision 1.268.2.5: download - view: text, markup, annotated - select for diffs
Mon Nov 26 01:52:30 2018 UTC (6 years ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.268.2.4: preferred, colored; branchpoint 1.268: preferred, colored; next MAIN 1.269: preferred, colored
Changes since revision 1.268.2.4: +3 -2 lines
Sync with HEAD, resolve a couple of conflicts

Revision 1.278: download - view: text, markup, annotated - select for diffs
Sun Oct 21 13:41:15 2018 UTC (6 years, 1 month ago) by jmcneill
Branches: MAIN
CVS tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, 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, isaki-audio2-base, isaki-audio2
Branch point for: netbsd-9
Diff to: previous 1.277: preferred, colored
Changes since revision 1.277: +3 -2 lines
Add ACPI PCI link devices to ignored ids on arm64

Revision 1.268.2.4: download - view: text, markup, annotated - select for diffs
Sat Oct 20 06:58:30 2018 UTC (6 years, 1 month ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.268.2.3: preferred, colored; branchpoint 1.268: preferred, colored
Changes since revision 1.268.2.3: +65 -13 lines
Sync with head

Revision 1.277: download - view: text, markup, annotated - select for diffs
Tue Oct 16 22:29:43 2018 UTC (6 years, 1 month ago) by jmcneill
Branches: MAIN
CVS tags: pgoyette-compat-1020
Diff to: previous 1.276: preferred, colored
Changes since revision 1.276: +14 -11 lines
Ignore SCI and don't try to setup ACPI fixed hardware interfaces in HW-reduced mode

Revision 1.276: download - view: text, markup, annotated - select for diffs
Tue Oct 16 10:25:33 2018 UTC (6 years, 1 month ago) by jmcneill
Branches: MAIN
Diff to: previous 1.275: preferred, colored
Changes since revision 1.275: +3 -3 lines
Rename options ACPI_REDUCED_HARDWARE to ACPI_REDUCED_HW. The former is
a boolean in the acpica build, so use the latter to select the correct
value.

Revision 1.275: download - view: text, markup, annotated - select for diffs
Tue Oct 16 00:30:08 2018 UTC (6 years, 1 month ago) by jmcneill
Branches: MAIN
Diff to: previous 1.274: preferred, colored
Changes since revision 1.274: +7 -4 lines
Add ACPI_REDUCED_HARDWARE defflag (used by ACPICA) and fix acpi build with this option set.

Revision 1.274: download - view: text, markup, annotated - select for diffs
Fri Oct 12 21:35:54 2018 UTC (6 years, 1 month ago) by jmcneill
Branches: MAIN
Diff to: previous 1.273: preferred, colored
Changes since revision 1.273: +5 -2 lines
Ignore ACPI0007 (CPU device) nodes on aarch64.

Revision 1.273: download - view: text, markup, annotated - select for diffs
Fri Oct 12 21:20:54 2018 UTC (6 years, 1 month ago) by jmcneill
Branches: MAIN
Diff to: previous 1.272: preferred, colored
Changes since revision 1.272: +45 -2 lines
Add helper functions for walking GTDT subtables.

Revision 1.272: download - view: text, markup, annotated - select for diffs
Thu Oct 11 22:58:36 2018 UTC (6 years, 1 month ago) by jmcneill
Branches: MAIN
Diff to: previous 1.271: preferred, colored
Changes since revision 1.271: +3 -3 lines
Fix button type print; "type" is one of PSWITCH_TYPE_*, not ACPI_EVENT_*_BUTTON.

Revision 1.268.2.3: download - view: text, markup, annotated - select for diffs
Mon Jun 25 07:25:49 2018 UTC (6 years, 5 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.268.2.2: preferred, colored; branchpoint 1.268: preferred, colored
Changes since revision 1.268.2.2: +3 -3 lines
Sync with HEAD

Revision 1.271: download - view: text, markup, annotated - select for diffs
Fri May 25 15:48:00 2018 UTC (6 years, 6 months ago) by ryoon
Branches: MAIN
CVS tags: phil-wifi-base, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi
Diff to: previous 1.270: preferred, colored
Changes since revision 1.270: +3 -3 lines
If fixed feature buttons exist, print detection messages.

Revision 1.268.2.2: download - view: text, markup, annotated - select for diffs
Mon May 21 04:36:05 2018 UTC (6 years, 6 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.268.2.1: preferred, colored; branchpoint 1.268: preferred, colored
Changes since revision 1.268.2.1: +33 -2 lines
Sync with HEAD

Revision 1.270: download - view: text, markup, annotated - select for diffs
Sat May 5 17:16:23 2018 UTC (6 years, 7 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-compat-0521
Diff to: previous 1.269: preferred, colored
Changes since revision 1.269: +33 -2 lines
introduce acpi_device_present() to replace the previous _STA checks.

Revision 1.268.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 16 01:59:57 2018 UTC (6 years, 7 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.268: preferred, colored
Changes since revision 1.268: +4 -27 lines
Sync with HEAD, resolve some conflicts

Revision 1.269: download - view: text, markup, annotated - select for diffs
Sat Apr 7 15:49:52 2018 UTC (6 years, 8 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415
Diff to: previous 1.268: preferred, colored
Changes since revision 1.268: +4 -27 lines
Merge conflicts; STA methods and fields are not present anymore.

Revision 1.268: download - view: text, markup, annotated - select for diffs
Sun Mar 4 16:34:20 2018 UTC (6 years, 9 months ago) by scole
Branches: MAIN
CVS tags: pgoyette-compat-base, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.267: preferred, colored
Changes since revision 1.267: +3 -3 lines
Use "#if NPCI > 0" instead of "#ifdef NPCI" for compiling kernels with acpi, without pci.

Revision 1.267: download - view: text, markup, annotated - select for diffs
Sat Mar 3 11:23:24 2018 UTC (6 years, 9 months ago) by maya
Branches: MAIN
Diff to: previous 1.266: preferred, colored
Changes since revision 1.266: +3 -3 lines
include correct header for NPCI to be defined when necessary.
Now acpi.o has a call for acpimcfg_probe.

heads by paulg, sorry for breakage.

Revision 1.266: download - view: text, markup, annotated - select for diffs
Thu Mar 1 06:00:49 2018 UTC (6 years, 9 months ago) by maya
Branches: MAIN
Diff to: previous 1.265: preferred, colored
Changes since revision 1.265: +5 -2 lines
Limit building & calling ACPI MCFG to kernels with PCI and ACPI.

pci_quirks.c requires pci
acpi_mcfg.c was recently changed to use pci_quirks.c functions.

as a result, ia64 kernels with acpi but no pci failed to link.

tested an ia64 and amd64 kernels build.

Revision 1.254.2.4: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:58 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.254.2.3: preferred, colored; next MAIN 1.255: preferred, colored
Changes since revision 1.254.2.3: +17 -6 lines
update from HEAD

Revision 1.265: download - view: text, markup, annotated - select for diffs
Thu Nov 23 15:48:24 2017 UTC (7 years ago) by jmcneill
Branches: MAIN
CVS tags: tls-maxphys-base-20171202
Diff to: previous 1.264: preferred, colored
Changes since revision 1.264: +4 -2 lines
Add FALLTHROUGH comment in acpi_make_devnode ACPI_TYPE_DEVICE case.

Revision 1.264: download - view: text, markup, annotated - select for diffs
Sat Oct 28 04:53:55 2017 UTC (7 years, 1 month ago) by riastradh
Branches: MAIN
Diff to: previous 1.263: preferred, colored
Changes since revision 1.263: +4 -3 lines
Kill some more extern struct cfdriver declarations.

Down with externs in .c!

Revision 1.259.2.4: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:01 2017 UTC (7 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.259.2.3: preferred, colored; branchpoint 1.259: preferred, colored; next MAIN 1.260: preferred, colored
Changes since revision 1.259.2.3: +2 -5 lines
Sync with HEAD

Revision 1.263: download - view: text, markup, annotated - select for diffs
Thu Jun 1 02:45:09 2017 UTC (7 years, 6 months ago) by chs
Branches: MAIN
CVS tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, 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, matt-nb8-mediatek-base, matt-nb8-mediatek
Diff to: previous 1.262: preferred, colored
Changes since revision 1.262: +2 -5 lines
remove checks for failure after memory allocation calls that cannot fail:

  kmem_alloc() with KM_SLEEP
  kmem_zalloc() with KM_SLEEP
  percpu_alloc()
  pserialize_create()
  psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.

Revision 1.259.2.3: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:01 2016 UTC (8 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.259.2.2: preferred, colored; branchpoint 1.259: preferred, colored
Changes since revision 1.259.2.2: +8 -2 lines
Sync with HEAD

Revision 1.262: download - view: text, markup, annotated - select for diffs
Tue Jun 21 11:33:33 2016 UTC (8 years, 5 months ago) by nonaka
Branches: MAIN
CVS tags: 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, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Diff to: previous 1.261: preferred, colored
Changes since revision 1.261: +8 -2 lines
Pass bus_dma(9) tag to allow for porting sdhc(4) at acpi.

Revision 1.259.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:09:48 2015 UTC (8 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.259.2.1: preferred, colored; branchpoint 1.259: preferred, colored
Changes since revision 1.259.2.1: +8 -2 lines
Sync with HEAD (as of 26th Dec)

Revision 1.261: download - view: text, markup, annotated - select for diffs
Fri Oct 2 05:22:52 2015 UTC (9 years, 2 months ago) by msaitoh
Branches: MAIN
CVS tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226
Diff to: previous 1.260: preferred, colored
Changes since revision 1.260: +8 -2 lines
PCI Extended Configuration stuff written by nonaka@:
- Add PCI Extended Configuration Space support into x86.
- Check register offset of pci_conf_read() in MD part. It returns (pcireg_t)-1
  if it isn't accessible.
- Decode Extended Capability in PCI Extended Configuration Space.
  Currently the following extended capabilities are decoded:
   - Advanced Error Reporting
   - Virtual Channel
   - Device Serial Number
   - Power Budgeting
   - Root Complex Link Declaration
   - Root Complex Event Collector Association
   - Access Control Services
   - Alternative Routing-ID Interpretation
   - Address Translation Services
   - Single Root IO Virtualization
   - Page Request
   - TPH Requester
   - Latency Tolerance Reporting
   - Secondary PCI Express
   - Process Address Space ID
   - LN Requester
   - L1 PM Substates
  The following extended capabilities are not decoded yet:
   - Root Complex Internal Link Control
   - Multi-Function Virtual Channel
   - RCRB Header
   - Vendor Unique
   - Configuration Access Correction
   - Multiple Root IO Virtualization
   - Multicast
   - Resizable BAR
   - Dynamic Power Allocation
   - Protocol Multiplexing
   - Downstream Port Containment
   - Precision Time Management
   - M-PCIe
   - Function Reading Status Queueing
   - Readiness Time Reporting
   - Designated Vendor-Specific

Revision 1.259.2.1: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:05:56 2015 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.259: preferred, colored
Changes since revision 1.259: +3 -3 lines
Sync with HEAD

Revision 1.260: download - view: text, markup, annotated - select for diffs
Tue Aug 18 10:41:28 2015 UTC (9 years, 3 months ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20150921
Diff to: previous 1.259: preferred, colored
Changes since revision 1.259: +3 -3 lines
add extra argument to method.

Revision 1.259: download - view: text, markup, annotated - select for diffs
Sat Oct 25 21:00:20 2014 UTC (10 years, 1 month ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.258: preferred, colored
Changes since revision 1.258: +2 -3 lines
adjust for newer acpica

Revision 1.254.2.3: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:35 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.254.2.2: preferred, colored
Changes since revision 1.254.2.2: +7 -14 lines
Rebase to HEAD as of a few days ago.

Revision 1.251.2.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:19 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.251.2.2: preferred, colored; branchpoint 1.251: preferred, colored; next MAIN 1.252: preferred, colored
Changes since revision 1.251.2.2: +7 -14 lines
sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.255.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:35 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.255: preferred, colored; next MAIN 1.256: preferred, colored
Changes since revision 1.255: +7 -14 lines
sync with head

Revision 1.258: download - view: text, markup, annotated - select for diffs
Tue Feb 25 18:30:09 2014 UTC (10 years, 9 months ago) by pooka
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, 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
Diff to: previous 1.257: preferred, colored
Changes since revision 1.257: +3 -11 lines
Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.

Revision 1.257: download - view: text, markup, annotated - select for diffs
Sat Jan 25 21:11:20 2014 UTC (10 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.256: preferred, colored
Changes since revision 1.256: +5 -3 lines
fix unused

Revision 1.256: download - view: text, markup, annotated - select for diffs
Wed Oct 16 17:30:42 2013 UTC (11 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.255: preferred, colored
Changes since revision 1.255: +3 -4 lines
remove unused variable

Revision 1.252.6.1: download - view: text, markup, annotated - select for diffs
Thu Nov 22 00:39:00 2012 UTC (12 years ago) by riz
Branches: netbsd-6
CVS tags: 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
Diff to: previous 1.252: preferred, colored; next MAIN 1.253: preferred, colored
Changes since revision 1.252: +21 -20 lines
Pull up following revision(s) (requested by chs in ticket #683):
	sys/arch/ia64/include/acpi_machdep.h: revision 1.6
	sys/arch/x86/include/acpi_machdep.h: revision 1.11
	sys/dev/acpi/acpi.c: revision 1.255
	sys/arch/x86/acpi/acpi_machdep.c: revision 1.4
	sys/arch/x86/x86/mpacpi.c: revision 1.95
	sys/arch/x86/x86/mpacpi.c: revision 1.96
	sys/arch/ia64/acpi/acpi_machdep.c: revision 1.6
locate PCI buses and determine their bus numbers using the info
previously extracted from ACPICA rather than trying to figure it out again.
allow PCI buses that don't have a _PRT method.
as a workaround for PR 47016, call ioapic_reenable() at the end of
ACPI interrupt routing to fix the settings for the SCI interrupt.
the problem is that after my recent changes, the SCI handler is
installed before the MADT info is parsed, so we don't know what
polarity it should have.  the real fix for this will be to rearrange
the ACPI initialization so that everything is done in a more sensible
order, but that will take some more time.

Revision 1.254.2.2: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:01:58 2012 UTC (12 years ago) by tls
Branches: tls-maxphys
Diff to: previous 1.254.2.1: preferred, colored
Changes since revision 1.254.2.1: +21 -20 lines
Resync to 2012-11-19 00:00:00 UTC

Revision 1.251.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:20:50 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.251.2.1: preferred, colored; branchpoint 1.251: preferred, colored
Changes since revision 1.251.2.1: +22 -21 lines
sync with head

Revision 1.255: download - view: text, markup, annotated - select for diffs
Sun Sep 23 00:31:06 2012 UTC (12 years, 2 months ago) by chs
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Diff to: previous 1.254: preferred, colored
Changes since revision 1.254: +21 -20 lines
locate PCI buses and determine their bus numbers using the info
previously extracted from ACPICA rather than trying to figure it out again.
allow PCI buses that don't have a _PRT method.

Revision 1.254.2.1: download - view: text, markup, annotated - select for diffs
Wed Sep 12 06:15:32 2012 UTC (12 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.254: preferred, colored
Changes since revision 1.254: +5 -2 lines
Initial snapshot of work to eliminate 64K MAXPHYS.  Basically works for
physio (I/O to raw devices); needs more doing to get it going with the
filesystems, but it shouldn't damage data.

All work's been done on amd64 so far.  Not hard to add support to other
ports.  If others want to pitch in, one very helpful thing would be to
sort out when and how IDE disks can do 128K or larger transfers, and
adjust the various PCI IDE (or at least ahcisata) drivers and wd.c
accordingly -- it would make testing much easier.  Another very helpful
thing would be to implement a smart minphys() for RAIDframe along the
lines detailed in the MAXPHYS-NOTES file.

Revision 1.254: download - view: text, markup, annotated - select for diffs
Tue Aug 14 14:38:02 2012 UTC (12 years, 3 months ago) by jruoho
Branches: MAIN
Branch point for: tls-maxphys
Diff to: previous 1.253: preferred, colored
Changes since revision 1.253: +3 -3 lines
Use KM_SLEEP.

Revision 1.252.4.1: download - view: text, markup, annotated - select for diffs
Sun Apr 29 23:04:48 2012 UTC (12 years, 7 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.252: preferred, colored; next MAIN 1.253: preferred, colored
Changes since revision 1.252: +3 -21 lines
sync to latest -current.

Revision 1.251.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:27 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.251: preferred, colored
Changes since revision 1.251: +4 -22 lines
sync with head

Revision 1.253: download - view: text, markup, annotated - select for diffs
Tue Apr 10 13:48:24 2012 UTC (12 years, 8 months ago) by jruoho
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base10
Diff to: previous 1.252: preferred, colored
Changes since revision 1.252: +3 -21 lines
Now that 6.0 is branched, remove the ACPI-related sysctl nodes in machdep.

Revision 1.252: download - view: text, markup, annotated - select for diffs
Mon Nov 14 02:44:59 2011 UTC (13 years ago) by jmcneill
Branches: MAIN
CVS tags: netbsd-6-base, 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, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: netbsd-6, jmcneill-usbmp
Diff to: previous 1.251: preferred, colored
Changes since revision 1.251: +3 -3 lines
add a machdep.dmi sysctl tree with the following read-only keys:
 system-vendor, system-product, system-version, system-serial, system-uuid
 bios-vendor, bios-version
 board-vendor, board-product, board-version, board-serial
the *-serial and *-uuid keys are marked with CTLFLAG_PRIVATE

a few of the pmf platform key names changed so update callers to match

Revision 1.251: download - view: text, markup, annotated - select for diffs
Tue Oct 18 23:47:26 2011 UTC (13 years, 1 month ago) by jmcneill
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Diff to: previous 1.250: preferred, colored
Changes since revision 1.250: +13 -2 lines
clear fixed events and disable GPEs before re-enabling interrupts on resume
from S1

Revision 1.250: download - view: text, markup, annotated - select for diffs
Fri Aug 5 18:59:44 2011 UTC (13 years, 4 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.249: preferred, colored
Changes since revision 1.249: +4 -16 lines
Turns out all we need is AcpiClearEvent in the right place,
and we don't really care if it fails.  Pointed out by jmcneill.

Revision 1.249: download - view: text, markup, annotated - select for diffs
Fri Aug 5 18:27:48 2011 UTC (13 years, 4 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.248: preferred, colored
Changes since revision 1.248: +17 -3 lines
As we add a handler for the ACPI fixed feature button events,
ensure they aren't going to trigger as soon as we enable interrupts,
furthermore ensure that the event is unmasked.

Revision 1.248: download - view: text, markup, annotated - select for diffs
Mon Aug 1 11:25:59 2011 UTC (13 years, 4 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.247: preferred, colored
Changes since revision 1.247: +42 -2 lines
add support for reset registers in PCI config space

Revision 1.247: download - view: text, markup, annotated - select for diffs
Sun Jul 17 02:32:01 2011 UTC (13 years, 4 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.246: preferred, colored
Changes since revision 1.246: +3 -3 lines
"successfully" spell "succesfully" in a comment.

Revision 1.241.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:19:54 2011 UTC (13 years, 5 months ago) by cherry
Branches: cherry-xenmp
Diff to: previous 1.241: preferred, colored; next MAIN 1.242: preferred, colored
Changes since revision 1.241: +40 -9 lines
Catchup with rmind-uvmplock merge.

Revision 1.246: download - view: text, markup, annotated - select for diffs
Tue Jun 21 03:37:21 2011 UTC (13 years, 5 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.245: preferred, colored
Changes since revision 1.245: +3 -3 lines
Rename acpi_get_node() to acpi_match_node() for consistency.

Revision 1.245: download - view: text, markup, annotated - select for diffs
Tue Jun 14 13:59:23 2011 UTC (13 years, 5 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.244: preferred, colored
Changes since revision 1.244: +22 -2 lines
Try to attach hpet(4) also via a specific HPET table. Fixes PR kern/43702.

Revision 1.244: download - view: text, markup, annotated - select for diffs
Mon Jun 13 09:37:23 2011 UTC (13 years, 6 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.243: preferred, colored
Changes since revision 1.243: +8 -8 lines
Call _PDC only after AcpiInitializeObjects(ACPI_FULL_INITIALIZATION).

Revision 1.243: download - view: text, markup, annotated - select for diffs
Sun Jun 12 10:11:52 2011 UTC (13 years, 6 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.242: preferred, colored
Changes since revision 1.242: +10 -4 lines
Move the evaluation of the _PDC control method out from the acpicpu(4)
driver to the main acpi(4) stack. Follow Linux and evaluate it early.
Should fix PR port-amd64/42895, possibly also PR kern/42583, and many
other comparable bugs.

A common sense explanation is that Intel supplies additional CPU tables to
OEMs. BIOS writers do not bother to modify their DSDTs, but instead load
these extra tables dynamically as secondary SSDT tables. The actual Load()
happens when the _PDC method is invoked, and thus namespace errors occur
when the CPU-specific ACPI methods are not yet present but referenced in the
AML by various drivers, including, but not limited to, acpitz(4).

Revision 1.159.2.4: download - view: text, markup, annotated - select for diffs
Sun Jun 12 00:24:13 2011 UTC (13 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.159.2.3: preferred, colored; next MAIN 1.160: preferred, colored
Changes since revision 1.159.2.3: +16 -2 lines
sync with head

Revision 1.233.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:07:39 2011 UTC (13 years, 6 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.233: preferred, colored; next MAIN 1.234: preferred, colored
Changes since revision 1.233: +84 -109 lines
Sync with HEAD.

Revision 1.242: download - view: text, markup, annotated - select for diffs
Fri Jun 3 09:15:02 2011 UTC (13 years, 6 months ago) by jruoho
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base
Diff to: previous 1.241: preferred, colored
Changes since revision 1.241: +11 -6 lines
Flush CPU caches before entering S1, as noted in the specifications.

Revision 1.241: download - view: text, markup, annotated - select for diffs
Tue May 31 14:27:44 2011 UTC (13 years, 6 months ago) by jruoho
Branches: MAIN
CVS tags: cherry-xenmp-base
Branch point for: cherry-xenmp
Diff to: previous 1.240: preferred, colored
Changes since revision 1.240: +13 -4 lines
Fix a bug where the S1 state was exited via AcpiLeaveSleepState() with
interrupts being off at machine-level. Also add some comments.

Revision 1.159.2.3: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:53:01 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.159.2.2: preferred, colored
Changes since revision 1.159.2.2: +607 -478 lines
sync with head

Revision 1.234.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 15:10:15 2011 UTC (13 years, 9 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.234.2.1: preferred, colored; next MAIN 1.235: preferred, colored
Changes since revision 1.234.2.1: +60 -106 lines
Sync with HEAD

Revision 1.240: download - view: text, markup, annotated - select for diffs
Sun Feb 27 17:10:33 2011 UTC (13 years, 9 months ago) by jruoho
Branches: MAIN
CVS tags: bouyer-quota2-nbase
Diff to: previous 1.239: preferred, colored
Changes since revision 1.239: +4 -5 lines
Move acpicpu(4) from "acpinodebus" to "cpufeaturebus".

Revision 1.239: download - view: text, markup, annotated - select for diffs
Sun Feb 20 16:24:54 2011 UTC (13 years, 9 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.238: preferred, colored
Changes since revision 1.238: +10 -19 lines
Use kmem(9). Also retire ACPI_PCI_FIXUP and PCI_INTR_FIXUP_DISABLED #ifdefs.

Revision 1.238: download - view: text, markup, annotated - select for diffs
Sun Feb 20 06:45:32 2011 UTC (13 years, 9 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.237: preferred, colored
Changes since revision 1.237: +32 -83 lines
Add quirk support for _OSI strings introduced in ACPICA 20110211. While
here, clean up acpi_probe() and the quirk code. Remove #ifdef ACPI_DEBUGGER.

Revision 1.237: download - view: text, markup, annotated - select for diffs
Sat Feb 19 09:52:32 2011 UTC (13 years, 9 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.236: preferred, colored
Changes since revision 1.236: +3 -2 lines
Revisit the wake-device code once more.

  1. Remove the AcpiEnableGpe() call. This was wrong.

  2. Only call _PSW or _DSW for devices that are scheduled for wake.
     This was an old bug.

  3. Only enable wake GPEs during suspend. Disabling these for
     devices not setup for wake was causing problems.

  4. No wake GPEs should be enabled at runtime.
     Unconditionally disable these during resume.

This should make the wake-device code work again. Note that waking via
pckbd(4) has always been unreliable; the _PRW object is not typically located
under the PC keyboard object, but in the parent of it (e.g. the LPC bridge).

Revision 1.236: download - view: text, markup, annotated - select for diffs
Thu Feb 17 19:36:49 2011 UTC (13 years, 9 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.235: preferred, colored
Changes since revision 1.235: +19 -5 lines
As explained in the new ACPICA documentation, as of ACPICA 20101207, the
_PRW methods are no longer automatically executed as part of the ACPICA
initialization. Refactor and rewrite the wake-device code to account this.

Revision 1.234.2.1: download - view: text, markup, annotated - select for diffs
Thu Feb 17 12:00:09 2011 UTC (13 years, 9 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.234: preferred, colored
Changes since revision 1.234: +5 -4 lines
Sync with HEAD

Revision 1.235: download - view: text, markup, annotated - select for diffs
Tue Feb 15 20:24:11 2011 UTC (13 years, 9 months ago) by jruoho
Branches: MAIN
CVS tags: bouyer-quota2-base
Diff to: previous 1.234: preferred, colored
Changes since revision 1.234: +5 -4 lines
Reset the firmware waking vector on resume. Adapted from FreeBSD and Linux.
No functional change intended.

Revision 1.234: download - view: text, markup, annotated - select for diffs
Mon Jan 17 15:49:13 2011 UTC (13 years, 10 months ago) by jmcneill
Branches: MAIN
Branch point for: bouyer-quota2
Diff to: previous 1.233: preferred, colored
Changes since revision 1.233: +8 -2 lines
Add a driver for ACPI "Watchdog Resource Table" devices.

  acpiwdrt0 at acpi0: mem 0xfed01000,0xfed01004
  acpiwdrt0: PCI 0:000:00:0 vendor 0x1106 product 0x3337
  acpiwdrt0: watchdog interval 1-1023 sec.

Revision 1.233: download - view: text, markup, annotated - select for diffs
Thu Jan 13 05:58:05 2011 UTC (13 years, 10 months ago) by jruoho
Branches: MAIN
CVS tags: jruoho-x86intr-base
Branch point for: jruoho-x86intr
Diff to: previous 1.232: preferred, colored
Changes since revision 1.232: +44 -53 lines
Clean-up acpi_print(). XXX: The 'acpiverbose' module is still broken...

Revision 1.232: download - view: text, markup, annotated - select for diffs
Thu Jan 13 05:14:48 2011 UTC (13 years, 10 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.231: preferred, colored
Changes since revision 1.231: +10 -2 lines
Scan for docking stations.

Revision 1.231: download - view: text, markup, annotated - select for diffs
Thu Jan 13 04:18:19 2011 UTC (13 years, 10 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.230: preferred, colored
Changes since revision 1.230: +13 -9 lines
Do not try to attach more ACPI CPUs than the amount of "real" CPUs.

Revision 1.230: download - view: text, markup, annotated - select for diffs
Tue Jan 11 20:35:24 2011 UTC (13 years, 11 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.229: preferred, colored
Changes since revision 1.229: +7 -2 lines
Disable all GPEs when entering S5. Also add a comment that the function
acpi_enter_sleep_state() must be called with interrupts enabled.

Revision 1.229: download - view: text, markup, annotated - select for diffs
Thu Jan 6 07:05:00 2011 UTC (13 years, 11 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.228: preferred, colored
Changes since revision 1.228: +28 -21 lines
Split the code that makes a string from ACPI_DEVICE_INFO::Name to a function.

Revision 1.228: download - view: text, markup, annotated - select for diffs
Thu Jan 6 06:49:12 2011 UTC (13 years, 11 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.227: preferred, colored
Changes since revision 1.227: +169 -167 lines
Move the ACPI_ACTIVATE_DEV block around for clarity.

Revision 1.227: download - view: text, markup, annotated - select for diffs
Wed Jan 5 08:08:47 2011 UTC (13 years, 11 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.226: preferred, colored
Changes since revision 1.226: +6 -9 lines
Adjust previous slightly.

Revision 1.226: download - view: text, markup, annotated - select for diffs
Wed Jan 5 07:58:04 2011 UTC (13 years, 11 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.225: preferred, colored
Changes since revision 1.225: +52 -3 lines
Make a two-pass scan for acpinodebus. This should ensure that devices such
as acpiec(4) are attached before anything else. Numerous bugs are expected
to be fixed with this change.

Revision 1.225: download - view: text, markup, annotated - select for diffs
Mon Jan 3 08:50:23 2011 UTC (13 years, 11 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.224: preferred, colored
Changes since revision 1.224: +10 -2 lines
Scan for devices that are "hot-pluggable".

Revision 1.224: download - view: text, markup, annotated - select for diffs
Sun Jan 2 06:05:47 2011 UTC (13 years, 11 months ago) by jruoho
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231
Diff to: previous 1.223: preferred, colored
Changes since revision 1.223: +9 -5 lines
Use "real" device names for the hw.acpi.wake and hw.acpi.power sysctl(8)
trees. For instance, instead of hw.acpi.wake.DURT, we have hw.acpi.wake.wm0
for wm(4). This is a temporary solution, but without solving the big
abstraction questions, this is the best we can do.

Revision 1.223: download - view: text, markup, annotated - select for diffs
Fri Dec 31 09:19:43 2010 UTC (13 years, 11 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.222: preferred, colored
Changes since revision 1.222: +24 -5 lines
Move the ACPI sleep-specific sysctl variables to hw.acpi.sleep. The old
machdep-variables are provided for backwards compatibility (eventually these
should be removed). All ACPI sysctl variables are now under hw.acpi.

Revision 1.148.2.4: download - view: text, markup, annotated - select for diffs
Sat Nov 6 08:08:27 2010 UTC (14 years, 1 month ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.148.2.3: preferred, colored; branchpoint 1.148: preferred, colored; next MAIN 1.149: preferred, colored
Changes since revision 1.148.2.3: +17 -4 lines
Sync with HEAD.

Revision 1.222: download - view: text, markup, annotated - select for diffs
Sun Oct 24 07:53:04 2010 UTC (14 years, 1 month ago) by jruoho
Branches: MAIN
CVS tags: uebayasi-xip-base4
Diff to: previous 1.221: preferred, colored
Changes since revision 1.221: +17 -4 lines
Simplify acpi_enter_sleep_state() and guard it against NULL pointer
dereferences. Try to avoid referencing the global acpi_softc, which should
really be static or at least internal to acpi(4).

Revision 1.148.2.3: download - view: text, markup, annotated - select for diffs
Fri Oct 22 07:21:51 2010 UTC (14 years, 1 month ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.148.2.2: preferred, colored; branchpoint 1.148: preferred, colored
Changes since revision 1.148.2.2: +11 -19 lines
Sync with HEAD (-D20101022).

Revision 1.221: download - view: text, markup, annotated - select for diffs
Tue Oct 12 19:10:50 2010 UTC (14 years, 2 months ago) by gsutre
Branches: MAIN
CVS tags: uebayasi-xip-base3
Diff to: previous 1.220: preferred, colored
Changes since revision 1.220: +3 -4 lines
Merge ACPI display driver.  Provides generic support for brightness
control and output switching, through ACPI video extensions.

TODO: use wsconsctl(8) instead of sysctl(8) for brightness control.

ok jruoho@
also discussed with cegger@ and jmcneill@

Revision 1.114.2.8: download - view: text, markup, annotated - select for diffs
Sat Oct 9 03:32:03 2010 UTC (14 years, 2 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.114.2.7: preferred, colored; branchpoint 1.114: preferred, colored; next MAIN 1.115: preferred, colored
Changes since revision 1.114.2.7: +12 -19 lines
sync with head

Revision 1.220: download - view: text, markup, annotated - select for diffs
Sat Oct 2 18:06:47 2010 UTC (14 years, 2 months ago) by gsutre
Branches: MAIN
CVS tags: yamt-nfs-mp-base11
Diff to: previous 1.219: preferred, colored
Changes since revision 1.219: +2 -11 lines
Drop _HID requirement for attachment under acpi(4).  From now on,
drivers attaching to the acpinodebus interface should not assume
that the passed acpi_devnode has a valid _HID.

ok jruoho@

Revision 1.219: download - view: text, markup, annotated - select for diffs
Mon Sep 6 15:54:26 2010 UTC (14 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.218: preferred, colored
Changes since revision 1.218: +9 -2 lines
Add support for blacklisting ACPI BIOS implementations by year. By default,
don't use ACPI on BIOS which advertise release years <= 2000. This
can be changed by setting option ACPI_BLACKLIST_YEAR=0 or by setting
acpi_force_load=1.

Revision 1.218: download - view: text, markup, annotated - select for diffs
Tue Aug 24 04:36:02 2010 UTC (14 years, 3 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.217: preferred, colored
Changes since revision 1.217: +4 -3 lines
Initialize acpi_force_load so that it gets allocated in the data segment
rather than BSS.  This lets you change its value with 'gdb --write'.

OK jruoho@

Revision 1.217: download - view: text, markup, annotated - select for diffs
Sun Aug 22 00:39:08 2010 UTC (14 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.216: preferred, colored
Changes since revision 1.216: +2 -5 lines
Don't put devices in the ignored IDs list just because no driver exists.

Revision 1.216: download - view: text, markup, annotated - select for diffs
Sat Aug 21 13:18:35 2010 UTC (14 years, 3 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.215: preferred, colored
Changes since revision 1.215: +3 -6 lines
Update the various xxx_verbose modules to conform to the module subsystem's
new locking protocol.

Revision 1.148.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:45:58 2010 UTC (14 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.148.2.1: preferred, colored; branchpoint 1.148: preferred, colored
Changes since revision 1.148.2.1: +202 -174 lines
Sync with HEAD.

Revision 1.114.2.7: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:53:15 2010 UTC (14 years, 4 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.114.2.6: preferred, colored; branchpoint 1.114: preferred, colored
Changes since revision 1.114.2.6: +1161 -1085 lines
sync with head.

Revision 1.215: download - view: text, markup, annotated - select for diffs
Mon Aug 9 09:36:42 2010 UTC (14 years, 4 months ago) by gsutre
Branches: MAIN
CVS tags: yamt-nfs-mp-base10, uebayasi-xip-base2
Diff to: previous 1.214: preferred, colored
Changes since revision 1.214: +4 -2 lines
acpi_pcidev_scan: attach PCI information only to working devices.

ok jruoho@

Revision 1.214: download - view: text, markup, annotated - select for diffs
Sat Aug 7 20:07:25 2010 UTC (14 years, 4 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.213: preferred, colored
Changes since revision 1.213: +10 -2 lines
Do not try to disable ACPI if we can not enter to legacy mode. While it is
safe to call AcpiDisable() even if a system operates only in ACPI mode, this
leads to unpleasantly verbose error messages in ACPICA.

Revision 1.213: download - view: text, markup, annotated - select for diffs
Sat Aug 7 17:12:55 2010 UTC (14 years, 4 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.212: preferred, colored
Changes since revision 1.212: +3 -3 lines
Fix build failure.

Revision 1.212: download - view: text, markup, annotated - select for diffs
Sat Aug 7 09:41:19 2010 UTC (14 years, 4 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.211: preferred, colored
Changes since revision 1.211: +116 -29 lines
Reorganize: also the APIC tables will be dumped in ACPIVERBOSE, and the
callback functions will be modified to be suitable also with other tables.

Revision 1.211: download - view: text, markup, annotated - select for diffs
Fri Aug 6 23:38:34 2010 UTC (14 years, 4 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.210: preferred, colored
Changes since revision 1.210: +50 -60 lines
Simplify the acpiverbose module.

Revision 1.210: download - view: text, markup, annotated - select for diffs
Fri Aug 6 22:45:00 2010 UTC (14 years, 4 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.209: preferred, colored
Changes since revision 1.209: +7 -23 lines
Remove the acpiwmi(4) dump from the ACPIVERBOSE module. Instead of this
complex solution, just use aprint_debug(9) in the driver.

Revision 1.209: download - view: text, markup, annotated - select for diffs
Fri Aug 6 18:10:40 2010 UTC (14 years, 4 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.208: preferred, colored
Changes since revision 1.208: +5 -5 lines
Fix prototypes; SYSCTLFN_ARGS -> SYSCTLFN_PROTO.
(These things really only obscure the code.)

Revision 1.208: download - view: text, markup, annotated - select for diffs
Sun Jul 25 12:54:46 2010 UTC (14 years, 4 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.207: preferred, colored
Changes since revision 1.207: +7 -9 lines
Move setting of acpi_verbose_loaded flag into the module's init routine.
This ensures that the flag is set even if the module was manually loaded
by the user rather than just auto-loaded.

Revision 1.207: download - view: text, markup, annotated - select for diffs
Sun Jul 18 09:29:12 2010 UTC (14 years, 4 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.206: preferred, colored
Changes since revision 1.206: +3 -4 lines
Merge a driver for ACPI CPUs with basic support for processor power states,
also known as C-states. The code is modular and provides an easy way to add
the remaining functionality later (namely throttling and P-states).

Remarks:

  1.	Commented out in the GENERICs; more testing exposure is needed.

  2.	The C3-state is disabled for the time being because it turns off
	timers, among them the local APIC timer. This may not be universally
	true on all x86 processors; define ACPICPU_ENABLE_C3 to test.

  3.	The algorithm used to choose a power state may need tuning. When
	evaluating the appropriate state, the implementation uses the
	previous sleep time as an indicator. Additional hints would include
	for example the system load.

	Also bus master activity is evaluated when choosing a state. The
	usb(4) stack is notorious for such activity even when unused.
	Typically it must be disabled in order to reach the C3-state,
	but it may also prevent the use of C2.

  4.	While no extensive empirical measurements have been carried out, the
	power savings are somewhere between 1-2 W with C1 and C2, depending
	on the processor, firmware, and load. With C3 even up to 4 W can be
	saved.  The less something ticks, the more power is saved.

ok jmcneill@, joerg@, and discussed with various people.

Revision 1.206: download - view: text, markup, annotated - select for diffs
Sat Jul 10 13:08:09 2010 UTC (14 years, 5 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.205: preferred, colored
Changes since revision 1.205: +4 -3 lines
Export the wrapper functions that read from the ACPI PM timer.
Needed for ACPI CPUs. Also KNF, cosmetics. No functional change.

Revision 1.159.2.2: download - view: text, markup, annotated - select for diffs
Sat Jul 3 01:19:34 2010 UTC (14 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.159.2.1: preferred, colored
Changes since revision 1.159.2.1: +93 -127 lines
sync with head

Revision 1.205: download - view: text, markup, annotated - select for diffs
Fri Jul 2 05:18:38 2010 UTC (14 years, 5 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.204: preferred, colored
Changes since revision 1.204: +2 -4 lines
Remove PNP0C01 and PNP0C02 from the list of ignored HIDs (and CIDs).

Fixes PR kern/42937 from Ryo Onodera.

As acpi_match_hid() matches also "compatible IDs" (CIDs), we must be careful
when adding devices to this list. For example, the above PR revealed that
the following is a fairly typical way to define the HPET device:

   Device (HPET)
                 {
                     Name (_HID, EisaId ("PNP0103"))
                     Name (_CID, EisaId ("PNP0C01"))
				...

Arguably this is a BIOS bug, given that PNP0C01 and PNP0C02 should uniquely
identify a device (or a resource template) that has nothing to do with HPET.

Revision 1.204: download - view: text, markup, annotated - select for diffs
Fri Jul 2 05:00:48 2010 UTC (14 years, 5 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.203: preferred, colored
Changes since revision 1.203: +6 -14 lines
Simplify a little by removing the redundant acpi_rescan1().

Revision 1.203: download - view: text, markup, annotated - select for diffs
Thu Jun 10 20:36:55 2010 UTC (14 years, 6 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.202: preferred, colored
Changes since revision 1.202: +8 -5 lines
A small nit from the spec: _PSW should be called after _PTS. Thus call the
wakedev routine after AcpiEnterSleepStatePrep(). Unlikely to make any
difference whatsoever, but there might always be a BIOS writer who disagrees.

Revision 1.202: download - view: text, markup, annotated - select for diffs
Mon Jun 7 17:13:52 2010 UTC (14 years, 6 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.201: preferred, colored
Changes since revision 1.201: +17 -9 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.201: download - view: text, markup, annotated - select for diffs
Mon Jun 7 13:04:31 2010 UTC (14 years, 6 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.200: preferred, colored
Changes since revision 1.200: +4 -11 lines
Build the power resource queue dynamically. This eliminates the need to call
acpi_power_res_add() in the main scan function, also saving few bytes of
memory.

Revision 1.200: download - view: text, markup, annotated - select for diffs
Mon Jun 7 01:45:27 2010 UTC (14 years, 6 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.199: preferred, colored
Changes since revision 1.199: +47 -24 lines
Update acpiverbose module to use module_autoload() rather than module_load().
Load the module right before each attempt to use its features, and let the
module subsystem handle unloading.

Revision 1.199: download - view: text, markup, annotated - select for diffs
Sun Jun 6 10:44:40 2010 UTC (14 years, 6 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.198: preferred, colored
Changes since revision 1.198: +8 -7 lines
Although sysmon_pswitch_unregister(9) does not currently do anything, in
order to be ready for possible future API changes, call it if we failed to
install the fixed event handlers. Also small ACPI_DEBUG_PRINT clarifications.

Revision 1.198: download - view: text, markup, annotated - select for diffs
Sat Jun 5 06:07:12 2010 UTC (14 years, 6 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.197: preferred, colored
Changes since revision 1.197: +6 -6 lines
Remove trailing white space.

Revision 1.197: download - view: text, markup, annotated - select for diffs
Mon May 31 20:32:29 2010 UTC (14 years, 6 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.196: preferred, colored
Changes since revision 1.196: +44 -96 lines
Extract ACPIVERBOSE into a kernel module.  The module can be builtin
by defining 'options ACPIVERBOSE' in the kernel config file (no change
from current behavior), or it can be loaded at boot time on those
architectures that support the boot loader's "load" command.

ACPIVERBOSE also includes code to dump acpi/wmi data.

Revision 1.159.2.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:17:16 2010 UTC (14 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +1095 -1080 lines
sync with head

Revision 1.196: download - view: text, markup, annotated - select for diffs
Sun May 23 22:05:54 2010 UTC (14 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.195: preferred, colored
Changes since revision 1.195: +3 -3 lines
no need for double the newlines!

Revision 1.195: download - view: text, markup, annotated - select for diffs
Wed May 12 16:11:05 2010 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.194: preferred, colored
Changes since revision 1.194: +3 -10 lines
When scanning the device "capabilities" (power, wake-up, etc.),
include all device nodes, regardless of the status of the device.

XXX: It is known that some systems implement the _STA method incorrectly.
     If needed in the future, attachment based on the values from this
     method may need revisiting. Same goes for ACPI_ACTIVATE_DEV.

Revision 1.148.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:43:04 2010 UTC (14 years, 7 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +1099 -1083 lines
Sync with HEAD.

Revision 1.194: download - view: text, markup, annotated - select for diffs
Tue Apr 27 08:36:06 2010 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
CVS tags: uebayasi-xip-base1
Diff to: previous 1.193: preferred, colored
Changes since revision 1.193: +8 -11 lines
Make acpi_enter_sleep_state() not to return. No one cared what it returned.

Revision 1.193: download - view: text, markup, annotated - select for diffs
Tue Apr 27 05:34:14 2010 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.192: preferred, colored
Changes since revision 1.192: +18 -32 lines
Clean up <dev/acpi/acpireg.h>. While documenting the control methods is an
admirable goal, it is pretty much mission impossible; the specifications are
nearly thousand pages each and the amount of methods is counted in hundreds.

In addition, use ACPICA's native constants from <actypes.h> when possible.
Also move ACPI_STA_OK from "mpacpi.c" to <dev/acpi/acpireg.h> to simplify
the evaluation of device status.

Revision 1.192: download - view: text, markup, annotated - select for diffs
Mon Apr 26 04:31:09 2010 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.191: preferred, colored
Changes since revision 1.191: +76 -71 lines
Move the ACPIVERBOSE blocks to a single place.

Also print non-devices in the EISAID/HID/UID/ADR-block

Revision 1.191: download - view: text, markup, annotated - select for diffs
Sun Apr 25 17:06:23 2010 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.190: preferred, colored
Changes since revision 1.190: +3 -3 lines
Return instead of breaking out if the sleep state is not available.

Revision 1.190: download - view: text, markup, annotated - select for diffs
Sun Apr 25 17:03:08 2010 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.189: preferred, colored
Changes since revision 1.189: +17 -15 lines
As noted by jmcneill@, the specifications specifically mention that the _TTS
should be invoked before the system has notified any native mode device
drivers. Thus, do the call before pmf_system_suspend(9).

Revision 1.189: download - view: text, markup, annotated - select for diffs
Sun Apr 25 10:05:22 2010 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.188: preferred, colored
Changes since revision 1.188: +21 -2 lines
Evaluate _TTS on sleep state transitions. This is mainly to pro-actively
support some weird BIOS, which may require the evaluation. Ok jmcneill@.

Revision 1.188: download - view: text, markup, annotated - select for diffs
Sun Apr 25 09:12:38 2010 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.187: preferred, colored
Changes since revision 1.187: +9 -2 lines
Add a note about AcpiEnterSleepStatePrep().

Revision 1.187: download - view: text, markup, annotated - select for diffs
Sat Apr 24 19:51:15 2010 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.186: preferred, colored
Changes since revision 1.186: +4 -4 lines
Embarrassing typos: _PI_ -> _SI_, _PB_ -> _SB_.

Revision 1.186: download - view: text, markup, annotated - select for diffs
Sat Apr 24 19:36:14 2010 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.185: preferred, colored
Changes since revision 1.185: +5 -5 lines
Do not use __func__ with ACPI_DEBUG_PRINT (it already adds it).

Revision 1.185: download - view: text, markup, annotated - select for diffs
Sat Apr 24 13:42:18 2010 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.184: preferred, colored
Changes since revision 1.184: +70 -16 lines
Fix a bug involving acpitz(4) accidentally attaching to the _TZ_ scope.

This in turn was caused by a bug in ACPICA, which reports the types of _SB_
and _TZ_ scopes incorrectly for its own internal reasons (utglobal.c):

  /*
   * Predefined ACPI Names (Built-in to the Interpreter)
   *
   * NOTES:
   * 1) _SB_ is defined to be a device to allow \_SB_._INI to be run
   *    during the initialization sequence.
   * 2) _TZ_ is defined to be a thermal zone in order to allow ASL code to
   *    perform a Notify() operation on it.
   */

Thanks to cegger@ for noticing the bug and testing a fix.

Revision 1.184: download - view: text, markup, annotated - select for diffs
Fri Apr 23 18:51:31 2010 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.183: preferred, colored
Changes since revision 1.183: +3 -3 lines
Add hw.acpi.power sysctl-node.

Revision 1.183: download - view: text, markup, annotated - select for diffs
Fri Apr 23 07:04:18 2010 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.182: preferred, colored
Changes since revision 1.182: +9 -8 lines
Make the ACPIVERBOSE output even prettier by removing cruft.

Revision 1.182: download - view: text, markup, annotated - select for diffs
Thu Apr 22 21:58:08 2010 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.181: preferred, colored
Changes since revision 1.181: +31 -23 lines
Some pretty printing for ACPIVERBOSE.

Revision 1.181: download - view: text, markup, annotated - select for diffs
Thu Apr 22 18:40:09 2010 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.180: preferred, colored
Changes since revision 1.180: +21 -11 lines
Merge new code for ACPI power resources.

The old code served us well, but a major overhaul would have been needed for
it to cope with the increased demands of the code -- and the specifications.

ok jmcneill@, pgoyette@

Revision 1.180: download - view: text, markup, annotated - select for diffs
Thu Apr 22 14:50:30 2010 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.179: preferred, colored
Changes since revision 1.179: +3 -2 lines
From Gregoire Sutre: rework the ACPI PCI support. This makes ACPI to
correctly pick PCI segment groups, PCI bus numbers, PCI root bridges,
PCI-to-PCI bridges, and PCI devices, among other things. In short: it is
more robust than the old code or anything in sys/arch/x86/x86/mpacpi.c.

ok cegger@, jmcneill@

Revision 1.120.4.1.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 00:27:33 2010 UTC (14 years, 7 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Diff to: previous 1.120.4.1: preferred, colored; next MAIN 1.120.4.2: preferred, colored
Changes since revision 1.120.4.1: +7 -2 lines
sync to netbsd-5

Revision 1.179: download - view: text, markup, annotated - select for diffs
Tue Apr 20 04:57:04 2010 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.178: preferred, colored
Changes since revision 1.178: +2 -27 lines
Remove the block where the default address space handlers were manually
installed via AcpiInstallAddressSpaceHandler(). This was already commented
out because ACPICA does this for us when ACPI_NO_ADDRESS_SPACE_INIT is not
specified when calling AcpiEnableSubsystem().

Revision 1.178: download - view: text, markup, annotated - select for diffs
Tue Apr 20 04:53:22 2010 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.177: preferred, colored
Changes since revision 1.177: +10 -12 lines
Instruct ACPICA to dynamically allocate the table descriptions in
AcpiInitializeTables() instead of pushing 128 statically allocated
descriptors. This will eliminate also the need to call
AcpiReallocateRootTable().

The rationale for the statically allocated table descriptors is to allow
initialization without virtual/dynamic memory. Later these should be copied
to dynamic memory via AcpiReallocateRootTable(). But since in NetBSD both
functions were called in the very same acpi_probe(), this dance was
completely unnecessary.

Revision 1.177: download - view: text, markup, annotated - select for diffs
Sun Apr 18 14:07:16 2010 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.176: preferred, colored
Changes since revision 1.176: +2 -5 lines
Remove a duplicate variable assignment.

Revision 1.176: download - view: text, markup, annotated - select for diffs
Sun Apr 18 14:05:26 2010 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.175: preferred, colored
Changes since revision 1.175: +91 -13 lines
From Gregoire Sutre:

  Modify the main ACPI namespace scan by including a parent-child
  relationship for each node. The result is a bi-directional tree.

ok jmcneill@

Revision 1.175: download - view: text, markup, annotated - select for diffs
Thu Apr 15 07:02:24 2010 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.174: preferred, colored
Changes since revision 1.174: +134 -4 lines
As discussed with jmcneill@, install a global "bus notification handler"
that receives all notifications and deliver notifications to drivers via it.

Revision 1.174: download - view: text, markup, annotated - select for diffs
Thu Apr 15 04:03:38 2010 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.173: preferred, colored
Changes since revision 1.173: +20 -24 lines
Arrange some comments.

Revision 1.173: download - view: text, markup, annotated - select for diffs
Wed Apr 14 19:27:28 2010 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.172: preferred, colored
Changes since revision 1.172: +5 -4 lines
No need to spread the ACPICA type system any more than is necessary:

	UINT8 -> uint8_t and UINT32 -> uint32_t.

Revision 1.172: download - view: text, markup, annotated - select for diffs
Wed Apr 14 18:39:56 2010 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.171: preferred, colored
Changes since revision 1.171: +102 -88 lines
Simplify error reporting, remove casts, KNF.

Revision 1.171: download - view: text, markup, annotated - select for diffs
Wed Apr 14 17:20:19 2010 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.170: preferred, colored
Changes since revision 1.170: +5 -58 lines
Remove the code that was copy-pasted to acpi_detach() from the attachment
routine. Add a note that the detachment is incomplete.

Revision 1.170: download - view: text, markup, annotated - select for diffs
Wed Apr 14 17:14:45 2010 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.169: preferred, colored
Changes since revision 1.169: +2 -22 lines
Remove the #if 0'ed acpi_disable().

Revision 1.169: download - view: text, markup, annotated - select for diffs
Wed Apr 14 17:12:14 2010 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.168: preferred, colored
Changes since revision 1.168: +485 -861 lines
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@.

Revision 1.168: download - view: text, markup, annotated - select for diffs
Wed Apr 14 06:10:32 2010 UTC (14 years, 8 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.167: preferred, colored
Changes since revision 1.167: +112 -78 lines
Refactor the fixed-event handlers.

Also provide a detachment routine for these and fix a trivial bug;
a wrong structure was used when registering a sysmon_pswitch(9) switch.

Revision 1.167: download - view: text, markup, annotated - select for diffs
Mon Apr 12 18:59:08 2010 UTC (14 years, 8 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.166: preferred, colored
Changes since revision 1.166: +5 -22 lines
Scan the namespace from the root object instead of scanning from separate
scopes. Also raise the namespace walk from 100 (per scope) to UINT32_MAX.

ok jmcneill@

Revision 1.166: download - view: text, markup, annotated - select for diffs
Mon Apr 12 18:55:27 2010 UTC (14 years, 8 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +116 -72 lines
Remove some unused and global variables. Make the code more readable. Deny
invalid writes to machdep.sleep_state. Cosmetics. No functional change.

Revision 1.165: download - view: text, markup, annotated - select for diffs
Mon Apr 12 12:14:26 2010 UTC (14 years, 8 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.164: preferred, colored
Changes since revision 1.164: +104 -35 lines
Rework the sysctl-support.

Changes:

	hw.wake			->	hw.acpi.wake
	hw.acpi.debug_layer	->	hw.acpi.debug.layer
	hw.acpi.debug_level	->	hw.acpi.debug.level

Additions:

	hw.acpi.stat.gpe	# Number of dispatched GPEs
	hw.acpi.stat.sci	# Number of SCI interrupts
	hw.acpi.stat.fixed	# Number of fixed events
	hw.acpi.stat.method	# Number of executed methods

ok jmcneill@

Revision 1.164: download - view: text, markup, annotated - select for diffs
Thu Apr 8 04:40:51 2010 UTC (14 years, 8 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.163: preferred, colored
Changes since revision 1.163: +3 -3 lines
ACPICA 20091112:

	Implemented a post-order callback to AcpiWalkNamespace. The existing
        interface only has a pre-order callback. This change adds an
        additional parameter for a post-order callback which will be more
        useful for bus scans.  ACPICA BZ 779. Lin Ming. Updated the ACPICA
        Programmer Reference.

We will use the old "pre-order callback" for the time being.

Revision 1.163: download - view: text, markup, annotated - select for diffs
Mon Mar 29 16:35:59 2010 UTC (14 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.162: preferred, colored
Changes since revision 1.162: +4 -4 lines
Attach acpiecdt with acpibus_attach_args.  Sverre Froyen reports that
this helps his Thinkpad boot again.

Revision 1.162: download - view: text, markup, annotated - select for diffs
Mon Mar 22 11:13:23 2010 UTC (14 years, 8 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +4 -3 lines
Add IFX0102 and PNP0C15. Fix INT0800.

Observed from the dmesg of njoly@'s Sony VAIO VGN-BZ12VN.

Revision 1.161: download - view: text, markup, annotated - select for diffs
Tue Mar 16 08:02:01 2010 UTC (14 years, 8 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.160: preferred, colored
Changes since revision 1.160: +4 -10 lines
Remove the call to AcpiGetType() in acpi_make_devnode(). This is the same
information as ACPI_DEVICE_INFO::Type, obtained later by AcpiGetObjectInfo().

Revision 1.160: download - view: text, markup, annotated - select for diffs
Tue Mar 16 05:48:42 2010 UTC (14 years, 8 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +70 -3 lines
With the intent of making 'struct acpi_devnode' as the central place for
information related to ACPI device nodes: (a) introduce a generic scan
function for ACPI device driver "capabilities", and (b) eliminate local data
structures from ACPI wake-devices. Discussed with jmcneill@.

Revision 1.114.2.6: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:22 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.114.2.5: preferred, colored; branchpoint 1.114: preferred, colored
Changes since revision 1.114.2.5: +350 -275 lines
sync with head

Revision 1.159: download - view: text, markup, annotated - select for diffs
Wed Mar 10 09:42:46 2010 UTC (14 years, 9 months ago) by jruoho
Branches: MAIN
Branch point for: rmind-uvmplock
Diff to: previous 1.158: preferred, colored
Changes since revision 1.158: +72 -50 lines
Move the ACPI_ACTIVATE_DEV block to one place. While there, provide missing
prototype for a function, try to make the code more simple, guard against a
potential NULL pointer dereference, and improve printing.

No functional change intended.

Revision 1.158: download - view: text, markup, annotated - select for diffs
Wed Mar 10 08:12:44 2010 UTC (14 years, 9 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.157: preferred, colored
Changes since revision 1.157: +22 -18 lines
Some pretty printing for ACPIVERBOSE.

Revision 1.157: download - view: text, markup, annotated - select for diffs
Tue Mar 9 18:15:21 2010 UTC (14 years, 9 months ago) by jruoho
Branches: MAIN
CVS tags: yamt-nfs-mp-base9
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +75 -108 lines
Remove the namespace scopes.

These are neither used nor useful beyond the parser and interpreter.

ok jmcneill@, joerg@

Revision 1.156: download - view: text, markup, annotated - select for diffs
Fri Mar 5 21:01:44 2010 UTC (14 years, 9 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +3 -3 lines
Preparing a device for wakeup involves:

  (a) turning on all power resources required by the device; and
  (b) executing _DSW (or _PSW) control method.

This implements (b). Ok jmcneill@.

Revision 1.155: download - view: text, markup, annotated - select for diffs
Fri Mar 5 14:00:16 2010 UTC (14 years, 9 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.154: preferred, colored
Changes since revision 1.154: +6 -7 lines
Remove <dev/acpi/acpica.h> from all files. It is included from
<dev/acpi/acpivar.h>. Ditto for <dev/sysmon/sysmonvar.h>, <sys/bus.h>,
<dev/pci/pcivar.h>, and <dev/isa/isavar.h>.

Also nuke a lot of unused and invalid headers. Some of these are audibly
provided by standard headers (namely <sys/param.h> and <sys/device.h>), some
have nothing to do with ACPI devices (e.g. <sys/syslog.h>), and some are
nonexistent local includes (e.g. "mpu_ym.h"). Moreoever, try to group the
includes into their respective blocks.

Tested with GENERIC and ALL (i386). No functional change.

Revision 1.154: download - view: text, markup, annotated - select for diffs
Thu Mar 4 23:25:07 2010 UTC (14 years, 9 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +7 -16 lines
Remove ACPI_BUT_DEBUG by using ACPI_DEBUG_PRINT(x) instead.

Revision 1.153: download - view: text, markup, annotated - select for diffs
Thu Mar 4 20:17:30 2010 UTC (14 years, 9 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +6 -6 lines
Fix ACPI_DEBUG build failures reported by Greg A. Woods.

Revision 1.152: download - view: text, markup, annotated - select for diffs
Wed Mar 3 06:57:05 2010 UTC (14 years, 9 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.151: preferred, colored
Changes since revision 1.151: +3 -3 lines
Convert the single instance of ACPI_EXTRA_DEBUG to ACPIVERBOSE.

Revision 1.151: download - view: text, markup, annotated - select for diffs
Wed Mar 3 06:54:25 2010 UTC (14 years, 9 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +82 -71 lines
Refactor acpi_make_devnode() to make it a little more readable.

No functional change intended.

Revision 1.150: download - view: text, markup, annotated - select for diffs
Tue Mar 2 18:44:46 2010 UTC (14 years, 9 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +5 -5 lines
Format string cosmetics (mainly from %d to %u).

Revision 1.149: download - view: text, markup, annotated - select for diffs
Wed Feb 24 22:37:56 2010 UTC (14 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +6 -6 lines
A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.

Revision 1.148: download - view: text, markup, annotated - select for diffs
Sun Jan 31 11:26:20 2010 UTC (14 years, 10 months ago) by jruoho
Branches: MAIN
CVS tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +6 -2 lines
Add dynamic debug options for ACPI_DEBUG kernels.

ok jmcneill@, pooka@, pgoyette@

Revision 1.147: download - view: text, markup, annotated - select for diffs
Mon Jan 18 18:49:27 2010 UTC (14 years, 10 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +26 -15 lines
Fix and improve several comments.

Revision 1.146: download - view: text, markup, annotated - select for diffs
Mon Jan 18 18:06:31 2010 UTC (14 years, 10 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +34 -2 lines
Introduce acpi_eval_reference_handle() --

an utility function to evaluate reference handles from package elements.

ok jmcneill@, pgoyette@

Revision 1.145: download - view: text, markup, annotated - select for diffs
Mon Jan 18 17:34:37 2010 UTC (14 years, 10 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +31 -17 lines
Ensure that the return string is NUL-terminated in acpi_eval_string().

ok jmcneill@, pgoyette@

Revision 1.144: download - view: text, markup, annotated - select for diffs
Tue Jan 12 12:21:04 2010 UTC (14 years, 11 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +46 -14 lines
Properly evaluate the _PRW object in case we have a package inside a
package.

ok jmcneill@

Revision 1.143: download - view: text, markup, annotated - select for diffs
Sat Jan 9 15:43:12 2010 UTC (14 years, 11 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +3 -2 lines
Add "ACPI fans" to the list of ignored HIDs, as discussed on port-i386@.

Revision 1.142: download - view: text, markup, annotated - select for diffs
Fri Jan 8 20:40:40 2010 UTC (14 years, 11 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +6 -6 lines
Expand PMF_FN_* macros.

Revision 1.141: download - view: text, markup, annotated - select for diffs
Fri Jan 8 00:09:44 2010 UTC (14 years, 11 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +2 -9 lines
Move all copies of ifattr_match() to sys/kern/subr_autoconf.c.

Revision 1.140: download - view: text, markup, annotated - select for diffs
Tue Jan 5 13:39:49 2010 UTC (14 years, 11 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +4 -6 lines
Use acpi_eval_struct() to simplify code.

ok pgoyette@, jmcneill@

Revision 1.139: download - view: text, markup, annotated - select for diffs
Thu Dec 31 10:07:13 2009 UTC (14 years, 11 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +2 -6 lines
Remove unused locking variables.

ok pgoyette@, jmcneill@

Revision 1.138: download - view: text, markup, annotated - select for diffs
Thu Dec 31 10:02:51 2009 UTC (14 years, 11 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +3 -2 lines
Add Intel HW Random Number Generator to the list of ignored HIDs.

ok pgoyette@, jmcneill@

Revision 1.137: download - view: text, markup, annotated - select for diffs
Thu Dec 3 21:04:29 2009 UTC (15 years ago) by cegger
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +6 -3 lines
Enumerate ACPI PCI devices. Allows to link PCI with ACPI devices.
Patch presented on tech-kern@
http://mail-index.netbsd.org/tech-kern/2009/11/28/msg006552.html

'nice work' Jukka Ruohonen

Revision 1.136: download - view: text, markup, annotated - select for diffs
Sun Nov 29 21:32:50 2009 UTC (15 years ago) by cegger
Branches: MAIN
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +20 -2 lines
Introduce acpi_eval_set_integer().
Use it in various acpi drivers to simplify code.
Patch presented on tech-kern@:
http://mail-index.netbsd.org/tech-kern/2009/11/28/msg006552.html

No comments.

XXX Is there an acpi(9) manpage?

Revision 1.135: download - view: text, markup, annotated - select for diffs
Sat Nov 28 17:03:17 2009 UTC (15 years ago) by cegger
Branches: MAIN
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +7 -6 lines
initialise -> initialize
unabled -> unable
wrap long line

Revision 1.134: download - view: text, markup, annotated - select for diffs
Sat Nov 14 09:54:10 2009 UTC (15 years ago) by cegger
Branches: MAIN
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +4 -4 lines
use __arraycount

Revision 1.133: download - view: text, markup, annotated - select for diffs
Wed Sep 16 16:34:49 2009 UTC (15 years, 2 months ago) by dyoung
Branches: MAIN
CVS tags: jym-xensuspend-nbase
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +5 -5 lines
In pmf(9), improve the implementation of device self-suspension
and make suspension by self, by drvctl(8), and by ACPI system sleep
play nice together.  Start solidifying some temporary API changes.

1. Extract a new header file, <sys/device_if.h>, from <sys/device.h> and
   #include it from <sys/pmf.h> instead of <sys/device.h> to break the
   circular dependency between <sys/device.h> and <sys/pmf.h>.

2. Introduce pmf_qual_t, an aggregate of qualifications on a PMF
   suspend/resume call.  Start to replace instances of PMF_FN_PROTO,
   PMF_FN_ARGS, et cetera, with a pmf_qual_t.

3. Introduce the notion of a "suspensor," an entity that holds a
   device in suspension.  More than one suspensor may hold a device
   at once.  A device stays suspended as long as at least one
   suspensor holds it.  A device resumes when the last suspensor
   releases it.

   Currently, the kernel defines three suspensors,

   3a the system-suspensor: for system suspension, initiated
      by 'sysctl -w machdep.sleep_state=3', by lid closure, by
      power-button press, et cetera,

   3b the drvctl-suspensor: for device suspension by /dev/drvctl
      ioctl, e.g., drvctl -S sip0.

   3c the system self-suspensor: for device drivers that suspend
      themselves and their children.  Several drivers for network
      interfaces put the network device to sleep while it is not
      administratively up, that is, after the kernel calls if_stop(,
      1).  The self-suspensor should not be used directly.  See
      the description of suspensor delegates, below.

   A suspensor can have one or more "delegates".  A suspensor can
   release devices that its delegates hold suspended.  Right now,
   only the system self-suspensor has delegates.  For each device
   that a self-suspending driver attaches, it creates the device's
   self-suspensor, a delegate of the system self-suspensor.

   Suspensors stop a system-wide suspend/resume cycle from waking
   devices that the operator put to sleep with drvctl before the cycle.
   They also help self-suspension to work more simply, safely, and in
   accord with expectations.

4. Add the notion of device activation level, devact_level_t,
   and a routine for checking the current activation level,
   device_activation().  Current activation levels are DEVACT_LEVEL_BUS,
   DEVACT_LEVEL_DRIVER, and DEVACT_LEVEL_CLASS, which respectively
   indicate that the device's bus is active, that the bus and device are
   active, and that the bus, device, and the functions of the device's
   class (network, audio) are active.

   Suspend/resume calls can be qualified with a devact_level_t.
   The power-management framework treats a devact_level_t that
   qualifies a device suspension as the device's current activation
   level; it only runs hooks to reduce the activation level from
   the presumed current level to the fully suspended state.  The
   framework treats a devact_level_t qualifying device resumption
   as the target activation level; it only runs hooks to raise the
   activation level to the target.

5. Use pmf_qual_t, devact_level_t, and self-suspensors in several
   drivers.

6. Temporarily add an unused power-management workqueue that I will
   remove or replace, soon.

Revision 1.114.2.5: download - view: text, markup, annotated - select for diffs
Wed Sep 16 13:37:45 2009 UTC (15 years, 2 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.114.2.4: preferred, colored; branchpoint 1.114: preferred, colored
Changes since revision 1.114.2.4: +14 -3 lines
sync with head

Revision 1.132: download - view: text, markup, annotated - select for diffs
Wed Sep 16 10:47:54 2009 UTC (15 years, 2 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +18 -15 lines
Allow for 'options ACPI_DEBUG' by providing module declarations
and using memory allocation macros instead of calling AcpiOs* stubs
directly.

Revision 1.120.4.2: download - view: text, markup, annotated - select for diffs
Sat Sep 5 11:34:26 2009 UTC (15 years, 3 months ago) by bouyer
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Diff to: previous 1.120.4.1: preferred, colored; branchpoint 1.120: preferred, colored; next MAIN 1.121: preferred, colored
Changes since revision 1.120.4.1: +7 -2 lines
Pull up following revision(s) (requested by jmcneill in ticket #896):
	sys/dev/acpi/acpi_button.c: revision 1.27 via patch
	sys/dev/acpi/acpi_wakedev.h: revision 1.1 via patch
	sys/dev/acpi/acpi_wakedev.c: revision 1.1 via patch
	sys/dev/acpi/files.acpi: revision 1.55 via patch
	sys/dev/acpi/acpi.c: revision 1.127 via patch
	sys/dev/acpi/acpi_lid.c: revision 1.27 via patch
add hw.wake.* sysctl subtree for toggling which devices are allowed to
restore the system from sleep. set/clear wake GPEs as specified before
entering sleep.
by default, the following devices are enabled for wake:
 - sleep/power buttons
 - lid switch
 - pc kbd controller
reviewed by: joerg

Revision 1.131: download - view: text, markup, annotated - select for diffs
Tue Aug 25 10:34:08 2009 UTC (15 years, 3 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-nfs-mp-base8
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +3 -3 lines
PR# kern/41179: Incorrect return values from AcpiOsExecute()

ACPICA functions return ACPI_STATUS instead of int, so use it for
consistency.

Revision 1.130: download - view: text, markup, annotated - select for diffs
Sun Aug 23 15:16:16 2009 UTC (15 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +13 -2 lines
When ACPI is not present, free any resources used by the ACPICA. Also,
no need to complain (unless we're debugging) that ACPI is not present.

Revision 1.114.2.4: download - view: text, markup, annotated - select for diffs
Wed Aug 19 18:47:03 2009 UTC (15 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.114.2.3: preferred, colored; branchpoint 1.114: preferred, colored
Changes since revision 1.114.2.3: +21 -24 lines
sync with head.

Revision 1.129: download - view: text, markup, annotated - select for diffs
Tue Aug 18 21:38:41 2009 UTC (15 years, 3 months ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base7
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +6 -6 lines
Update for API changes with new ACPICA.
Makes i386 ALL kernel build.

Revision 1.128: download - view: text, markup, annotated - select for diffs
Tue Aug 18 16:41:02 2009 UTC (15 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +12 -20 lines
Switch to ACPICA 20090730, and update for API changes.

Revision 1.127: download - view: text, markup, annotated - select for diffs
Tue Aug 4 14:20:40 2009 UTC (15 years, 4 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +7 -2 lines
add hw.wake.* sysctl subtree for toggling which devices are allowed to
restore the system from sleep. set/clear wake GPEs as specified before
entering sleep.

by default, the following devices are enabled for wake:
 - sleep/power buttons
 - lid switch
 - pc kbd controller

reviewed by: joerg

Revision 1.114.2.3: download - view: text, markup, annotated - select for diffs
Sat May 16 10:41:18 2009 UTC (15 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.114.2.2: preferred, colored; branchpoint 1.114: preferred, colored
Changes since revision 1.114.2.2: +4 -4 lines
sync with head

Revision 1.123.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:19:10 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.123: preferred, colored; next MAIN 1.124: preferred, colored
Changes since revision 1.123: +136 -10 lines
Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.126: download - view: text, markup, annotated - select for diffs
Tue May 12 09:29:46 2009 UTC (15 years, 7 months ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, jymxensuspend-base, jym-xensuspend-base
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +4 -4 lines
struct cfdata * -> cfdata_t, no functional changes intended.

Revision 1.114.2.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:33 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.114.2.1: preferred, colored; branchpoint 1.114: preferred, colored
Changes since revision 1.114.2.1: +240 -27 lines
sync with head.

Revision 1.120.2.3: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:35:19 2009 UTC (15 years, 7 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.120.2.2: preferred, colored; branchpoint 1.120: preferred, colored; next MAIN 1.121: preferred, colored
Changes since revision 1.120.2.2: +134 -8 lines
Sync with HEAD.

Revision 1.125: download - view: text, markup, annotated - select for diffs
Wed Apr 8 12:39:27 2009 UTC (15 years, 8 months ago) by joerg
Branches: MAIN
CVS tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +4 -3 lines
sprintf -> snprintf

Revision 1.124: download - view: text, markup, annotated - select for diffs
Wed Apr 8 00:23:30 2009 UTC (15 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +132 -7 lines
Refactor slightly to create acpi_rescan(), a hook for rescanning the
devices that attach at acpi(4).

Begin deriving an acpi(4) device-detachment hook, acpi_detach(), from
acpi_attach().  The code between #if 0 and #endif still needs to be
turned to the opposite calls (enables to disables, maps to unmaps,
attaches to detaches), which should be run in the opposite order.
Somebody with deep ACPI knowledge can probably finish this off without
too much trouble.

Revision 1.120.2.2: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:30:31 2009 UTC (15 years, 9 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.120.2.1: preferred, colored; branchpoint 1.120: preferred, colored
Changes since revision 1.120.2.1: +21 -3 lines
Sync with HEAD.

Revision 1.120.4.1: download - view: text, markup, annotated - select for diffs
Mon Feb 2 20:37:34 2009 UTC (15 years, 10 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +21 -3 lines
Pull up following revision(s) (requested by jmcneill in ticket #381):
	sys/dev/acpi/acpi.c: revision 1.123
	sys/dev/acpi/acpica/OsdSchedule.c: revision 1.9
	sys/dev/acpi/acpica/OsdSynch.c: revision 1.11
PR# kern/38817: regression in acpi sleep on lifebook S6510
Switch to polling mode after the acpi(4) device has been suspended as
interrupts will be disabled later on and we may still need to execute
AML that tries to sleep or wait on a semaphore.

Revision 1.123: download - view: text, markup, annotated - select for diffs
Fri Jan 30 12:51:03 2009 UTC (15 years, 10 months ago) by jmcneill
Branches: MAIN
CVS tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +21 -3 lines
PR# kern/38817: regression in acpi sleep on lifebook S6510

Switch to polling mode after the acpi(4) device has been suspended as
interrupts will be disabled later on and we may still need to execute
AML that tries to sleep or wait on a semaphore.

Revision 1.120.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:17:52 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +22 -8 lines
Sync with HEAD.

Revision 1.109.6.4: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:52 2009 UTC (15 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.109.6.3: preferred, colored; branchpoint 1.109: preferred, colored; next MAIN 1.110: preferred, colored
Changes since revision 1.109.6.3: +20 -6 lines
Sync with HEAD.

Revision 1.122: download - view: text, markup, annotated - select for diffs
Sat Jan 3 03:43:22 2009 UTC (15 years, 11 months ago) by yamt
Branches: MAIN
CVS tags: mjf-devfs2-base
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +3 -3 lines
remove extra semicolons.

Revision 1.117.4.2: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:14:12 2008 UTC (16 years ago) by haad
Branches: haad-dm
Diff to: previous 1.117.4.1: preferred, colored; branchpoint 1.117: preferred, colored; next MAIN 1.118: preferred, colored
Changes since revision 1.117.4.1: +21 -7 lines
Update haad-dm branch to haad-dm-base2.

Revision 1.121: download - view: text, markup, annotated - select for diffs
Sun Dec 7 10:53:57 2008 UTC (16 years ago) by mlelstv
Branches: MAIN
CVS tags: haad-nbase2, haad-dm-base2, haad-dm-base
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +21 -7 lines
Handle printing of _STR attribute with non-string data type gracefully.

Revision 1.117.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:16:19 2008 UTC (16 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +34 -8 lines
Sync with HEAD.

Revision 1.115.2.4: download - view: text, markup, annotated - select for diffs
Fri Oct 10 22:30:58 2008 UTC (16 years, 2 months ago) by skrll
Branches: wrstuden-revivesa
Diff to: previous 1.115.2.3: preferred, colored; branchpoint 1.115: preferred, colored; next MAIN 1.116: preferred, colored
Changes since revision 1.115.2.3: +2 -4 lines
Sync with HEAD.

Revision 1.109.6.3: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:18 2008 UTC (16 years, 2 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.109.6.2: preferred, colored; branchpoint 1.109: preferred, colored
Changes since revision 1.109.6.2: +32 -6 lines
Sync with HEAD.

Revision 1.115.2.3: download - view: text, markup, annotated - select for diffs
Wed Sep 24 16:38:51 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.115.2.2: preferred, colored; branchpoint 1.115: preferred, colored
Changes since revision 1.115.2.2: +4 -2 lines
Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.

Revision 1.120: download - view: text, markup, annotated - select for diffs
Fri Sep 19 11:19:33 2008 UTC (16 years, 2 months ago) by jmcneill
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4, netbsd-5-base, netbsd-5-0-RC1, matt-mips64-base2, haad-dm-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +0 -2 lines
Revert previous.

Revision 1.115.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:35:01 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.115.2.1: preferred, colored; branchpoint 1.115: preferred, colored
Changes since revision 1.115.2.1: +34 -8 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.119: download - view: text, markup, annotated - select for diffs
Wed Sep 10 03:56:12 2008 UTC (16 years, 3 months ago) by jmcneill
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +4 -2 lines
PR# 38683 - T61 cannot suspend with recent kernels

Don't restore spl until after AcpiLeaveSleepState.

Revision 1.117.2.1: download - view: text, markup, annotated - select for diffs
Fri Jul 18 16:37:32 2008 UTC (16 years, 4 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.117: preferred, colored; next MAIN 1.118: preferred, colored
Changes since revision 1.117: +34 -8 lines
Sync with head.

Revision 1.118: download - view: text, markup, annotated - select for diffs
Tue Jul 15 16:15:28 2008 UTC (16 years, 4 months ago) by dyoung
Branches: MAIN
CVS tags: wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +34 -8 lines
Introduce acpi_clear_wake_gpe() to undo acpi_set_wake_gpe().
Extract common code from acpi_clear_wake_gpe() and acpi_set_wake_gpe(),
creating acpi_wake_gpe_helper().

Revision 1.115.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:30:58 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +37 -8 lines
Sync w/ -current. 34 merge conflicts to follow.

Revision 1.113.2.2: download - view: text, markup, annotated - select for diffs
Wed Jun 4 02:05:09 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.113.2.1: preferred, colored; branchpoint 1.113: preferred, colored; next MAIN 1.114: preferred, colored
Changes since revision 1.113.2.1: +3 -3 lines
sync with head

Revision 1.109.6.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:12 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.109.6.1: preferred, colored; branchpoint 1.109: preferred, colored
Changes since revision 1.109.6.1: +41 -15 lines
Sync with HEAD.

Revision 1.117: download - view: text, markup, annotated - select for diffs
Sun Jun 1 19:01:57 2008 UTC (16 years, 6 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Branch point for: simonb-wapbl, haad-dm
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +3 -3 lines
Fix compilation with ACPI_EXTRA_DEBUG.

Revision 1.113.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:33:33 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +42 -16 lines
sync with head.

Revision 1.116: download - view: text, markup, annotated - select for diffs
Sat May 17 15:42:25 2008 UTC (16 years, 6 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-pf42-base2, hpcarm-cleanup-nbase
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +36 -7 lines
For device nodes that we handle internally, do not bother calling
config_found_ia on the node to save a bunch of useless 'device NNN
not configured' messages at startup. While here, condense ACPI printfs
at attach time.

Revision 1.114.2.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:23:53 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +2 -9 lines
sync with head.

Revision 1.115: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:47 2008 UTC (16 years, 7 months ago) by martin
Branches: MAIN
CVS tags: yamt-nfs-mp-base2
Branch point for: wrstuden-revivesa
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.114: download - view: text, markup, annotated - select for diffs
Sun Apr 20 16:26:36 2008 UTC (16 years, 7 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +8 -4 lines
Improve error reporting when we fail to enter a sleep state, eg:

  acpi0: entering state 1
  acpi0: ACPI S1 not available on this platform

Revision 1.109.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:42:37 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +83 -80 lines
Sync with HEAD.

Revision 1.113: download - view: text, markup, annotated - select for diffs
Thu Mar 27 02:51:26 2008 UTC (16 years, 8 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +30 -29 lines
Split device_t and softc

Revision 1.109.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:15:11 2008 UTC (16 years, 8 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.109: preferred, colored; next MAIN 1.110: preferred, colored
Changes since revision 1.109: +78 -76 lines
sync with head.

Revision 1.102.2.2: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:35 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.102.2.1: preferred, colored; branchpoint 1.102: preferred, colored; next MAIN 1.103: preferred, colored
Changes since revision 1.102.2.1: +97 -86 lines
sync with HEAD

Revision 1.76.2.8: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:14:37 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.76.2.7: preferred, colored; branchpoint 1.76: preferred, colored; next MAIN 1.77: preferred, colored
Changes since revision 1.76.2.7: +78 -76 lines
sync with head.

Revision 1.112: download - view: text, markup, annotated - select for diffs
Wed Mar 12 18:02:21 2008 UTC (16 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +5 -5 lines
Use device_t and its accessors throughout.  Use aprint_*_dev().

Improve PMF-ability.

        Add a 'flags' argument to suspend/resume handlers and
        callers such as pmf_system_suspend().

        Define a flag, PMF_F_SELF, which indicates to PMF that a
        device is suspending/resuming itself.  Add helper routines,
        pmf_device_suspend_self(dev) and pmf_device_resume_self(dev),
        that call pmf_device_suspend(dev, PMF_F_SELF) and
        pmf_device_resume(dev, PMF_F_SELF), respectively.  Use
        PMF_F_SELF to suspend/resume self in ath(4), audio(4),
        rtw(4), and sip(4).

        In ath(4) and in rtw(4), replace the icky sc_enable/sc_disable
        callbacks, provided by the bus front-end, with
        self-suspension/resumption.  Also, clean up the bus
        front-ends.  Make sure that the interrupt handler is
        disestablished during suspension.  Get rid of driver-private
        flags (e.g., RTW_F_ENABLED, ath_softc->sc_invalid); use
        device_is_active()/device_has_power() calls, instead.

        In the network-class suspend handler, call if_stop(, 0)
        instead of if_stop(, 1), because the latter is superfluous
        (bus- and driver-suspension hooks will 'disable' the NIC),
        and it may cause recursion.

        In the network-class resume handler, prevent infinite
        recursion through if_init() by getting out early if we are
        self-suspending (PMF_F_SELF).

rtw(4) improvements:

        Destroy rtw(4) callouts when we detach it.  Make rtw at
        pci detachable.  Print some more information with the "rx
        frame too long" warning.

Remove activate() methods:

        Get rid of rtw_activate() and ath_activate().  The device
        activate() methods are not good for much these days.

Make ath at cardbus resume with crypto functions intact:

        Introduce a boolean device property, "pmf-powerdown".  If
        pmf-powerdown is present and false, it indicates that a
        bus back-end should not remove power from a device.

        Honor this property in cardbus_child_suspend().

        Set this property to 'false' in ath_attach(), since removing
        power from an ath at cardbus seems to lobotomize the WPA
        crypto engine.  XXX Should the pmf-powerdown property
        propagate toward the root of the device tree?

Miscellaneous ath(4) changes:

        Warn if ath(4) tries to write crypto keys to suspended
        hardware.

        Reduce differences between FreeBSD and NetBSD in ath(4)
        multicast filter setup.

        Make ath_printrxbuf() print an rx descriptor's status &
        key index, to help debug crypto errors.

        Shorten a staircase in ath_ioctl().  Don't check for
        ieee80211_ioctl() return code ERESTART, it never happens.

Revision 1.111: download - view: text, markup, annotated - select for diffs
Mon Mar 10 20:58:38 2008 UTC (16 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +75 -50 lines
Use device_t and accessors.  Use aprint_*_dev().

Add a method for detaching children.  XXX acpi(4) may leak some
resources for each child detached.  Needs attention from someone
who understands acpi(4).

Revision 1.110: download - view: text, markup, annotated - select for diffs
Sun Mar 9 19:09:00 2008 UTC (16 years, 9 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +2 -25 lines
shutdownhook_establish is deprecated, but instead of converting to pmf,
just delete it as acpi_shutdown was empty.

Revision 1.76.2.7: download - view: text, markup, annotated - select for diffs
Wed Feb 27 08:36:31 2008 UTC (16 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.76.2.6: preferred, colored; branchpoint 1.76: preferred, colored
Changes since revision 1.76.2.6: +21 -12 lines
sync with head.

Revision 1.102.8.3: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:05:36 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.102.8.2: preferred, colored; branchpoint 1.102: preferred, colored; next MAIN 1.103: preferred, colored
Changes since revision 1.102.8.2: +21 -12 lines
Sync with HEAD.

Revision 1.109: download - view: text, markup, annotated - select for diffs
Wed Feb 13 15:27:55 2008 UTC (16 years, 9 months ago) by jmcneill
Branches: MAIN
CVS tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base
Branch point for: mjf-devfs2, keiichi-mipv6
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +21 -12 lines
Add hw.acpi.supported_states sysctl node:
  $ sysctl hw.acpi.supported_states
  hw.acpi.supported_states = S0 S3 S4 S5

Revision 1.76.2.6: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:42:28 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.76.2.5: preferred, colored; branchpoint 1.76: preferred, colored
Changes since revision 1.76.2.5: +184 -57 lines
sync with head

Revision 1.102.2.1: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:52:16 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +186 -59 lines
sync with HEAD

Revision 1.104.2.2: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:53:48 2008 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.104.2.1: preferred, colored; next MAIN 1.105: preferred, colored
Changes since revision 1.104.2.1: +64 -12 lines
Sync with HEAD

Revision 1.102.8.2: download - view: text, markup, annotated - select for diffs
Thu Dec 27 00:44:49 2007 UTC (16 years, 11 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.102.8.1: preferred, colored; branchpoint 1.102: preferred, colored
Changes since revision 1.102.8.1: +184 -57 lines
Sync with HEAD.

Revision 1.102.10.2: download - view: text, markup, annotated - select for diffs
Wed Dec 26 21:39:21 2007 UTC (16 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.102.10.1: preferred, colored; branchpoint 1.102: preferred, colored; next MAIN 1.103: preferred, colored
Changes since revision 1.102.10.1: +184 -57 lines
Sync with head.

Revision 1.108: download - view: text, markup, annotated - select for diffs
Sun Dec 16 21:10:34 2007 UTC (16 years, 11 months ago) by jmcneill
Branches: MAIN
CVS tags: vmlocking2-base3, matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +63 -18 lines
Now that ACPI-CA doesn't parse the X/RSDT for us, we need to map it
ourselves.

Before:
  acpi0: X/RSDT: OemId <      ,        ,00000000>, AslId <    ,00000000>
After:
  acpi0: X/RSDT: OemId <LENOVO,TP-7L   ,00001260>, AslId < LTP,00000000>

ACPI can now access the X/RSDT using 'acpi_map_rsdt' and 'acpi_unmap_rsdt'.

Revision 1.107: download - view: text, markup, annotated - select for diffs
Sat Dec 15 02:19:55 2007 UTC (16 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +18 -12 lines
Restore acpi_quirk functionality, lost in the latest ACPI-CA update.

Revision 1.106: download - view: text, markup, annotated - select for diffs
Fri Dec 14 01:29:29 2007 UTC (17 years ago) by jmcneill
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +3 -2 lines
Introduce pmf_system_bus_resume. In the ACPI S3 resume path, use this to
separate powering up devices from restoring their state. This is required
on some machines where AcpiLeaveSleepState can fail due to an attempt to
access a powered off device.

Revision 1.104.2.1: download - view: text, markup, annotated - select for diffs
Thu Dec 13 21:55:23 2007 UTC (17 years ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +4 -4 lines
Sync with HEAD

Revision 1.103.2.1: download - view: text, markup, annotated - select for diffs
Tue Dec 11 15:22:28 2007 UTC (17 years ago) by yamt
Branches: yamt-kmem
Diff to: previous 1.103: preferred, colored; next MAIN 1.104: preferred, colored
Changes since revision 1.103: +124 -49 lines
sync with head.

Revision 1.105: download - view: text, markup, annotated - select for diffs
Mon Dec 10 22:56:29 2007 UTC (17 years ago) by reinoud
Branches: MAIN
CVS tags: yamt-kmem-base3, yamt-kmem-base2, cube-autoconf-base, cube-autoconf
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +4 -4 lines
Add missing \n and remove surplus .

Revision 1.104: download - view: text, markup, annotated - select for diffs
Sun Dec 9 20:27:52 2007 UTC (17 years ago) by jmcneill
Branches: MAIN
Branch point for: bouyer-xeni386
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +123 -48 lines
Merge jmcneill-pm branch.

Revision 1.101.16.27: download - view: text, markup, annotated - select for diffs
Sun Dec 9 19:37:43 2007 UTC (17 years ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.101.16.26: preferred, colored; branchpoint 1.101: preferred, colored; next MAIN 1.102: preferred, colored
Changes since revision 1.101.16.26: +4 -4 lines
Sync with HEAD.

Revision 1.102.8.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:19:21 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +4 -4 lines
Sync with HEAD.

Revision 1.102.10.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 17:57:18 2007 UTC (17 years ago) by ad
Branches: vmlocking2
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +4 -4 lines
Sync with head.

Revision 1.101.16.26: download - view: text, markup, annotated - select for diffs
Sat Dec 8 16:21:02 2007 UTC (17 years ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.101.16.25: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.16.25: +5 -5 lines
Rename pnp(9) -> pmf(9), as requested by many.

Revision 1.76.2.5: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:29:35 2007 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.76.2.4: preferred, colored; branchpoint 1.76: preferred, colored
Changes since revision 1.76.2.4: +4 -4 lines
sync with head

Revision 1.103: download - view: text, markup, annotated - select for diffs
Wed Dec 5 07:06:50 2007 UTC (17 years ago) by ad
Branches: MAIN
CVS tags: yamt-kmem-base, vmlocking2-base2, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base
Branch point for: yamt-kmem
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +4 -4 lines
Match the docs: MUTEX_DRIVER/SPIN are now only for porting code written
for Solaris.

Revision 1.101.16.25: download - view: text, markup, annotated - select for diffs
Sun Dec 2 00:38:41 2007 UTC (17 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.101.16.24: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.16.24: +2 -3 lines
Don't wait one second before suspend, drivers should wait as long as
they have to themselve.

Revision 1.101.16.24: download - view: text, markup, annotated - select for diffs
Wed Nov 14 02:19:29 2007 UTC (17 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.101.16.23: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.16.23: +3 -3 lines
Introduce pnp_system_shutdown which just complains if drivers don't
support the PNP framework, give the user 2 seconds to worry about that
and runs the class and driver suspend functions. Keep all devices
powered e.g. to allow deciphering messages from the screen.
Drop the argument to pnp_system_suspend now that the use for it is gone.

Revision 1.101.16.23: download - view: text, markup, annotated - select for diffs
Tue Nov 6 14:27:11 2007 UTC (17 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.101.16.22: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.16.22: +9 -6 lines
Refactor PNP API:
- Make suspend/resume directly a device functionality. It consists of
  three layers (class logic, device logic, bus logic), all of them being
  optional. This replaces D0/D3 transitions.
- device_is_active returns true if the device was not disabled and was
  not suspended (even partially), device_is_enabled returns true if the
  device was enabled.
- Change pnp_global_transition into pnp_system_suspend and
  pnp_system_resume. Before running any suspend/resume handlers, check
  that all currently attached devices support power management and bail
  out otherwise. The latter is not done for the shutdown/panic case.
- Make the former bus-specific generic network handlers a class handler.
- Make PNP message like volume up/down/toogle PNP events. Each device
  can register what events they are interested in and whether the handler
  should be global or not.
- Introduce device_active API for devices to mark themselve in use from
  either the system or the device. Use this to implement the idle handling
  for audio and input devices. This is intended to replace most ad-hoc
  watchdogs as well.
- Fix somes situations in which audio resume would lose mixer settings.
- Make USB host controllers better deal with suspend in the light of
  shared interrupts.
- Flush filesystem cache on suspend.
- Flush disk caches on suspend. Put ATA disks into standby on suspend as
  well.
- Adopt drivers to use the new PNP API.
- Fix a critical bug in the generic cardbus layer that made D0->D3
  break.
- Fix ral(4) to set if_stop.
- Convert cbb(4) to the new PNP API.
- Apply the PCI Express SCI fix on resume again.

Revision 1.101.16.22: download - view: text, markup, annotated - select for diffs
Sun Oct 28 17:20:43 2007 UTC (17 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.101.16.21: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.16.21: +7 -3 lines
Non-device nodes (e.g. Thermal Zones, Processors) can be valid without
HID, don't skip them.

Revision 1.101.16.21: download - view: text, markup, annotated - select for diffs
Sat Oct 13 15:33:24 2007 UTC (17 years, 2 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.101.16.20: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.16.20: +3 -7 lines
Move ACPI_EVENT_POWER_BUTTON reset into acpi_md_sleep. Add splhigh
guards around the x86_disable_intr/x86_enable_intr calls for the moment
until it is clear where the interrupts are incorrectly reenabled.

Revision 1.101.16.20: download - view: text, markup, annotated - select for diffs
Thu Oct 4 15:05:45 2007 UTC (17 years, 2 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.101.16.19: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.16.19: +4 -3 lines
Require the HID only for normal devices. Other types can be used without
HID easily, e.g. Thermal Zones.

Revision 1.101.16.19: download - view: text, markup, annotated - select for diffs
Wed Oct 3 01:01:27 2007 UTC (17 years, 2 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.101.16.18: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.16.18: +4 -3 lines
Fix merge botch from acpica update.

Revision 1.101.16.18: download - view: text, markup, annotated - select for diffs
Tue Oct 2 23:37:17 2007 UTC (17 years, 2 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.101.16.17: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.16.17: +45 -19 lines
Update to ACPI-CA 20070320

Revision 1.101.16.17: download - view: text, markup, annotated - select for diffs
Tue Oct 2 21:44:10 2007 UTC (17 years, 2 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.101.16.16: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.16.16: +4 -5 lines
Rewrite the ACPI Embedded Controller handler to use pure event driven
operation. On suspend a special flag is set to force explicit polling
as AcpiLeaveSleep accesses the interrupt before GPE handling is
restored. The driver uses a kernel thread to handle GPE queries and
mutex/condvar for synchronisation.

Split the ACPI EC into two drivers, one that is attached directly by
acpi.c for the ECDT driven attachment and the normal acpiec for late
attachment. Share almost all code between this two drivers. If acpiecdt
is attached, acpiec is returning. This was discussed with cube@ and is
the best solution so far.

Revision 1.101.16.16: download - view: text, markup, annotated - select for diffs
Sun Sep 30 17:24:09 2007 UTC (17 years, 2 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.101.16.15: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.16.15: +17 -4 lines
Change ACPI and IOAPIC initialisation to better deal with early
interrupts.

(a) Split the ACPI subsystem initialisation into the hardware init and
ACPI enabling on the one side and the event and SCI setup on the other
side. Process the ACPI interrupt tables in between. Strictly speaking is
this a violation of the ACPI specs as the switch to APIC mode requires
evaluation of an ACPI object and that could depend on the SCI. In
practise, the SCI never worked at this point and before the removal of
the defered setup it wasn't even created.

(b) Always write entries to all IOAPIC pins. The first 16 pins are
threated as ISA IRQs by default, the others like PCI IRQs. This avoids
inconsistencies based on incomplete BIOS setups. This resulted in early
ACPI SCI notifications to be lost, effectively breaking the Embedded
Controller on cold start on many notebooks.

Don't special case the IOAPIC setup between ioapic_attach and
ioapic_enable, always setup the correct redirections. Depend on
splhigh/disable_intr to stop interrupts and don't keep them masked in the
IOAPIC. This avoids unacknowleged edge interrupts and fixing the problem
of broken PS/2 keyboard when hitting keys during early boot.

Revision 1.101.16.15: download - view: text, markup, annotated - select for diffs
Tue Sep 25 13:14:17 2007 UTC (17 years, 2 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.101.16.14: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.16.14: +5 -6 lines
Make this code a bit easier to follow by duplicating the LeaveSleepState
and merging the !S1 cases of the ifs. Reduce the spl protection to
exactly what it is intended to protect, the race against the power
button.

Revision 1.101.16.14: download - view: text, markup, annotated - select for diffs
Tue Sep 25 02:11:06 2007 UTC (17 years, 2 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.101.16.13: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.16.13: +8 -5 lines
Call AcpiLeaveSleepState before running power handlers again, and wrap
acpi_md_sleep call with splhigh.

Revision 1.101.16.13: download - view: text, markup, annotated - select for diffs
Mon Sep 24 19:31:11 2007 UTC (17 years, 2 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.101.16.12: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.16.12: +3 -7 lines
Revert previous and expect power handler to do the right thing as
requested by jmcneill@.

Revision 1.101.16.12: download - view: text, markup, annotated - select for diffs
Mon Sep 24 16:37:27 2007 UTC (17 years, 2 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.101.16.11: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.16.11: +7 -3 lines
Until the various drivers are fixed to handle interrupts correctly,
restore original splhigh during state transitions.

Revision 1.101.16.11: download - view: text, markup, annotated - select for diffs
Mon Sep 10 00:25:17 2007 UTC (17 years, 3 months ago) by christos
Branches: jmcneill-pm
Diff to: previous 1.101.16.10: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.16.10: +3 -3 lines
Move the call to AcpiLeaveSleepState after pnp_global_transition as suggested
by jmcneill. This makes my vgn-t250p resume properly.

Revision 1.101.16.10: download - view: text, markup, annotated - select for diffs
Sun Sep 9 20:50:16 2007 UTC (17 years, 3 months ago) by christos
Branches: jmcneill-pm
Diff to: previous 1.101.16.9: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.16.9: +15 -9 lines
Re-order some calls that got mixed up on the previous merge. This makes
my VGN-T250P boot again.
XXX: Might need to be reverted when we merge the new acpica.

Revision 1.101.16.9: download - view: text, markup, annotated - select for diffs
Fri Sep 7 14:36:13 2007 UTC (17 years, 3 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.101.16.8: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.16.8: +3 -5 lines
Expect acpi_md_sleep to protect itself against interrupts.
This avoids DIAGNOSTIC assertions from within pmap.

Revision 1.76.2.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:33:18 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.76.2.3: preferred, colored; branchpoint 1.76: preferred, colored
Changes since revision 1.76.2.3: +26 -8 lines
sync with head.

Revision 1.101.16.8: download - view: text, markup, annotated - select for diffs
Thu Aug 23 09:25:29 2007 UTC (17 years, 3 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.101.16.7: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.16.7: +26 -4 lines
From FreeBSD: explicitly load regions first to allow acpi_md_callback
to actually query the routing tables.

Drop the argment to acpi_md_callback, passing around singletons is not
that helpful.

Revision 1.101.4.1: download - view: text, markup, annotated - select for diffs
Mon Aug 20 18:36:39 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.101: preferred, colored; next MAIN 1.102: preferred, colored
Changes since revision 1.101: +26 -8 lines
Sync with HEAD.

Revision 1.101.12.1: download - view: text, markup, annotated - select for diffs
Wed Aug 15 13:48:13 2007 UTC (17 years, 3 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.101: preferred, colored; next MAIN 1.102: preferred, colored
Changes since revision 1.101: +26 -8 lines
Sync with HEAD.

Revision 1.101.16.7: download - view: text, markup, annotated - select for diffs
Tue Aug 14 22:25:07 2007 UTC (17 years, 4 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.101.16.6: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.16.6: +9 -8 lines
Call the MD ACPI callback before enabling ACPI. This allows
the MD layer to scan the MADT table and in turn allows the
retiring of defering the interrupt setup.

Revision 1.101.16.6: download - view: text, markup, annotated - select for diffs
Sun Aug 12 04:23:29 2007 UTC (17 years, 4 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.101.16.5: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.16.5: +12 -14 lines
* Run suspend power handlers earlier in suspend path, and later on
  resume path.
* Give ACPI device drivers a chance to attach to nodes of type
  ACPI_TYPE_DEVICE where there is not a valid HID, and silence autoconf
  'not configured' messages for ACPI_TYPE_DEVICE nodes where a driver
  does not attach and no valid HID is present.

Revision 1.101.16.5: download - view: text, markup, annotated - select for diffs
Thu Aug 9 02:37:07 2007 UTC (17 years, 4 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.101.16.4: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.16.4: +26 -8 lines
Sync with HEAD.

Revision 1.102: download - view: text, markup, annotated - select for diffs
Wed Aug 8 08:52:31 2007 UTC (17 years, 4 months ago) by cube
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking2-base1, vmlocking-nbase, vmlocking-base, nick-csl-alignment-base5, matt-armv6-prevmlocking, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: vmlocking2, mjf-devfs, matt-armv6
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +26 -8 lines
Print ACPI device name in a way that Jared McNeill and I find prettier.
I like it better because I get to see the name of the device as it appears
in the DSDT, which sometimes makes sense and that way it's easier to locate
the relevant code when debugging.

E.g.:

PIC (PNP0000) [AT Interrupt Controller] at acpipcib0 not configured
DMAD (PNP0200) [AT DMA Controller] at acpipcib0 not configured
attimer0 at acpipcib0 (TMR, PNP0100): AT Timer
RTC0 (PNP0B00) [AT Real-Time Clock] at acpipcib0 not configured
pckbc0 at acpipcib0 (PS2K, PNP0303): kbd port
acpibat0 at acpi0 (BAT0, PNP0C0A-0): ACPI Battery (Control Method)

Revision 1.101.16.4: download - view: text, markup, annotated - select for diffs
Sun Aug 5 19:27:52 2007 UTC (17 years, 4 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.101.16.3: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.16.3: +7 -2 lines
Use pnp_generic_power

Revision 1.101.16.3: download - view: text, markup, annotated - select for diffs
Sun Aug 5 16:49:27 2007 UTC (17 years, 4 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.101.16.2: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.16.2: +6 -4 lines
Make sure that we clear fixed power button events on resume. ACPI 3.0 says
we should do this, presumably to work around buggy firmware. Fixes issues
on some machines where when waking with the power button, a power button
event is received by the kernel after resume and the machine will enter
S5 (poweroff) automatically. Fix confirmed by Jukka Salmi on current-users
on a Thinkpad X40.

Revision 1.101.16.2: download - view: text, markup, annotated - select for diffs
Sat Aug 4 19:39:06 2007 UTC (17 years, 4 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.101.16.1: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.16.1: +3 -8 lines
Don't run resume hooks on failure, and certainly don't run them twice.

Revision 1.101.16.1: download - view: text, markup, annotated - select for diffs
Fri Aug 3 22:17:14 2007 UTC (17 years, 4 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +14 -10 lines
Pull in power management changes from private branch.

Revision 1.99.2.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 16:53:49 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.99: preferred, colored; next MAIN 1.100: preferred, colored
Changes since revision 1.99: +8 -5 lines
- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.76.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:09:57 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.76.2.2: preferred, colored; branchpoint 1.76: preferred, colored
Changes since revision 1.76.2.2: +12 -8 lines
sync with head.

Revision 1.101: download - view: text, markup, annotated - select for diffs
Mon Feb 19 22:31:05 2007 UTC (17 years, 9 months ago) by ad
Branches: MAIN
CVS tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, nick-csl-alignment-base, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, hpcarm-cleanup, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, nick-csl-alignment, jmcneill-pm
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +5 -3 lines
Initialize acpi_interrupt_list_mtx in acpi_probe().

Revision 1.100: download - view: text, markup, annotated - select for diffs
Sun Feb 18 23:39:20 2007 UTC (17 years, 9 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +5 -4 lines
Replace a simple_lock with a mutex, reviewed by ad@.

Revision 1.99: download - view: text, markup, annotated - select for diffs
Fri Feb 9 21:55:26 2007 UTC (17 years, 10 months ago) by ad
Branches: MAIN
CVS tags: post-newlock2-merge
Branch point for: yamt-idlelwp
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +6 -5 lines
Merge newlock2 to head.

Revision 1.94.4.3: download - view: text, markup, annotated - select for diffs
Tue Feb 6 13:11:47 2007 UTC (17 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.94.4.2: preferred, colored; branchpoint 1.94: preferred, colored; next MAIN 1.95: preferred, colored
Changes since revision 1.94.4.2: +6 -5 lines
Quieten noisy boot messages.

Revision 1.94.4.2: download - view: text, markup, annotated - select for diffs
Fri Jan 12 00:57:34 2007 UTC (17 years, 11 months ago) by ad
Branches: newlock2
Diff to: previous 1.94.4.1: preferred, colored; branchpoint 1.94: preferred, colored
Changes since revision 1.94.4.1: +17 -2 lines
Sync with head.

Revision 1.76.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:47:54 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.76.2.1: preferred, colored; branchpoint 1.76: preferred, colored
Changes since revision 1.76.2.1: +83 -234 lines
sync with head.

Revision 1.94.6.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:16:57 2006 UTC (18 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.94.6.1: preferred, colored; branchpoint 1.94: preferred, colored; next MAIN 1.95: preferred, colored
Changes since revision 1.94.6.1: +23 -8 lines
sync with head.

Revision 1.98: download - view: text, markup, annotated - select for diffs
Sun Nov 26 12:30:05 2006 UTC (18 years ago) by cube
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +17 -2 lines
Introduce acpi_check() to inform the caller whether the acpi driver is
still enabled, as it could have been disabled through USERCONF.

Use it in amd64 and i386 mainbus code and skip all ACPI processing in case
it is disabled.

Revision 1.94.4.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:34:03 2006 UTC (18 years ago) by ad
Branches: newlock2
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +4 -4 lines
Sync with head.

Revision 1.97: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:32:47 2006 UTC (18 years ago) by christos
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +8 -8 lines
__unused removal on arguments; approved by core.

Revision 1.94.6.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:05:31 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +8 -8 lines
sync with head

Revision 1.96: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:30:54 2006 UTC (18 years, 2 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +8 -7 lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.95: download - view: text, markup, annotated - select for diffs
Tue Sep 26 01:50:43 2006 UTC (18 years, 2 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +2 -3 lines
When resuming from S1 standby, don't try to release a mutex that we hadn't
previously acquired.

Revision 1.81.2.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:49:28 2006 UTC (18 years, 3 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.81: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81: +140 -259 lines
sync with head

Revision 1.85.2.2: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:43:59 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.85.2.1: preferred, colored; branchpoint 1.85: preferred, colored; next MAIN 1.86: preferred, colored
Changes since revision 1.85.2.1: +63 -231 lines
sync with head

Revision 1.94: download - view: text, markup, annotated - select for diffs
Sun Aug 6 15:46:54 2006 UTC (18 years, 4 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +6 -5 lines
PR/34116: Takuya SHIOZAKI: acpiapm(4) misuses config(9)
acpiapm(4) always matches the first node of AML, which is unrelated
with acpiapm. Separate acpi(4)'s children into two individual interface
attributes.

Revision 1.85.10.1: download - view: text, markup, annotated - select for diffs
Thu Jul 13 17:49:17 2006 UTC (18 years, 5 months ago) by gdamore
Branches: gdamore-uart
Diff to: previous 1.85: preferred, colored; next MAIN 1.86: preferred, colored
Changes since revision 1.85: +100 -221 lines
Merge from HEAD.

Revision 1.93: download - view: text, markup, annotated - select for diffs
Tue Jul 4 00:30:23 2006 UTC (18 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +38 -211 lines
Apply fvdl's acpi pci interrupt configuration code.
- MPACPI is no more.
- MPACPI_SCANPCI -> ACPI_SCANPCI

Revision 1.92: download - view: text, markup, annotated - select for diffs
Sat Jul 1 21:44:13 2006 UTC (18 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +23 -19 lines
- use aprint instead of printf.
- centralize all the suspend/resume glue in one function.

Revision 1.85.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 26 12:50:37 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +52 -4 lines
sync with head.

Revision 1.91: download - view: text, markup, annotated - select for diffs
Sat Jun 24 23:40:50 2006 UTC (18 years, 5 months ago) by tsarna
Branches: MAIN
CVS tags: yamt-pdpolicy-base6
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +3 -3 lines
fix typo: idicator -> indicator

Revision 1.90: download - view: text, markup, annotated - select for diffs
Wed Jun 21 17:47:23 2006 UTC (18 years, 5 months ago) by drochner
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +4 -2 lines
First cut on an implementation of an ACPI power management counter
backend for timecounters.
Due to known bugs in some chipsets, always read until we get 3 successive
samples which are monotonic, as FreeBSD does in its "safe" variant.
This can be refined later, either by chipset quirks or by a test (as
FreeBSD does).

Revision 1.76.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:02:31 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +158 -59 lines
sync with head.

Revision 1.89: download - view: text, markup, annotated - select for diffs
Tue Jun 20 12:31:19 2006 UTC (18 years, 5 months ago) by cube
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +3 -2 lines
When we consume a resource definition from _PRS, advance to the next one.
Otherwise, if there are two resources definitions of the same type in _CRS,
the same one from _PRS will be used twice, which of course leads to errors.

Note:  _PRS is Possible Resources Set
       _CRS is Current Resources Set

XXX acpi_allocate_resources is still very weak, e.g. it completely ignores
    StartDependentFn entries which are kind of a switch.  But at least it's
    slightly better that way.

Tested by jmcneill@.

Revision 1.88: download - view: text, markup, annotated - select for diffs
Mon Jun 19 10:18:08 2006 UTC (18 years, 5 months ago) by jmcneill
Branches: MAIN
CVS tags: chap-midi-nbase, chap-midi-base
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +2 -6 lines
acpi_pci_fixup didn't work as well as I had hoped; don't bother for now.

Revision 1.85.8.1: download - view: text, markup, annotated - select for diffs
Mon Jun 19 03:58:12 2006 UTC (18 years, 5 months ago) by chap
Branches: chap-midi
Diff to: previous 1.85: preferred, colored; next MAIN 1.86: preferred, colored
Changes since revision 1.85: +48 -3 lines
Sync with head.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Mon Jun 19 02:32:12 2006 UTC (18 years, 5 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +6 -2 lines
Fixup PCI interrupt routing using ACPI tables on return from S3 sleep.
Requires options PCI_INTR_FIXUP in your kernel.

Revision 1.86: download - view: text, markup, annotated - select for diffs
Thu Jun 15 18:05:08 2006 UTC (18 years, 5 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +48 -3 lines
EXPERIMENTAL: Add sysctl for triggering ACPI sleep. This interface is not
    stable, so do not depend on it!

    To trigger sleep:
        # sysctl -w machdep.sleep_state=<n>
    Where <n> is typically 1 (standby), 3 (suspend), or 4 (hibernate).

Revision 1.81.4.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:38:46 2006 UTC (18 years, 7 months ago) by simonb
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.81: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81: +39 -38 lines
Sync with head.

Revision 1.79.2.3: download - view: text, markup, annotated - select for diffs
Wed Mar 1 09:28:11 2006 UTC (18 years, 9 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.79.2.2: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79.2.2: +38 -37 lines
sync with head.

Revision 1.85: download - view: text, markup, annotated - select for diffs
Sun Feb 26 18:46:04 2006 UTC (18 years, 9 months ago) by cube
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, simonb-timecounters-base, peter-altq-base, peter-altq, gdamore-uart-base, elad-kernelauth-base, elad-kernelauth
Branch point for: yamt-pdpolicy, gdamore-uart, chap-midi
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +9 -9 lines
Resource lists end with END_TAG, not END_DEPENDENT.  Makes the
PCI_INTR_FIXUP code "work" again.

Most of the time it will produce a warning about a misaligned resource
pointer, but it's harmless, and the warning was removed in the next version
of the ACPI-CA code.

Revision 1.84: download - view: text, markup, annotated - select for diffs
Thu Feb 23 17:38:03 2006 UTC (18 years, 9 months ago) by wiz
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +4 -4 lines
Fix typo in aprint argument.

Revision 1.83: download - view: text, markup, annotated - select for diffs
Mon Feb 20 12:17:49 2006 UTC (18 years, 9 months ago) by kochi
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +31 -30 lines
use aprint_*

Revision 1.79.2.2: download - view: text, markup, annotated - select for diffs
Sat Feb 18 15:39:02 2006 UTC (18 years, 9 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.79.2.1: preferred, colored
Changes since revision 1.79.2.1: +3 -3 lines
sync with head.

Revision 1.82: download - view: text, markup, annotated - select for diffs
Thu Feb 16 09:23:23 2006 UTC (18 years, 9 months ago) by kochi
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +3 -3 lines
define acpi_dbgr as static

Revision 1.79.2.1: download - view: text, markup, annotated - select for diffs
Wed Feb 1 14:51:48 2006 UTC (18 years, 10 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +23 -30 lines
sync with head.

Revision 1.81: download - view: text, markup, annotated - select for diffs
Tue Jan 31 09:30:06 2006 UTC (18 years, 10 months ago) by kochi
Branches: MAIN
Branch point for: simonb-timecounters, rpaulo-netinet-merge-pcb
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +5 -12 lines
remove ACPI_DISABLE_ON_POWEROFF option, which was there just for
compatibility of our old driver behavior, which is not necessary.

Revision 1.80: download - view: text, markup, annotated - select for diffs
Sun Jan 29 03:12:22 2006 UTC (18 years, 10 months ago) by kochi
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +20 -20 lines
adapt for ACPI-CA 20060113

Revision 1.79: download - view: text, markup, annotated - select for diffs
Tue Dec 13 23:27:31 2005 UTC (19 years ago) by cube
Branches: MAIN
Branch point for: yamt-uio_vmspace
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +32 -6 lines
machdep.acpi_root -> hw.acpi.root, as discussed on source-changes.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Mon Dec 12 15:04:50 2005 UTC (19 years ago) by cube
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +35 -2 lines
Move the (one liner) logic of AcpiOsGetRootPointer() out of acpica/Osd to
acpi.c and take the opportunity to create a sysctl node that contains the
address of the main ACPI table.

The name of the node, "machdep.acpi_root", is questionable but matches the
one FreeBSD has, which will make it easier to port their acpidump(8)
program.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:21:01 2005 UTC (19 years ago) by christos
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +2 -2 lines
merge ktrace-lwp.

Revision 1.36.2.6: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:03:11 2005 UTC (19 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.36.2.5: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36.2.5: +53 -20 lines
Sync with HEAD. Here we go again...

Revision 1.76: download - view: text, markup, annotated - select for diffs
Thu Jun 30 22:28:03 2005 UTC (19 years, 5 months ago) by sekiya
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +3 -3 lines
Fix up interrupt line when line == 0.  Discussed with christos@

Revision 1.75: download - view: text, markup, annotated - select for diffs
Thu Jun 30 19:31:53 2005 UTC (19 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +4 -4 lines
There is an error when we return -1, not < 1.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Tue Jun 21 11:49:10 2005 UTC (19 years, 5 months ago) by sekiya
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +6 -2 lines
Likewise, ACPI_PCI_FIXUP has been replaced by PCI_INTR_FIXUP, and we should
notify when an old kernel config is used.  Recommended by wiz@

Revision 1.73: download - view: text, markup, annotated - select for diffs
Tue Jun 21 08:19:25 2005 UTC (19 years, 5 months ago) by sekiya
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +11 -10 lines
Rework the configuration scheme for PCI fixups:

* bus enumeration fixups are not PCIBIOS-specific, interrupt fixups are done
  by both PCIBIOS and ACPI.  The redundancy is very redundant.  Therefore,
  rename PCIBIOS_*_FIXUP to PCI_*_FIXUP, use PCI_INTR_FIXUP in place of
  ACPI_PCI_FIXUP, and change code refences to match.

* move the fixup defines from opt_pcibios.h to opt_pcifixup.h to reflect
  the above.

* fix up the PCI bus numbering in mainbus_attach(), right after we detect the
  configuration mode.  This probably renders the fixup in pcibios.c
  redundant -- but it should be harmless.

These changes make cardbus work in ACPI-only machines, when PCI_BUS_FIXUP
and PCI_INTR_FIXUP are defined.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Mon Jun 20 12:21:36 2005 UTC (19 years, 5 months ago) by sekiya
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +3 -5 lines
Also fix up interrupt line if interrupt is zero, as well as 255.  Fixes
interrupt issues on two of my laptops that lack PCIBIOS.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Tue May 31 21:08:37 2005 UTC (19 years, 6 months ago) by drochner
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +3 -3 lines
lots of cast-qual fallout

Revision 1.70: download - view: text, markup, annotated - select for diffs
Sun May 29 20:56:02 2005 UTC (19 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +7 -7 lines
Sprinkle const freely and delete unnecessary casts.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Mon May 2 14:53:59 2005 UTC (19 years, 7 months ago) by kochi
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +32 -2 lines
Merge changes for ACPI-CA 20050408

Revision 1.67.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:28:44 2005 UTC (19 years, 7 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +4 -4 lines
sync with -current

Revision 1.67.6.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:33:55 2005 UTC (19 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +4 -4 lines
sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.36.2.5: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:40:54 2005 UTC (19 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.36.2.4: preferred, colored
Changes since revision 1.36.2.4: +4 -4 lines
Sync with HEAD.

Hi Perry!

Revision 1.68: download - view: text, markup, annotated - select for diffs
Sun Feb 27 00:26:58 2005 UTC (19 years, 9 months ago) by perry
Branches: MAIN
CVS tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +4 -4 lines
nuke trailing whitespace

Revision 1.36.2.4: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:26:39 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.36.2.3: preferred, colored
Changes since revision 1.36.2.3: +2 -2 lines
Fix the sync with head I botched.

Revision 1.36.2.3: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:44:42 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.36.2.2: preferred, colored
Changes since revision 1.36.2.2: +2 -2 lines
Sync with HEAD.

Revision 1.36.2.2: download - view: text, markup, annotated - select for diffs
Fri Sep 3 12:45:17 2004 UTC (20 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.36.2.1: preferred, colored
Changes since revision 1.36.2.1: +2 -7 lines
Sync with HEAD

Revision 1.67: download - view: text, markup, annotated - select for diffs
Mon Aug 30 15:05:19 2004 UTC (20 years, 3 months ago) by drochner
Branches: MAIN
CVS tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +2 -7 lines
Phase out the use of a string as first "attach args" member to control
which bustype should be attached with a specific call to config_found()
(from a "mainbus" or a bus bridge).
Do it for isa/eisa/mca and pci/agp for now. These buses all attach to
an mi interface attribute "isabus", "eisabus" etc., and the autoconf
framework now allows to specify an interface attribute on config_found()
and config_search(), which limits the search of matching config data
to these which attach to that specific attribute.
So we basically have to call config_found_ia(..., "foobus", ...) where
such a bus is attached.
As a consequence, where a "mainbus" or alike also attaches other
devices (eg CPUs) which do not attach to a specific attribute yet,
we need at least pass an attribute name (different from "foobus") so
that the foo bus is not found at these places. This made some minor
changes necessary which are not obviously related to the mentioned buses.

Revision 1.36.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:45:03 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +310 -296 lines
Sync with HEAD

Revision 1.59.2.3: download - view: text, markup, annotated - select for diffs
Mon Jun 14 03:18:58 2004 UTC (20 years, 6 months ago) by jmc
Branches: netbsd-2-0
CVS tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Diff to: previous 1.59.2.2: preferred, colored; branchpoint 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59.2.2: +4 -2 lines
Pullup patch (requested by kochi in ticket #463)

Add ACPI_DISABLE_ON_POWEROFF option. PR#24869

Revision 1.66: download - view: text, markup, annotated - select for diffs
Mon Jun 7 15:33:17 2004 UTC (20 years, 6 months ago) by kochi
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +4 -2 lines
Add ACPI_DISABLE_ON_POWEROFF option.
Note: the default behavior is changed.  Now we don't disable the ACPI
subsystem on power off (halt -p) by default.
'options ACPI_DISABLE_ON_POWEROFF' in a kernel config file makes the kernel
behave the way we used to be.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Wed May 26 17:15:17 2004 UTC (20 years, 6 months ago) by kochi
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +46 -2 lines
ThermalZone improvement work by lha at stacken.kth.se, inspired from
FreeBSD thermal zone code.  Minor style fixes and bugfixes by me.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Sat May 1 12:03:48 2004 UTC (20 years, 7 months ago) by kochi
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +25 -25 lines
specify static where appropriate.

Revision 1.59.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 28 05:25:31 2004 UTC (20 years, 7 months ago) by jmc
Branches: netbsd-2-0
Diff to: previous 1.59.2.1: preferred, colored; branchpoint 1.59: preferred, colored
Changes since revision 1.59.2.1: +4 -2 lines
Pullup rev 1.61 (requested by kochi in ticket #191)

Add ACPI ECDT (Embedded Controller Description Table) support.
This will enable usage of EC in early stage of ACPI initialization.

Revision 1.59.2.1: download - view: text, markup, annotated - select for diffs
Wed Apr 28 05:24:38 2004 UTC (20 years, 7 months ago) by jmc
Branches: netbsd-2-0
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +6 -2 lines
Pullup rev 1.60 (requested by kochi in ticket #191)

Add ACPI ECDT (Embedded Controller Description Table) support.
This will enable usage of EC in early stage of ACPI initialization.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Sun Apr 11 06:48:25 2004 UTC (20 years, 8 months ago) by kochi
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +26 -26 lines
return (x) -> return x
use consitent variable name for ACPI_STATUS

Revision 1.62: download - view: text, markup, annotated - select for diffs
Sat Apr 10 11:48:10 2004 UTC (20 years, 8 months ago) by kochi
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +9 -9 lines
whitespace nit

Revision 1.61: download - view: text, markup, annotated - select for diffs
Wed Mar 31 11:19:39 2004 UTC (20 years, 8 months ago) by tron
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +4 -2 lines
Only call acpiec_early_attach() in "acpi.c" if the kernel is configured
to include the "acpiec" device.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Tue Mar 30 15:18:55 2004 UTC (20 years, 8 months ago) by kochi
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +6 -2 lines
Add ACPI ECDT (Embedded Controller Description Table) support.
This will enable usage of EC in early stage of ACPI initialization.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Tue Mar 23 19:00:03 2004 UTC (20 years, 8 months ago) by drochner
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +3 -3 lines
some int->ACPI_INTEGER to make it compile on amd64 again

Revision 1.58: download - view: text, markup, annotated - select for diffs
Tue Mar 23 14:08:17 2004 UTC (20 years, 8 months ago) by kochi
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +5 -23 lines
Don't use ACPI CA internal functions

Revision 1.57: download - view: text, markup, annotated - select for diffs
Mon Nov 3 18:51:31 2003 UTC (21 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +7 -6 lines
Use pmatch() so that we can use patterns.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Mon Nov 3 18:07:10 2003 UTC (21 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +37 -26 lines
More cleanup:
* Use ACPI_FAILURE() and ACPI_SUCCESS().
* Output exception strings in a few more places.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Mon Nov 3 17:24:22 2003 UTC (21 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +14 -11 lines
Clean up some messages:
* Use AcpiFormatException() in a bunch of places.
* acpi_resource_parse() already prints an error, so don't do it in the callers.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Mon Nov 3 06:03:47 2003 UTC (21 years, 1 month ago) by kochi
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +74 -46 lines
* now the size of ACPI_DEVICE_INFO is variable:
  it can now accomodate multiple _CIDs
  sizeof(ACPI_DEVICE_INFO) should not be used
* make ad_devinfo member in acpi_devnode a pointer
* implement acpi_match_hid() to simplify matching devices;
  _CIDs are also taken into account now as well as _HID

Revision 1.53: download - view: text, markup, annotated - select for diffs
Sat Nov 1 20:58:33 2003 UTC (21 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -3 lines
One more spot for a structure change.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sat Nov 1 19:24:42 2003 UTC (21 years, 1 month ago) by yamt
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +7 -3 lines
make this compilable again with ACPI_DEBUG.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Sat Nov 1 08:03:24 2003 UTC (21 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +2 -30 lines
Do not install address handlers before calling AcpiEnableSubsystem() -- this
is done by AcpiInitializeObjects() anyway.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Sat Nov 1 03:45:48 2003 UTC (21 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +38 -2 lines
Update copyright.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sat Nov 1 01:03:23 2003 UTC (21 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -4 lines
Move a declaration.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Fri Oct 31 20:54:18 2003 UTC (21 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +22 -88 lines
Catch up with ABI changes in ACPI-CA.  Some additional changes to acpi_bat to
set the VALID bits correctly, so we don't report garbage for missing batteries.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Fri Oct 31 17:22:28 2003 UTC (21 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +10 -9 lines
We were passing flags to AcpiEnableSubsystem() that aren't even used there.
Call AcpiInitializeObjects() to create global variables and run _INI methods.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Thu Oct 30 20:29:54 2003 UTC (21 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +16 -29 lines
Use AcpiEvulateObjectTyped() to simplify some code.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Thu Oct 30 19:33:24 2003 UTC (21 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +5 -3 lines
Check to see if we have valid status info before looking at it.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Thu Oct 30 18:15:35 2003 UTC (21 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +3 -3 lines
Remove another extra AcpiGetObjectInfo().

Revision 1.43: download - view: text, markup, annotated - select for diffs
Thu Oct 30 18:13:38 2003 UTC (21 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +13 -8 lines
Minor tweaks:
* Only fetch the object info a second time if we activated the device.
* Do not attempt to activate a device with no HID.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Sun Aug 17 03:45:19 2003 UTC (21 years, 3 months ago) by kochi
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +8 -3 lines
check return value of AcpiEnterSleepStatePrep() to catch
any failure

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun Jul 6 05:24:18 2003 UTC (21 years, 5 months ago) by kochi
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +14 -12 lines
make bootup messages prettier

Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun Jul 6 04:03:22 2003 UTC (21 years, 5 months ago) by kochi
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +12 -18 lines
o cleanup usage of ACPI_ACTIVATE_DEV/ACPI_PCI_FIXUP
o delete usage of ENABLE_DEBUGGER

As ACPI_ACTIVATE_DEV/ACPI_PCI_FIXUP are defflag'ed in files.acpi,
these options don't have to have a value.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Thu Jul 3 14:37:34 2003 UTC (21 years, 5 months ago) by kochi
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +4 -2 lines
Cleanup usage of ENABLE_DEBUGGER/ACPI_DEBUGGER/DDB.

By this change, ACPI debugger/disassembler are only
compiled when both DDB and ACPI_DEBUG options are
specified.  This change also reduces the kernel size
a little when ACPI_DEBUG is not specified.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Wed Jul 2 12:23:25 2003 UTC (21 years, 5 months ago) by kochi
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +10 -19 lines
cleanup usage of ACPI_ALLOCATE_BUFFER/AcpiOsFree combination

Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Jul 2 11:54:43 2003 UTC (21 years, 5 months ago) by kochi
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +5 -2 lines
print ACPI CA version

Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu May 15 21:29:49 2003 UTC (21 years, 7 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +6 -3 lines
Add quirk handling to ACPI. First quirk entry is "PTLTD " rev 0x06040000,
which gives problems with PCI bus finding; the object hierarchy doesn't
match the real world for some systems, most notably SuperMicro boards.
Linux has this one blacklisted as well.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri Apr 18 01:31:34 2003 UTC (21 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +7 -5 lines
* Add a generic power management event API, defined in <sys/power.h>.
  Right now, only power switch state change events are supported.  This
  is a work-in-progress.
* Add support to sysmon for delivering power mangement events to userland.
  Add poll, kqueue, and read entry points to sysmon.
* Adapt ACPI to use the new generic <sys/power.h> event types.

This provides the kernel support for a forthcoming powerd(8) which can
do nice things like gracefully shut the system down when an ACPI power
button is pressed.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Thu Apr 17 01:22:21 2003 UTC (21 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +71 -56 lines
* Don't do the ACPI_PCI_FIXUP unless it is explicitly enabled in
  the kernel config file.  That code makes a total mess of any
  system with multiple PCI busses.
* Rework the way buttons are handled; register them with sysmon,
  and let it take the appropriate action.  This lets us gracefully
  shut down when the power button is pressed.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Wed Mar 5 23:00:56 2003 UTC (21 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +13 -11 lines
use M_ACPI where appropriate.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Feb 14 11:05:39 2003 UTC (21 years, 10 months ago) by tshiozak
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +91 -22 lines
- add acpi_acquire_global_lock()/acpi_release_global_lock()/
  acpi_is_global_locked() functions.
  AcpiGlobalLock() API should be used to acquire lock between BIOS and OS.
  This API cannot be used to lock between threads of the OS side,
  because this function immediately returns if the lock is already acquired
  by the OS.  c.f. AcpiEvAcquireGlobalLock()@evmisc.c

- make sure that acpiec driver uses above functions.

- use ACPI_ALLOCATE_BUFFER instead of twice calls of AcpiEvaluateObject(),
  in acpi_eval_string()/acpi_eval_struct().
  Twice AcpiEvaluateObject() calls may cause twice side effects
  to ACPI machine / hardware and this may be wrong in some cases.

Revision 1.4.4.13: download - view: text, markup, annotated - select for diffs
Wed Jan 15 18:44:14 2003 UTC (21 years, 10 months ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.4.4.12: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.4.12: +5 -5 lines
Sync with HEAD.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Mon Jan 13 01:24:11 2003 UTC (21 years, 11 months ago) by fvdl
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -3 lines
Use 'int' in the SCI interrupt message, not 'irq'. The number in question
is a global ACPI interrupt number.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Jan 9 10:35:29 2003 UTC (21 years, 11 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +4 -4 lines
use AcpiUtGetTypeName() to print object type name in acpi_print()

Revision 1.4.4.12: download - view: text, markup, annotated - select for diffs
Wed Jan 8 17:10:54 2003 UTC (21 years, 11 months ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.4.4.11: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.11: +8 -2 lines
Sync with HEAD.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Wed Jan 8 16:52:49 2003 UTC (21 years, 11 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +8 -2 lines
Print some OEM version info for the R/XSDT. Can be used to help identify
buggy ACPI implementations.

Revision 1.4.4.11: download - view: text, markup, annotated - select for diffs
Tue Jan 7 21:33:56 2003 UTC (21 years, 11 months ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.4.4.10: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.10: +103 -46 lines
Sync with HEAD.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Tue Jan 7 18:46:48 2003 UTC (21 years, 11 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +29 -5 lines
* Add aux argument to functions called from apic_madt_walk
* Improve acpi interrupt fixup a bit
	* Source is an array, don't compare it to NULL, instead
	  look for an empty string to denote a link-device-less
	  entry.
	* For root PCI busses, try to use the _BBN method to get
	  numbering right.
* Add acpi_md_callback() function for MD handling after the init,
  but before * at acpi probing.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Jan 5 22:33:21 2003 UTC (21 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +48 -23 lines
add ACPIVERBOSE; while I am there, fix the eval_string function so it does
not leak.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Jan 5 06:19:05 2003 UTC (21 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +4 -3 lines
Print something a bit more informative when displaying 'not configured'
messages for objects without a valid HID.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Jan 4 05:32:15 2003 UTC (21 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +33 -26 lines
Attempt to attach drivers to devices without a valid HID so long as they're
not of type ACPI_TYPE_DEVICE.

Revision 1.4.4.10: download - view: text, markup, annotated - select for diffs
Fri Jan 3 17:01:10 2003 UTC (21 years, 11 months ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.4.4.9: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.9: +25 -10 lines
Sync with HEAD.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Wed Jan 1 00:10:16 2003 UTC (21 years, 11 months ago) by thorpej
Branches: MAIN
CVS tags: fvdl_fs64_base
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +8 -8 lines
Use aprint_normal() in cfprint routines.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Tue Dec 31 11:23:34 2002 UTC (21 years, 11 months ago) by augustss
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +10 -6 lines
Fix some messages and some formatting.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Dec 31 05:59:53 2002 UTC (21 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +10 -4 lines
If we have a valid UID but it's a null string, display '<null>' rather than
nothing at all.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Dec 30 09:33:25 2002 UTC (21 years, 11 months ago) by matt
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +7 -2 lines
Print out the pnpname that was matched.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Dec 30 01:56:44 2002 UTC (21 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3 lines
Allow ACPI_EXTRA_DEBUG without ACPI_DEBUG

Revision 1.4.4.9: download - view: text, markup, annotated - select for diffs
Sun Dec 29 20:45:30 2002 UTC (21 years, 11 months ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.4.4.8: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.8: +4 -2 lines
Sync with HEAD.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Dec 28 06:14:07 2002 UTC (21 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +4 -2 lines
Pass ISA chipset information through to ACPI devices, to allow for porting
of pnpbios(4) glue to acpi(4).

Revision 1.4.4.8: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:41:29 2002 UTC (22 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.4.4.7: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.7: +4 -5 lines
Catch up to -current.

Revision 1.5.2.6: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:38:23 2002 UTC (22 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.5.2.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.2.5: +4 -5 lines
sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.18: download - view: text, markup, annotated - select for diffs
Wed Oct 2 16:33:35 2002 UTC (22 years, 2 months ago) by thorpej
Branches: MAIN
CVS tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -3 lines
Add trailing ; to CFATTACH_DECL.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Sep 30 20:41:16 2002 UTC (22 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +4 -5 lines
Use CFATTACH_DECL().

Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Sep 27 20:37:32 2002 UTC (22 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -3 lines
Declare all cfattach structures const.

Revision 1.5.2.5: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:43:48 2002 UTC (22 years, 3 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.5.2.4: preferred, colored
Changes since revision 1.5.2.4: +425 -6 lines
sync kqueue branch with HEAD

Revision 1.7.2.4: download - view: text, markup, annotated - select for diffs
Thu Aug 29 05:22:20 2002 UTC (22 years, 3 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.7.2.3: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.2.3: +341 -3 lines
catch up with -current.

Revision 1.4.4.7: download - view: text, markup, annotated - select for diffs
Thu Aug 1 02:44:35 2002 UTC (22 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.4.4.6: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.6: +343 -3 lines
Catch up to -current.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Jul 29 03:26:20 2002 UTC (22 years, 4 months ago) by augustss
Branches: MAIN
CVS tags: gehenna-devsw-base
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +54 -4 lines
Add code to activate devices that are no active.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Jul 29 03:10:16 2002 UTC (22 years, 4 months ago) by augustss
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -3 lines
Only be very verbose with ACPI_EXTRA_DEBUG set.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Jul 29 03:06:56 2002 UTC (22 years, 4 months ago) by augustss
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +290 -2 lines
Add code to perform PCI interrupt routing fixup.

Revision 1.7.2.3: download - view: text, markup, annotated - select for diffs
Sat Jul 20 11:35:06 2002 UTC (22 years, 4 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.7.2.2: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.2.2: +4 -2 lines
catch up with -current.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Jul 18 12:05:11 2002 UTC (22 years, 4 months ago) by kanaoka
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -2 lines
 - Disable Interrput before execute AcpiEnterSleepState().
 - Add acpi_md_OsDisableInterrupt() for this.

Revision 1.7.2.2: download - view: text, markup, annotated - select for diffs
Mon Jul 15 10:35:11 2002 UTC (22 years, 5 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.7.2.1: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.2.1: +78 -2 lines
catch up with -current.

Revision 1.5.2.4: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:45:02 2002 UTC (22 years, 5 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.5.2.3: preferred, colored
Changes since revision 1.5.2.3: +49 -9 lines
catch up with -current on kqueue branch

Revision 1.7.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 20 16:31:24 2002 UTC (22 years, 5 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +12 -8 lines
catch up with -current.

Revision 1.4.4.6: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:43:25 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.4.4.5: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.5: +88 -8 lines
Catch up to -current.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Jun 18 10:26:15 2002 UTC (22 years, 5 months ago) by drochner
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -3 lines
make it compile with ACPI_DEBUG

Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Jun 18 08:09:21 2002 UTC (22 years, 5 months ago) by tshiozak
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +78 -2 lines
add MI part of ACPI sleep state transition code.
However, we have no interface to use it, and we also need device driver
support. (e.g. D2/D3 support for PCI)

Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Jun 17 08:18:51 2002 UTC (22 years, 5 months ago) by kanaoka
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +8 -5 lines
 - Show SCI interrupt information.
 - Remove ACPI_STA_DEV_SHOW from device check in acpi_build_tree().

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Jun 15 18:03:41 2002 UTC (22 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +6 -5 lines
Update for acpica-unix-20020612.  From Takayoshi Kochi.

Revision 1.4.4.5: download - view: text, markup, annotated - select for diffs
Mon Apr 1 07:45:06 2002 UTC (22 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.4.4.4: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.4: +45 -6 lines
Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Mar 24 03:32:14 2002 UTC (22 years, 8 months ago) by sommerfeld
Branches: MAIN
CVS tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Branch point for: gehenna-devsw
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +45 -6 lines
Add acpi_eval_struct, to evaluate a complex data structure.

#if 0-out a half-fixed acpi_eval_string() and #if 0 the only call to it.
(Previous code referenced an uninitialized local variable and couldn't
have possibly worked).

Revision 1.4.4.4: download - view: text, markup, annotated - select for diffs
Thu Feb 28 04:13:12 2002 UTC (22 years, 9 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.4.4.3: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.3: +3 -4 lines
Catch up to -current.

Revision 1.5.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 11 20:09:38 2002 UTC (22 years, 10 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.5.2.2: preferred, colored
Changes since revision 1.5.2.2: +3 -4 lines
Sync w/ -current.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Jan 12 16:43:53 2002 UTC (22 years, 11 months ago) by tsutsui
Branches: MAIN
CVS tags: newlock-base, newlock, ifpoll-base, eeh-devprop-base, eeh-devprop
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -4 lines
Call malloc(9) with M_ZERO flag instead of memset() after malloc().

Revision 1.5.2.2: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:52:51 2002 UTC (22 years, 11 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.5.2.1: preferred, colored
Changes since revision 1.5.2.1: +673 -0 lines
Sync kqueue branch with -current.

Revision 1.4.4.3: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:13:43 2001 UTC (23 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.4.4.2: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.2: +4 -1 lines
Catch up to -current.

Revision 1.5.2.1
Tue Nov 13 13:01:57 2001 UTC (23 years, 1 month ago) by thorpej
Branches: kqueue
FILE REMOVED
Changes since revision 1.5: +0 -673 lines
file acpi.c was added on branch kqueue on 2002-01-10 19:52:51 +0000

Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue Nov 13 13:01:57 2001 UTC (23 years, 1 month ago) by lukem
Branches: MAIN
Branch point for: kqueue
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -1 lines
add RCSID

Revision 1.4.4.2: download - view: text, markup, annotated - select for diffs
Mon Oct 8 21:18:05 2001 UTC (23 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.4.4.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.1: +670 -0 lines
Catch up to -current.

Revision 1.4.2.2: download - view: text, markup, annotated - select for diffs
Mon Oct 1 12:44:14 2001 UTC (23 years, 2 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.4.2.1: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.2.1: +670 -0 lines
Catch up with -current.

Revision 1.4.4.1
Sat Sep 29 18:13:48 2001 UTC (23 years, 2 months ago) by nathanw
Branches: nathanw_sa
FILE REMOVED
Changes since revision 1.4: +0 -670 lines
file acpi.c was added on branch nathanw_sa on 2001-10-08 21:18:05 +0000

Revision 1.4.2.1
Sat Sep 29 18:13:48 2001 UTC (23 years, 2 months ago) by fvdl
Branches: thorpej-devvp
FILE REMOVED
Changes since revision 1.4: +0 -670 lines
file acpi.c was added on branch thorpej-devvp on 2001-10-01 12:44:14 +0000

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Sep 29 18:13:48 2001 UTC (23 years, 2 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2
Branch point for: thorpej-devvp, nathanw_sa
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +52 -3 lines
- Add an acpi_evaluate_string() to evaluate string objects.
- In acpi_print(), try to evaluate the _STR object, and print
  it if the device is not configured.
- Make this compile without ACPI_DEBUG, from Masanori Kanaoka.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Sep 29 05:39:14 2001 UTC (23 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +1 -27 lines
Don't install a single system notify handler.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Sep 29 05:34:00 2001 UTC (23 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +31 -1 lines
Add code to parse ACPI bus resources.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Sep 28 02:09:22 2001 UTC (23 years, 2 months ago) by thorpej
Branches: MAIN
Add some basic ACPI probing framework.  This is far from complete,
it is merely a work in progress.

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>