diff options
| author | Josef Karthauser <joe@FreeBSD.org> | 2002-02-11 03:15:08 +0000 |
|---|---|---|
| committer | Josef Karthauser <joe@FreeBSD.org> | 2002-02-11 03:15:08 +0000 |
| commit | ce3eae9093a0359928aaa1bd57e0f730d072a227 (patch) | |
| tree | fe6373a2e1e29b56f71161c3b53ae9d88c85539e /sys/dev | |
| parent | 50a56fbebdf6e1d817a1df2b4dd5b165d6100c85 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/usb/usbdi.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/usb/usbdi.h b/sys/dev/usb/usbdi.h index 7a184e7b87e79..839832cdf5f39 100644 --- a/sys/dev/usb/usbdi.h +++ b/sys/dev/usb/usbdi.h @@ -186,6 +186,15 @@ usb_endpoint_descriptor_t *usbd_get_endpoint_descriptor usbd_status usbd_reload_device_desc(usbd_device_handle); +struct usb_devno { + u_int16_t ud_vendor; + u_int16_t ud_product; +}; +const struct usb_devno *usb_match_device(const struct usb_devno *tbl, + u_int nentries, u_int sz, u_int16_t vendor, u_int16_t product); +#define usb_lookup(tbl, vendor, product) \ + usb_match_device((const struct usb_devno *)(tbl), sizeof (tbl) / sizeof ((tbl)[0]), sizeof ((tbl)[0]), (vendor), (product)) + /* NetBSD attachment information */ /* Attach data */ |
