parport and irq question



Hello,

standard parport probing gives:

# modprobe parport_pc
pnp: Device 00:0a activated.
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378 (0x778), irq 7, dma 3
[PCSPP,TRISTATE,COMPAT,ECP,DMA]
ACPI: PCI Interrupt 0000:00:0c.0[A] -> GSI 16 (level, low) -> IRQ 185
PCI parallel port detected: 9710:9805, I/O at 0xc800(0xc400)
parport1: PC-style at 0xc800 (0xc400) [PCSPP,TRISTATE]
PCI parallel port detected: 9710:9805, I/O at 0xc000(0xbc00)
parport2: PC-style at 0xc000 (0xbc00) [PCSPP,TRISTATE]

Since I do not use parport0 but parport2 for regular work, I wanted to make
parport2 have the DMA channel, so I tried

# rmmod parport_pc
pnp: Device 00:0a disabled.

# modprobe parport_pc io=0x378,0xc800,0xc000 irq=100,101,7
parport 0x378 (WARNING): CTR: wrote 0x0c, read 0xff
parport 0x378 (WARNING): DATA: wrote 0xaa, read 0xff
parport 0x378: You gave this address, but there is probably no parallel
port there!
parport0: PC-style at 0x378, irq 100 [PCSPP,TRISTATE]
parport0: irq 100 in use, resorting to polled operation
parport1: PC-style at 0xc800, irq 101 [PCSPP,TRISTATE,EPP]
parport1: irq 101 in use, resorting to polled operation
parport2: PC-style at 0xc000 (0xc400), irq 7, dma 7
[PCSPP,TRISTATE,COMPAT,ECP,DMA]


Looks good so far, but what irq am I supposed to hand to the irq= parameter
for parport0 and parport1? Giving irq=-1,-1,7 is rejected. And what about
the "You gave this address, but there is probably no parallel port there?"
- there is one. It also appears when I try 0x778 instead of 0x378.



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



Relevant Pages

  • [patch 08/10] parport: ieee1284 fixes and cleanups
    ... Make drivers that use directly PC parport HW depend on PARPORT_PC ... your computer's parallel port. ... config PARIDE_PARPORT ...
    (Linux-Kernel)
  • RE: Talking to parallel port in 2.6 kernel without using parport
    ... One of our engineers downloaded source code a while back from ... Talking to parallel port in 2.6 kernel without using parport ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • problems printing with HP Deskjet 712
    ... with HP Deskjet 712 parallel port", ... parport: PnPBIOS parport detected. ... ppdev0: negotiated back to compatibility mode because ...
    (Fedora)
  • Re: [patch/rfc 2.6.20-git] parport reports physical devices
    ... underlying parport. ... This patch resolves that issue for non-legacy configurations: ... I'm using for my daily work has such a legacy parallel port, ... This would make the driver smaller.) ...
    (Linux-Kernel)
  • Re: Strange BIOS-self-reset and IRQ-conflicts
    ... > parallel port, but many serial ports, so the kernel was built without ... > parport-stuff and no parport devices are in the system. ... > i dont need the parport, i set it off in the BIOS and give the free IRQ 7 ... And the system has heavy communication over the serial ports ...
    (comp.os.linux.embedded)