Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 May 1999 09:09:06 +0100 (BST)
From:      Doug Rabson <dfr@nlsystems.com>
To:        fygrave@tigerteam.net
Cc:        freebsd-hackers@freebsd.org, tech@openbsd.org
Subject:   Re: io ports reading/writing
Message-ID:  <Pine.BSF.4.05.9905050908040.411-100000@herring.nlsystems.com>
In-Reply-To: <Pine.LNX.4.05.9905051031140.440-100000@gizmo.kyrnet.kg>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 5 May 1999, CyberPsychotic wrote:

> Hello people,
>  I am abit stuck with io ports access using BSD kernel routines. I
> searched the sources three for the apropriate examples but didn't find
> much. On linux I used ioperm/inb/outb routines, but they don't seem to be
> implemented in BSD world (while inb/outb isn't a problem, since two asm
> instructions would represent that, ioperm is). I would appreciate if
> anyone could point me to apropriate examples or drop a sample code.

I think you just open /dev/io and use inb/outb.  Be warned that this will
only work on i386 - the alpha uses a library, libio, to emulate inb/outb
in user programs.

--
Doug Rabson				Mail:  dfr@nlsystems.com
Nonlinear Systems Ltd.			Phone: +44 181 442 9037




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9905050908040.411-100000>