Jump to content

deive driver


Recommended Posts

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

Link to post
Share on other sites
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:

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

 

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

 

:)

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...