From owner-cvs-all Wed Jan 8 15:36:17 2003 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 D4A3537B401; Wed, 8 Jan 2003 15:36:16 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 941D043EA9; Wed, 8 Jan 2003 15:36:16 -0800 (PST) (envelope-from jake@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h08NaGfh005266; Wed, 8 Jan 2003 15:36:16 -0800 (PST) (envelope-from jake@repoman.freebsd.org) Received: (from jake@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h08NaGHw005265; Wed, 8 Jan 2003 15:36:16 -0800 (PST) Message-Id: <200301082336.h08NaGHw005265@repoman.freebsd.org> From: Jake Burkholder Date: Wed, 8 Jan 2003 15:36:16 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/zs z8530reg.h z8530var.h zs.c zs_sbus.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jake 2003/01/08 15:36:16 PST Modified files: sys/dev/zs z8530reg.h zs.c Added files: sys/dev/zs z8530var.h zs_sbus.c Log: Split this into bus specific front end(s), so that it can be used by ppc. This abstracts out all the differences I could see between the netbsd sparc64 and macppc zs drivers. In particular the offsets of the csr and data registers are different, so we use a separate bus handle for each and use bus_space_subregion to add the bus specific offsets. Requested by: benno Revision Changes Path 1.2 +0 -10 src/sys/dev/zs/z8530reg.h 1.1 +77 -0 src/sys/dev/zs/z8530var.h (new) 1.4 +40 -269 src/sys/dev/zs/zs.c 1.1 +281 -0 src/sys/dev/zs/zs_sbus.c (new) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message