[NETLINK]: Add netlink_has_listeners for avoiding unneccessary event message generation
[firefly-linux-kernel-4.4.55.git] / include / scsi / scsi.h
index 6cb1e2788d8bbeb701a5af243d19e622795087a4..9c331258bc27a3792fdd90b23470e39cc168457d 100644 (file)
@@ -31,6 +31,12 @@ extern const unsigned char scsi_command_size[8];
 #define MAX_SCSI_DEVICE_CODE 15
 extern const char *const scsi_device_types[MAX_SCSI_DEVICE_CODE];
 
+/*
+ * Special value for scanning to specify scanning or rescanning of all
+ * possible channels, (target) ids, or luns on a given shost.
+ */
+#define SCAN_WILD_CARD ~0
+
 /*
  *      SCSI opcodes
  */
@@ -427,4 +433,6 @@ struct scsi_lun {
 /* Used to obtain the PCI location of a device */
 #define SCSI_IOCTL_GET_PCI             0x5387
 
+int scsi_execute_in_process_context(void (*fn)(void *data), void *data);
+
 #endif /* _SCSI_SCSI_H */