[303] in linux-net channel archive
Re: plip and parallel printers
daemon@ATHENA.MIT.EDU (NIIBE Yutaka)
Wed May 10 13:07:36 1995
Date: Wed, 10 May 1995 23:04:37 +0900
From: NIIBE Yutaka <gniibe@mri.co.jp>
To: linux-vger@wab-tis.rabobank.nl
Cc: hab@engr.ucf.edu, linux-net@vger.rutgers.edu
In-Reply-To: <9505100815.AA11521@sys3.pe1chl.ampr.org>
Hubert Bahr writes:
> When I try to config the kernel for both plip and parallel printer
> I can get one or not the other. I have two parallel ports is there
> any way to have both plip and a parallel printer.
According to NIIBE Yutaka:
> The problem is that PLIP and LP register all the I/O region.
> They should handle kernel arguments (currently they don't).
> Possible work around is comment out following lines in plip_init().
>
> /* Check region before the probe */
> if (check_region(PAR_DATA(dev), 3) < 0)
> return -ENODEV;
Rob Janssen writes:
> You can compile them as modules and load the modules for the respective
> ports only. That should work, I think.
> (also for alternate use as a printer and plip port without rebooting the
> system)
Yes. More specifically, changing init_module() and LP_NO for LP
module, and init_module() for PLIP module according to the
configuration of ports. Then compile them, and insert.
However, still we have to re-compile the module when ports are
changed.
What we need is some feature which enable us to specify the
ports and inform the module to register them.
--
NIIBE Yutaka
Mitsubishi Research Institute, Inc.