diff options
author | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 03:43:28 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 03:43:28 -0400 |
commit | 959f85f8a3223c116bbe95dd8a9b207790b5d4d3 (patch) | |
tree | e7da9ccf292f860bfa0ff9cc8b2682cd1d6bad4d /arch/sh/cchips | |
parent | e108b2ca2349f510ce7d7f910eda89f71d710d84 (diff) |
sh: Consolidated SH7751/SH7780 PCI support.
This cleans up quite a lot of the PCI mess that we
currently have, and attempts to consolidate the
duplication in the SH7780 and SH7751 PCI controllers.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/cchips')
-rw-r--r-- | arch/sh/cchips/hd6446x/hd64461/io.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/arch/sh/cchips/hd6446x/hd64461/io.c b/arch/sh/cchips/hd6446x/hd64461/io.c index f77f18f2ba7f..7909a1b7b512 100644 --- a/arch/sh/cchips/hd6446x/hd64461/io.c +++ b/arch/sh/cchips/hd6446x/hd64461/io.c | |||
@@ -53,11 +53,6 @@ static __inline__ unsigned long PORT2ADDR(unsigned long port) | |||
53 | return 0xa0000000 + (port & 0x1fffffff); | 53 | return 0xa0000000 + (port & 0x1fffffff); |
54 | } | 54 | } |
55 | 55 | ||
56 | static inline void delay(void) | ||
57 | { | ||
58 | ctrl_inw(0xa0000000); | ||
59 | } | ||
60 | |||
61 | unsigned char hd64461_inb(unsigned long port) | 56 | unsigned char hd64461_inb(unsigned long port) |
62 | { | 57 | { |
63 | return *(volatile unsigned char*)PORT2ADDR(port); | 58 | return *(volatile unsigned char*)PORT2ADDR(port); |
@@ -66,7 +61,7 @@ unsigned char hd64461_inb(unsigned long port) | |||
66 | unsigned char hd64461_inb_p(unsigned long port) | 61 | unsigned char hd64461_inb_p(unsigned long port) |
67 | { | 62 | { |
68 | unsigned long v = *(volatile unsigned char*)PORT2ADDR(port); | 63 | unsigned long v = *(volatile unsigned char*)PORT2ADDR(port); |
69 | delay(); | 64 | ctrl_delay(); |
70 | return v; | 65 | return v; |
71 | } | 66 | } |
72 | 67 | ||
@@ -88,7 +83,7 @@ void hd64461_outb(unsigned char b, unsigned long port) | |||
88 | void hd64461_outb_p(unsigned char b, unsigned long port) | 83 | void hd64461_outb_p(unsigned char b, unsigned long port) |
89 | { | 84 | { |
90 | *(volatile unsigned char*)PORT2ADDR(port) = b; | 85 | *(volatile unsigned char*)PORT2ADDR(port) = b; |
91 | delay(); | 86 | ctrl_delay(); |
92 | } | 87 | } |
93 | 88 | ||
94 | void hd64461_outw(unsigned short b, unsigned long port) | 89 | void hd64461_outw(unsigned short b, unsigned long port) |