From owner-cvs-all@FreeBSD.ORG Sun Jun 13 22:52:53 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BABEA16A4CE; Sun, 13 Jun 2004 22:52:53 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B552B43D5D; Sun, 13 Jun 2004 22:52:53 +0000 (GMT) (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 i5DMqVHw084242; Sun, 13 Jun 2004 22:52:31 GMT (envelope-from njl@repoman.freebsd.org) Received: (from njl@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i5DMqVVo084238; Sun, 13 Jun 2004 22:52:31 GMT (envelope-from njl) Message-Id: <200406132252.i5DMqVVo084238@repoman.freebsd.org> From: Nate Lawson Date: Sun, 13 Jun 2004 22:52:31 +0000 (UTC) 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_acad.c acpi_button.c acpi_cmbat.c acpi_ec.c acpi_isab.c acpi_lid.c acpi_pcib_acpi.c acpi_resource.c acpivar.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jun 2004 22:52:53 -0000 njl 2004-06-13 22:52:31 UTC FreeBSD src repository Modified files: sys/dev/acpica acpi.c acpi_acad.c acpi_button.c acpi_cmbat.c acpi_ec.c acpi_isab.c acpi_lid.c acpi_pcib_acpi.c acpi_resource.c acpivar.h Log: Add support to ACPI to manage its own resources. Previously, resource allocation was passed up to nexus. Now, we probe sysresource objects and manage the resources they describe in a local rman pool. This helps devices which attach/detach varying resources (like the _CST object) and module loads/unloads. The allocation/release routines now check to see if the resource is described in a child sysresource object and if so, allocate from the local rman. Sysresource objects add their resources to the pool and reserve them upon boot. This means sysresources need to be probed before other ACPI devices. Changes include: * Add ordering to the child device probe. The current order is: system resource objects, embedded controllers, then everything else. * Make acpi_MatchHid take a handle instead of a device_t arg. * Replace acpi_{get,set}_resource with the generic equivalents. Revision Changes Path 1.159 +137 -52 src/sys/dev/acpica/acpi.c 1.27 +1 -1 src/sys/dev/acpica/acpi_acad.c 1.27 +6 -4 src/sys/dev/acpica/acpi_button.c 1.30 +2 -2 src/sys/dev/acpica/acpi_cmbat.c 1.52 +1 -1 src/sys/dev/acpica/acpi_ec.c 1.8 +3 -1 src/sys/dev/acpica/acpi_isab.c 1.23 +1 -1 src/sys/dev/acpica/acpi_lid.c 1.35 +1 -1 src/sys/dev/acpica/acpi_pcib_acpi.c 1.25 +91 -37 src/sys/dev/acpica/acpi_resource.c 1.71 +3 -1 src/sys/dev/acpica/acpivar.h