diff options
Diffstat (limited to 'drivers/ide/ide-iops.c')
-rw-r--r-- | drivers/ide/ide-iops.c | 34 |
1 files changed, 5 insertions, 29 deletions
diff --git a/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c index badde6331775..c67b3b1e6f4c 100644 --- a/drivers/ide/ide-iops.c +++ b/drivers/ide/ide-iops.c | |||
@@ -49,11 +49,6 @@ static void ide_insw (unsigned long port, void *addr, u32 count) | |||
49 | insw(port, addr, count); | 49 | insw(port, addr, count); |
50 | } | 50 | } |
51 | 51 | ||
52 | static u32 ide_inl (unsigned long port) | ||
53 | { | ||
54 | return (u32) inl(port); | ||
55 | } | ||
56 | |||
57 | static void ide_insl (unsigned long port, void *addr, u32 count) | 52 | static void ide_insl (unsigned long port, void *addr, u32 count) |
58 | { | 53 | { |
59 | insl(port, addr, count); | 54 | insl(port, addr, count); |
@@ -79,11 +74,6 @@ static void ide_outsw (unsigned long port, void *addr, u32 count) | |||
79 | outsw(port, addr, count); | 74 | outsw(port, addr, count); |
80 | } | 75 | } |
81 | 76 | ||
82 | static void ide_outl (u32 val, unsigned long port) | ||
83 | { | ||
84 | outl(val, port); | ||
85 | } | ||
86 | |||
87 | static void ide_outsl (unsigned long port, void *addr, u32 count) | 77 | static void ide_outsl (unsigned long port, void *addr, u32 count) |
88 | { | 78 | { |
89 | outsl(port, addr, count); | 79 | outsl(port, addr, count); |
@@ -94,12 +84,10 @@ void default_hwif_iops (ide_hwif_t *hwif) | |||
94 | hwif->OUTB = ide_outb; | 84 | hwif->OUTB = ide_outb; |
95 | hwif->OUTBSYNC = ide_outbsync; | 85 | hwif->OUTBSYNC = ide_outbsync; |
96 | hwif->OUTW = ide_outw; | 86 | hwif->OUTW = ide_outw; |
97 | hwif->OUTL = ide_outl; | ||
98 | hwif->OUTSW = ide_outsw; | 87 | hwif->OUTSW = ide_outsw; |
99 | hwif->OUTSL = ide_outsl; | 88 | hwif->OUTSL = ide_outsl; |
100 | hwif->INB = ide_inb; | 89 | hwif->INB = ide_inb; |
101 | hwif->INW = ide_inw; | 90 | hwif->INW = ide_inw; |
102 | hwif->INL = ide_inl; | ||
103 | hwif->INSW = ide_insw; | 91 | hwif->INSW = ide_insw; |
104 | hwif->INSL = ide_insl; | 92 | hwif->INSL = ide_insl; |
105 | } | 93 | } |
@@ -123,11 +111,6 @@ static void ide_mm_insw (unsigned long port, void *addr, u32 count) | |||
123 | __ide_mm_insw((void __iomem *) port, addr, count); | 111 | __ide_mm_insw((void __iomem *) port, addr, count); |
124 | } | 112 | } |
125 | 113 | ||
126 | static u32 ide_mm_inl (unsigned long port) | ||
127 | { | ||
128 | return (u32) readl((void __iomem *) port); | ||
129 | } | ||
130 | |||
131 | static void ide_mm_insl (unsigned long port, void *addr, u32 count) | 114 | static void ide_mm_insl (unsigned long port, void *addr, u32 count) |
132 | { | 115 | { |
133 | __ide_mm_insl((void __iomem *) port, addr, count); | 116 | __ide_mm_insl((void __iomem *) port, addr, count); |
@@ -153,11 +136,6 @@ static void ide_mm_outsw (unsigned long port, void *addr, u32 count) | |||
153 | __ide_mm_outsw((void __iomem *) port, addr, count); | 136 | __ide_mm_outsw((void __iomem *) port, addr, count); |
154 | } | 137 | } |
155 | 138 | ||
156 | static void ide_mm_outl (u32 value, unsigned long port) | ||
157 | { | ||
158 | writel(value, (void __iomem *) port); | ||
159 | } | ||
160 | |||
161 | static void ide_mm_outsl (unsigned long port, void *addr, u32 count) | 139 | static void ide_mm_outsl (unsigned long port, void *addr, u32 count) |
162 | { | 140 | { |
163 | __ide_mm_outsl((void __iomem *) port, addr, count); | 141 | __ide_mm_outsl((void __iomem *) port, addr, count); |
@@ -170,12 +148,10 @@ void default_hwif_mmiops (ide_hwif_t *hwif) | |||
170 | this one is controller specific! */ | 148 | this one is controller specific! */ |
171 | hwif->OUTBSYNC = ide_mm_outbsync; | 149 | hwif->OUTBSYNC = ide_mm_outbsync; |
172 | hwif->OUTW = ide_mm_outw; | 150 | hwif->OUTW = ide_mm_outw; |
173 | hwif->OUTL = ide_mm_outl; | ||
174 | hwif->OUTSW = ide_mm_outsw; | 151 | hwif->OUTSW = ide_mm_outsw; |
175 | hwif->OUTSL = ide_mm_outsl; | 152 | hwif->OUTSL = ide_mm_outsl; |
176 | hwif->INB = ide_mm_inb; | 153 | hwif->INB = ide_mm_inb; |
177 | hwif->INW = ide_mm_inw; | 154 | hwif->INW = ide_mm_inw; |
178 | hwif->INL = ide_mm_inl; | ||
179 | hwif->INSW = ide_mm_insw; | 155 | hwif->INSW = ide_mm_insw; |
180 | hwif->INSL = ide_mm_insl; | 156 | hwif->INSL = ide_mm_insl; |
181 | } | 157 | } |
@@ -777,7 +753,7 @@ int ide_config_drive_speed (ide_drive_t *drive, u8 speed) | |||
777 | 753 | ||
778 | #ifdef CONFIG_BLK_DEV_IDEDMA | 754 | #ifdef CONFIG_BLK_DEV_IDEDMA |
779 | if (hwif->ide_dma_check) /* check if host supports DMA */ | 755 | if (hwif->ide_dma_check) /* check if host supports DMA */ |
780 | hwif->ide_dma_host_off(drive); | 756 | hwif->dma_host_off(drive); |
781 | #endif | 757 | #endif |
782 | 758 | ||
783 | /* | 759 | /* |
@@ -854,9 +830,9 @@ int ide_config_drive_speed (ide_drive_t *drive, u8 speed) | |||
854 | 830 | ||
855 | #ifdef CONFIG_BLK_DEV_IDEDMA | 831 | #ifdef CONFIG_BLK_DEV_IDEDMA |
856 | if (speed >= XFER_SW_DMA_0) | 832 | if (speed >= XFER_SW_DMA_0) |
857 | hwif->ide_dma_host_on(drive); | 833 | hwif->dma_host_on(drive); |
858 | else if (hwif->ide_dma_check) /* check if host supports DMA */ | 834 | else if (hwif->ide_dma_check) /* check if host supports DMA */ |
859 | hwif->ide_dma_off_quietly(drive); | 835 | hwif->dma_off_quietly(drive); |
860 | #endif | 836 | #endif |
861 | 837 | ||
862 | switch(speed) { | 838 | switch(speed) { |
@@ -1066,12 +1042,12 @@ static void check_dma_crc(ide_drive_t *drive) | |||
1066 | { | 1042 | { |
1067 | #ifdef CONFIG_BLK_DEV_IDEDMA | 1043 | #ifdef CONFIG_BLK_DEV_IDEDMA |
1068 | if (drive->crc_count) { | 1044 | if (drive->crc_count) { |
1069 | (void) HWIF(drive)->ide_dma_off_quietly(drive); | 1045 | drive->hwif->dma_off_quietly(drive); |
1070 | ide_set_xfer_rate(drive, ide_auto_reduce_xfer(drive)); | 1046 | ide_set_xfer_rate(drive, ide_auto_reduce_xfer(drive)); |
1071 | if (drive->current_speed >= XFER_SW_DMA_0) | 1047 | if (drive->current_speed >= XFER_SW_DMA_0) |
1072 | (void) HWIF(drive)->ide_dma_on(drive); | 1048 | (void) HWIF(drive)->ide_dma_on(drive); |
1073 | } else | 1049 | } else |
1074 | (void)__ide_dma_off(drive); | 1050 | ide_dma_off(drive); |
1075 | #endif | 1051 | #endif |
1076 | } | 1052 | } |
1077 | 1053 | ||