lkml.org 
[lkml]   [1999]   [Apr]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Can't use my pararell port /dev/lp1 -can't print 2.2.5
On Fri, 2 Apr 1999 narancs1@mail.externet.hu wrote:

>>From linux/Documentation/devices.txt :
>6 char Parallel printer device
> 0 = /dev/lp0 First parallel printer (0x3bc)
> 1 = /dev/lp1 Second parallel printer (0x378)
> 2 = /dev/lp2 Third parallel printer (0x278)
>
> Not all computers have the 0x3bc parallel port; hence
> the "first" printer may be either /dev/lp0 or
> /dev/lp1

The docs are a bit obsolete. The point is that lp knows nothing about the
I/O port number, but instead it uses parport to do the call to the
hardware layer. So lp is attacched to parport and if parport0 is 0x378
(likely to happen if it's the only parallel port in the system) lp0 will
gets attached to parport0 and so to 0x378. You can change the lp behavior
using some kernel param (see the top of drivers/char/lp.c).

Andrea Arcangeli


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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