LinuxQuestions.org
Review your favorite Linux distribution.
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 01-08-2004, 05:08 PM   #1
mr_segfault
Member
 
Registered: Oct 2003
Location: Australia
Distribution: Redhat 9
Posts: 95

Rep: Reputation: 15
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
 
Old 01-08-2004, 05:10 PM   #2
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 46
http://www.xml.com/ldd/chapter/book/

available for our viewing pleasure in a lot of formats.
 
Old 01-08-2004, 08:02 PM   #3
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
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.
 
Old 01-08-2004, 08:38 PM   #4
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 46
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
 
Old 01-08-2004, 09:40 PM   #5
mr_segfault
Member
 
Registered: Oct 2003
Location: Australia
Distribution: Redhat 9
Posts: 95

Original Poster
Rep: Reputation: 15
Thanks h/w and jtshaw..

h/w, I think jtshaw was trying to agree with you

Cheers..
 
Old 01-08-2004, 10:45 PM   #6
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
heh, nope, he caught me, I didn't follow his link:-P
 
  


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
Writing Device Driver... okeyla Programming 3 05-18-2005 07:41 AM
writing printer device driver in linux sidbash Programming 3 07-04-2004 11:16 PM
Need help in writing device driver eshwar_ind Programming 1 02-07-2004 03:46 PM
Device Driver Writing Red Hat 8 & 9 unicorn21 Red Hat 2 12-14-2003 03:01 AM
writing a config file for a device driver britneykiller Programming 0 03-08-2002 08:22 AM

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

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