diff options
author | njl <njl@FreeBSD.org> | 2004-05-25 02:47:35 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2004-05-25 02:47:35 +0000 |
commit | 70e389d6cfb11f189060d16fde82012e8c1d8aeb (patch) | |
tree | 25ff73bb09231d547c140b54615b5edf5ba0f276 /sys/dev/acpica/acpi_acad.c | |
parent | a714b78fea0d6c73e38a47e7db9e0b44c9814856 (diff) | |
download | FreeBSD-src-70e389d6cfb11f189060d16fde82012e8c1d8aeb.zip FreeBSD-src-70e389d6cfb11f189060d16fde82012e8c1d8aeb.tar.gz |
Changes to implement 20040514:
* Add calls to AcpiSetGpeType. We use wake/run as the type for lid and
button switches since wake-only causes Thinkpads to immediately wake on
the second suspend. Note that with wake/run, some systems return both
wake and device-specific notifies so we don't register for system notifies
for lid and button switches.
* Remove the hw.acpi.osi_method tunable since it is not needed.
* Always print unknown notifies for all types.
* Add more cleanup for the EC if it fails to attach.
* Use the GPE handle now that we parse it. This allows GPEs to be defined
in AML GPE blocks.
* Always use ACPI_NOT_ISR since it's ok to acquire a mutex in our thread
which processes queued requests.
Diffstat (limited to 'sys/dev/acpica/acpi_acad.c')
-rw-r--r-- | sys/dev/acpica/acpi_acad.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/acpica/acpi_acad.c b/sys/dev/acpica/acpi_acad.c index af22286..d6b2e20 100644 --- a/sys/dev/acpica/acpi_acad.c +++ b/sys/dev/acpica/acpi_acad.c @@ -116,11 +116,9 @@ acpi_acad_get_status(void *context) static void acpi_acad_notify_handler(ACPI_HANDLE h, UINT32 notify, void *context) { - device_t dev = context; - - ACPI_VPRINT(dev, acpi_device_get_parent_softc(dev), - "Notify 0x%x\n", notify); + device_t dev; + dev = (device_t)context; switch (notify) { case ACPI_DEVICE_CHECK_PNP: case ACPI_DEVICE_CHECK_EXISTENCE: @@ -129,6 +127,7 @@ acpi_acad_notify_handler(ACPI_HANDLE h, UINT32 notify, void *context) AcpiOsQueueForExecution(OSD_PRIORITY_LO, acpi_acad_get_status, context); break; default: + device_printf(dev, "unknown notify %#x\n", notify); break; } } |