Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 07-19-2005, 09:08 AM   #1
LQ Newbie
Registered: Jul 2005
Posts: 1

Rep: Reputation: 0
tty driver devlopment

i'm writing my first tty driver for linux 2.4.18, and i am having trouble making the driver i'm
creating become associated with the hardware that i'm writing it for (an 8 port serial board).
the dev/ttya00-dev/ttya07 files are being created, and i can access them and read and write from them, but the data isn't actually getting sent to the board, even though its processed through my driver. so i guess my question is, when writing a tty driver what exactly sets the driver to be associated with a certain piece of hardware.
thanks for the help.
by the way, the code is on a non-networked computer, so the code is not easily transferable, but i can get it posted if necessary.

thanks again.
Old 08-02-2005, 04:16 PM   #2
Registered: Aug 2003
Location: Vancouver, Canada
Distribution: RH, SL
Posts: 37

Rep: Reputation: 15
The link between the software driver and the hardware depends on what type of hardware. It sounds like you are using an add-on card. If it is relatively recent, I guess it is PCI bus-based. When the system boots, the BIOS assigns IRQ values and memory ports to the cards on the PCI bus, but these can be overridden by the operating system.

In the case of the old fashioned ISA bus, these are only assigned by the BIOS and can't normally be changed by the OS. In my humble opinion, this situation is simpler.

So if your card is a PCI card, reboot the machine into the BIOS menu, and look at what comes up for the IRQ value and memory port assigned to the card. Somehow, these will probably have to appear in your driver.

If you expect the system to take care of it, then you will have to very carefully check the boot logs to see if it even detects your card when it is installed.

Good luck!

P.S. One last recommendation: Linux Device Drivers bible


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
Web Devlopment software? carlosinfl Linux - Software 5 02-18-2005 09:01 PM
change tty => system crashes (ati driver/tty resolution) mosca Debian 6 08-05-2004 07:37 AM
kernel 2.6.6 and QT Devlopment Pacage. jmw83 Linux - Newbie 11 06-03-2004 11:44 AM
the meaning of throttle of tty driver? zhu_liheng Linux - Newbie 0 10-16-2003 04:43 AM
Kernel devlopment sathu Programming 1 01-17-2003 02:16 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:27 PM.

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
Open Source Consulting | Domain Registration