aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-11-27 05:43:39 -0500
committerJeff Garzik <jeff@garzik.org>2008-01-23 05:24:11 -0500
commit6357357cae7794dcb89cace758108dec612e7ed5 (patch)
tree6fc39d16ff795f34b4f8a987966fd5195b1d9039 /include
parentf8ab6d8e15a9b978f79aee794c263014c2959dfc (diff)
libata: export xfermode / PATA timing related functions
Export the following xfermode related functions. * ata_pack_xfermask() * ata_unpack_xfermask() * ata_xfer_mask2mode() * ata_xfer_mode2mask() * ata_xfer_mode2shift() * ata_mode_string() * ata_id_xfermask() * ata_timing_find_mode() These functions will be used later by LLD updates. While at it, change unsigned short @speed to u8 @xfer_mode in ata_timing_find_mode() for consistency. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/libata.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 131fb6625e14..083dd77b120d 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -851,6 +851,15 @@ extern void ata_tf_read(struct ata_port *ap, struct ata_taskfile *tf);
851extern void ata_tf_to_fis(const struct ata_taskfile *tf, 851extern void ata_tf_to_fis(const struct ata_taskfile *tf,
852 u8 pmp, int is_cmd, u8 *fis); 852 u8 pmp, int is_cmd, u8 *fis);
853extern void ata_tf_from_fis(const u8 *fis, struct ata_taskfile *tf); 853extern void ata_tf_from_fis(const u8 *fis, struct ata_taskfile *tf);
854extern unsigned int ata_pack_xfermask(unsigned int pio_mask,
855 unsigned int mwdma_mask, unsigned int udma_mask);
856extern void ata_unpack_xfermask(unsigned int xfer_mask, unsigned int *pio_mask,
857 unsigned int *mwdma_mask, unsigned int *udma_mask);
858extern u8 ata_xfer_mask2mode(unsigned int xfer_mask);
859extern unsigned int ata_xfer_mode2mask(u8 xfer_mode);
860extern int ata_xfer_mode2shift(unsigned int xfer_mode);
861extern const char *ata_mode_string(unsigned int xfer_mask);
862extern unsigned int ata_id_xfermask(const u16 *id);
854extern void ata_noop_dev_select(struct ata_port *ap, unsigned int device); 863extern void ata_noop_dev_select(struct ata_port *ap, unsigned int device);
855extern void ata_std_dev_select(struct ata_port *ap, unsigned int device); 864extern void ata_std_dev_select(struct ata_port *ap, unsigned int device);
856extern u8 ata_check_status(struct ata_port *ap); 865extern u8 ata_check_status(struct ata_port *ap);
@@ -920,6 +929,7 @@ extern int ata_cable_unknown(struct ata_port *ap);
920 */ 929 */
921 930
922extern unsigned int ata_pio_need_iordy(const struct ata_device *); 931extern unsigned int ata_pio_need_iordy(const struct ata_device *);
932extern const struct ata_timing *ata_timing_find_mode(u8 xfer_mode);
923extern int ata_timing_compute(struct ata_device *, unsigned short, 933extern int ata_timing_compute(struct ata_device *, unsigned short,
924 struct ata_timing *, int, int); 934 struct ata_timing *, int, int);
925extern void ata_timing_merge(const struct ata_timing *, 935extern void ata_timing_merge(const struct ata_timing *,