diff options
Diffstat (limited to 'arch/sh/drivers/pci/pci-sh4.h')
-rw-r--r-- | arch/sh/drivers/pci/pci-sh4.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/arch/sh/drivers/pci/pci-sh4.h b/arch/sh/drivers/pci/pci-sh4.h index a83dcf70c13b..62ba35056087 100644 --- a/arch/sh/drivers/pci/pci-sh4.h +++ b/arch/sh/drivers/pci/pci-sh4.h | |||
@@ -154,8 +154,8 @@ | |||
154 | 154 | ||
155 | /* arch/sh/kernel/drivers/pci/ops-sh4.c */ | 155 | /* arch/sh/kernel/drivers/pci/ops-sh4.c */ |
156 | extern struct pci_ops sh4_pci_ops; | 156 | extern struct pci_ops sh4_pci_ops; |
157 | int sh4_pci_check_direct(void); | 157 | int sh4_pci_check_direct(struct pci_channel *chan); |
158 | int pci_fixup_pcic(void); | 158 | int pci_fixup_pcic(struct pci_channel *chan); |
159 | 159 | ||
160 | struct sh4_pci_address_space { | 160 | struct sh4_pci_address_space { |
161 | unsigned long base; | 161 | unsigned long base; |
@@ -168,13 +168,16 @@ struct sh4_pci_address_map { | |||
168 | unsigned long flags; | 168 | unsigned long flags; |
169 | }; | 169 | }; |
170 | 170 | ||
171 | static inline void pci_write_reg(unsigned long val, unsigned long reg) | 171 | static inline void pci_write_reg(struct pci_channel *chan, |
172 | unsigned long val, unsigned long reg) | ||
172 | { | 173 | { |
173 | ctrl_outl(val, PCI_REG(reg)); | 174 | ctrl_outl(val, PCI_REG(reg)); |
174 | } | 175 | } |
175 | 176 | ||
176 | static inline unsigned long pci_read_reg(unsigned long reg) | 177 | static inline unsigned long pci_read_reg(struct pci_channel *chan, |
178 | unsigned long reg) | ||
177 | { | 179 | { |
178 | return ctrl_inl(PCI_REG(reg)); | 180 | return ctrl_inl(PCI_REG(reg)); |
179 | } | 181 | } |
182 | |||
180 | #endif /* __PCI_SH4_H */ | 183 | #endif /* __PCI_SH4_H */ |