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/pci/pdc202xx_new.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/pci/pdc202xx_new.c')
-rw-r--r-- | drivers/ide/pci/pdc202xx_new.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ide/pci/pdc202xx_new.c b/drivers/ide/pci/pdc202xx_new.c index b13a06c5cb2d..32f37e4c1292 100644 --- a/drivers/ide/pci/pdc202xx_new.c +++ b/drivers/ide/pci/pdc202xx_new.c | |||
@@ -101,8 +101,8 @@ static u8 get_indexed_reg(ide_hwif_t *hwif, u8 index) | |||
101 | { | 101 | { |
102 | u8 value; | 102 | u8 value; |
103 | 103 | ||
104 | hwif->OUTB(index, hwif->dma_vendor1); | 104 | outb(index, hwif->dma_vendor1); |
105 | value = hwif->INB(hwif->dma_vendor3); | 105 | value = inb(hwif->dma_vendor3); |
106 | 106 | ||
107 | DBG("index[%02X] value[%02X]\n", index, value); | 107 | DBG("index[%02X] value[%02X]\n", index, value); |
108 | return value; | 108 | return value; |
@@ -115,8 +115,8 @@ static u8 get_indexed_reg(ide_hwif_t *hwif, u8 index) | |||
115 | */ | 115 | */ |
116 | static void set_indexed_reg(ide_hwif_t *hwif, u8 index, u8 value) | 116 | static void set_indexed_reg(ide_hwif_t *hwif, u8 index, u8 value) |
117 | { | 117 | { |
118 | hwif->OUTB(index, hwif->dma_vendor1); | 118 | outb(index, hwif->dma_vendor1); |
119 | hwif->OUTB(value, hwif->dma_vendor3); | 119 | outb(value, hwif->dma_vendor3); |
120 | DBG("index[%02X] value[%02X]\n", index, value); | 120 | DBG("index[%02X] value[%02X]\n", index, value); |
121 | } | 121 | } |
122 | 122 | ||