1 /* 2 * Copyright (c) 2003 by Siarzhuk Zharski <imker@gmx.li> 3 * Distributed under the terms of the MIT License. 4 * 5 */ 6 7 #ifndef _USBVISION_DRIVER_H_ 8 #define _USBVISION_DRIVER_H_ 9 10 #define DRIVER_NAME "usb_vision" 11 12 #define DEVICES_COUNT 0x1f 13 14 #include "nt100x.h" 15 #include "tracing.h" 16 17 /* "forgotten" attributes etc ...*/ 18 #define USB_EP_ADDR_DIR_IN 0x80 19 #define USB_EP_ADDR_DIR_OUT 0x00 20 21 #define USB_EP_ATTR_CONTROL 0x00 22 #define USB_EP_ATTR_ISOCHRONOUS 0x01 23 #define USB_EP_ATTR_BULK 0x02 24 #define USB_EP_ATTR_INTERRUPT 0x03 25 26 27 typedef struct{ 28 uint32 open_count; 29 const usb_device *dev; 30 usb_pipe *control_pipe; 31 usb_pipe *data_pipe; 32 } usb_vision_device; 33 34 #endif//_USB_SERIAL_DRIVER_H_ 35