LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 08-29-2002, 07:18 PM   #1
reza_asghari
LQ Newbie
 
Registered: Aug 2002
Posts: 3

Rep: Reputation: 0
Device Drivers


I am going to start writing a device driver for a LSI Logic SCSI adapter board. I need a similar device driver source code that would give me some ideas how to do it and where to start from. Any pointers or help is appreciated.
 
Old 08-29-2002, 07:27 PM   #2
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Welcome to LQ, Reza.

Have you thought about downloading the Linux Kernel Source? It's freely available from www.kernel.org and has the source code for many devices that would fall into the same (or similar) category as your LSI adapter. Are you certain, however, that your board is not already supported?
 
Old 08-29-2002, 07:43 PM   #3
reza_asghari
LQ Newbie
 
Registered: Aug 2002
Posts: 3

Original Poster
Rep: Reputation: 0
Thymox,

Thanks for the reply and pointers. The LSI Logic SCSI Adapter is supported, but I have to pay for the driver. And, they charge us $1,500/CPU. We can cut cost, if we develop it ourselves.

I just need a similar source code for a device driver, then I can get a feeling how big and complicated of a job this can be.
 
Old 08-30-2002, 05:46 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Since you already have a "working" version of an actual device driver for you actual piece of equipment, can you not look at that? Or are you trying to look at that, and look at a similar setup to compare the 2, and write a driver to include support for your hardware, while sticking to the standards from the other source code?
 
Old 08-30-2002, 12:38 PM   #5
reza_asghari
LQ Newbie
 
Registered: Aug 2002
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the reply.
I don't have the source for the driver. I just have the driver. I can open it read from it. But, I don't have the driver source. And, I have never written a device driver before. So, I need to look at a similar source code. Possibly, a device driver source code for a SCSI adapter hardware. After I write it, I don't know how to install it on the Linux. So, any help or pointer with this project, is most appreciated.
 
Old 08-30-2002, 01:05 PM   #6
no2nt
Member
 
Registered: Aug 2001
Location: South Carolina, USA
Distribution: Redhat 8.0/Custom
Posts: 96

Rep: Reputation: 16
Here's a good book from O'Reilly: Linux Device Drivers, 2nd Ed

http://safari.oreilly.com/main.asp?bookname=linuxdrive2

Is available for purchase or to read online.
 
  


Reply



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
New to device drivers sksingh Linux - Software 1 08-02-2004 07:03 AM
Device Drivers Mohsen Programming 3 01-25-2004 01:08 AM
Device Drivers Poorman Linux - Newbie 1 07-05-2002 04:15 PM
Looking for device drivers... Chijtska Linux - Software 3 02-19-2002 06:55 PM
device drivers Susan Linux - Newbie 3 10-11-2001 07:36 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:31 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