aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb/usb_ioctl.h
diff options
context:
space:
mode:
authorAndrew Thompson <thompsa@FreeBSD.org>2009-06-23 02:19:59 +0000
committerAndrew Thompson <thompsa@FreeBSD.org>2009-06-23 02:19:59 +0000
commited6d949afdbe3f25e6ef640881d8a0a72d7b7aa8 (patch)
treeee5c9acfe716a9835136731811e9e1a68751e278 /sys/dev/usb/usb_ioctl.h
parent8c8fff3177f8d9611f191878b3864dc8ca3e5965 (diff)
downloadsrc-ed6d949afdbe3f25e6ef640881d8a0a72d7b7aa8.tar.gz
src-ed6d949afdbe3f25e6ef640881d8a0a72d7b7aa8.zip
- Make struct usb_xfer opaque so that drivers can not access the internals
- Reduce the number of headers needed for a usb driver, the common case is just usb.h and usbdi.h
Notes
Notes: svn path=/head/; revision=194677
Diffstat (limited to 'sys/dev/usb/usb_ioctl.h')
-rw-r--r--sys/dev/usb/usb_ioctl.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/usb/usb_ioctl.h b/sys/dev/usb/usb_ioctl.h
index 7043c5517057..f9018e283ec7 100644
--- a/sys/dev/usb/usb_ioctl.h
+++ b/sys/dev/usb/usb_ioctl.h
@@ -49,9 +49,6 @@ struct usb_read_dir {
struct usb_ctl_request {
void *ucr_data;
uint16_t ucr_flags;
-#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 */
uint16_t ucr_actlen; /* actual length transferred */
uint8_t ucr_addr; /* zero - currently not used */
struct usb_device_request ucr_request;
@@ -148,7 +145,7 @@ struct usb_fs_endpoint {
uint16_t isoc_time_complete;
/* timeout value for no timeout */
#define USB_FS_TIMEOUT_NONE 0
- uint8_t status; /* see USB_ERR_XXX */
+ int status; /* see USB_ERR_XXX */
};
struct usb_fs_init {