aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-timing.h
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-16 14:33:36 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-16 14:33:36 -0400
commit3be53f3f213223f50d8e29b5e1869685bf040a1e (patch)
treeb87de30d2d63e67ebd15236618de2d70c68a74cf /drivers/ide/ide-timing.h
parent71d5161426c26742ba053fe93637559cbe2cea37 (diff)
ide: move some bits from ide-timing.h to <linux/ide.h>
Move struct ide_timing and IDE_TIMING_* defines to <linux/ide.h> from drivers/ide/ide-timing.h. While at it: - use u8/u16 instead of short for struct ide_timing fields - use enum for IDE_TIMING_* There should be no functional changes caused by this patch. Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-timing.h')
-rw-r--r--drivers/ide/ide-timing.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/ide/ide-timing.h b/drivers/ide/ide-timing.h
index ebe884d76881..724879910ac8 100644
--- a/drivers/ide/ide-timing.h
+++ b/drivers/ide/ide-timing.h
@@ -28,18 +28,6 @@
28#include <linux/kernel.h> 28#include <linux/kernel.h>
29#include <linux/hdreg.h> 29#include <linux/hdreg.h>
30 30
31struct ide_timing {
32 u8 mode;
33 short setup; /* t1 */
34 short act8b; /* t2 for 8-bit io */
35 short rec8b; /* t2i for 8-bit io */
36 short cyc8b; /* t0 for 8-bit io */
37 short active; /* t2 or tD */
38 short recover; /* t2i or tK */
39 short cycle; /* t0 */
40 short udma; /* t2CYCTYP/2 */
41};
42
43/* 31/*
44 * PIO 0-5, MWDMA 0-2 and UDMA 0-6 timings (in nanoseconds). 32 * PIO 0-5, MWDMA 0-2 and UDMA 0-6 timings (in nanoseconds).
45 * These were taken from ATA/ATAPI-6 standard, rev 0a, except 33 * These were taken from ATA/ATAPI-6 standard, rev 0a, except
@@ -79,17 +67,6 @@ static struct ide_timing ide_timing[] = {
79 { 0xff } 67 { 0xff }
80}; 68};
81 69
82#define IDE_TIMING_SETUP 0x01
83#define IDE_TIMING_ACT8B 0x02
84#define IDE_TIMING_REC8B 0x04
85#define IDE_TIMING_CYC8B 0x08
86#define IDE_TIMING_8BIT 0x0e
87#define IDE_TIMING_ACTIVE 0x10
88#define IDE_TIMING_RECOVER 0x20
89#define IDE_TIMING_CYCLE 0x40
90#define IDE_TIMING_UDMA 0x80
91#define IDE_TIMING_ALL 0xff
92
93#define ENOUGH(v,unit) (((v)-1)/(unit)+1) 70#define ENOUGH(v,unit) (((v)-1)/(unit)+1)
94#define EZ(v,unit) ((v)?ENOUGH(v,unit):0) 71#define EZ(v,unit) ((v)?ENOUGH(v,unit):0)
95 72