diff options
| author | Russell King <rmk@flint.arm.linux.org.uk> | 2003-03-16 21:56:53 +0000 |
|---|---|---|
| committer | Russell King <rmk@flint.arm.linux.org.uk> | 2003-03-16 21:56:53 +0000 |
| commit | 2ef9c88bfaee6fbd7f9d5da32f9b93794be49185 (patch) | |
| tree | c09ef1129d46914b80fbbdc6e49703ad3e13b5ab /include/asm-sh | |
| parent | 032d6c6ef2b24013633f987cdf2d8fb88eadc202 (diff) | |
[PCI] pci-8: pci_resource_to_bus()
Convert pcibios_fixup_pbus_ranges() into something more generic, namely
pcibios_resource_to_bus() - we are really trying to convert resources
to something to program into bus registers for bridge windows, and in
fact, PCI device BARs.
This is necessary since some architectures, namely Alpha, ARM and PARISC
have an offset between PCI addressing and host-based addressing, so
resources need to be adjusted when read or when written back to the bus.
We provide a generic version in asm-generic/pci.h, which most
architectures use.
This patch finds the following architectures with something to think
consider:
- ppc, ppc64
adjusts resources for devices, but not buses.
This is inconsistent, and leads to improperly
programmed windows/BARs.
PPC people (Anton) has a replacement PCI resource implementation
which should do the right thing.
Diffstat (limited to 'include/asm-sh')
| -rw-r--r-- | include/asm-sh/pci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-sh/pci.h b/include/asm-sh/pci.h index f9690c521d19..60fffd091ad6 100644 --- a/include/asm-sh/pci.h +++ b/include/asm-sh/pci.h @@ -240,6 +240,8 @@ static inline int pci_dma_supported(struct pci_dev *hwdev, u64 mask) #endif /* __KERNEL__ */ +/* generic pci stuff */ +#include <asm-generic/pci.h> #endif /* __ASM_SH_PCI_H */ |
