Provide the USB device release number along with other parameters

so that devd can match on it. This field was already available to
usbd and is used by a number of usbd.conf entries, so now it is
possible to transfer those entries to devd.conf.

Submitted by:	Anish Mistry
This commit is contained in:
Ian Dowse 2005-08-23 21:32:49 +00:00
parent fc377cca01
commit f1129b105e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149398

View File

@ -697,19 +697,19 @@ uhub_child_pnpinfo_str(device_t cbdev, device_t child, char *buf,
if (dev->ifacenums == NULL) {
snprintf(buf, buflen, "vendor=0x%04x product=0x%04x "
"devclass=0x%02x devsubclass=0x%02x "
"sernum=\"%s\"",
"release=0x%04x sernum=\"%s\"",
UGETW(dev->ddesc.idVendor), UGETW(dev->ddesc.idProduct),
dev->ddesc.bDeviceClass, dev->ddesc.bDeviceSubClass,
serial);
UGETW(dev->ddesc.bcdDevice), serial);
} else {
iface = &dev->ifaces[dev->ifacenums[i]];
snprintf(buf, buflen, "vendor=0x%04x product=0x%04x "
"devclass=0x%02x devsubclass=0x%02x "
"sernum=\"%s\" "
"release=0x%04x sernum=\"%s\" "
"intclass=0x%02x intsubclass=0x%02x",
UGETW(dev->ddesc.idVendor), UGETW(dev->ddesc.idProduct),
dev->ddesc.bDeviceClass, dev->ddesc.bDeviceSubClass,
serial,
UGETW(dev->ddesc.bcdDevice), serial,
iface->idesc->bInterfaceClass,
iface->idesc->bInterfaceSubClass);
}