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 09-25-2004, 10:40 PM   #1
jessy jane
LQ Newbie
 
Registered: Sep 2004
Posts: 2

Rep: Reputation: 0
Angry writing device drivers


I'm doing a project in writing a network card device driver for RTLinux. Since, I'm new to Linux, I thought it would be better to start off from the basics.

Do I need to know the PCI bus architecture in detail. After mapping, the PCI configuration space to memory( memory mapped i/o) or via port addresses(i/o mapped i/o), what should be done.
I haven't clearly understood what the board initialization part does and also why do we need ioctl().
?? Are there any disadvantages in using pci-dma for a network card in RTLinux

?? Which would be a better option for RTLinux memory mapped or i/o mapped i/o

?? Do I have to allocate memory for the arriving packets or is it buffered in the NIC and sent to some buffer or the NIC sents packets to some allocated portion of memory made to point by the SCB.
?? I read RTLinux dosent create a net_device structure, it uses file_operations. Then, how does it treat a network device.
Also, how does the driver communicate with the protocol modules.


Thanking you
Jess
 
Old 09-25-2004, 11:12 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
I don't know specifically the answers to your questions, but the book Linux Device Drivers might help. It's published by O'Reilly and also available legally! online at http://www.xml.com/ldd/chapter/book/ .
 
Old 11-04-2004, 01:25 AM   #3
vishal_changran
LQ Newbie
 
Registered: Nov 2004
Location: Houston
Posts: 1

Rep: Reputation: 0
Am in the same boat!

hi Jess,
Read your message and well mm actually want to do the same stuff i.e. write a device driver for a wireless code to be used a by a RT task.
However I am newbie too and have no idea where to start...
Please let me know how you started ...and how far have you reached..
bye for now
Vishal
 
  


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
Writing Linux Device Drivers pr@vn_t Programming 3 08-22-2005 09:52 PM
Writing Device Driver... okeyla Programming 3 05-18-2005 08:41 AM
writing a loopback device ebh1 Linux - Newbie 2 03-12-2004 06:12 PM
Need help in writing device driver eshwar_ind Programming 1 02-07-2004 04:46 PM
writing device dummyagain Programming 2 10-18-2003 05:50 AM


All times are GMT -5. The time now is 05:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration