On Thursday, 27 בOctober 2005 23:30, Muli Ben-Yehuda wrote:
> For PCI devices, each driver supplies the PCI IDs of the devices it
> knows how to handle,

True.

> For USB storage, this appears to be storage_usb_ids[] in
> drivers/usb/storage/usb.c. As far as the kernel is concerned, this
> list defines what kind of device it is.

Yes, but... USB provides some generic "classes" (storage is just
one of them). A driver may match a complete class and thus support
any compliant device. An illuminating short example from
drivers/usb/input/usbmouse.c:

  static struct usb_device_id usb_mouse_id_table [] = {
    { USB_INTERFACE_INFO(3, 1, 2) },
    {}                                /* Terminating entry */
  };

Hmmm... are they optical/cordless/tablet/trackball? All we know
is that they comply with the standard for USB mice.

-- 
Oron Peled                             Voice/Fax: +972-4-8228492
[EMAIL PROTECTED]                  http://www.actcom.co.il/~oron
ICQ UIN: 16527398

Code Red, Blue or Green there all a symptom of a far more pervasive
and insidious virus, it costs around $200.
                                                -anonymous

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to