Ran this for years, and trying to remember...
Depending on your parallel port mode it should be parport_pc (bidirectional) lp(?) (unidirectional). Parallel ports like irq 7, and 0x0378 as an i/o address. To quote Luc Picard (Startrek) "Make it so!" |
IRQ 7 and port 0x378 is fine for a built-in parallel port. It's what I used in the old machine. The new machine doesn't have any serial or parallel ports, just USB and a single Firewire port (plus ethernet and audio, of course), which is why I'm using a PCI card to supply the needed port. Dmseg keeps saying a parallel port was found at 0xc800 and IRQ 19. That seems to be close to right because I can cram ASCII into /dev/lp0 and at least see the printer respond. The problem is the output is consistently unusable. As things stand now, Picard's commands would become "make it sew! Enrage!"...:)
|
Every I/O card I had used 0x0378 for the port. Can you tweak things to try it?
|
Remember this is a PCI card and doesn't use the 0x378.
This is a good place to wrap up the story. I decided I need a parallel port like a Ferrari needs a buggy whip socket and replaced the LJ-5P with a Brother HL-5370DW, now sitting on my wired net. End of problem. (Anyone in the Phila., PA area wanting a nicely broken in LP-5J is encouraged to PM me.) My recollection of the old server is three modules were used, lp, parport, and parport_pc. Lsmod kept saying the new server was loading lp, ppdev, parport_pc, and parport. Something seems odd in that. Keep in mind that things seemed to work well enough that YaST2 saw the right port(s) and IRQ but any attempt to print failed. The "hello, world" experiment shows that something is chewing up even a simple ASCII stream. Fixing this is above my skill level and, frankly, I haven't the time to make a career of fixing the problem. My thanks for all of the suggestions and advice. :) |
OK, does your parport show in /proc/ioports and /proc/interrupts?
If so, look at lshal. You can fiddle things there, but I'm not the man to ask - I just know it can be done. FWIW, here's the output from lshal on my box (Parallel port shows but never used) Quote:
|
Thanks for the pointers. However, I literally pulled the plug on the whole issue and went with a networked printer. Hardly the hero's way out, I admit, but the press of other projects forced me to the quick solution of changing the printer. :)
|
Hey mates,
Can anybody tell me how can i unregister the parport interrupt handler at IRQ7 from /proc/interrupts. cz i hv to register my handler at irq7 thnx, reply fast plzzzzzzzzzzzzzzzzzzzzzzzz................... |
Spare us this.
Quote:
To deal with your issue, irq7 or IRQ7 will usually be read as the same thing. My /proc/interrupts doesn't have either Quote:
Quote:
|
Actually im working with hardware Interrupts on parallel port.
So, for that i hv to register my handler at IRQ7 (and i know irq7 = IRQ7 :D) but call to request_irq() is failing as the original parallel port handler has already acquired irq7. What should i do to register my handler??? Quote:
|
Quote:
|
Quote:
|
My header file....
Quote:
Quote:
|
All times are GMT -5. The time now is 08:14 PM. |