From owner-cvs-all@FreeBSD.ORG Fri Dec 30 19:28:27 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org 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 731B316A41F; Fri, 30 Dec 2005 19:28:27 +0000 (GMT) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2531043D53; Fri, 30 Dec 2005 19:28:27 +0000 (GMT) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id jBUJSRi3076480; Fri, 30 Dec 2005 19:28:27 GMT (envelope-from imp@repoman.freebsd.org) Received: (from imp@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id jBUJSRgw076479; Fri, 30 Dec 2005 19:28:27 GMT (envelope-from imp) Message-Id: <200512301928.jBUJSRgw076479@repoman.freebsd.org> From: Warner Losh Date: Fri, 30 Dec 2005 19:28:27 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/pci pci.c pci_private.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 30 Dec 2005 19:28:27 -0000 imp 2005-12-30 19:28:26 UTC FreeBSD src repository Modified files: sys/dev/pci pci.c pci_private.h Log: Expose pci_add_resources to the outside world, add a 'force' flag to force allocation of unallocated BARs (cardbus uses this to preallocate everything). Add a prefetchmask to allow for busses that get prefetch hints to set them. Addjust pci_add_map and pci_ata_maps to take a new force flag which pci_add_resources will pass in. Implement 'force' in pci_add_map. Write new value of allocated resource into the bar, if the allocation succeeded (we should have done this before, but with the new force the bug was very obvious). Revision Changes Path 1.306 +61 -29 src/sys/dev/pci/pci.c 1.16 +2 -0 src/sys/dev/pci/pci_private.h