Data Structures for Drivers usbdevdescr(9S)
NAME
usbdevdescr - USB device descriptor
SYNOPSIS
#include
INTERFACE LEVEL
Solaris DI specific (Solaris DI)
DESCRIPTION
The usbdevdescrt device descriptor defines device-wide
attributes. Please refer to Section 9.6.1 of the USB 2.0
specification. The USB 2.0 specification is available at
www.usb.org.
The device descriptor is retrieved from a USB device during
device enumeration and can be accessed via
usbgetdevdata(9F).
A device descriptor contains the following fields:
uint8t bLength Size of this descriptor,
in bytes.
uint8t bDescriptorType Set to USBDESCRTYPEDEV.
uint16t bcdUSB USB specification release
number supported, in bcd.
uint8t bDeviceClass Class code (see below).
uint8t bDeviceSubClass Subclass code (see USB 2.0
specification of applicable
device class for information.)
uint8t bDeviceProtocol Protocol code (see USB 2.0
specification of applicable
device class for information.)
uint8t bMaxPacketSize0 Maximum packet size of
endpoint 0.
uint16t idVendor vendor ID value.
uint16t idProduct product ID value.
uint16t bcdDevice Device release number in
binary coded decimal.
SunOS 5.11 Last change: 5 Jan 2004 1
Data Structures for Drivers usbdevdescr(9S)
uint8t iManufacturer Index of optional manufacturer
description string.
Valid if > 0.
uint8t iProduct Index of optional product
description string.
Valid if > 0.
uint8t iSerialNumber Index of optional serial
number string.
Valid if > 0.
uint8t bNumConfigurations Number of available
configurations.
Device descriptors bDeviceClass values:
USBCLASPERINTERFACE Class information is at
interface level.
USBCLASCOM CDC control device class.
USBCLASDIAG Diagnostic device class.
USBCLASHUB HUB device class.
USBCLASMISC MISC device class.
USBCLASVENDORSPEC Vendor-specific class.
USBCLASWIRELES Wireless controller
device class.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
SunOS 5.11 Last change: 5 Jan 2004 2
Data Structures for Drivers usbdevdescr(9S)
ATRIBUTE TYPE ATRIBUTE VALUE
Architecture PCI-based systems
Interface stability Committed
Availability SUNWusbu
SEE ALSO
attributes(5), usbgetaltif(9F), usbgetcfg(9F),
usbgetdevdata(9F), usbgetstringdescr(9F),
usbparsedata(9F), usbcfgdescr(9S), usbctrlrequest(9S),
usbdevqlfdescr(9S), usbepdescr(9S), usbifdescr(9S),
usbotherspeedcfgdescr(9S), usbstringdescr(9S)
SunOS 5.11 Last change: 5 Jan 2004 3
|