From ed6d949afdbe3f25e6ef640881d8a0a72d7b7aa8 Mon Sep 17 00:00:00 2001 From: Andrew Thompson Date: Tue, 23 Jun 2009 02:19:59 +0000 Subject: - 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 --- sys/dev/usb/usb_ioctl.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sys/dev/usb/usb_ioctl.h') 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 { -- cgit v1.2.3