Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
deive driver
#1

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

Reply
#2
what distro is this and what device is it ?
Reply
#3

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.

 

:)

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)