Go to the documentation of this file.
4 #include <linux/device.h>
21 #define SCSI_EH_CANCEL_CMD 0x0001
23 #define SCSI_SENSE_VALID(scmd) \
24 (((scmd)->sense_buffer[0] & 0x70) == 0x70)
34 #ifdef CONFIG_SCSI_LOGGING
36 void scsi_log_completion(
struct scsi_cmnd *
cmd,
int disposition);
40 static inline void scsi_log_completion(
struct scsi_cmnd *
cmd,
int disposition)
53 const unsigned char *
vendor,
54 const unsigned char *model);
56 const unsigned char *
vendor,
57 const unsigned char *model,
int key);
59 char *model,
char *strflags,
96 #ifdef CONFIG_SCSI_PROC_FS
104 # define scsi_proc_hostdir_add(sht) do { } while (0)
105 # define scsi_proc_hostdir_rm(sht) do { } while (0)
106 # define scsi_proc_host_add(shost) do { } while (0)
107 # define scsi_proc_host_rm(shost) do { } while (0)
108 # define scsi_init_procfs() (0)
109 # define scsi_exit_procfs() do { } while (0)
115 unsigned int,
unsigned int,
int);
124 # define scsi_init_sysctl() (0)
125 # define scsi_exit_sysctl() do { } while (0)
142 #ifdef CONFIG_SCSI_NETLINK
155 #ifdef CONFIG_PM_RUNTIME
156 extern void scsi_autopm_get_target(
struct scsi_target *);
157 extern void scsi_autopm_put_target(
struct scsi_target *);
158 extern int scsi_autopm_get_host(
struct Scsi_Host *);
159 extern void scsi_autopm_put_host(
struct Scsi_Host *);
161 static inline void scsi_autopm_get_target(
struct scsi_target *
t) {}
162 static inline void scsi_autopm_put_target(
struct scsi_target *
t) {}
163 static inline int scsi_autopm_get_host(
struct Scsi_Host *
h) {
return 0; }
164 static inline void scsi_autopm_put_host(
struct Scsi_Host *
h) {}
174 #define SCSI_DEVICE_BLOCK_MAX_TIMEOUT 600