diff options
Diffstat (limited to 'drivers/ata/libata.h')
-rw-r--r-- | drivers/ata/libata.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/ata/libata.h b/drivers/ata/libata.h index 42b30e38495d..4aeeabb10a47 100644 --- a/drivers/ata/libata.h +++ b/drivers/ata/libata.h | |||
@@ -203,9 +203,26 @@ extern int ata_eh_recover(struct ata_port *ap, ata_prereset_fn_t prereset, | |||
203 | extern void ata_eh_finish(struct ata_port *ap); | 203 | extern void ata_eh_finish(struct ata_port *ap); |
204 | 204 | ||
205 | /* libata-pmp.c */ | 205 | /* libata-pmp.c */ |
206 | #ifdef CONFIG_SATA_PMP | ||
206 | extern int sata_pmp_scr_read(struct ata_link *link, int reg, u32 *val); | 207 | extern int sata_pmp_scr_read(struct ata_link *link, int reg, u32 *val); |
207 | extern int sata_pmp_scr_write(struct ata_link *link, int reg, u32 val); | 208 | extern int sata_pmp_scr_write(struct ata_link *link, int reg, u32 val); |
208 | extern int sata_pmp_attach(struct ata_device *dev); | 209 | extern int sata_pmp_attach(struct ata_device *dev); |
210 | #else /* CONFIG_SATA_PMP */ | ||
211 | static inline int sata_pmp_scr_read(struct ata_link *link, int reg, u32 *val) | ||
212 | { | ||
213 | return -EINVAL; | ||
214 | } | ||
215 | |||
216 | static inline int sata_pmp_scr_write(struct ata_link *link, int reg, u32 val) | ||
217 | { | ||
218 | return -EINVAL; | ||
219 | } | ||
220 | |||
221 | static inline int sata_pmp_attach(struct ata_device *dev) | ||
222 | { | ||
223 | return -EINVAL; | ||
224 | } | ||
225 | #endif /* CONFIG_SATA_PMP */ | ||
209 | 226 | ||
210 | /* libata-sff.c */ | 227 | /* libata-sff.c */ |
211 | #ifdef CONFIG_ATA_SFF | 228 | #ifdef CONFIG_ATA_SFF |