From owner-cvs-all@FreeBSD.ORG Sun Sep 3 00:27:43 2006 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 5E7F416A4E2; Sun, 3 Sep 2006 00:27:43 +0000 (UTC) (envelope-from jmg@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FA2443D73; Sun, 3 Sep 2006 00:27:42 +0000 (GMT) (envelope-from jmg@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k830Rg2h002667; Sun, 3 Sep 2006 00:27:42 GMT (envelope-from jmg@repoman.freebsd.org) Received: (from jmg@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k830RgwU002666; Sun, 3 Sep 2006 00:27:42 GMT (envelope-from jmg) Message-Id: <200609030027.k830RgwU002666@repoman.freebsd.org> From: John-Mark Gurney Date: Sun, 3 Sep 2006 00:27:42 +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/aic7xxx ahc_eisa.c ahc_isa.c ahc_pci.c ahd_pci.c src/sys/dev/ata ata-dma.c src/sys/dev/bge if_bge.c src/sys/dev/em if_em.c src/sys/dev/gem if_gem.c src/sys/dev/isp isp_pci.c src/sys/dev/usb ohci_pci.c src/sys/kern bus_if.m ... 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: Sun, 03 Sep 2006 00:27:43 -0000 jmg 2006-09-03 00:27:42 UTC FreeBSD src repository Modified files: sys/dev/aic7xxx ahc_eisa.c ahc_isa.c ahc_pci.c ahd_pci.c sys/dev/ata ata-dma.c sys/dev/bge if_bge.c sys/dev/em if_em.c sys/dev/gem if_gem.c sys/dev/isp isp_pci.c sys/dev/usb ohci_pci.c sys/kern bus_if.m subr_bus.c sys/sys bus.h Log: add a newbus method for obtaining the bus's bus_dma_tag_t... This is required by arches like sparc64 (not yet implemented) and sun4v where there are seperate IOMMU's for each PCI bus... For all other arches, it will end up returning NULL, which makes it a no-op... Convert a few drivers (the ones we've been working w/ on sun4v) to the new convection... Eventually all drivers will need to replace the parent tag of NULL, w/ bus_get_dma_tag(dev), though dev is usually different for each driver, and will require hand inspection... Reviewed by: scottl (earlier version) Revision Changes Path 1.36 +2 -2 src/sys/dev/aic7xxx/ahc_eisa.c 1.7 +2 -2 src/sys/dev/aic7xxx/ahc_isa.c 1.65 +2 -2 src/sys/dev/aic7xxx/ahc_pci.c 1.20 +2 -2 src/sys/dev/aic7xxx/ahd_pci.c 1.142 +1 -1 src/sys/dev/ata/ata-dma.c 1.143 +1 -1 src/sys/dev/bge/if_bge.c 1.139 +3 -3 src/sys/dev/em/if_em.c 1.39 +4 -3 src/sys/dev/gem/if_gem.c 1.122 +3 -2 src/sys/dev/isp/isp_pci.c 1.48 +4 -4 src/sys/dev/usb/ohci_pci.c 1.31 +11 -0 src/sys/kern/bus_if.m 1.196 +33 -0 src/sys/kern/subr_bus.c 1.76 +5 -0 src/sys/sys/bus.h