Myron Stowe
5d9a19e834
unicore32/PCI: adjust section annotations for pcibios_setup()
...
Make pcibios_setup() consistently use the "__init" section annotation.
Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn >
Signed-off-by: Myron Stowe <myron.stowe@redhat.com >
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com >
2012-07-05 15:09:14 -06:00
Bjorn Helgaas
bc4d7990d0
unicore32/PCI: move <asm-generic/pci-bridge.h> include to asm/pci.h
...
Move this include to be consistent with other architectures.
CC: Guan Xuetao <gxt@mprc.pku.edu.cn >
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com >
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org >
2012-03-20 10:42:03 -07:00
Bjorn Helgaas
b9c40b076c
unicore32/PCI: use pci_flags PCI_PROBE_ONLY instead of arm-specific flag
...
CC: Guan Xuetao <gxt@mprc.pku.edu.cn >
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com >
2012-02-23 20:18:58 -07:00
Myron Stowe
b73224fdcf
PCI: UniCore: convert pcibios_set_master() to a non-inlined function
...
This patch converts UniCore's architecture-specific
'pcibios_set_master()' routine to a non-inlined function. This will
allow follow on patches to create a generic 'pcibios_set_master()'
function using the '__weak' attribute which can be used by all
architectures as a default which, if necessary, can then be over-
ridden by architecture-specific code.
Converting 'pci_bios_set_master()' to a non-inlined function will
allow UniCore's 'pcibios_set_master()' implementation to remain
architecture-specific after the generic version is introduced and
thus, not change current behavior.
No functional change.
Signed-off-by: Myron Stowe <myron.stowe@redhat.com >
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org >
2012-01-06 12:10:41 -08:00
Ralf Baechle
d5341942d7
PCI: Make the struct pci_dev * argument of pci_fixup_irqs const.
...
Aside of the usual motivation for constification, this function has a
history of being abused a hook for interrupt and other fixups so I turned
this function const ages ago in the MIPS code but it should be done
treewide.
Due to function pointer passing in varous places a few other functions
had to be constified as well.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
To: Anton Vorontsov <avorontsov@mvista.com >
To: Chris Metcalf <cmetcalf@tilera.com >
To: Colin Cross <ccross@android.com >
Acked-by: "David S. Miller" <davem@davemloft.net >
To: Eric Miao <eric.y.miao@gmail.com >
To: Erik Gilling <konkers@android.com >
Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn >
To: "H. Peter Anvin" <hpa@zytor.com >
To: Imre Kaloz <kaloz@openwrt.org >
To: Ingo Molnar <mingo@redhat.com >
To: Ivan Kokshaysky <ink@jurassic.park.msu.ru >
To: Jesse Barnes <jbarnes@virtuousgeek.org >
To: Krzysztof Halasa <khc@pm.waw.pl >
To: Lennert Buytenhek <kernel@wantstofly.org >
To: Matt Turner <mattst88@gmail.com >
To: Nicolas Pitre <nico@fluxnic.net >
To: Olof Johansson <olof@lixom.net >
Acked-by: Paul Mundt <lethal@linux-sh.org >
To: Richard Henderson <rth@twiddle.net >
To: Russell King <linux@arm.linux.org.uk >
To: Thomas Gleixner <tglx@linutronix.de >
Cc: Andrew Morton <akpm@linux-foundation.org >
Cc: linux-alpha@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: linux-pci@vger.kernel.org
Cc: linux-sh@vger.kernel.org
Cc: linux-tegra@vger.kernel.org
Cc: sparclinux@vger.kernel.org
Cc: x86@kernel.org
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org >
2011-07-22 08:26:06 -07:00
GuanXuetao
1cf46c42d7
unicore32: modify io_p2v and io_v2p macros, and adjust PKUNITY_mmio_BASEs
...
1. remove __REG macro
2. add (void __iomem *) to io_p2v macro
3. add (phys_addr_t) to io_v2p macro
4. add PKUNITY_AHB_BASE and PKUNITY_APB_BASE definitions
5. modify all PKUNITY_mmio_BASEs from physical addr to virtual addr
6. adjust prefix macro for all usage of PKUNITY_mmio_BASEs
-- by advice with Arnd Bergmann
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn >
Reviewed-by: Arnd Bergmann <arnd@arndb.de >
2011-03-17 09:19:21 +08:00
GuanXuetao
e5abf78b57
unicore32 io: redefine __REG(x) and re-use readl/writel funcs
...
-- by advice of Arnd Bergmann
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn >
Reviewed-by: Arnd Bergmann <arnd@arndb.de >
2011-03-17 09:19:19 +08:00
GuanXuetao
700598cef8
unicore32 machine related files: pci bus handling
...
This patch implements arch-specific pci bus driver.
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn >
2011-03-17 09:19:15 +08:00