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