]> git.neil.brown.name Git - history.git/commit
[PCI] pci-9: Kill per-architecture pcibios_update_resource()
authorRussell King <rmk@flint.arm.linux.org.uk>
Sun, 16 Mar 2003 22:17:24 +0000 (22:17 +0000)
committerRussell King <rmk@flint.arm.linux.org.uk>
Sun, 16 Mar 2003 22:17:24 +0000 (22:17 +0000)
commitb64958d945540262ad39396e633e94b1a896771f
tree5949e2fcaa39e63339b432191d63bf599ab6821e
parent2ef9c88bfaee6fbd7f9d5da32f9b93794be49185
[PCI] pci-9: Kill per-architecture pcibios_update_resource()

Kill pcibios_update_resource(), replacing it with pci_update_resource().
pci_update_resource() uses pcibios_resource_to_bus() to convert a
resource to a device BAR - the transformation should be exactly the
same as the transformation used for the PCI bridges.

pci_update_resource "knows" about 64-bit BARs, but doesn't attempt to
set the high 32-bits to anything non-zero - currently no architecture
attempts to do something different.  If anyone cares, please fix; I'm
going to reflect current behaviour for the time being.

Ivan pointed out the following architectures need to examine their
pcibios_update_resource() implementation - they should make sure that
this new implementation does the right thing.  #warning's have been
added where appropriate.

ia64
mips
mips64

This cset also includes a fix for the problem reported by AKPM where
64-bit arch compilers complain about the resource mask being placed
in a u32.
25 files changed:
arch/alpha/kernel/pci.c
arch/arm/kernel/bios32.c
arch/i386/pci/i386.c
arch/ia64/pci/pci.c
arch/mips/ddb5074/pci.c
arch/mips/ddb5476/pci.c
arch/mips/ddb5xxx/common/pci.c
arch/mips/gt64120/common/pci.c
arch/mips/ite-boards/generic/it8172_pci.c
arch/mips/kernel/pci.c
arch/mips/mips-boards/generic/pci.c
arch/mips/sni/pci.c
arch/mips64/mips-boards/generic/pci.c
arch/mips64/sgi-ip27/ip27-pci.c
arch/mips64/sgi-ip32/ip32-pci.c
arch/parisc/kernel/pci.c
arch/ppc/kernel/pci.c
arch/ppc64/kernel/pci.c
arch/sh/kernel/pcibios.c
arch/sparc/kernel/pcic.c
arch/sparc64/kernel/pci.c
arch/v850/kernel/rte_mb_a_pci.c
arch/x86_64/pci/x86-64.c
drivers/pci/setup-res.c
include/linux/pci.h