From owner-cvs-src-old@FreeBSD.ORG Tue Apr 14 18:32:49 2009 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 843231065678 for ; Tue, 14 Apr 2009 18:32:49 +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 69EEA8FC13 for ; Tue, 14 Apr 2009 18:32:49 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n3EIWnZZ015000 for ; Tue, 14 Apr 2009 18:32:49 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n3EIWnuq014997 for cvs-src-old@freebsd.org; Tue, 14 Apr 2009 18:32:49 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <200904141832.n3EIWnuq014997@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Tue, 14 Apr 2009 18:32:37 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/pci 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, 14 Apr 2009 18:32:50 -0000 jhb 2009-04-14 18:32:37 UTC FreeBSD src repository Modified files: sys/dev/pci pci.c Log: SVN rev 191069 on 2009-04-14 18:32:37Z by jhb - Consolidate duplicated code for reading and sizing BARs and writing base addresses to BARs into new pci_read_bar() and pci_write_bar() routines. pci_add_map(), pci_alloc_map(), and pci_delete_resource() now use these routines to work with BARs. - Just pass the device_t for the new PCI device to various routines instead of passing the device, bus, slot, and function. Reviewed by: imp Revision Changes Path 1.379 +98 -121 src/sys/dev/pci/pci.c