mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* USB-Printer status flags question
@ 2003-01-12 10:17 Alexander Puchmayr
  2003-01-13  4:30 ` Randy.Dunlap
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Puchmayr @ 2003-01-12 10:17 UTC (permalink / raw)
  To: linux-kernel

After looking at cups (1.1.18) backend/usb.c and the kernel's 
(2.4.19-gentoo-r10) drivers/usb/printer.c I've found some different 
interpretations of the LP_* flags from linux/lp.h

While the kernel seems to use the 8255 status port definitions, which use
(amongst others) the flags,

#define LP_PSELECD      0x10  /* unchanged input, active high */
#define LP_PERRORP      0x08  /* unchanged input, active low */

the same bits are defined by POSIX guidelines a few lines above in 
linux/lp.h:

#define LP_OFFL  0x0008
#define LP_NOPA  0x0010

Obviously, this leads the cups usb-backend to incorrectly report an empty 
media tray when the printer is online, idle and has enough paper.

This doesn't seem to be something serious, its just a wrong message in cups 
log-file.

Greetings
	Alex

PS: Since two different specifications are mixed up, this problem could also 
be a kernel problem.
 
-- 
Alexander Puchmayr            Systemadministrator for Theoretical Physics
University Linz, Austria      e-mail: alexander.puchmayr@jku.at
Altenbergerstrasse 69         phone: +43/732/2468-8633
A-4040 Linz-Auhof             FAX:   +43/732/2468-8585


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-01-13 16:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-12 10:17 USB-Printer status flags question Alexander Puchmayr
2003-01-13  4:30 ` Randy.Dunlap
2003-01-13  8:09   ` Alexander Puchmayr
2003-01-13 16:34     ` Randy.Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®