PERFORCE change 143434 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Sat Jun 14 03:13:17 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=143434
Change 143434 by hselasky at hselasky_laptop001 on 2008/06/14 03:13:05
USB Lookup: Clearify that the above and below macros are inclusive.
Remove test code from "usb2_lookup.c".
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb2/core/usb2_lookup.c#2 edit
.. //depot/projects/usb/src/sys/dev/usb2/core/usb2_lookup.h#2 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb2/core/usb2_lookup.c#2 (text+ko) ====
@@ -102,9 +102,3 @@
done:
return (0);
}
-
-struct usb2_device_id test = {
-
- USB_VENDOR(0), USB_PRODUCT(0), USB_VP(0, 0), USB_DEV_BCD_BELOW(0), USB_DEV_BCD_ABOVE(0), USB_DEV_CLASS(0), USB_DEV_SUBCLASS(0), USB_DEV_PROTOCOL(0), USB_IFACE_CLASS(0), USB_IFACE_SUBCLASS(0), USB_IFACE_PROTOCOL(0), USB_DRIVER_INFO(0), USB_MATCH_END(0),
-
-};
==== //depot/projects/usb/src/sys/dev/usb2/core/usb2_lookup.h#2 (text+ko) ====
@@ -93,10 +93,10 @@
#define USB_VP(vend,prod) \
USB_VENDOR(vend), USB_PRODUCT(prod)
-#define USB_DEV_BCD_BELOW(lo) \
+#define USB_DEV_BCD_LTEQ(lo) /* less than or equal */ \
.match_flag_dev_lo = 1, .bcdDevice_lo = (lo)
-#define USB_DEV_BCD_ABOVE(hi) \
+#define USB_DEV_BCD_GTEQ(hi) /* greater than or equal */ \
.match_flag_dev_hi = 1, .bcdDevice_hi = (hi)
#define USB_DEV_CLASS(dc) \
More information about the p4-projects
mailing list