Date: Tue, 8 Sep 1998 13:52:03 -0600 (MDT) From: "Justin T. Gibbs" <gibbs@narnia.plutotech.com> To: Doug Rabson <dfr@nlsystems.com> Cc: alpha@FreeBSD.ORG Subject: Re: Bt848 driver for Alpha Message-ID: <199809081952.NAA06723@narnia.plutotech.com> In-Reply-To: <Pine.BSF.4.01.9809080932410.796-100000@herring.nlsystems.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In article <Pine.BSF.4.01.9809080932410.796-100000@herring.nlsystems.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809081952.NAA06723>