diff options
author | n_hibma <n_hibma@FreeBSD.org> | 1999-06-01 07:22:01 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 1999-06-01 07:22:01 +0000 |
commit | 327b9c7ba334e7fe6cc93086bd750078d56f73fa (patch) | |
tree | 70ee63b21399841d479ee826e0af473f9b2f19c1 /sys/dev/usb/usbdi.h | |
parent | ff89b648a61d1c6395bd3371ea371da64ad79f6c (diff) | |
download | FreeBSD-src-327b9c7ba334e7fe6cc93086bd750078d56f73fa.zip FreeBSD-src-327b9c7ba334e7fe6cc93086bd750078d56f73fa.tar.gz |
USB stopped working as of the recent cdevsw cleanup. This fixes that.
Diffstat (limited to 'sys/dev/usb/usbdi.h')
-rw-r--r-- | sys/dev/usb/usbdi.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/usb/usbdi.h b/sys/dev/usb/usbdi.h index 9db866b..bcf36d5 100644 --- a/sys/dev/usb/usbdi.h +++ b/sys/dev/usb/usbdi.h @@ -115,6 +115,12 @@ typedef void (*usbd_callback) __P((usbd_request_handle, usbd_private_handle, #define USBD_NO_TIMEOUT 0 #define USBD_DEFAULT_TIMEOUT 5000 /* ms = 5 s */ +#if defined(__FreeBSD__) +#define USB_CDEV_MAJOR 108 + +extern struct cdevsw usb_cdevsw; +#endif + usbd_status usbd_open_pipe __P((usbd_interface_handle iface, u_int8_t address, u_int8_t flags, usbd_pipe_handle *pipe)); |