Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Mar 1996 09:18:33 +0200 (SAT)
From:      John Hay <jhay@mikom.csir.co.za>
To:        zeek@primenet.com (John Reynolds)
Cc:        questions@freebsd.org
Subject:   Re: read/write to hardware ports from user code
Message-ID:  <199603270718.JAA25315@zibbi.mikom.csir.co.za>
In-Reply-To: <199603270612.XAA01998@localhost.primenet.com> from "John Reynolds" at Mar 26, 96 11:12:47 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 
> 
> Subject says it all. I have a program that works with a "homemade" PC
> I/O card and would like to get it to run under FreeBSD as well. I've gotten
> it to run under MS-DOG, OS/2, and Linux thus far and I know this kind of
> thing had to have already been done by somebody in FreeBSD land.
> 
> I'm looking for the equivalent of the "ioperm" system call (under Linux)
> which gives programs permission to write to a range of address and the
> routines "inb" and "outb" which read and write a byte to a given hardware
> port. All the searches under the FreeBSD Web page, man pages, and include
> files have come up with nil. :(
> 
Just open "/dev/io" in read/write mode. (You have to have the right
permissions for that.)

John
-- 
John Hay -- John.Hay@csir.co.za



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603270718.JAA25315>