From owner-cvs-src-old@FreeBSD.ORG Wed Jun 22 16:15:44 2011 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 BAFAB1065677 for ; Wed, 22 Jun 2011 16:15:44 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id A8E9D8FC20 for ; Wed, 22 Jun 2011 16:15:44 +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 p5MGFikF000681 for ; Wed, 22 Jun 2011 16:15:44 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p5MGFinI000680 for cvs-src-old@freebsd.org; Wed, 22 Jun 2011 16:15:44 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <201106221615.p5MGFinI000680@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Wed, 22 Jun 2011 16:15:15 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/amd64/pci pci_bus.c src/sys/dev/acpica acpi_pcib_acpi.c src/sys/i386/pci pci_bus.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: Wed, 22 Jun 2011 16:15:44 -0000 jhb 2011-06-22 16:15:15 UTC FreeBSD src repository Modified files: sys/amd64/pci pci_bus.c sys/dev/acpica acpi_pcib_acpi.c sys/i386/pci pci_bus.c Log: SVN rev 223424 on 2011-06-22 16:15:15Z by jhb Add a helper routine to conditionally modify the start address of a resource allocation from an x86 Host-PCI bridge driver so that it can be reused by the ACPI Host-PCI bridge driver (and eventually the MPTable Host-PCI bridge driver) instead of duplicating the same logic. Note that this means that hw.acpi.host_mem_start is now replaced with the hw.pci.host_mem_start tunable that was already used in the non-ACPI case. This also removes hw.acpi.host_mem_start on ia64 where it was not applicable (the implementation was very x86-specific). While here, adjust the logic to apply the new start address on any "wildcard" allocation even if that allocation comes from a subset of the allowable address range. Reviewed by: imp (1) Revision Changes Path 1.127 +32 -22 src/sys/amd64/pci/pci_bus.c 1.66 +4 -22 src/sys/dev/acpica/acpi_pcib_acpi.c 1.135 +32 -22 src/sys/i386/pci/pci_bus.c