diff options
Diffstat (limited to 'drivers/ata/libata.h')
-rw-r--r-- | drivers/ata/libata.h | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/drivers/ata/libata.h b/drivers/ata/libata.h index 823e63096362..4b84ed60324a 100644 --- a/drivers/ata/libata.h +++ b/drivers/ata/libata.h | |||
@@ -38,17 +38,6 @@ struct ata_scsi_args { | |||
38 | void (*done)(struct scsi_cmnd *); | 38 | void (*done)(struct scsi_cmnd *); |
39 | }; | 39 | }; |
40 | 40 | ||
41 | static inline int ata_is_builtin_hardreset(ata_reset_fn_t reset) | ||
42 | { | ||
43 | if (reset == sata_std_hardreset) | ||
44 | return 1; | ||
45 | #ifdef CONFIG_ATA_SFF | ||
46 | if (reset == sata_sff_hardreset) | ||
47 | return 1; | ||
48 | #endif | ||
49 | return 0; | ||
50 | } | ||
51 | |||
52 | /* libata-core.c */ | 41 | /* libata-core.c */ |
53 | enum { | 42 | enum { |
54 | /* flags for ata_dev_read_id() */ | 43 | /* flags for ata_dev_read_id() */ |
@@ -79,7 +68,6 @@ extern int ata_build_rw_tf(struct ata_taskfile *tf, struct ata_device *dev, | |||
79 | u64 block, u32 n_block, unsigned int tf_flags, | 68 | u64 block, u32 n_block, unsigned int tf_flags, |
80 | unsigned int tag); | 69 | unsigned int tag); |
81 | extern u64 ata_tf_read_block(struct ata_taskfile *tf, struct ata_device *dev); | 70 | extern u64 ata_tf_read_block(struct ata_taskfile *tf, struct ata_device *dev); |
82 | extern void ata_port_flush_task(struct ata_port *ap); | ||
83 | extern unsigned ata_exec_internal(struct ata_device *dev, | 71 | extern unsigned ata_exec_internal(struct ata_device *dev, |
84 | struct ata_taskfile *tf, const u8 *cdb, | 72 | struct ata_taskfile *tf, const u8 *cdb, |
85 | int dma_dir, void *buf, unsigned int buflen, | 73 | int dma_dir, void *buf, unsigned int buflen, |
@@ -202,10 +190,19 @@ static inline int sata_pmp_attach(struct ata_device *dev) | |||
202 | 190 | ||
203 | /* libata-sff.c */ | 191 | /* libata-sff.c */ |
204 | #ifdef CONFIG_ATA_SFF | 192 | #ifdef CONFIG_ATA_SFF |
205 | extern void ata_dev_select(struct ata_port *ap, unsigned int device, | 193 | extern void ata_sff_flush_pio_task(struct ata_port *ap); |
206 | unsigned int wait, unsigned int can_sleep); | 194 | extern void ata_sff_port_init(struct ata_port *ap); |
207 | extern u8 ata_irq_on(struct ata_port *ap); | 195 | extern int ata_sff_init(void); |
208 | extern void ata_pio_task(struct work_struct *work); | 196 | extern void ata_sff_exit(void); |
197 | #else /* CONFIG_ATA_SFF */ | ||
198 | static inline void ata_sff_flush_pio_task(struct ata_port *ap) | ||
199 | { } | ||
200 | static inline void ata_sff_port_init(struct ata_port *ap) | ||
201 | { } | ||
202 | static inline int ata_sff_init(void) | ||
203 | { return 0; } | ||
204 | static inline void ata_sff_exit(void) | ||
205 | { } | ||
209 | #endif /* CONFIG_ATA_SFF */ | 206 | #endif /* CONFIG_ATA_SFF */ |
210 | 207 | ||
211 | #endif /* __LIBATA_H__ */ | 208 | #endif /* __LIBATA_H__ */ |