diff options
Diffstat (limited to 'drivers/scsi/scsi_priv.h')
-rw-r--r-- | drivers/scsi/scsi_priv.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_priv.h b/drivers/scsi/scsi_priv.h index dddacc732550..026295e2c539 100644 --- a/drivers/scsi/scsi_priv.h +++ b/drivers/scsi/scsi_priv.h | |||
@@ -7,6 +7,7 @@ struct request_queue; | |||
7 | struct request; | 7 | struct request; |
8 | struct scsi_cmnd; | 8 | struct scsi_cmnd; |
9 | struct scsi_device; | 9 | struct scsi_device; |
10 | struct scsi_target; | ||
10 | struct scsi_host_template; | 11 | struct scsi_host_template; |
11 | struct Scsi_Host; | 12 | struct Scsi_Host; |
12 | struct scsi_nl_hdr; | 13 | struct scsi_nl_hdr; |
@@ -147,9 +148,20 @@ static inline void scsi_netlink_exit(void) {} | |||
147 | /* scsi_pm.c */ | 148 | /* scsi_pm.c */ |
148 | #ifdef CONFIG_PM_OPS | 149 | #ifdef CONFIG_PM_OPS |
149 | extern const struct dev_pm_ops scsi_bus_pm_ops; | 150 | extern const struct dev_pm_ops scsi_bus_pm_ops; |
150 | #else | 151 | #else /* CONFIG_PM_OPS */ |
151 | #define scsi_bus_pm_ops (*NULL) | 152 | #define scsi_bus_pm_ops (*NULL) |
152 | #endif | 153 | #endif |
154 | #ifdef CONFIG_PM_RUNTIME | ||
155 | extern void scsi_autopm_get_target(struct scsi_target *); | ||
156 | extern void scsi_autopm_put_target(struct scsi_target *); | ||
157 | extern int scsi_autopm_get_host(struct Scsi_Host *); | ||
158 | extern void scsi_autopm_put_host(struct Scsi_Host *); | ||
159 | #else | ||
160 | static inline void scsi_autopm_get_target(struct scsi_target *t) {} | ||
161 | static inline void scsi_autopm_put_target(struct scsi_target *t) {} | ||
162 | static inline int scsi_autopm_get_host(struct Scsi_Host *h) { return 0; } | ||
163 | static inline void scsi_autopm_put_host(struct Scsi_Host *h) {} | ||
164 | #endif /* CONFIG_PM_RUNTIME */ | ||
153 | 165 | ||
154 | /* | 166 | /* |
155 | * internal scsi timeout functions: for use by mid-layer and transport | 167 | * internal scsi timeout functions: for use by mid-layer and transport |