linux/include/scsi/scsi_devinfo.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _SCSI_SCSI_DEVINFO_H
#define _SCSI_SCSI_DEVINFO_H
/*
 * Flags for SCSI devices that need special treatment
 */

/* Only scan LUN 0 */
#define BLIST_NOLUN
/* Known to have LUNs, force scanning.
 * DEPRECATED: Use max_luns=N */
#define BLIST_FORCELUN
/* Flag for broken handshaking */
#define BLIST_BORKEN
/* unlock by special command */
#define BLIST_KEY
/* Do not use LUNs in parallel */
#define BLIST_SINGLELUN
/* Buggy Tagged Command Queuing */
#define BLIST_NOTQ
/* Non consecutive LUN numbering */
#define BLIST_SPARSELUN
/* Avoid LUNS >= 5 */
#define BLIST_MAX5LUN
/* Treat as (removable) CD-ROM */
#define BLIST_ISROM
/* LUNs past 7 on a SCSI-2 device */
#define BLIST_LARGELUN
/* override additional length field */
#define BLIST_INQUIRY_36
/* ignore MEDIA CHANGE unit attention after resuming from runtime suspend */
#define BLIST_IGN_MEDIA_CHANGE
/* do not do automatic start on add */
#define BLIST_NOSTARTONADD
/* do not ask for VPD page size first on some broken targets */
#define BLIST_NO_VPD_SIZE
#define __BLIST_UNUSED_14
#define __BLIST_UNUSED_15
#define __BLIST_UNUSED_16
/* try REPORT_LUNS even for SCSI-2 devs (if HBA supports more than 8 LUNs) */
#define BLIST_REPORTLUN2
/* don't try REPORT_LUNS scan (SCSI-3 devs) */
#define BLIST_NOREPORTLUN
/* don't use PREVENT-ALLOW commands */
#define BLIST_NOT_LOCKABLE
/* device is actually for RAID config */
#define BLIST_NO_ULD_ATTACH
/* select without ATN */
#define BLIST_SELECT_NO_ATN
/* retry HARDWARE_ERROR */
#define BLIST_RETRY_HWERROR
/* maximum 512 sector cdb length */
#define BLIST_MAX_512
#define __BLIST_UNUSED_24
/* Disable T10 PI (DIF) */
#define BLIST_NO_DIF
/* Ignore SBC-3 VPD pages */
#define BLIST_SKIP_VPD_PAGES
#define __BLIST_UNUSED_27
/* Attempt to read VPD pages */
#define BLIST_TRY_VPD_PAGES
/* don't try to issue RSOC */
#define BLIST_NO_RSOC
/* maximum 1024 sector cdb length */
#define BLIST_MAX_1024
/* Use UNMAP limit for WRITE SAME */
#define BLIST_UNMAP_LIMIT_WS
/* Always retry ABORTED_COMMAND with Internal Target Failure */
#define BLIST_RETRY_ITF
/* Always retry ABORTED_COMMAND with ASC 0xc1 */
#define BLIST_RETRY_ASC_C1
/* Do not query the IO Advice Hints Grouping mode page */
#define BLIST_SKIP_IO_HINTS

#define __BLIST_LAST_USED

#define __BLIST_HIGH_UNUSED
#define __BLIST_UNUSED_MASK

#endif