Fedora Linux Support Community & Resources Center
  #1  
Old 11th April 2007, 03:30 AM
zackiv31 Offline
Registered User
 
Join Date: Apr 2006
Posts: 248
Parallel Port Address

I'm trying to write a C program to output bits over the parallel port, but my question is what is the address of my parallel port? I've read places it might be 0x0378... but I'm not sure... Here is the output of information that I think might be helpful?

[root@localhost ]# lspci
00:00.0 Host bridge: Intel Corporation 82855PM Processor to I/O Controller (rev 03)
00:01.0 PCI bridge: Intel Corporation 82855PM Processor to AGP Controller (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 81)
00:1f.0 ISA bridge: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 01)
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 01)
00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 01)
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon R250 [Mobility FireGL 9000] (rev 02)
02:00.0 CardBus bridge: Texas Instruments PCI1520 PC card Cardbus Controller (rev 01)
02:00.1 CardBus bridge: Texas Instruments PCI1520 PC card Cardbus Controller (rev 01)
02:01.0 Ethernet controller: Intel Corporation 82540EP Gigabit Ethernet Controller (Mobile) (rev 03)
02:02.0 Ethernet controller: Atheros Communications, Inc. AR5211 802.11ab NIC (rev 01)
[root@localhost ]# lspci -n
00:00.0 0600: 8086:3340 (rev 03)
00:01.0 0604: 8086:3341 (rev 03)
00:1d.0 0c03: 8086:24c2 (rev 01)
00:1d.1 0c03: 8086:24c4 (rev 01)
00:1d.2 0c03: 8086:24c7 (rev 01)
00:1d.7 0c03: 8086:24cd (rev 01)
00:1e.0 0604: 8086:2448 (rev 81)
00:1f.0 0601: 8086:24cc (rev 01)
00:1f.1 0101: 8086:24ca (rev 01)
00:1f.3 0c05: 8086:24c3 (rev 01)
00:1f.5 0401: 8086:24c5 (rev 01)
00:1f.6 0703: 8086:24c6 (rev 01)
01:00.0 0300: 1002:4c66 (rev 02)
02:00.0 0607: 104c:ac55 (rev 01)
02:00.1 0607: 104c:ac55 (rev 01)
02:01.0 0200: 8086:101e (rev 03)
02:02.0 0200: 168c:0012 (rev 01)

I'm using the outb() function and also ioctl() if anyone is curious.
Reply With Quote
  #2  
Old 11th April 2007, 07:37 AM
gjb123 Offline
Registered User
 
Join Date: Sep 2006
Age: 54
Posts: 19
The following command should give you the address on your machine
cat /proc/ioports|grep parport0
Reply With Quote
  #3  
Old 11th April 2007, 01:22 PM
zackiv31 Offline
Registered User
 
Join Date: Apr 2006
Posts: 248
Wow that is perfect... thanks!!!!!

(how do you people learn all this stuff?)
Reply With Quote
  #4  
Old 11th April 2007, 06:19 PM
gjb123 Offline
Registered User
 
Join Date: Sep 2006
Age: 54
Posts: 19
I was trying to control LEDs connected to a parallel port last year.
I ended up using parapin. http://parapin.sourceforge.net/doc/parapin.html
Reply With Quote
Reply

Tags
address, parallel, port

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
backpack cd rom parallel port thompsma Hardware & Laptops 0 9th May 2006 05:35 PM
Parallel port problem crispymonkey Hardware & Laptops 0 22nd January 2006 10:46 PM
parallel port and SANE jurgen Hardware & Laptops 9 17th September 2004 08:03 PM


Current GMT-time: 17:30 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat