diff --git a/sys/dev/usb/usbdi.h b/sys/dev/usb/usbdi.h index b3b26cff757..cee2de0c4c1 100644 --- a/sys/dev/usb/usbdi.h +++ b/sys/dev/usb/usbdi.h @@ -88,6 +88,8 @@ typedef void (*usbd_callback)(usbd_xfer_handle, usbd_private_handle, /* in usb.h #define USBD_SHORT_XFER_OK 0x04*/ /* allow short reads */ #define USBD_FORCE_SHORT_XFER 0x08 /* force last short packet on write */ +#define USBD_BITS "\20\1NO_COPY\2SYNCHRONOUS\4FORCE_SHORT_XFER" + #define USBD_NO_TIMEOUT 0 #define USBD_DEFAULT_TIMEOUT 5000 /* ms = 5 s */ diff --git a/sys/dev/usb/usbdivar.h b/sys/dev/usb/usbdivar.h index 95d8e0eff1f..603d6910405 100644 --- a/sys/dev/usb/usbdivar.h +++ b/sys/dev/usb/usbdivar.h @@ -240,6 +240,8 @@ struct usbd_xfer { struct callout timeout_handle; }; +#define URQ_BITS "\20\1REQUEST\5AUTO_DMABUF\6DEV_DMABUF" + void usbd_init(void); void usbd_finish(void);