#define USB_SKEL_VENDOR_ID  0x045e
#define USB_SKEL_PRODUCT_ID 0x0039

--- DeLeTe <[EMAIL PROTECTED]> wrote:
> Hi, I'm new in kernel programming and i would like
> to do a simple code
> witch can detect and plug/deplug usb device. So I
> read usb-skeleton.c 
> and there is some line I don't understand:
> 
> ########################
> /* Define these values to match your devices */
> #define USB_SKEL_VENDOR_ID  0xfff0
> #define USB_SKEL_PRODUCT_ID 0xfff0
> 
> /* table of devices that work with this driver */
> static struct usb_device_id skel_table [] = {
>     { USB_DEVICE(USB_SKEL_VENDOR_ID,
> USB_SKEL_PRODUCT_ID) },
>     /* "Gadget Zero" firmware runs under Linux */
>     { USB_DEVICE(0x0525, 0xa4a0) },
>     { }                 /* Terminating entry */
> };
> 
> MODULE_DEVICE_TABLE (usb, skel_table);
> #######################
> I don't understand how to set:
> #define USB_SKEL_VENDOR_ID  0xfff0
> #define USB_SKEL_PRODUCT_ID 0xfff0
> and
> { USB_DEVICE(0x0525, 0xa4a0) },
> 
> 
> In my lsusb I have:
> Bus 003 Device 002: ID 045e:0039 ...
> Where can I put them ?
> 
> Can you help me ?
> 
> 
> 
> 
>
-------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps
> Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
>
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> [EMAIL PROTECTED]
> To unsubscribe, use the last form field at:
>
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel


__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to