[lkml]   [1997]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: lp device irq?
rohrer keith w Wrote ...
> > I made lp a module and so on. I've a module and it loads fine.
> That's not necessary for tunelp. However, it probably ought to default
> to using the IRQ you explicitly requested when you insmod (or request
> IRQ 0 to poll, just like with tunelp).

I use modules and lp with an irq of 7. Except the lp modules detects my lpt
port as lp1 so my options line in modules.conf looks like this:

options lp irq=0,7,0

If you're using modern kernels (suck as 2.1.25 on or so) then there is code
missing in the lp module.

Look for this code:
#ifdef MODULE
static int io[] = {0, 0, 0};
static int irq[] = {0, 0, 0};

and add
MODULE_PARM(io, "1-3i");
MODULE_PARM(irq, "1-3i");

below them.

[ Kevin Lentin Email: ]
[ finger for PGP public key block. ]
[ KeyId: 06808EED FingerPrint: 6024308DE1F84314 811B511DBA6FD596 ]

 \ /
  Last update: 2005-03-22 13:38    [W:0.043 / U:3.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site