diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-25 16:17:13 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-25 16:17:13 -0500 |
commit | 2fc573881957337c4ea1c84b92d2f27d076cad57 (patch) | |
tree | 790726063934a7ea8c384f2314d44bc03b22f779 /drivers/scsi/ide-scsi.c | |
parent | 932aead6d21b631b2058255981824008a6eae32e (diff) |
ide: add ide_pktcmd_tf_load() helper
Add ide_pktcmd_tf_load() helper and convert ATAPI device drivers to use it.
There should be no functionality 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/scsi/ide-scsi.c')
-rw-r--r-- | drivers/scsi/ide-scsi.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/scsi/ide-scsi.c b/drivers/scsi/ide-scsi.c index 76f0ccd2968b..02e91893064d 100644 --- a/drivers/scsi/ide-scsi.c +++ b/drivers/scsi/ide-scsi.c | |||
@@ -590,12 +590,8 @@ static ide_startstop_t idescsi_issue_pc (ide_drive_t *drive, idescsi_pc_t *pc) | |||
590 | } | 590 | } |
591 | 591 | ||
592 | SELECT_DRIVE(drive); | 592 | SELECT_DRIVE(drive); |
593 | if (IDE_CONTROL_REG) | ||
594 | HWIF(drive)->OUTB(drive->ctl, IDE_CONTROL_REG); | ||
595 | 593 | ||
596 | hwif->OUTB(dma, IDE_FEATURE_REG); | 594 | ide_pktcmd_tf_load(drive, IDE_TFLAG_NO_SELECT_MASK, bcount, dma); |
597 | hwif->OUTB(bcount & 0xff, IDE_BCOUNTL_REG); | ||
598 | hwif->OUTB((bcount >> 8) & 0xff, IDE_BCOUNTH_REG); | ||
599 | 595 | ||
600 | if (dma) | 596 | if (dma) |
601 | set_bit(PC_DMA_OK, &pc->flags); | 597 | set_bit(PC_DMA_OK, &pc->flags); |