Hi Shahed,
I must admit that I am new to Linux "internals"
What I am looking for is code for a Skeleton driver in Linux that has the necessary framework in place.
Check out the free online book by Oreilly - Linux Device drivers Maybe it will help. http://www.xml.com/ldd/chapter/book/
Also check out this article on LWN. http://lwn.net/Articles/13325/
For further references regarding the Linux kernel take a look at. www.kernelnewbies.org
Also, hanging in on the #kernelnewbies channel on irc.oftc.net will help.
-- ashok