xref: /openbmc/linux/include/scsi/scsi_devinfo.h (revision f26aeada04938b99d6abbae9cd2de4ffa393e5d5)
11da177e4SLinus Torvalds #ifndef _SCSI_SCSI_DEVINFO_H
21da177e4SLinus Torvalds #define _SCSI_SCSI_DEVINFO_H
31da177e4SLinus Torvalds /*
41da177e4SLinus Torvalds  * Flags for SCSI devices that need special treatment
51da177e4SLinus Torvalds  */
6*f26aeadaSHannes Reinecke 
7*f26aeadaSHannes Reinecke /* Only scan LUN 0 */
8*f26aeadaSHannes Reinecke #define BLIST_NOLUN		((__force __u32 __bitwise)(1 << 0))
9*f26aeadaSHannes Reinecke /* Known to have LUNs, force scanning.
10*f26aeadaSHannes Reinecke  * DEPRECATED: Use max_luns=N */
11*f26aeadaSHannes Reinecke #define BLIST_FORCELUN		((__force __u32 __bitwise)(1 << 1))
12*f26aeadaSHannes Reinecke /* Flag for broken handshaking */
13*f26aeadaSHannes Reinecke #define BLIST_BORKEN		((__force __u32 __bitwise)(1 << 2))
14*f26aeadaSHannes Reinecke /* unlock by special command */
15*f26aeadaSHannes Reinecke #define BLIST_KEY		((__force __u32 __bitwise)(1 << 3))
16*f26aeadaSHannes Reinecke /* Do not use LUNs in parallel */
17*f26aeadaSHannes Reinecke #define BLIST_SINGLELUN		((__force __u32 __bitwise)(1 << 4))
18*f26aeadaSHannes Reinecke /* Buggy Tagged Command Queuing */
19*f26aeadaSHannes Reinecke #define BLIST_NOTQ		((__force __u32 __bitwise)(1 << 5))
20*f26aeadaSHannes Reinecke /* Non consecutive LUN numbering */
21*f26aeadaSHannes Reinecke #define BLIST_SPARSELUN		((__force __u32 __bitwise)(1 << 6))
22*f26aeadaSHannes Reinecke /* Avoid LUNS >= 5 */
23*f26aeadaSHannes Reinecke #define BLIST_MAX5LUN		((__force __u32 __bitwise)(1 << 7))
24*f26aeadaSHannes Reinecke /* Treat as (removable) CD-ROM */
25*f26aeadaSHannes Reinecke #define BLIST_ISROM		((__force __u32 __bitwise)(1 << 8))
26*f26aeadaSHannes Reinecke /* LUNs past 7 on a SCSI-2 device */
27*f26aeadaSHannes Reinecke #define BLIST_LARGELUN		((__force __u32 __bitwise)(1 << 9))
28*f26aeadaSHannes Reinecke /* override additional length field */
29*f26aeadaSHannes Reinecke #define BLIST_INQUIRY_36	((__force __u32 __bitwise)(1 << 10))
30*f26aeadaSHannes Reinecke /* do not do automatic start on add */
31*f26aeadaSHannes Reinecke #define BLIST_NOSTARTONADD	((__force __u32 __bitwise)(1 << 12))
32*f26aeadaSHannes Reinecke /* try REPORT_LUNS even for SCSI-2 devs (if HBA supports more than 8 LUNs) */
33*f26aeadaSHannes Reinecke #define BLIST_REPORTLUN2	((__force __u32 __bitwise)(1 << 17))
34*f26aeadaSHannes Reinecke /* don't try REPORT_LUNS scan (SCSI-3 devs) */
35*f26aeadaSHannes Reinecke #define BLIST_NOREPORTLUN	((__force __u32 __bitwise)(1 << 18))
36*f26aeadaSHannes Reinecke /* don't use PREVENT-ALLOW commands */
37*f26aeadaSHannes Reinecke #define BLIST_NOT_LOCKABLE	((__force __u32 __bitwise)(1 << 19))
38*f26aeadaSHannes Reinecke /* device is actually for RAID config */
39*f26aeadaSHannes Reinecke #define BLIST_NO_ULD_ATTACH	((__force __u32 __bitwise)(1 << 20))
40*f26aeadaSHannes Reinecke /* select without ATN */
41*f26aeadaSHannes Reinecke #define BLIST_SELECT_NO_ATN	((__force __u32 __bitwise)(1 << 21))
42*f26aeadaSHannes Reinecke /* retry HARDWARE_ERROR */
43*f26aeadaSHannes Reinecke #define BLIST_RETRY_HWERROR	((__force __u32 __bitwise)(1 << 22))
44*f26aeadaSHannes Reinecke /* maximum 512 sector cdb length */
45*f26aeadaSHannes Reinecke #define BLIST_MAX_512		((__force __u32 __bitwise)(1 << 23))
46*f26aeadaSHannes Reinecke /* Disable T10 PI (DIF) */
47*f26aeadaSHannes Reinecke #define BLIST_NO_DIF		((__force __u32 __bitwise)(1 << 25))
48*f26aeadaSHannes Reinecke /* Ignore SBC-3 VPD pages */
49*f26aeadaSHannes Reinecke #define BLIST_SKIP_VPD_PAGES	((__force __u32 __bitwise)(1 << 26))
50*f26aeadaSHannes Reinecke /* Attempt to read VPD pages */
51*f26aeadaSHannes Reinecke #define BLIST_TRY_VPD_PAGES	((__force __u32 __bitwise)(1 << 28))
52*f26aeadaSHannes Reinecke /* don't try to issue RSOC */
53*f26aeadaSHannes Reinecke #define BLIST_NO_RSOC		((__force __u32 __bitwise)(1 << 29))
54*f26aeadaSHannes Reinecke /* maximum 1024 sector cdb length */
55*f26aeadaSHannes Reinecke #define BLIST_MAX_1024		((__force __u32 __bitwise)(1 << 30))
560213436aSJanusz Dziemidowicz 
571da177e4SLinus Torvalds #endif
58