LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-06-2005, 07:29 PM   #1
Bondfire
LQ Newbie
 
Registered: Jul 2004
Posts: 17

Rep: Reputation: 0
Identifying port addresses in Red Hat


Hi,

Can any1 tell me how to identify various port addresses (parallel , serial, ps2 ports) in Red Hat?..Is there any similar feature like Window's Device Manager to do this?

Thanks

Bondfire
 
Old 02-06-2005, 07:58 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,799

Rep: Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333
This might do it.
cat /proc/ioports
 
Old 02-06-2005, 09:17 PM   #3
Bondfire
LQ Newbie
 
Registered: Jul 2004
Posts: 17

Original Poster
Rep: Reputation: 0
Tnx for your reply...

Just 1 more question..how can i know which is address for the parallel port?

I get a whole list of addresses togther with names like dma,pic1,ide1,fpu......the ps2 port is ok since it correspoonds with "keyboard" and the serial port with "serial" but i don't know how to identify the parallel port.

Yr help pliz

Bondfire
 
Old 02-06-2005, 09:47 PM   #4
scott2004
Member
 
Registered: Nov 2004
Location: Toronto, Canada
Distribution: Debian, OpenBSD, SuSE, Ubuntu
Posts: 68

Rep: Reputation: 15
parallel port

Your parallel port is probably lp0 or if you have two, lp0 and lp1. Linux often start counting at 0.

Cheers,
Scott
 
Old 02-06-2005, 09:54 PM   #5
Bondfire
LQ Newbie
 
Registered: Jul 2004
Posts: 17

Original Poster
Rep: Reputation: 0
Hi..

there is no lp0 or lp1...but i for sure have a parallel port...

Neways..i'll try 0x0378 for that is most frequently the address and see if it works

Thanks

Bondfire
 
Old 02-06-2005, 10:07 PM   #6
scott2004
Member
 
Registered: Nov 2004
Location: Toronto, Canada
Distribution: Debian, OpenBSD, SuSE, Ubuntu
Posts: 68

Rep: Reputation: 15
just curious

What are you trying to do that you need to reference your parallel port?

lp0 is what my version of linux (FC3) uses to reference the parallel port for printing. May not be relevant ot you, though.

I would also look under /dev (e.g., ls /dev for a listing of installed and available devices.

Scott
 
Old 02-06-2005, 10:10 PM   #7
Bondfire
LQ Newbie
 
Registered: Jul 2004
Posts: 17

Original Poster
Rep: Reputation: 0
I'll be reading data from the ps2 port and writing data to the parallel port...but i've yet to see whether Kylix3 allows this or not


Bondfire
 
Old 02-06-2005, 10:50 PM   #8
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Device assignment for the parallel ports depends on what type of device is connected to it. It's not like serial ports where ttyS0 is always COM1 no matter what's actually connected to it. Read Documentation/devices.txt in the kernel source tree for details on the various assignments.
 
Old 02-07-2005, 02:04 PM   #9
Bondfire
LQ Newbie
 
Registered: Jul 2004
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks...i'll check that out.

By the way, any1 has any idea whether Kylix allows hardware access?

Bondfire
 
  


Reply


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
opening a reserved port in red hat 9 Siriond Linux - Newbie 3 10-12-2005 09:07 AM
how to set network addresses for running NISTNET on red Hat Linux 9.0 apimple2002 Linux - Software 5 06-30-2005 06:42 AM
Opening port with gShield on Red Hat 7.2 Dark Merlin Linux - Security 1 04-03-2005 04:55 PM
port configuration on red hat 7.3 irish rebel Linux - Security 1 03-24-2004 01:32 PM
how to set network addresses for running NISTNET on red Hat Linux 9.0 apimple2002 Linux - Software 0 08-08-2003 09:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:58 AM.

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