Date: Fri, 19 Apr 1996 12:11:04 +0000 (GMT) From: Gabor Zahemszky <zgabor@CoDe.hu> To: kuku@gilberto.physik.rwth-aachen.de Cc: freebsd-questions@freebsd.org Subject: Re: How can I read/write from/to an I/O-port? Message-ID: <199604191211.MAA03635@CoDe.CoDe.hu> In-Reply-To: <199604191028.MAA13352@gilberto.physik.rwth-aachen.de> from "Christoph P. Kukulies" at Apr 19, 96 12:28:50 pm
next in thread | previous in thread | raw e-mail | index | archive | help
>
> >
> > Hi,
> >
> > I have a little problem. So I hope someone can help
> > me:
> >
> > Under Linux a /dev/port exits to write/read to/from an I/O-port.
> > Does a similar /dev/??? exits under FreeBSD or must I write
> > a little device driver for this?
>
> Under FreeBSD there is /dev/io.
>
> Do an open("/dev/io",flags,mode) on it and you can access i/o
> ports using in/out instructions.
OK. How? What does flags mean? How can I use the fd, I get from open?
(A little example please....)
--
Gabor Zahemszky <zgabor@CoDe.hu>
-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-
Earth is the cradle of human sense, but you can't stay in the cradle forever.
Tsiolkovsky
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604191211.MAA03635>
