[Linux-parport] Strange parport_pc Behaviour on 2.6.12-10 Kernel using Ubuntu 5.10

Uwe Beutin uwe at imbrium.de
Tue Feb 14 11:16:25 EST 2006


Hello List.

I am trying to connect parport_pc driver to two extra parallel port
interfaces on a PCI card. So I figured (from my PCI list) that I can
simply load my parport_pc module with the following options:

parport_pc io=0x378,0x9400,0x9c00 irq=7,none,none

but alas, this does not work. So I've checked that parport_pc is loading
/dev/parport0 properly, which it does. My printer is detected and the io
address is actually 0x378:

Feb 10 10:49:29 localhost kernel: [4296258.658000] pnp: Device 00:09
activated.
Feb 10 10:49:29 localhost kernel: [4296258.658000] parport: PnPBIOS
parport detected.
Feb 10 10:49:29 localhost kernel: [4296258.658000] parport0: PC-style at
0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,ECP,DMA]
Feb 10 10:49:29 localhost kernel: [4296258.661000] parport0: Printer,
Hewlett-Packard OfficeJet Series 600
Feb 10 10:49:29 localhost kernel: [4296258.675000] ppdev: user-space
parallel port driver

But if I try to add the parport_pc modules by stating io=0x378, I get an
error saying

Feb 10 10:51:18 localhost kernel: [4296367.870000] parport 0x378
(WARNING): CTR: wrote 0x0c, read 0xff
Feb 10 10:51:18 localhost kernel: [4296367.870000] parport 0x378
(WARNING): DATA: wrote 0xaa, read 0xff
Feb 10 10:51:18 localhost kernel: [4296367.870000] parport 0x378: You
gave this address, but there is probably no parallel port there!
Feb 10 10:51:18 localhost kernel: [4296367.870000] parport0: PC-style at
0x378, irq 7 [PCSPP,TRISTATE]

So the issue is that parport_pc actually finds the port when giving no
options but does not if I give it the exact same options that it reports.

The reason for this being is that I want to add non-legacy ports from my
EXSYS card with the above mentioned addresses. Simply putting my options
as such:

parport_pc io=0x9400,0x9c00 irq=none,none

works without problems:

Feb 14 11:36:24 localhost kernel: [4294693.652000] parport0: PC-style at
0x9400 (0x9800) [PCSPP,TRISTATE]
Feb 14 11:36:24 localhost kernel: [4294693.655000] parport0: Printer,
Hewlett-Packard OfficeJet Series 600
Feb 14 11:36:24 localhost kernel: [4294693.655000] parport1: PC-style at
0x9c00 (0xa000) [PCSPP,TRISTATE]

So what could be the issue with the parallel port on my motherboard?! Oh
yes, I've tried 0x278 as well in my BIOS.

Thank you for your support,

	Uwe



More information about the Linux-parport mailing list