summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>1999-05-20 20:02:37 +0000
committern_hibma <n_hibma@FreeBSD.org>1999-05-20 20:02:37 +0000
commit580747cb048ee42d0ca5eadb8f478abf189f423e (patch)
treed68cb1f69d9276149b6bd741bd52867db5b9d3ab /sys/dev
parent30af12a295130c788ef277693d417e70475fc53f (diff)
downloadFreeBSD-src-580747cb048ee42d0ca5eadb8f478abf189f423e.zip
FreeBSD-src-580747cb048ee42d0ca5eadb8f478abf189f423e.tar.gz
usbdi.h:
Implement priorities. GENERIC, LINT, files: Remove remarks about ordering of device names. GENERIC, LINT: Sort the devices alphabetically in LINT and GENERIC.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/usbdi.h53
1 files changed, 16 insertions, 37 deletions
diff --git a/sys/dev/usb/usbdi.h b/sys/dev/usb/usbdi.h
index 7a41f8b..9db866b 100644
--- a/sys/dev/usb/usbdi.h
+++ b/sys/dev/usb/usbdi.h
@@ -288,45 +288,24 @@ struct usb_attach_arg {
#elif defined(__FreeBSD__)
/* FreeBSD needs values less than zero */
-/* for the moment disabled
-#define UMATCH_VENDOR_PRODUCT_REV -14
-#define UMATCH_VENDOR_PRODUCT -13
-#define UMATCH_VENDOR_DEVCLASS_DEVPROTO -12
-#define UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO -11
-#define UMATCH_DEVCLASS_DEVSUBCLASS -10
-#define UMATCH_VENDOR_PRODUCT_REV_CONF_IFACE -9
-#define UMATCH_VENDOR_PRODUCT_CONF_IFACE -8
-#define UMATCH_VENDOR_IFACESUBCLASS_IFACEPROTO -7
-#define UMATCH_VENDOR_IFACESUBCLASS -6
-#define UMATCH_IFACECLASS_IFACESUBCLASS_IFACEPROTO -5
-#define UMATCH_IFACECLASS_IFACESUBCLASS -4
-#define UMATCH_IFACECLASS -3
-#define UMATCH_IFACECLASS_GENERIC -2
-#define UMATCH_GENERIC -1
-#define UMATCH_NONE ENXIO
-
-* For the moment we use Yes/No answers with appropriate
-* sorting in the config file
-*/
-#define UMATCH_VENDOR_PRODUCT_REV 0
-#define UMATCH_VENDOR_PRODUCT 0
-#define UMATCH_VENDOR_DEVCLASS_DEVPROTO 0
-#define UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO 0
-#define UMATCH_DEVCLASS_DEVSUBCLASS 0
-#define UMATCH_VENDOR_PRODUCT_REV_CONF_IFACE 0
-#define UMATCH_VENDOR_PRODUCT_CONF_IFACE 0
-#define UMATCH_VENDOR_IFACESUBCLASS_IFACEPROTO 0
-#define UMATCH_VENDOR_IFACESUBCLASS 0
-#define UMATCH_IFACECLASS_IFACESUBCLASS_IFACEPROTO 0
-#define UMATCH_IFACECLASS_IFACESUBCLASS 0
-#define UMATCH_IFACECLASS 0
-#define UMATCH_IFACECLASS_GENERIC 0
-#define UMATCH_GENERIC 0
-#define UMATCH_NONE ENXIO
-
-
+#define UMATCH_VENDOR_PRODUCT_REV (-10)
+#define UMATCH_VENDOR_PRODUCT (-20)
+#define UMATCH_VENDOR_DEVCLASS_DEVPROTO (-30)
+#define UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO (-40)
+#define UMATCH_DEVCLASS_DEVSUBCLASS (-50)
+#define UMATCH_VENDOR_PRODUCT_REV_CONF_IFACE (-60)
+#define UMATCH_VENDOR_PRODUCT_CONF_IFACE (-70)
+#define UMATCH_VENDOR_IFACESUBCLASS_IFACEPROTO (-80)
+#define UMATCH_VENDOR_IFACESUBCLASS (-90)
+#define UMATCH_IFACECLASS_IFACESUBCLASS_IFACEPROTO (-100)
+#define UMATCH_IFACECLASS_IFACESUBCLASS (-110)
+#define UMATCH_IFACECLASS (-120)
+#define UMATCH_IFACECLASS_GENERIC (-130)
+#define UMATCH_GENERIC (-140)
+#define UMATCH_NONE (ENXIO)
#endif
+
void usbd_devinfo __P((usbd_device_handle, int, char *));
struct usbd_quirks *usbd_get_quirks __P((usbd_device_handle));
void usbd_set_disco __P((usbd_pipe_handle, void (*)(void *), void *));
OpenPOWER on IntegriCloud