diff options
Diffstat (limited to 'drivers/ata/libata.h')
-rw-r--r-- | drivers/ata/libata.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/drivers/ata/libata.h b/drivers/ata/libata.h index 7148a58020b9..c949dd311b2e 100644 --- a/drivers/ata/libata.h +++ b/drivers/ata/libata.h | |||
@@ -182,6 +182,9 @@ extern void ata_eh_finish(struct ata_port *ap); | |||
182 | extern int ata_ering_map(struct ata_ering *ering, | 182 | extern int ata_ering_map(struct ata_ering *ering, |
183 | int (*map_fn)(struct ata_ering_entry *, void *), | 183 | int (*map_fn)(struct ata_ering_entry *, void *), |
184 | void *arg); | 184 | void *arg); |
185 | extern unsigned int atapi_eh_tur(struct ata_device *dev, u8 *r_sense_key); | ||
186 | extern unsigned int atapi_eh_request_sense(struct ata_device *dev, | ||
187 | u8 *sense_buf, u8 dfl_sense_key); | ||
185 | 188 | ||
186 | /* libata-pmp.c */ | 189 | /* libata-pmp.c */ |
187 | #ifdef CONFIG_SATA_PMP | 190 | #ifdef CONFIG_SATA_PMP |
@@ -230,4 +233,28 @@ static inline void ata_sff_exit(void) | |||
230 | { } | 233 | { } |
231 | #endif /* CONFIG_ATA_SFF */ | 234 | #endif /* CONFIG_ATA_SFF */ |
232 | 235 | ||
236 | /* libata-zpodd.c */ | ||
237 | #ifdef CONFIG_SATA_ZPODD | ||
238 | void zpodd_init(struct ata_device *dev); | ||
239 | void zpodd_exit(struct ata_device *dev); | ||
240 | static inline bool zpodd_dev_enabled(struct ata_device *dev) | ||
241 | { | ||
242 | return dev->zpodd != NULL; | ||
243 | } | ||
244 | void zpodd_on_suspend(struct ata_device *dev); | ||
245 | bool zpodd_zpready(struct ata_device *dev); | ||
246 | void zpodd_enable_run_wake(struct ata_device *dev); | ||
247 | void zpodd_disable_run_wake(struct ata_device *dev); | ||
248 | void zpodd_post_poweron(struct ata_device *dev); | ||
249 | #else /* CONFIG_SATA_ZPODD */ | ||
250 | static inline void zpodd_init(struct ata_device *dev) {} | ||
251 | static inline void zpodd_exit(struct ata_device *dev) {} | ||
252 | static inline bool zpodd_dev_enabled(struct ata_device *dev) { return false; } | ||
253 | static inline void zpodd_on_suspend(struct ata_device *dev) {} | ||
254 | static inline bool zpodd_zpready(struct ata_device *dev) { return false; } | ||
255 | static inline void zpodd_enable_run_wake(struct ata_device *dev) {} | ||
256 | static inline void zpodd_disable_run_wake(struct ata_device *dev) {} | ||
257 | static inline void zpodd_post_poweron(struct ata_device *dev) {} | ||
258 | #endif /* CONFIG_SATA_ZPODD */ | ||
259 | |||
233 | #endif /* __LIBATA_H__ */ | 260 | #endif /* __LIBATA_H__ */ |