diff options
Diffstat (limited to 'drivers/ata/libata.h')
-rw-r--r-- | drivers/ata/libata.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/ata/libata.h b/drivers/ata/libata.h index bbe59c2fd1e2..409ffb9af163 100644 --- a/drivers/ata/libata.h +++ b/drivers/ata/libata.h | |||
@@ -60,6 +60,7 @@ extern int atapi_dmadir; | |||
60 | extern int atapi_passthru16; | 60 | extern int atapi_passthru16; |
61 | extern int libata_fua; | 61 | extern int libata_fua; |
62 | extern int libata_noacpi; | 62 | extern int libata_noacpi; |
63 | extern int libata_allow_tpm; | ||
63 | extern struct ata_queued_cmd *ata_qc_new_init(struct ata_device *dev); | 64 | extern struct ata_queued_cmd *ata_qc_new_init(struct ata_device *dev); |
64 | extern int ata_build_rw_tf(struct ata_taskfile *tf, struct ata_device *dev, | 65 | extern int ata_build_rw_tf(struct ata_taskfile *tf, struct ata_device *dev, |
65 | u64 block, u32 n_block, unsigned int tf_flags, | 66 | u64 block, u32 n_block, unsigned int tf_flags, |
@@ -85,7 +86,6 @@ extern int ata_dev_configure(struct ata_device *dev); | |||
85 | extern int sata_down_spd_limit(struct ata_link *link); | 86 | extern int sata_down_spd_limit(struct ata_link *link); |
86 | extern int sata_set_spd_needed(struct ata_link *link); | 87 | extern int sata_set_spd_needed(struct ata_link *link); |
87 | extern int ata_down_xfermask_limit(struct ata_device *dev, unsigned int sel); | 88 | extern int ata_down_xfermask_limit(struct ata_device *dev, unsigned int sel); |
88 | extern int ata_set_mode(struct ata_link *link, struct ata_device **r_failed_dev); | ||
89 | extern void ata_sg_clean(struct ata_queued_cmd *qc); | 89 | extern void ata_sg_clean(struct ata_queued_cmd *qc); |
90 | extern void ata_qc_free(struct ata_queued_cmd *qc); | 90 | extern void ata_qc_free(struct ata_queued_cmd *qc); |
91 | extern void ata_qc_issue(struct ata_queued_cmd *qc); | 91 | extern void ata_qc_issue(struct ata_queued_cmd *qc); |
@@ -113,6 +113,7 @@ extern int ata_acpi_on_suspend(struct ata_port *ap); | |||
113 | extern void ata_acpi_on_resume(struct ata_port *ap); | 113 | extern void ata_acpi_on_resume(struct ata_port *ap); |
114 | extern int ata_acpi_on_devcfg(struct ata_device *dev); | 114 | extern int ata_acpi_on_devcfg(struct ata_device *dev); |
115 | extern void ata_acpi_on_disable(struct ata_device *dev); | 115 | extern void ata_acpi_on_disable(struct ata_device *dev); |
116 | extern void ata_acpi_set_state(struct ata_port *ap, pm_message_t state); | ||
116 | #else | 117 | #else |
117 | static inline void ata_acpi_associate_sata_port(struct ata_port *ap) { } | 118 | static inline void ata_acpi_associate_sata_port(struct ata_port *ap) { } |
118 | static inline void ata_acpi_associate(struct ata_host *host) { } | 119 | static inline void ata_acpi_associate(struct ata_host *host) { } |
@@ -121,6 +122,8 @@ static inline int ata_acpi_on_suspend(struct ata_port *ap) { return 0; } | |||
121 | static inline void ata_acpi_on_resume(struct ata_port *ap) { } | 122 | static inline void ata_acpi_on_resume(struct ata_port *ap) { } |
122 | static inline int ata_acpi_on_devcfg(struct ata_device *dev) { return 0; } | 123 | static inline int ata_acpi_on_devcfg(struct ata_device *dev) { return 0; } |
123 | static inline void ata_acpi_on_disable(struct ata_device *dev) { } | 124 | static inline void ata_acpi_on_disable(struct ata_device *dev) { } |
125 | static inline void ata_acpi_set_state(struct ata_port *ap, | ||
126 | pm_message_t state) { } | ||
124 | #endif | 127 | #endif |
125 | 128 | ||
126 | /* libata-scsi.c */ | 129 | /* libata-scsi.c */ |
@@ -183,6 +186,7 @@ extern void ata_eh_report(struct ata_port *ap); | |||
183 | extern int ata_eh_reset(struct ata_link *link, int classify, | 186 | extern int ata_eh_reset(struct ata_link *link, int classify, |
184 | ata_prereset_fn_t prereset, ata_reset_fn_t softreset, | 187 | ata_prereset_fn_t prereset, ata_reset_fn_t softreset, |
185 | ata_reset_fn_t hardreset, ata_postreset_fn_t postreset); | 188 | ata_reset_fn_t hardreset, ata_postreset_fn_t postreset); |
189 | extern int ata_set_mode(struct ata_link *link, struct ata_device **r_failed_dev); | ||
186 | extern int ata_eh_recover(struct ata_port *ap, ata_prereset_fn_t prereset, | 190 | extern int ata_eh_recover(struct ata_port *ap, ata_prereset_fn_t prereset, |
187 | ata_reset_fn_t softreset, ata_reset_fn_t hardreset, | 191 | ata_reset_fn_t softreset, ata_reset_fn_t hardreset, |
188 | ata_postreset_fn_t postreset, | 192 | ata_postreset_fn_t postreset, |