diff options
Diffstat (limited to 'drivers/scsi/scsi_priv.h')
-rw-r--r-- | drivers/scsi/scsi_priv.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_priv.h b/drivers/scsi/scsi_priv.h index 1fbf7c78bba0..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; |
@@ -144,6 +145,24 @@ static inline void scsi_netlink_init(void) {} | |||
144 | static inline void scsi_netlink_exit(void) {} | 145 | static inline void scsi_netlink_exit(void) {} |
145 | #endif | 146 | #endif |
146 | 147 | ||
148 | /* scsi_pm.c */ | ||
149 | #ifdef CONFIG_PM_OPS | ||
150 | extern const struct dev_pm_ops scsi_bus_pm_ops; | ||
151 | #else /* CONFIG_PM_OPS */ | ||
152 | #define scsi_bus_pm_ops (*NULL) | ||
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 */ | ||
165 | |||
147 | /* | 166 | /* |
148 | * internal scsi timeout functions: for use by mid-layer and transport | 167 | * internal scsi timeout functions: for use by mid-layer and transport |
149 | * classes. | 168 | * classes. |