You should use the /dev/parport* device. It is documented at:
I can provide you with sample code if you want.
This might only apply as of 2.4.x kernels, I do not know.
Quoted from Robert Heller on Wed, Jul 10, 2002 at 01:40:15PM -0400.
> Does there exist a really simple driver that allows one to read (in user
> mode) the state of the parallel port. I just want to be able to
> periodically read in one byte (8-bits) from the parallel port. The port
> will be connected to switches (probably buffered/de-bounced). No
> handshaking or anything, just the 'static' state of 8 switches.
> Robert Heller ||InterNet: firstname.lastname@example.org
> http://vis-www.cs.umass.edu/~heller || email@example.com
> http://www.deepsoft.com /\FidoNet: 1:321/153
> -- To unsubscribe, send mail to: firstname.lastname@example.org --
> -- with the single word "unsubscribe" in the body of the message. --
-- To unsubscribe, send mail to: email@example.com --
-- with the single word "unsubscribe" in the body of the message. --
This archive was generated by hypermail 2b29 : Wed Jul 10 2002 - 15:28:09 EDT