diff options
author | thompsa <thompsa@FreeBSD.org> | 2009-06-27 21:23:30 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2009-06-27 21:23:30 +0000 |
commit | ff880be8b902c41ec399c05ac1f85bf74c0fa6ad (patch) | |
tree | ac244c5834e146ddb6b188a14c852ced0d303298 /sys/dev/usb/usbdi.h | |
parent | 6a523f03ea03e31b66264afaf4a531790162a406 (diff) | |
download | FreeBSD-src-ff880be8b902c41ec399c05ac1f85bf74c0fa6ad.zip FreeBSD-src-ff880be8b902c41ec399c05ac1f85bf74c0fa6ad.tar.gz |
Sync to p4
- Add support for devices that handle set and clear stall in hardware.
- Add missing get timestamp function
- Add more xfer flags
Submitted by: Hans Petter Selasky
Approved by: re (kib)
Diffstat (limited to 'sys/dev/usb/usbdi.h')
-rw-r--r-- | sys/dev/usb/usbdi.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/usb/usbdi.h b/sys/dev/usb/usbdi.h index 850cb97..6ed775e 100644 --- a/sys/dev/usb/usbdi.h +++ b/sys/dev/usb/usbdi.h @@ -78,6 +78,8 @@ typedef enum { /* keep in sync with usb_errstr_table */ #define USB_SHORT_XFER_OK 0x0004 /* allow short reads */ #define USB_DELAY_STATUS_STAGE 0x0010 /* insert delay before STATUS stage */ #define USB_USER_DATA_PTR 0x0020 /* internal flag */ +#define USB_MULTI_SHORT_OK 0x0040 /* allow multiple short frames */ +#define USB_MANUAL_STATUS 0x0080 /* manual ctrl status */ #define USB_NO_TIMEOUT 0 #define USB_DEFAULT_TIMEOUT 5000 /* 5000 ms = 5 seconds */ @@ -486,6 +488,7 @@ void usbd_xfer_set_stall(struct usb_xfer *xfer); int usbd_xfer_is_stalled(struct usb_xfer *xfer); void usbd_xfer_set_flag(struct usb_xfer *xfer, int flag); void usbd_xfer_clr_flag(struct usb_xfer *xfer, int flag); +uint16_t usbd_xfer_get_timestamp(struct usb_xfer *xfer); void usbd_copy_in(struct usb_page_cache *cache, usb_frlength_t offset, const void *ptr, usb_frlength_t len); |