From owner-cvs-src@FreeBSD.ORG Tue Nov 22 16:39:47 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 759F116A41F; Tue, 22 Nov 2005 16:39:47 +0000 (GMT) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7FAA43D55; Tue, 22 Nov 2005 16:39:44 +0000 (GMT) (envelope-from marius@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 jAMGdiqW057496; Tue, 22 Nov 2005 16:39:44 GMT (envelope-from marius@repoman.freebsd.org) Received: (from marius@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id jAMGdi9f057495; Tue, 22 Nov 2005 16:39:44 GMT (envelope-from marius) Message-Id: <200511221639.jAMGdi9f057495@repoman.freebsd.org> From: Marius Strobl Date: Tue, 22 Nov 2005 16:39:44 +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/sparc64/central central.c src/sys/sparc64/ebus ebus.c src/sys/sparc64/fhc fhc.c fhc_central.c fhc_nexus.c fhcvar.h src/sys/sparc64/pci ofw_pcibus.c src/sys/sparc64/sbus dma_sbus.c sbus.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Nov 2005 16:39:47 -0000 marius 2005-11-22 16:39:44 UTC FreeBSD src repository Modified files: sys/sparc64/central central.c sys/sparc64/ebus ebus.c sys/sparc64/fhc fhc.c fhc_central.c fhc_nexus.c fhcvar.h sys/sparc64/pci ofw_pcibus.c sys/sparc64/sbus dma_sbus.c sbus.c Log: - Convert these bus drivers to make use of the newly introduced set of ofw_bus_gen_get_*() for providing the ofw_bus KOBJ interface in order to reduce code duplication. - While here sync the various sparc64 bus drivers a bit (handle failure to attach a child gracefully instead of panicing, move the printing of child resources common to bus_print_child() and bus_probe_nomatch() implementations of a bus into a _print_res() function, ...) and fix some minor bugs and nits (plug memory leaks present when attaching a bus or child device fails, remove unused struct members, ...). Additional testing by: kris (central(4) and fhc(4)) Revision Changes Path 1.9 +54 -93 src/sys/sparc64/central/central.c 1.24 +47 -102 src/sys/sparc64/ebus/ebus.c 1.14 +65 -99 src/sys/sparc64/fhc/fhc.c 1.9 +7 -5 src/sys/sparc64/fhc/fhc_central.c 1.8 +7 -5 src/sys/sparc64/fhc/fhc_nexus.c 1.6 +1 -5 src/sys/sparc64/fhc/fhcvar.h 1.7 +27 -80 src/sys/sparc64/pci/ofw_pcibus.c 1.2 +56 -115 src/sys/sparc64/sbus/dma_sbus.c 1.36 +70 -107 src/sys/sparc64/sbus/sbus.c