summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2026-11-13 16:40:36 +0000
committerMark Brown <broonie@kernel.org>2026-11-13 16:40:36 +0000
commit1037fccc43178ff2bfc5fa101608e2456bdaed40 (patch)
treed9a8ba72e280fc923be9ad8550c7d755a19a10d8 /include
parent0bc1a9516ff2a73ab301d55030bd4bef1e0f5edd (diff)
parent0fc91e802801819a0c51d30b6eecac63ab4f85d2 (diff)
downloadlinux-next-1037fccc43178ff2bfc5fa101608e2456bdaed40.tar.gz
linux-next-1037fccc43178ff2bfc5fa101608e2456bdaed40.zip
Merge branch 'for-next' of https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git
Diffstat (limited to 'include')
-rw-r--r--include/scsi/scsi_device.h9
-rw-r--r--include/scsi/scsi_proto.h3
2 files changed, 12 insertions, 0 deletions
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h
index e6fd6bc30644..b9540a412ae8 100644
--- a/include/scsi/scsi_device.h
+++ b/include/scsi/scsi_device.h
@@ -196,6 +196,12 @@ struct scsi_device {
*/
unsigned is_ata:1;
+ /*
+ * Set if a ULD should be matched to a PQ 001b device in the ALUA
+ * unavailable state.
+ */
+ unsigned match_unavailable:1;
+
unsigned removable:1;
unsigned changed:1; /* Data invalid due to media change */
unsigned busy:1; /* Used to prevent races */
@@ -583,6 +589,9 @@ extern void sdev_enable_disk_events(struct scsi_device *sdev);
extern int scsi_vpd_lun_id(struct scsi_device *, char *, size_t);
extern int scsi_vpd_lun_serial(struct scsi_device *, char *, size_t);
extern int scsi_vpd_tpg_id(struct scsi_device *, int *);
+int scsi_report_tpgs(struct scsi_device *sdev, unsigned char **buff,
+ int *bufflen, bool ext_hdr, int timeout, int retries,
+ const struct scsi_exec_args *args);
#ifdef CONFIG_PM
extern int scsi_autopm_get_device(struct scsi_device *);
diff --git a/include/scsi/scsi_proto.h b/include/scsi/scsi_proto.h
index 0ee0cf3200d0..ffc636362954 100644
--- a/include/scsi/scsi_proto.h
+++ b/include/scsi/scsi_proto.h
@@ -145,6 +145,9 @@
#define MI_MANAGEMENT_PROTOCOL_IN 0x10
/* value for MI_REPORT_TARGET_PGS ext header */
#define MI_EXT_HDR_PARAM_FMT 0x20
+/* format field in byte 4 of the REPORT TARGET PORT GROUPS parameter data */
+#define RTPG_FMT_MASK 0x70
+#define RTPG_FMT_EXT_HDR 0x10
/* values for maintenance out */
#define MO_SET_IDENTIFYING_INFORMATION 0x06
#define MO_SET_TARGET_PGS 0x0a