From owner-freebsd-alpha Tue Sep 8 12:58:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA03556 for freebsd-alpha-outgoing; Tue, 8 Sep 1998 12:58:18 -0700 (PDT) (envelope-from owner-freebsd-alpha@FreeBSD.ORG) Received: from narnia.plutotech.com (narnia.plutotech.com [206.168.67.130]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA03551 for ; Tue, 8 Sep 1998 12:58:17 -0700 (PDT) (envelope-from gibbs@narnia.plutotech.com) Received: (from gibbs@localhost) by narnia.plutotech.com (8.8.8/8.7.3) id NAA06723; Tue, 8 Sep 1998 13:52:03 -0600 (MDT) Date: Tue, 8 Sep 1998 13:52:03 -0600 (MDT) From: "Justin T. Gibbs" Message-Id: <199809081952.NAA06723@narnia.plutotech.com> To: Doug Rabson cc: alpha@FreeBSD.ORG Subject: Re: Bt848 driver for Alpha Newsgroups: pluto.freebsd.alpha In-Reply-To: User-Agent: tin/pre-1.4-971204 (UNIX) (FreeBSD/3.0-CURRENT (i386)) Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article you wrote: > On Mon, 7 Sep 1998, Roger Hardiman wrote: > > I would suggest something like the ncr driver: > > ... > vm_offset_t bt848; > > #define REGOFF(x) (bt848 + offsetof(struct bt848_reg, x) > #define READREGB(x) readb(REGOFF(x)) > #define WRITEREGB(x, v) writeb(REGOFF(x), v) Ick. Ick. Ick. Almost all of the CAM code uses the bus space facility to do this. Why re-invent the wheel? -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message