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