Public Attributes
usb_support_descriptor Struct Reference

Description of device descriptor that the driver can handle. More...

List of all members.

Public Attributes

uint8 dev_class
 The supported device classes.
uint8 dev_protocol
 The supported device protocols.
uint8 dev_subclass
 The supported device subclasses.
uint16 product
 The supported device products.
uint16 vendor
 The supported device vendor.

Detailed Description

Description of device descriptor that the driver can handle.

Support descriptors can be used to match any form of class, subclass or protocol, or they can be used to match a vendor and/or product. If any field has the value 0, it is treated as a wildcard.

For example, if you want to watch for all the hubs, which have a device class of 0x09, you would pass this descriptor:

    usb_support_descriptor hub_devs = { 9, 0, 0, 0, 0 };

See usb_module_info::register_driver() for more information on how to use this object.


The Haiku Book pre-R1 - usb_support_descriptor Struct Reference
Generated on Fri May 24 2013 by Doxygen 1.7.5.1