diff options
author | Magnus Damm <magnus.damm@gmail.com> | 2008-02-19 07:35:04 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-04-16 03:00:13 -0400 |
commit | e4c6a3604e07185046e2ce4be82a201f4447d788 (patch) | |
tree | 8abb5616899458a0ae197bdac3e36b7360869f25 /arch/sh/drivers/pci/pci-sh4.h | |
parent | b6706ef10f75921733d7275fd45d268f2f6254c8 (diff) |
sh: add reg_base member to pci_channel
Store the base address of the pci host controller registers in struct
pci_channel and use the address in pci_read_reg() and pci_write_reg().
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/drivers/pci/pci-sh4.h')
-rw-r--r-- | arch/sh/drivers/pci/pci-sh4.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/drivers/pci/pci-sh4.h b/arch/sh/drivers/pci/pci-sh4.h index 62ba35056087..90abfe3d39bb 100644 --- a/arch/sh/drivers/pci/pci-sh4.h +++ b/arch/sh/drivers/pci/pci-sh4.h | |||
@@ -171,13 +171,13 @@ struct sh4_pci_address_map { | |||
171 | static inline void pci_write_reg(struct pci_channel *chan, | 171 | static inline void pci_write_reg(struct pci_channel *chan, |
172 | unsigned long val, unsigned long reg) | 172 | unsigned long val, unsigned long reg) |
173 | { | 173 | { |
174 | ctrl_outl(val, PCI_REG(reg)); | 174 | ctrl_outl(val, chan->reg_base + reg); |
175 | } | 175 | } |
176 | 176 | ||
177 | static inline unsigned long pci_read_reg(struct pci_channel *chan, | 177 | static inline unsigned long pci_read_reg(struct pci_channel *chan, |
178 | unsigned long reg) | 178 | unsigned long reg) |
179 | { | 179 | { |
180 | return ctrl_inl(PCI_REG(reg)); | 180 | return ctrl_inl(chan->reg_base + reg); |
181 | } | 181 | } |
182 | 182 | ||
183 | #endif /* __PCI_SH4_H */ | 183 | #endif /* __PCI_SH4_H */ |