From owner-cvs-src-old@FreeBSD.ORG Tue Oct 19 19:53:32 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8AD661065679 for ; Tue, 19 Oct 2010 19:53:32 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 5E2128FC1D for ; Tue, 19 Oct 2010 19:53:32 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o9JJrWDW020367 for ; Tue, 19 Oct 2010 19:53:32 GMT (envelope-from jkim@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o9JJrWqk020366 for cvs-src-old@freebsd.org; Tue, 19 Oct 2010 19:53:32 GMT (envelope-from jkim@repoman.freebsd.org) Message-Id: <201010191953.o9JJrWqk020366@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jkim@repoman.freebsd.org using -f From: Jung-uk Kim Date: Tue, 19 Oct 2010 19:53:06 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/acpica acpi.c acpi_if.m acpi_pci.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Oct 2010 19:53:32 -0000 jkim 2010-10-19 19:53:06 UTC FreeBSD src repository Modified files: sys/dev/acpica acpi.c acpi_if.m acpi_pci.c Log: SVN rev 214072 on 2010-10-19 19:53:06Z by jkim Remove PCI_SET_POWERSTATE method from acpi.c and eradicate all PCI-specific knowledges from the file. All PCI devices enumerated in ACPI tree must use correct one from acpi_pci.c any way. Reduce duplicate codes as we did for pci.c in r213905. Do not return ESRCH from PCIB_POWER_FOR_SLEEP method. When the method is not found, just return zero without modifying the given default value as it is completely optional. As a side effect, the return state must not be NULL. Note there is actually no functional change by removing ESRCH because acpi_pcib_power_for_sleep() always returns zero. Adjust debugging messages and add new ones under bootverbose to help debugging device power state related issues. Reviewed by: jhb, imp (earlier versions) Revision Changes Path 1.289 +61 -92 src/sys/dev/acpica/acpi.c 1.11 +1 -2 src/sys/dev/acpica/acpi_if.m 1.36 +6 -2 src/sys/dev/acpica/acpi_pci.c