~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/usb_usual.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/linux/usb_usual.h (Version linux-6.12-rc7) and /include/linux/usb_usual.h (Version linux-6.4.16)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*                                                  2 /*
  3  * Interface to the libusual.                       3  * Interface to the libusual.
  4  *                                                  4  *
  5  * Copyright (c) 2005 Pete Zaitcev <zaitcev@re      5  * Copyright (c) 2005 Pete Zaitcev <zaitcev@redhat.com>
  6  * Copyright (c) 1999-2002 Matthew Dharm (mdha      6  * Copyright (c) 1999-2002 Matthew Dharm (mdharm-usb@one-eyed-alien.net)
  7  * Copyright (c) 1999 Michael Gee (michael@lin      7  * Copyright (c) 1999 Michael Gee (michael@linuxspecific.com)
  8  */                                                 8  */
  9                                                     9 
 10 #ifndef __LINUX_USB_USUAL_H                        10 #ifndef __LINUX_USB_USUAL_H
 11 #define __LINUX_USB_USUAL_H                        11 #define __LINUX_USB_USUAL_H
 12                                                    12 
 13                                                    13 
 14 /* We should do this for cleanliness... But ot     14 /* We should do this for cleanliness... But other usb_foo.h do not do this. */
 15 /* #include <linux/usb.h> */                       15 /* #include <linux/usb.h> */
 16                                                    16 
 17 /*                                                 17 /*
 18  * The flags field, which we store in usb_devi     18  * The flags field, which we store in usb_device_id.driver_info.
 19  * It is compatible with the old usb-storage f     19  * It is compatible with the old usb-storage flags in lower 24 bits.
 20  */                                                20  */
 21                                                    21 
 22 /*                                                 22 /*
 23  * Static flag definitions.  We use this round     23  * Static flag definitions.  We use this roundabout technique so that the
 24  * proc_info() routine can automatically displ     24  * proc_info() routine can automatically display a message for each flag.
 25  */                                                25  */
 26 #define US_DO_ALL_FLAGS                            26 #define US_DO_ALL_FLAGS                                         \
 27         US_FLAG(SINGLE_LUN,     0x00000001)        27         US_FLAG(SINGLE_LUN,     0x00000001)                     \
 28                 /* allow access to only LUN 0      28                 /* allow access to only LUN 0 */                \
 29         US_FLAG(NEED_OVERRIDE,  0x00000002)        29         US_FLAG(NEED_OVERRIDE,  0x00000002)                     \
 30                 /* unusual_devs entry is neces     30                 /* unusual_devs entry is necessary */           \
 31         US_FLAG(SCM_MULT_TARG,  0x00000004)        31         US_FLAG(SCM_MULT_TARG,  0x00000004)                     \
 32                 /* supports multiple targets *     32                 /* supports multiple targets */                 \
 33         US_FLAG(FIX_INQUIRY,    0x00000008)        33         US_FLAG(FIX_INQUIRY,    0x00000008)                     \
 34                 /* INQUIRY response needs faki     34                 /* INQUIRY response needs faking */             \
 35         US_FLAG(FIX_CAPACITY,   0x00000010)        35         US_FLAG(FIX_CAPACITY,   0x00000010)                     \
 36                 /* READ CAPACITY response too      36                 /* READ CAPACITY response too big */            \
 37         US_FLAG(IGNORE_RESIDUE, 0x00000020)        37         US_FLAG(IGNORE_RESIDUE, 0x00000020)                     \
 38                 /* reported residue is wrong *     38                 /* reported residue is wrong */                 \
 39         US_FLAG(BULK32,         0x00000040)        39         US_FLAG(BULK32,         0x00000040)                     \
 40                 /* Uses 32-byte CBW length */      40                 /* Uses 32-byte CBW length */                   \
 41         US_FLAG(NOT_LOCKABLE,   0x00000080)        41         US_FLAG(NOT_LOCKABLE,   0x00000080)                     \
 42                 /* PREVENT/ALLOW not supported     42                 /* PREVENT/ALLOW not supported */               \
 43         US_FLAG(GO_SLOW,        0x00000100)        43         US_FLAG(GO_SLOW,        0x00000100)                     \
 44                 /* Need delay after Command ph     44                 /* Need delay after Command phase */            \
 45         US_FLAG(NO_WP_DETECT,   0x00000200)        45         US_FLAG(NO_WP_DETECT,   0x00000200)                     \
 46                 /* Don't check for write-prote     46                 /* Don't check for write-protect */             \
 47         US_FLAG(MAX_SECTORS_64, 0x00000400)        47         US_FLAG(MAX_SECTORS_64, 0x00000400)                     \
 48                 /* Sets max_sectors to 64    *     48                 /* Sets max_sectors to 64    */                 \
 49         US_FLAG(IGNORE_DEVICE,  0x00000800)        49         US_FLAG(IGNORE_DEVICE,  0x00000800)                     \
 50                 /* Don't claim device */           50                 /* Don't claim device */                        \
 51         US_FLAG(CAPACITY_HEURISTICS,    0x0000     51         US_FLAG(CAPACITY_HEURISTICS,    0x00001000)             \
 52                 /* sometimes sizes is too big      52                 /* sometimes sizes is too big */                \
 53         US_FLAG(MAX_SECTORS_MIN,0x00002000)        53         US_FLAG(MAX_SECTORS_MIN,0x00002000)                     \
 54                 /* Sets max_sectors to arch mi     54                 /* Sets max_sectors to arch min */              \
 55         US_FLAG(BULK_IGNORE_TAG,0x00004000)        55         US_FLAG(BULK_IGNORE_TAG,0x00004000)                     \
 56                 /* Ignore tag mismatch in bulk     56                 /* Ignore tag mismatch in bulk operations */    \
 57         US_FLAG(SANE_SENSE,     0x00008000)        57         US_FLAG(SANE_SENSE,     0x00008000)                     \
 58                 /* Sane Sense (> 18 bytes) */      58                 /* Sane Sense (> 18 bytes) */                   \
 59         US_FLAG(CAPACITY_OK,    0x00010000)        59         US_FLAG(CAPACITY_OK,    0x00010000)                     \
 60                 /* READ CAPACITY response is c     60                 /* READ CAPACITY response is correct */         \
 61         US_FLAG(BAD_SENSE,      0x00020000)        61         US_FLAG(BAD_SENSE,      0x00020000)                     \
 62                 /* Bad Sense (never more than      62                 /* Bad Sense (never more than 18 bytes) */      \
 63         US_FLAG(NO_READ_DISC_INFO,      0x0004     63         US_FLAG(NO_READ_DISC_INFO,      0x00040000)             \
 64                 /* cannot handle READ_DISC_INF     64                 /* cannot handle READ_DISC_INFO */              \
 65         US_FLAG(NO_READ_CAPACITY_16,    0x0008     65         US_FLAG(NO_READ_CAPACITY_16,    0x00080000)             \
 66                 /* cannot handle READ_CAPACITY     66                 /* cannot handle READ_CAPACITY_16 */            \
 67         US_FLAG(INITIAL_READ10, 0x00100000)        67         US_FLAG(INITIAL_READ10, 0x00100000)                     \
 68                 /* Initial READ(10) (and other     68                 /* Initial READ(10) (and others) must be retried */     \
 69         US_FLAG(WRITE_CACHE,    0x00200000)        69         US_FLAG(WRITE_CACHE,    0x00200000)                     \
 70                 /* Write Cache status is not a     70                 /* Write Cache status is not available */       \
 71         US_FLAG(NEEDS_CAP16,    0x00400000)        71         US_FLAG(NEEDS_CAP16,    0x00400000)                     \
 72                 /* cannot handle READ_CAPACITY     72                 /* cannot handle READ_CAPACITY_10 */            \
 73         US_FLAG(IGNORE_UAS,     0x00800000)        73         US_FLAG(IGNORE_UAS,     0x00800000)                     \
 74                 /* Device advertises UAS but i     74                 /* Device advertises UAS but it is broken */    \
 75         US_FLAG(BROKEN_FUA,     0x01000000)        75         US_FLAG(BROKEN_FUA,     0x01000000)                     \
 76                 /* Cannot handle FUA in WRITE      76                 /* Cannot handle FUA in WRITE or READ CDBs */   \
 77         US_FLAG(NO_ATA_1X,      0x02000000)        77         US_FLAG(NO_ATA_1X,      0x02000000)                     \
 78                 /* Cannot handle ATA_12 or ATA     78                 /* Cannot handle ATA_12 or ATA_16 CDBs */       \
 79         US_FLAG(NO_REPORT_OPCODES,      0x0400     79         US_FLAG(NO_REPORT_OPCODES,      0x04000000)             \
 80                 /* Cannot handle MI_REPORT_SUP     80                 /* Cannot handle MI_REPORT_SUPPORTED_OPERATION_CODES */ \
 81         US_FLAG(MAX_SECTORS_240,        0x0800     81         US_FLAG(MAX_SECTORS_240,        0x08000000)             \
 82                 /* Sets max_sectors to 240 */      82                 /* Sets max_sectors to 240 */                   \
 83         US_FLAG(NO_REPORT_LUNS, 0x10000000)        83         US_FLAG(NO_REPORT_LUNS, 0x10000000)                     \
 84                 /* Cannot handle REPORT_LUNS *     84                 /* Cannot handle REPORT_LUNS */                 \
 85         US_FLAG(ALWAYS_SYNC, 0x20000000)           85         US_FLAG(ALWAYS_SYNC, 0x20000000)                        \
 86                 /* lies about caching, so alwa     86                 /* lies about caching, so always sync */        \
 87         US_FLAG(NO_SAME, 0x40000000)               87         US_FLAG(NO_SAME, 0x40000000)                            \
 88                 /* Cannot handle WRITE_SAME */     88                 /* Cannot handle WRITE_SAME */                  \
 89         US_FLAG(SENSE_AFTER_SYNC, 0x80000000)      89         US_FLAG(SENSE_AFTER_SYNC, 0x80000000)                   \
 90                 /* Do REQUEST_SENSE after SYNC     90                 /* Do REQUEST_SENSE after SYNCHRONIZE_CACHE */  \
 91                                                    91 
 92 #define US_FLAG(name, value)    US_FL_##name =     92 #define US_FLAG(name, value)    US_FL_##name = value ,
 93 enum { US_DO_ALL_FLAGS };                          93 enum { US_DO_ALL_FLAGS };
 94 #undef US_FLAG                                     94 #undef US_FLAG
 95                                                    95 
 96 #include <linux/usb/storage.h>                     96 #include <linux/usb/storage.h>
 97                                                    97 
 98 extern int usb_usual_ignore_device(struct usb_     98 extern int usb_usual_ignore_device(struct usb_interface *intf);
 99 extern const struct usb_device_id usb_storage_     99 extern const struct usb_device_id usb_storage_usb_ids[];
100                                                   100 
101 #endif /* __LINUX_USB_USUAL_H */                  101 #endif /* __LINUX_USB_USUAL_H */
102                                                   102 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php