Re: [PARPORT] Sinple Programmed I/O

Tim Waugh (
Sat, 8 May 1999 21:32:53 +0100 (GMT)

On Sat, 8 May 1999, Edward L. Hepler wrote:

> I'm looking for a simple driver that I can load which will give me
> programmed I/O access to the port from my C program. Ideally, I would
> be able to open it (reserve the port), then read/write the address and
> data register from my program. The port would be released when closed
> or the program terminates, much like any other file.

man iopl(3). Include <asm/io.h>, use inb/outb on the ports, and compile
with -O2 -I/usr/src/linux/include. You need to be root to execute the

Or, if you don't want to be root to access the port, you can have a look
at <URL:>. But the
iopl method is going to be simpler.


-- To unsubscribe, send mail to: --
-- with the single word "unsubscribe" in the body of the message. --

This archive was generated by hypermail 2.0b3 on Sat 08 May 1999 - 16:44:51 EDT