ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.