0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef __LINUX_USB_USUAL_H
0011 #define __LINUX_USB_USUAL_H
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026 #define US_DO_ALL_FLAGS \
0027 US_FLAG(SINGLE_LUN, 0x00000001) \
0028 \
0029 US_FLAG(NEED_OVERRIDE, 0x00000002) \
0030 \
0031 US_FLAG(SCM_MULT_TARG, 0x00000004) \
0032 \
0033 US_FLAG(FIX_INQUIRY, 0x00000008) \
0034 \
0035 US_FLAG(FIX_CAPACITY, 0x00000010) \
0036 \
0037 US_FLAG(IGNORE_RESIDUE, 0x00000020) \
0038 \
0039 US_FLAG(BULK32, 0x00000040) \
0040 \
0041 US_FLAG(NOT_LOCKABLE, 0x00000080) \
0042 \
0043 US_FLAG(GO_SLOW, 0x00000100) \
0044 \
0045 US_FLAG(NO_WP_DETECT, 0x00000200) \
0046 \
0047 US_FLAG(MAX_SECTORS_64, 0x00000400) \
0048 \
0049 US_FLAG(IGNORE_DEVICE, 0x00000800) \
0050 \
0051 US_FLAG(CAPACITY_HEURISTICS, 0x00001000) \
0052 \
0053 US_FLAG(MAX_SECTORS_MIN,0x00002000) \
0054 \
0055 US_FLAG(BULK_IGNORE_TAG,0x00004000) \
0056 \
0057 US_FLAG(SANE_SENSE, 0x00008000) \
0058 \
0059 US_FLAG(CAPACITY_OK, 0x00010000) \
0060 \
0061 US_FLAG(BAD_SENSE, 0x00020000) \
0062 \
0063 US_FLAG(NO_READ_DISC_INFO, 0x00040000) \
0064 \
0065 US_FLAG(NO_READ_CAPACITY_16, 0x00080000) \
0066 \
0067 US_FLAG(INITIAL_READ10, 0x00100000) \
0068 \
0069 US_FLAG(WRITE_CACHE, 0x00200000) \
0070 \
0071 US_FLAG(NEEDS_CAP16, 0x00400000) \
0072 \
0073 US_FLAG(IGNORE_UAS, 0x00800000) \
0074 \
0075 US_FLAG(BROKEN_FUA, 0x01000000) \
0076 \
0077 US_FLAG(NO_ATA_1X, 0x02000000) \
0078 \
0079 US_FLAG(NO_REPORT_OPCODES, 0x04000000) \
0080 \
0081 US_FLAG(MAX_SECTORS_240, 0x08000000) \
0082 \
0083 US_FLAG(NO_REPORT_LUNS, 0x10000000) \
0084 \
0085 US_FLAG(ALWAYS_SYNC, 0x20000000) \
0086 \
0087 US_FLAG(NO_SAME, 0x40000000) \
0088 \
0089 US_FLAG(SENSE_AFTER_SYNC, 0x80000000) \
0090 \
0091
0092 #define US_FLAG(name, value) US_FL_##name = value ,
0093 enum { US_DO_ALL_FLAGS };
0094 #undef US_FLAG
0095
0096 #include <linux/usb/storage.h>
0097
0098 extern int usb_usual_ignore_device(struct usb_interface *intf);
0099 extern const struct usb_device_id usb_storage_usb_ids[];
0100
0101 #endif