aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-16 14:33:37 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-16 14:33:37 -0400
commitf06ab3402aa2d6de060442c1053ea10b24b65076 (patch)
tree400f7ff5a79e75b82a7ba0daaf669f5d38f7c679 /include
parent2c139e7a7152f66ff93b173f8770c94ea53a691e (diff)
ide: convert ide-timing.h to ide-timings.c library (take 2)
* Don't include ide-timing.h in cs5535 and sis5513 host drivers (they don't need it currently). * Convert ide-timing.h to ide-timings.c library and add CONFIG_IDE_TIMINGS config option to be selected by host drivers using the library. While at it: - fix ide_timing_find_mode() placement v2: * Add missing EXPORT_SYMBOLs. (Stephen Rothwell <sfr@canb.auug.org.au>) There should be no functional changes caused by this patch. Cc: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ide.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 81c6ea436beb..057001f6b1dc 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -1299,6 +1299,11 @@ enum {
1299 IDE_TIMING_CYCLE | IDE_TIMING_UDMA, 1299 IDE_TIMING_CYCLE | IDE_TIMING_UDMA,
1300}; 1300};
1301 1301
1302struct ide_timing *ide_timing_find_mode(u8);
1303void ide_timing_merge(struct ide_timing *, struct ide_timing *,
1304 struct ide_timing *, unsigned int);
1305int ide_timing_compute(ide_drive_t *, u8, struct ide_timing *, int, int);
1306
1302typedef struct ide_pio_timings_s { 1307typedef struct ide_pio_timings_s {
1303 int setup_time; /* Address setup (ns) minimum */ 1308 int setup_time; /* Address setup (ns) minimum */
1304 int active_time; /* Active pulse (ns) minimum */ 1309 int active_time; /* Active pulse (ns) minimum */