aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2006-09-19 03:30:20 -0400
committerStephen Rothwell <sfr@canb.auug.org.au>2006-09-20 00:06:18 -0400
commit73ea9e1bcb8eea4f3b2052fe7ccd7ee4b5a271a0 (patch)
treebe96595750908640a29fb5ad2a4a8224af2bb65e
parent661f1cdb8b3e3c2c44e97df122c1d5643c054ce8 (diff)
[POWERPC] clean up ide io accessors
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r--arch/powerpc/kernel/misc.S12
-rw-r--r--arch/powerpc/kernel/ppc_ksyms.c7
-rw-r--r--arch/ppc/kernel/misc.S4
-rw-r--r--arch/ppc/kernel/ppc_ksyms.c5
-rw-r--r--include/asm-powerpc/ide.h12
-rw-r--r--include/asm-powerpc/io.h6
6 files changed, 6 insertions, 40 deletions
diff --git a/arch/powerpc/kernel/misc.S b/arch/powerpc/kernel/misc.S
index dd5f8e429196..6feb391422ec 100644
--- a/arch/powerpc/kernel/misc.S
+++ b/arch/powerpc/kernel/misc.S
@@ -86,9 +86,6 @@ _GLOBAL(_outsb)
86 sync 86 sync
87 blr 87 blr
88 88
89#ifdef CONFIG_PPC32
90_GLOBAL(__ide_mm_insw)
91#endif
92_GLOBAL(_insw_ns) 89_GLOBAL(_insw_ns)
93 sync 90 sync
94 cmpwi 0,r5,0 91 cmpwi 0,r5,0
@@ -103,9 +100,6 @@ _GLOBAL(_insw_ns)
103 isync 100 isync
104 blr 101 blr
105 102
106#ifdef CONFIG_PPC32
107_GLOBAL(__ide_mm_outsw)
108#endif
109_GLOBAL(_outsw_ns) 103_GLOBAL(_outsw_ns)
110 cmpwi 0,r5,0 104 cmpwi 0,r5,0
111 mtctr r5 105 mtctr r5
@@ -118,9 +112,6 @@ _GLOBAL(_outsw_ns)
118 sync 112 sync
119 blr 113 blr
120 114
121#ifdef CONFIG_PPC32
122_GLOBAL(__ide_mm_insl)
123#endif
124_GLOBAL(_insl_ns) 115_GLOBAL(_insl_ns)
125 sync 116 sync
126 cmpwi 0,r5,0 117 cmpwi 0,r5,0
@@ -135,9 +126,6 @@ _GLOBAL(_insl_ns)
135 isync 126 isync
136 blr 127 blr
137 128
138#ifdef CONFIG_PPC32
139_GLOBAL(__ide_mm_outsl)
140#endif
141_GLOBAL(_outsl_ns) 129_GLOBAL(_outsl_ns)
142 cmpwi 0,r5,0 130 cmpwi 0,r5,0
143 mtctr r5 131 mtctr r5
diff --git a/arch/powerpc/kernel/ppc_ksyms.c b/arch/powerpc/kernel/ppc_ksyms.c
index 314d6114e6ec..75429e580518 100644
--- a/arch/powerpc/kernel/ppc_ksyms.c
+++ b/arch/powerpc/kernel/ppc_ksyms.c
@@ -95,13 +95,6 @@ EXPORT_SYMBOL(__strnlen_user);
95EXPORT_SYMBOL(copy_4K_page); 95EXPORT_SYMBOL(copy_4K_page);
96#endif 96#endif
97 97
98#ifndef __powerpc64__
99EXPORT_SYMBOL(__ide_mm_insl);
100EXPORT_SYMBOL(__ide_mm_outsw);
101EXPORT_SYMBOL(__ide_mm_insw);
102EXPORT_SYMBOL(__ide_mm_outsl);
103#endif
104
105EXPORT_SYMBOL(_insb); 98EXPORT_SYMBOL(_insb);
106EXPORT_SYMBOL(_outsb); 99EXPORT_SYMBOL(_outsb);
107EXPORT_SYMBOL(_insw_ns); 100EXPORT_SYMBOL(_insw_ns);
diff --git a/arch/ppc/kernel/misc.S b/arch/ppc/kernel/misc.S
index 44700bbfe7bc..50b4bbd06804 100644
--- a/arch/ppc/kernel/misc.S
+++ b/arch/ppc/kernel/misc.S
@@ -768,7 +768,6 @@ _GLOBAL(_outsb)
768 bdnz 00b 768 bdnz 00b
769 blr 769 blr
770 770
771_GLOBAL(__ide_mm_insw)
772_GLOBAL(_insw_ns) 771_GLOBAL(_insw_ns)
773 cmpwi 0,r5,0 772 cmpwi 0,r5,0
774 mtctr r5 773 mtctr r5
@@ -790,7 +789,6 @@ _GLOBAL(_insw_ns)
790 bdnz 00b 789 bdnz 00b
791 blr 790 blr
792 791
793_GLOBAL(__ide_mm_outsw)
794_GLOBAL(_outsw_ns) 792_GLOBAL(_outsw_ns)
795 cmpwi 0,r5,0 793 cmpwi 0,r5,0
796 mtctr r5 794 mtctr r5
@@ -812,7 +810,6 @@ _GLOBAL(_outsw_ns)
812 bdnz 00b 810 bdnz 00b
813 blr 811 blr
814 812
815_GLOBAL(__ide_mm_insl)
816_GLOBAL(_insl_ns) 813_GLOBAL(_insl_ns)
817 cmpwi 0,r5,0 814 cmpwi 0,r5,0
818 mtctr r5 815 mtctr r5
@@ -834,7 +831,6 @@ _GLOBAL(_insl_ns)
834 bdnz 00b 831 bdnz 00b
835 blr 832 blr
836 833
837_GLOBAL(__ide_mm_outsl)
838_GLOBAL(_outsl_ns) 834_GLOBAL(_outsl_ns)
839 cmpwi 0,r5,0 835 cmpwi 0,r5,0
840 mtctr r5 836 mtctr r5
diff --git a/arch/ppc/kernel/ppc_ksyms.c b/arch/ppc/kernel/ppc_ksyms.c
index 2bd1f7353f56..c8b65ca8a350 100644
--- a/arch/ppc/kernel/ppc_ksyms.c
+++ b/arch/ppc/kernel/ppc_ksyms.c
@@ -115,11 +115,6 @@ EXPORT_SYMBOL(outw);
115EXPORT_SYMBOL(outl); 115EXPORT_SYMBOL(outl);
116EXPORT_SYMBOL(outsl);*/ 116EXPORT_SYMBOL(outsl);*/
117 117
118EXPORT_SYMBOL(__ide_mm_insl);
119EXPORT_SYMBOL(__ide_mm_outsw);
120EXPORT_SYMBOL(__ide_mm_insw);
121EXPORT_SYMBOL(__ide_mm_outsl);
122
123EXPORT_SYMBOL(_insb); 118EXPORT_SYMBOL(_insb);
124EXPORT_SYMBOL(_outsb); 119EXPORT_SYMBOL(_outsb);
125EXPORT_SYMBOL(_insw_ns); 120EXPORT_SYMBOL(_insw_ns);
diff --git a/include/asm-powerpc/ide.h b/include/asm-powerpc/ide.h
index b09b42af6a1e..c8390f9485de 100644
--- a/include/asm-powerpc/ide.h
+++ b/include/asm-powerpc/ide.h
@@ -12,6 +12,7 @@
12#include <linux/sched.h> 12#include <linux/sched.h>
13#include <asm/mpc8xx.h> 13#include <asm/mpc8xx.h>
14#endif 14#endif
15#include <asm/io.h>
15 16
16#ifndef MAX_HWIFS 17#ifndef MAX_HWIFS
17#ifdef __powerpc64__ 18#ifdef __powerpc64__
@@ -21,15 +22,14 @@
21#endif 22#endif
22#endif 23#endif
23 24
25#define __ide_mm_insw(p, a, c) _insw_ns((volatile u16 __iomem *)(p), (a), (c))
26#define __ide_mm_insl(p, a, c) _insl_ns((volatile u32 __iomem *)(p), (a), (c))
27#define __ide_mm_outsw(p, a, c) _outsw_ns((volatile u16 __iomem *)(p), (a), (c))
28#define __ide_mm_outsl(p, a, c) _outsl_ns((volatile u32 __iomem *)(p), (a), (c))
29
24#ifndef __powerpc64__ 30#ifndef __powerpc64__
25#include <linux/hdreg.h> 31#include <linux/hdreg.h>
26#include <linux/ioport.h> 32#include <linux/ioport.h>
27#include <asm/io.h>
28
29extern void __ide_mm_insw(void __iomem *port, void *addr, u32 count);
30extern void __ide_mm_outsw(void __iomem *port, void *addr, u32 count);
31extern void __ide_mm_insl(void __iomem *port, void *addr, u32 count);
32extern void __ide_mm_outsl(void __iomem *port, void *addr, u32 count);
33 33
34struct ide_machdep_calls { 34struct ide_machdep_calls {
35 int (*default_irq)(unsigned long base); 35 int (*default_irq)(unsigned long base);
diff --git a/include/asm-powerpc/io.h b/include/asm-powerpc/io.h
index 0ee48436b1e3..51a598747367 100644
--- a/include/asm-powerpc/io.h
+++ b/include/asm-powerpc/io.h
@@ -28,12 +28,6 @@ extern int check_legacy_ioport(unsigned long base_port);
28 28
29#include <asm-generic/iomap.h> 29#include <asm-generic/iomap.h>
30 30
31#define __ide_mm_insw(p, a, c) _insw_ns((volatile u16 __iomem *)(p), (a), (c))
32#define __ide_mm_insl(p, a, c) _insl_ns((volatile u32 __iomem *)(p), (a), (c))
33#define __ide_mm_outsw(p, a, c) _outsw_ns((volatile u16 __iomem *)(p), (a), (c))
34#define __ide_mm_outsl(p, a, c) _outsl_ns((volatile u32 __iomem *)(p), (a), (c))
35
36
37#define SIO_CONFIG_RA 0x398 31#define SIO_CONFIG_RA 0x398
38#define SIO_CONFIG_RD 0x399 32#define SIO_CONFIG_RD 0x399
39 33