LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices


Reply
  Search this Thread
Old 02-04-2005, 02:38 PM   #1
vasanthraghavan
Member
 
Registered: Mar 2004
Location: USA
Distribution: Redhat Linux 9
Posts: 98

Rep: Reputation: 15
serial port


Hi,
Could you please tell me how to find out, which driver is used by the Linux system in my PC to communicate with the serial port?
Thank you.
 
Old 02-05-2005, 08:53 AM   #2
PsychosisNode
Member
 
Registered: Apr 2003
Location: Reading, Berkshire, IN-GER-LUND!!!
Distribution: Mandriva 2006
Posts: 228

Rep: Reputation: 30
Serial as in RS-232?

The driver for those are a part of the kernel itself - to use the ports programs read or write to /dev/ttySx where x is the number of the serial port, so the first port in the system would be /dev/ttyS0 the second ttyS1 and so on.

Hope this helps!
 
Old 02-05-2005, 11:55 AM   #3
vasanthraghavan
Member
 
Registered: Mar 2004
Location: USA
Distribution: Redhat Linux 9
Posts: 98

Original Poster
Rep: Reputation: 15
Actually i wanted to know which files in the Linux kernel source are used for implementing the driver for the serial port. As there are different .c files in the kernel under the "drivers/serial" directory, how can i find out which are the relevant files to browse?
does "lsmod" output give this information?

i did a "dmesg" and browsed the output. i found the following:

Serial driver version 5.05c (2001-07-08) with MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI ISAPNP enabled
ttyS0 at 0x03f8 (irq = 4) is a 16550A
ttyS1 at 0x02f8 (irq = 3) is a 16550A

Does this mean 8250.c is the only file to look at?(by the way there are many 8250*.c in the folder)
Thank you.
 
  


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
linux serial port to router console port connection? frankie_fix Linux - General 3 02-26-2007 09:32 PM
Using serial port card(PCMCIA) with IPAQ running Linux, can't find ttyS0 port d2army Linux - Laptop and Netbook 0 11-12-2005 08:07 PM
Using an USB port as a standard DB9 Serial Port Lsteele Linux - Newbie 1 10-22-2005 09:48 AM
Serial Port Greg21 Slackware 1 08-06-2003 11:13 PM
serial port max_linuxquesti Linux - Software 5 12-20-2002 06:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:58 PM.

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