Subject: Re: How do you access a port in netbsd/vax?
To: SHAUN RIPLEY <vax3900@yahoo.com>
From: meltie <port-vax@microvax.org>
List: port-vax
Date: 02/03/2004 09:03:53
On Tuesday 03 February 2004 04:58, SHAUN RIPLEY 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?
> Do I need to write driver? Do I need to write
> assembler code? Is it as simple as reading/writing
> ports under DOS? Could somebody give me an example, or
> direction to such examples? Thank you.

You'll need to write a driver, really. You won't need assembler, it can all 
be done in C.

To get you started, read over:
http://www.netbsd.org/Documentation/kernel/pseudo/
http://www.netbsd.org/Documentation/kernel/

alex/melt