From: Tim W. <tw...@re...> - 2001-03-23 09:26:08
|
On Thu, Mar 22, 2001 at 04:18:21PM -0800, PASCHAL,DAVID (HP-Roseville,ex1) wrote: > ptal-mlcd accesses the parallel-port registers directly, bypassing the > kernel parport drivers. Once ptal-mlcd has initiated communication with the > peripheral, it is in ECP mode (nSelectIn=1). Gotcha. You can't reserve IO regions from user space, can you? Using /dev/parport0, you can try to get exclusive access to the port, which will (a) load parport_lowlevel, and (b) make sure no other device drivers can touch it. But that's for 2.4.x only at the moment. But for the mean time, yes I think opening /dev/lp0 and keeping it open is a 'good enough' way to prevent pulled rugs. It doesn't stop the user from doing 'modprobe -r parport_probe; modprobe parport_probe', but the user is supposed to be on your side in this application I think. Tim. */ |