LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 07-18-2004, 01:45 AM   #1
shrey_j
Member
 
Registered: Jul 2004
Location: Delhi
Distribution: FC3, RH 9.0
Posts: 39

Rep: Reputation: 15
Network Device Driver Help??


Hi,

I relatively new to Device Driver Programming, and trying to make a device driver. I have gone through Linux Device Driver, but somehow did not find it very helpful (except the basic architecture). Here are steps that i think one should follow

1. Create a function for probe, which probes for the hardware device (this function is not at all clear to me, that what and how does it work)

2. Creating tx and rx functions for sending and receiving data and there respective hardware function (this is fine )

3. Creating inititalize modules for the function, so as to implement as a module.

Something that Are not clear are
1. Interrupt handling
2. Hardware probing
3. if possible another outline of what things have to be made.

I would be very thankful if someone can give a reference to a code, which is explanatory, or if some light on any of the above hudles (i will do the jigsaw joining no problems)

Please Help!! Someone...

Thanks a t0n in advance
Shrey
 
Old 07-18-2004, 09:33 AM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hi,

So first, this is the ultimate link if you want to learn a lot of things about linux device drivers
So chapter 14 should answer to your global questions about network drivers.
Chapter 9 should give you satisfaction about interrupt handler and chapter 15 is also very interesting because to probe hardware you need to know things like PCI management for classical Ethernet card or PCMCIA management if you use laptop...
The only weak point of this link is that it's about kernel2.4 drivers so 2.6 features are not available
Have a good reading

Oliv'
 
Old 07-18-2004, 11:46 PM   #3
shrey_j
Member
 
Registered: Jul 2004
Location: Delhi
Distribution: FC3, RH 9.0
Posts: 39

Original Poster
Rep: Reputation: 15
Thanks a lot Oliv' i will go through the link.

Thanks a lot again
 
Old 07-19-2004, 07:11 AM   #4
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hello,

I forgot to mention that to write drivers, you need of course to perfectly know your hardware i.e. which registers to read/write what values mean...

Oliv'
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
3c905C network card in docking station. Cannot activate network device eth0. pathelms Linux - Networking 4 04-12-2006 02:55 PM
Network card not working? Cannot activate network device eth0 lifeonitsown Linux - Networking 1 11-17-2005 06:30 AM
Device driver from 2.4 to 2.6 setu_garg Programming 1 09-16-2005 11:27 AM
Help with installing Network card device driver Little General Ubuntu 1 08-24-2005 04:58 PM
usb device driver for wireless network adapter lordofring Programming 1 06-30-2005 03:28 AM


All times are GMT -5. The time now is 02:37 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration