On Thu, Jan 17, 2002 at 10:21:26PM +0000, J.A.Serralheiro wrote: > hi folks. > forgive me for posting just another boring message. I am building > some hardware to work in the parallel port. I want to have full control of > the parallel port control register, to use as some signal lines. In the > past two days I have been colecting information on how to use ioctl, and I > have almost succeeded. The thing is that with the LP driver, I have no > control over the control register. Can some one help me? I saw someting in > the net abut ppdev driver that lets you control de control register. How > can I replace the lp driver with the ppdev driver ? Which kernel version are you running? I *think* that in the 2.4.x kernels, there is support for user-space parallel port device drivers (CONFIG_PPDEV, under character devices). Haven't tried it (yet), but looks promising. In 2.2.x kernels you probably have to resort to writing your own kernel module (read linux kernel programmer's guide first!). It's not that difficult, but expect crashes if you have bugs in the module... (ext3 + sync recommended!) Failing that you may have to hunt around in the source :-( > > thank you in advance -- _ __ |/ _ _| |_ | _ __ _ _ _ _ _ _ |\(_|| | |_ |(/)| (_|(-'| |`-,(-`| | \_| _| http://www.karl.jorgensen.com
Attachment:
pgpJZptadhZwm.pgp
Description: PGP signature