diff options
author | thompsa <thompsa@FreeBSD.org> | 2010-04-21 23:03:26 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2010-04-21 23:03:26 +0000 |
commit | 20eaac12a517074806a249fd85baec91d92ac1ef (patch) | |
tree | e4b96c36a976d9fbb42a11bfbc346eed788a11d5 /sys/dev | |
parent | 1a724f1dcaab30bf93e2b9f14ba5cb859e401086 (diff) | |
download | FreeBSD-src-20eaac12a517074806a249fd85baec91d92ac1ef.zip FreeBSD-src-20eaac12a517074806a249fd85baec91d92ac1ef.tar.gz |
Also add the usb mode to the devd string as the usb controller can work in both
host or device (gadget) modes.
Suggested by: HPS
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/usb_device.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/usb/usb_device.c b/sys/dev/usb/usb_device.c index f0106ec..2f3a402 100644 --- a/sys/dev/usb/usb_device.c +++ b/sys/dev/usb/usb_device.c @@ -2427,6 +2427,7 @@ usb_notify_addq(const char *type, struct usb_device *udev) "devsubclass=0x%02x " "sernum=\"%s\" " "release=0x%04x " + "mode=%s " "port=%u " "parent=%s\n", udev->ugen_name, @@ -2436,6 +2437,7 @@ usb_notify_addq(const char *type, struct usb_device *udev) udev->ddesc.bDeviceSubClass, udev->serial, UGETW(udev->ddesc.bcdDevice), + (udev->flags.usb_mode == USB_MODE_HOST) ? "host" : "device", udev->port_no, udev->parent_hub != NULL ? udev->parent_hub->ugen_name : @@ -2461,6 +2463,7 @@ usb_notify_addq(const char *type, struct usb_device *udev) "devsubclass=0x%02x " "sernum=\"%s\" " "release=0x%04x " + "mode=%s " "interface=%d " "endpoints=%d " "intclass=0x%02x " @@ -2473,6 +2476,7 @@ usb_notify_addq(const char *type, struct usb_device *udev) udev->ddesc.bDeviceSubClass, udev->serial, UGETW(udev->ddesc.bcdDevice), + (udev->flags.usb_mode == USB_MODE_HOST) ? "host" : "device", iface->idesc->bInterfaceNumber, iface->idesc->bNumEndpoints, iface->idesc->bInterfaceClass, |