Linux-Noob Forums
deive driver - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html)
+--- Forum: Kernel Related (https://www.linux-noob.com/forums/forum-61.html)
+--- Thread: deive driver (/thread-1175.html)



deive driver - senthil - 2007-09-11


Hi ,

 

I have modified the usb-skeleton.c to work for my first usb device driver.

I have just modified the

#define USB_SKEL_VENDOR_ID

#define USB_SKEL_PRODUCT_ID

in usb-skeleton.c according to my need.

when I give insmod init function gets called and when i give rmmod exit function gets called correctly.

When i insert my device probe hardly get called.

Do i need to add anyother thing in driver code to detect my deive.

Looking for all your help

 

T.Senthil




deive driver - anyweb - 2007-09-12

what distro is this and what device is it ?



deive driver - znx - 2007-09-12


Quote:Do i need to add anyother thing in driver code to detect my deive. Looking for all your help
 

Yeah, you need to find the h/w yourself. You will need to work out how to detect the I/O port and IRQ, either doing it automatically or providing a way to do it manually.

 

Linux Journal has some good stuff:

[/url]http://www.linuxjournal.com/article/7353

http://www.linuxjournal.com/article/4786

http://www.linuxjournal.com/article/2476 - more generic stuff

http://www.linuxjournal.com/article/1219 - more general again

 

[url=http://www.linuxjournal.com/article/1220]http://www.linuxjournal.com/article/1220 - Possibly the best one, discussing Device Discovery.

 

:)