diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-25 16:17:07 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-25 16:17:07 -0500 |
commit | 9a3c49be5c5f7388eefb712be9a383904140532e (patch) | |
tree | 5dc16604e155dcc6c14e65dc3cfce8605f2c8f82 /drivers/ide/ide-taskfile.c | |
parent | 9e42237f26cf517a3f682505f03a3a8d89b3b35d (diff) |
ide: add ide_no_data_taskfile() helper
* Add ide_no_data_taskfile() helper and convert ide_raw_taskfile() w/ NO DATA
protocol users to use it instead.
* Set ->data_phase explicitly in ide_no_data_taskfile()
(TASKFILE_NO_DATA is defined as 0x0000).
* Unexport task_no_data_intr().
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-taskfile.c')
-rw-r--r-- | drivers/ide/ide-taskfile.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/ide/ide-taskfile.c b/drivers/ide/ide-taskfile.c index a79150e6be07..7cb674f81315 100644 --- a/drivers/ide/ide-taskfile.c +++ b/drivers/ide/ide-taskfile.c | |||
@@ -229,8 +229,6 @@ ide_startstop_t task_no_data_intr (ide_drive_t *drive) | |||
229 | return ide_stopped; | 229 | return ide_stopped; |
230 | } | 230 | } |
231 | 231 | ||
232 | EXPORT_SYMBOL(task_no_data_intr); | ||
233 | |||
234 | static u8 wait_drive_not_busy(ide_drive_t *drive) | 232 | static u8 wait_drive_not_busy(ide_drive_t *drive) |
235 | { | 233 | { |
236 | ide_hwif_t *hwif = HWIF(drive); | 234 | ide_hwif_t *hwif = HWIF(drive); |
@@ -524,6 +522,16 @@ int ide_raw_taskfile (ide_drive_t *drive, ide_task_t *args, u8 *buf) | |||
524 | 522 | ||
525 | EXPORT_SYMBOL(ide_raw_taskfile); | 523 | EXPORT_SYMBOL(ide_raw_taskfile); |
526 | 524 | ||
525 | int ide_no_data_taskfile(ide_drive_t *drive, ide_task_t *task) | ||
526 | { | ||
527 | task->command_type = IDE_DRIVE_TASK_NO_DATA; | ||
528 | task->data_phase = TASKFILE_NO_DATA; | ||
529 | task->handler = task_no_data_intr; | ||
530 | |||
531 | return ide_raw_taskfile(drive, task, NULL); | ||
532 | } | ||
533 | EXPORT_SYMBOL_GPL(ide_no_data_taskfile); | ||
534 | |||
527 | #ifdef CONFIG_IDE_TASK_IOCTL | 535 | #ifdef CONFIG_IDE_TASK_IOCTL |
528 | int ide_taskfile_ioctl (ide_drive_t *drive, unsigned int cmd, unsigned long arg) | 536 | int ide_taskfile_ioctl (ide_drive_t *drive, unsigned int cmd, unsigned long arg) |
529 | { | 537 | { |