diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-02-16 20:40:25 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-02-16 20:40:25 -0500 |
commit | 0ecdca26e556eae9668ce6de9554757dddb942ef (patch) | |
tree | 21d62c01d0c0d5aeea2524252ed8dec6ca20b6d4 /drivers/ide/ide-dma.c | |
parent | 7569e8dc2213ecc47024ea5edbadc8736487d926 (diff) |
ide: use PIO/MMIO operations directly where possible (v2)
This results in smaller/faster/simpler code and allows future optimizations.
Also remove no longer needed ide[_mm]_{inl,outl}() and ide_hwif_t.{INL,OUTL}.
v2:
* updated for scc_pata
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-dma.c')
-rw-r--r-- | drivers/ide/ide-dma.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c index 941846c21624..b7b663ee7343 100644 --- a/drivers/ide/ide-dma.c +++ b/drivers/ide/ide-dma.c | |||
@@ -565,7 +565,10 @@ int ide_dma_setup(ide_drive_t *drive) | |||
565 | } | 565 | } |
566 | 566 | ||
567 | /* PRD table */ | 567 | /* PRD table */ |
568 | hwif->OUTL(hwif->dmatable_dma, hwif->dma_prdtable); | 568 | if (hwif->mmio == 2) |
569 | writel(hwif->dmatable_dma, (void __iomem *)hwif->dma_prdtable); | ||
570 | else | ||
571 | outl(hwif->dmatable_dma, hwif->dma_prdtable); | ||
569 | 572 | ||
570 | /* specify r/w */ | 573 | /* specify r/w */ |
571 | hwif->OUTB(reading, hwif->dma_command); | 574 | hwif->OUTB(reading, hwif->dma_command); |