Subject: Re: How do you access a port in netbsd/vax?
To: SHAUN RIPLEY <vax3900@yahoo.com>
From: Jochen Kunz <jkunz@unixag-kl.fh-kl.de>
List: port-vax
Date: 02/03/2004 09:41:36
On Mon, 2 Feb 2004 20:58:30 -0800 (PST)
SHAUN RIPLEY <vax3900@yahoo.com> wrote:
> I am going to debug my homebrew Q22 board (not built
> yet) under NetBSD/VAX. What I want to do is to read
> and write certain ports on my board. How do I do that?
Write a device driver or you can do some tests with the "d" and "e"
commands at the ">>>" prompt.
> Do I need to write driver?=20
If you want to use the card with NetBSD: Yes.
> Do I need to write assembler code?=20
No.
> Is it as simple as reading/writing ports under DOS?=20
No.
> Could somebody give me an example, or
> direction to such examples? Thank you.
Read my NetBSD Device Driver Writing Guide. It features the rf(4) driver
for the QBus (UniBus) RX02 floppy drive. See
http://www.unixag-kl.fh-kl.de/~jkunz/NetBSD/
--=20
tsch=FC=DF,
Jochen
Homepage: http://www.unixag-kl.fh-kl.de/~jkunz/