summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <b.zolnierkiewicz@elka.pw.edu.pl>2003-08-30 22:17:02 -0700
committerLinus Torvalds <torvalds@home.osdl.org>2003-08-30 22:17:02 -0700
commit278db3a7af9d4150ce9c06a9f483b4c9782f4490 (patch)
treeab2881b0724a46c226c153ee6f81d4861b7deb8d /include/linux
parenta64e02a655ee3787ff807b4a526ae14494eb62ff (diff)
[PATCH] kill ide_modes.h
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ide.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index a3ee36b438ca..9dc2f6afa095 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -1794,6 +1794,24 @@ extern char *ide_xfer_verbose(u8 xfer_rate);
extern void ide_toggle_bounce(ide_drive_t *drive, int on);
extern int ide_set_xfer_rate(ide_drive_t *drive, u8 rate);
+typedef struct ide_pio_timings_s {
+ int setup_time; /* Address setup (ns) minimum */
+ int active_time; /* Active pulse (ns) minimum */
+ int cycle_time; /* Cycle time (ns) minimum = (setup + active + recovery) */
+} ide_pio_timings_t;
+
+typedef struct ide_pio_data_s {
+ u8 pio_mode;
+ u8 use_iordy;
+ u8 overridden;
+ u8 blacklisted;
+ unsigned int cycle_time;
+} ide_pio_data_t;
+
+extern u8 ide_get_best_pio_mode (ide_drive_t *drive, u8 mode_wanted, u8 max_mode, ide_pio_data_t *d);
+extern const ide_pio_timings_t ide_pio_timings[6];
+
+
extern spinlock_t ide_lock;
extern struct semaphore ide_cfg_sem;
/*