mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Confliction between my device and printer
@ 2002-03-27 15:54 Michael Zhu
  2002-03-27 18:15 ` Alan Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Zhu @ 2002-03-27 15:54 UTC (permalink / raw)
  To: linux-kernel

Hello, everyone, I developed a character device which
is plugged into the parallel port of computer. A
printer can be connected at the rear of this device.
That means that all the printing information will pass
through my device. When my device and the printer work
at the same time the two devices affect with each
other. Both devices work innormally. There is some
kind of confliction. I know the exact reason. In my
device driver I just simply send and read the data
from my device directly without checking whether the
parallel port resource is available. That is a
problem. Now I am just wondering in Linux how can I
check whether the parallel port resource is avaliable.
I need to add that kind of code to my device driver.
Thank you very much.



______________________________________________________________________ 
File your taxes online! http://taxes.yahoo.ca

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

* Re: Confliction between my device and printer
  2002-03-27 15:54 Confliction between my device and printer Michael Zhu
@ 2002-03-27 18:15 ` Alan Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2002-03-27 18:15 UTC (permalink / raw)
  To: Michael Zhu; +Cc: linux-kernel

> problem. Now I am just wondering in Linux how can I
> check whether the parallel port resource is avaliable.
> I need to add that kind of code to my device driver.
> Thank you very much.

Use the parport api instead of banging directly on the hardware. That
supports the needed resource handling as well as isolating non PC
parallel weirdness. drivers/paride/.. has lots of examples 

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

end of thread, other threads:[~2002-03-27 17:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-27 15:54 Confliction between my device and printer Michael Zhu
2002-03-27 18:15 ` Alan Cox

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®