From owner-cvs-src@FreeBSD.ORG Thu May 27 11:39:40 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 24A4216A4CE; Thu, 27 May 2004 11:39:40 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DA1F43D2D; Thu, 27 May 2004 11:39:40 -0700 (PDT) (envelope-from njl@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i4RIck7q075988; Thu, 27 May 2004 11:38:46 -0700 (PDT) (envelope-from njl@repoman.freebsd.org) Received: (from njl@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i4RIckHs075987; Thu, 27 May 2004 11:38:46 -0700 (PDT) (envelope-from njl) Message-Id: <200405271838.i4RIckHs075987@repoman.freebsd.org> From: Nate Lawson Date: Thu, 27 May 2004 11:38:46 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/acpica acpi.c acpi_button.c acpi_lid.c acpivar.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 May 2004 18:39:40 -0000 njl 2004/05/27 11:38:46 PDT FreeBSD src repository Modified files: sys/dev/acpica acpi.c acpi_button.c acpi_lid.c acpivar.h Log: Restructure the wake GPE API. Now there are three functions: acpi_wake_init: Evaluate _PRW and set the GPE type acpi_wake_set_enable: Enable or disable a device's GPE. acpi_wake_sleep_prep: Perform any last-minute changes to the device to prepare it for entering the given sleep state. Also, walk the entire namespace when transitioning to a sleep state, disabling any GPEs which aren't appropriate for the given state. Transition acpi_lid and acpi_button to the new API. This clears the way for non-ACPI-aware devices to wake the system (i.e. modems) and fixes a problem where systems power up after shutdown when a GPE is triggered. Revision Changes Path 1.147 +236 -120 src/sys/dev/acpica/acpi.c 1.24 +7 -6 src/sys/dev/acpica/acpi_button.c 1.20 +7 -6 src/sys/dev/acpica/acpi_lid.c 1.67 +37 -56 src/sys/dev/acpica/acpivar.h