lkml.org 
[lkml]   [1997]   [Feb]   [15]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
 
Messages in this thread
/
FromKevin Lentin <>
SubjectRe: lp device irq?
DateSat, 15 Feb 1997 17:55:08 +1100 (EST)
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: K.Lentin@cs.monash.edu.au      ]
[   finger kevinl@fangorn.cs.monash.edu.au for PGP public key block.   ]
[  KeyId: 06808EED    FingerPrint: 6024308DE1F84314  811B511DBA6FD596  ]
[======================================================================]
\
 
 \ /
  Last update: 2005-03-22 13:38    [from the cache]
©2003-2008