1/** 2 * 3 * TODO: description 4 * 5 * This file is a part of USB SCSI CAM for Haiku. 6 * May be used under terms of the MIT License 7 * 8 * Author(s): 9 * Siarzhuk Zharski <imker@gmx.li> 10 * 11 * 12 */ 13/** definitions that should be in system headers but ... */ 14 15#ifndef _USB_DEFS_H_ 16 #define _USB_DEFS_H_ 17 18// TODO: Shouldn't it be declared in system USB headers? 19#define USB_EP_ATTR_CONTROL 0x00 20#define USB_EP_ATTR_ISOCHRONOUS 0x01 21#define USB_EP_ATTR_BULK 0x02 22#define USB_EP_ATTR_INTERRUPT 0x03 23#define USB_EP_ATTR_MASK 0x03 24 25#define USB_EP_ADDR_DIR_IN 0x80 26#define USB_EP_ADDR_DIR_OUT 0x00 27 28/*USB device class/subclass/protocl definitions*/ 29#define USB_DEV_CLASS_MASS 0x08 30 31#define USB_DEV_SUBCLASS_RBC 0x01 32#define USB_DEV_SUBCLASS_SFF8020I 0x02 33#define USB_DEV_SUBCLASS_QIC157 0x03 34#define USB_DEV_SUBCLASS_UFI 0x04 35#define USB_DEV_SUBCLASS_SFF8070I 0x05 36#define USB_DEV_SUBCLASS_SCSI 0x06 37 38#define USB_DEV_PROTOCOL_CBI 0x00 39#define USB_DEV_PROTOCOL_CB 0x01 40#define USB_DEV_PROTOCOL_BULK 0x50 41 42//TODO: And this was in old v3 stack what now ??? 43#define B_DEV_STALLED 0x8000a015 /* some "forgotten" error */ 44 45#endif /*_USB_DEFS_H_*/ 46 47