Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 06-05-2007, 12:36 PM   #1
LQ Newbie
Registered: Jun 2007
Location: New York
Posts: 2

Rep: Reputation: 0
parallel port PCI card : changing modes

I recently installed a parallel port PCI card into my computer because the motherboard did not come with one. I need it for the Xilinx download cable used to program FPGAs, and it must run in ECP mode. Right now it is set up for [PCSPP, TRISTATE, EPP].

Here's the info:

Computer's running Red Hat Fedora Core 2 with a 2.6.5-1.358 kernel.

In the BIOS I set for the parallel port: address 0x378, mode ECP.
After booting I rang:

modprobe parport_pc io=0x378,0xc400

+From dmesg:

parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE,EPP]
parport0: irq 7 detected
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE,EPP]
parport0: irq 7 detected
lp0: using parport0 (polling).
parport0: PC-style at 0x378 (0x778), irq 0 [PCSPP,TRISTATE,EPP]
parport0: irq 0 in use, resorting to polled operation
parport1: PC-style at 0xc400, irq 0 [PCSPP,TRISTATE,EPP]
parport1: irq 0 in use, resorting to polled operation

(parport0 is for a non-existent motherboard parallel port correct? Don't know why ECP isn't an option. I assume info before the lp0 is before modprobe and rest after modprobe run.)

+Relevant info from /proc/pci:

Bus 4, device 1, function 0:
Class 0780: PCI device 9710:9805 (rev 1).
IRQ 9.
Master Capable. Latency=64.
I/O at 0xc400 [0xc407].
I/O at 0xc000 [0xc007].
I/O at 0xb800 [0xb807].
I/O at 0xb400 [0xb407].
I/O at 0xb000 [0xb007].
I/O at 0xa800 [0xa80f].

So how can I change the mode for parport1 to ECP? Should I just try the BIOS again even though it didn't work the first time?
Old 06-05-2007, 04:32 PM   #2
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,398
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
The libieee1284 library provides the negotiate function to invoke different modes. It seems possible, probable even, that the application that uses this port will be built using libieee1284, and will therefore use said function to do the right thing. If not, have a look at the library docs, and see if you can see how to write a simple tool to set the mode of the port. If you aren't a (C) programmer, I may be able to provide you with enough code to get you going. There are also a few example applications 'out there' that use libieee1284.
Linux pretty much ignores the BIOS, so setting in there are unlikely to have much effect.

--- rod.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Parallel port CF Card Reader theonhighgod Linux - Hardware 2 03-17-2006 08:34 AM
I/O parallel port PCI Card (12886 chipset) bobbens Linux - Hardware 0 10-29-2004 01:57 PM
PCI Parallel Port Card Nerox Linux - Hardware 1 08-25-2004 08:48 AM
Trouble getting a printer to work through a PCI parallel port card kzito Linux - General 0 08-10-2003 02:22 PM
Zip Drive Help, PCI parallel port dalton9267 Linux - Hardware 0 03-14-2003 01:38 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:09 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration