aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-13 15:39:32 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-13 15:39:32 -0400
commitbaf08f0be6d986521bb2fbdc7af51fc4847da734 (patch)
tree5ac765703ad79edeafc6eec39fe42850bd6b5dc6 /include
parentaa5d2de7b080873f6d9ac3aede423c9713bf0caa (diff)
ide: make ide_transfer_pc() static
* Move ->ticks field from struct ide_floppy_obj to ide_drive_t. * Move idefloppy_transfer_pc() to ide-atapi.c and make ide_transfer_pc() use it. * Always use ide_transfer_pc as a handler in ide_issue_pc(). * Remove no longer used idefloppy_start_pc_transfer(), ide*_transfer_pc() and 'handler' argument from ide_issue_pc(). * Make ide_transfer_pc() static. While at it: * idefloppy_transfer_pc() -> ide_delayed_transfer_pc() * IDEFLOPPY_TICKS_DELAY -> IDEFLOPPY_PC_DELAY * ->ticks -> ->pc_delay There should be no functional changes caused by this patch. Cc: Borislav Petkov <petkovbb@gmail.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ide.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 449a1094700f..85cb96c1fd61 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -531,6 +531,9 @@ struct ide_drive_s {
531 u8 bios_head; /* BIOS/fdisk/LILO number of heads */ 531 u8 bios_head; /* BIOS/fdisk/LILO number of heads */
532 u8 bios_sect; /* BIOS/fdisk/LILO sectors per track */ 532 u8 bios_sect; /* BIOS/fdisk/LILO sectors per track */
533 533
534 /* delay this long before sending packet command */
535 u8 pc_delay;
536
534 unsigned int bios_cyl; /* BIOS/fdisk/LILO number of cyls */ 537 unsigned int bios_cyl; /* BIOS/fdisk/LILO number of cyls */
535 unsigned int cyl; /* "real" number of cyls */ 538 unsigned int cyl; /* "real" number of cyls */
536 unsigned int drive_data; /* used by set_pio_mode/selectproc */ 539 unsigned int drive_data; /* used by set_pio_mode/selectproc */
@@ -1188,9 +1191,7 @@ static inline unsigned long ide_scsi_get_timeout(struct ide_atapi_pc *pc)
1188 1191
1189int ide_scsi_expiry(ide_drive_t *); 1192int ide_scsi_expiry(ide_drive_t *);
1190 1193
1191ide_startstop_t ide_transfer_pc(ide_drive_t *, unsigned int, ide_expiry_t *); 1194ide_startstop_t ide_issue_pc(ide_drive_t *, unsigned int, ide_expiry_t *);
1192ide_startstop_t ide_issue_pc(ide_drive_t *,
1193 ide_handler_t *, unsigned int, ide_expiry_t *);
1194 1195
1195ide_startstop_t do_rw_taskfile(ide_drive_t *, ide_task_t *); 1196ide_startstop_t do_rw_taskfile(ide_drive_t *, ide_task_t *);
1196 1197