Linux - KernelThis forum is for all discussion relating to the Linux kernel.
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.
How to write a keyboard driver with interrupt driven? the platform is ARM and the interface is SRAMC with I/O mapped. What should my handler and read fucntions contains? and I want to know how to map the memory by using the ioremap() function? when exactly we have to use mmap()can you please help me out with some kinda psuedo code.
warm regards,
Ravi Kulkarni
The best way to write any driver, after carefully checking to see that it has not already been done, is ... "use the source, Luke!" Find devices that are similar to the one you're considering, and study their working drivers. Remember that, most of the time, "writing new software" actually consists of adapting what is already out there.
Distribution: Fedora at home, Ubuntu 10.04 at work
Posts: 88
Rep:
Refer to the device driver writers bible - Linux Device Drivers published by O'Rielly. The second edition is available online here... http://www.xml.com/ldd/chapter/book/
If you are using a 2.6 kernel you might want to track down the third edition which is slightly updated.
Yeah thanks . I av started to learn the LDD3 from Oreilly. I want some help on how to write a interrupt handler and a read fucntion manually.my interface is SRAMC memory in ARM processor with I/O mapped. Im starting to write a read fucntion for my driver but still have some glitches about what exactly it should do ! so lookin for some suggestions on it.
warm regards,
Ravi Kulkarni.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.