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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
01-08-2004, 05:08 PM
|
#1
|
Member
Registered: Oct 2003
Location: Australia
Distribution: Redhat 9
Posts: 95
Rep:
|
Quick and easy solution for writing a linux device driver?
Hi all,
I have an IO card which I use to interface to the outside world (form my PC), I use if for home automation.
The Card is a PCI card for which I don't have any device drivers for Linux..
I am porting my automation software to linux but need a device driver to access the card (please correct me if i'm wrong).
The current software I use is on Win95 and I just do direct ASM to read and write to the card (wrote my own inp and outp).
How can I write a simple device driver in linux? anyone have some example code? The device has a very simple interface, so it should't require much...
Thanks for any help you can provide..
Cheers
|
|
|
01-08-2004, 05:10 PM
|
#2
|
Senior Member
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286
Rep:
|
http://www.xml.com/ldd/chapter/book/
available for our viewing pleasure in a lot of formats. 
|
|
|
01-08-2004, 08:02 PM
|
#3
|
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Rep:
|
I also highly recommend O'Reilly's Book Linux Device Drivers. It is a damn complete reference of everything required to write device drivers under linux.
|
|
|
01-08-2004, 08:38 PM
|
#4
|
Senior Member
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286
Rep:
|
Quote:
Originally posted by jtshaw
I also highly recommend O'Reilly's Book Linux Device Drivers. It is a damn complete reference of everything required to write device drivers under linux.
|
lol - thats what the link i posted to was! someones not clicking my links. :P
|
|
|
01-08-2004, 09:40 PM
|
#5
|
Member
Registered: Oct 2003
Location: Australia
Distribution: Redhat 9
Posts: 95
Original Poster
Rep:
|
Thanks h/w and jtshaw..
h/w, I think jtshaw was trying to agree with you
Cheers..
|
|
|
01-08-2004, 10:45 PM
|
#6
|
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Rep:
|
heh, nope, he caught me, I didn't follow his link:-P
|
|
|
All times are GMT -5. The time now is 07:02 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|