From owner-cvs-src@FreeBSD.ORG Thu May 19 18:11:48 2005 Return-Path: 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 343E916A4CE; Thu, 19 May 2005 18:11:48 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 15AF043DAF; Thu, 19 May 2005 18:11:48 +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 j4JIBkwW057771; Thu, 19 May 2005 18:11:46 GMT (envelope-from marius@repoman.freebsd.org) Received: (from marius@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j4JIBkhD057770; Thu, 19 May 2005 18:11:46 GMT (envelope-from marius) Message-Id: <200505191811.j4JIBkhD057770@repoman.freebsd.org> From: Marius Strobl Date: Thu, 19 May 2005 18:11:46 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/sparc64/ebus ebus.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 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: Thu, 19 May 2005 18:11:48 -0000 marius 2005-05-19 18:11:46 UTC FreeBSD src repository Modified files: sys/sparc64/ebus ebus.c Log: - Artificially using SYS_RES_IOPORT for EBus devices for reasons of compatibility with ISA devices while in fact all known EBus devices actually use memory space turned out to be not a good idea as so far there is only the 'rtc' device known to show up either on an EBus or ISA bus but not on any of the other busses used on sparc64. However there are quite a couple of them that show up on either EBus, FireHose or SBus. In order to save extra code in the respective drivers switch ebus(4) to actually use SYS_RES_MEMORY for the memory resources of its children. At least for transition still accept SYS_RES_IOPORT and silently change it to SYS_RES_MEMORY. [1] - In ebus_probe() use ofw_bus_get_name() instead of re-implementing it via ofw_bus_get_node() and OF_getprop(). - Remove some unused variables. - Use FBSDID. Discussed with: tmm (some time ago) Revision Changes Path 1.22 +43 -24 src/sys/sparc64/ebus/ebus.c