aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-orion/common.h
diff options
context:
space:
mode:
authorTzachi Perelstein <tzachi@marvell.com>2007-10-23 15:14:42 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-01-26 15:03:43 +0000
commit038ee0832ee1b1e2bd2be4599cd535ea9aaaf658 (patch)
treec5d127dbb09a564801e34894660752b3889302cc /arch/arm/mach-orion/common.h
parent585cf17561d3174a745bec49c422c1a621c95fc4 (diff)
downloadkernel_samsung_smdk4412-038ee0832ee1b1e2bd2be4599cd535ea9aaaf658.zip
kernel_samsung_smdk4412-038ee0832ee1b1e2bd2be4599cd535ea9aaaf658.tar.gz
kernel_samsung_smdk4412-038ee0832ee1b1e2bd2be4599cd535ea9aaaf658.tar.bz2
[ARM] Orion: PCI support
This patch adds support for PCI and PCI-E controllers in the Orion, Orion-NAS and Orion2. Signed-off-by: Tzachi Perelstein <tzachi@marvell.com> Reviewed-by: Nicolas Pitre <nico@marvell.com> Reviewed-by: Lennert Buytenhek <buytenh@marvell.com> Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-orion/common.h')
-rw-r--r--arch/arm/mach-orion/common.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/mach-orion/common.h b/arch/arm/mach-orion/common.h
index 224b446..02d0fec 100644
--- a/arch/arm/mach-orion/common.h
+++ b/arch/arm/mach-orion/common.h
@@ -6,4 +6,21 @@
*/
void __init orion_map_io(void);
+/*
+ * Shared code used internally by other Orion core functions.
+ * (/mach-orion/pci.c)
+ */
+
+struct pci_sys_data;
+struct pci_bus;
+
+void orion_pcie_id(u32 *dev, u32 *rev);
+u32 orion_pcie_local_bus_nr(void);
+u32 orion_pci_local_bus_nr(void);
+u32 orion_pci_local_dev_nr(void);
+int orion_pci_sys_setup(int nr, struct pci_sys_data *sys);
+struct pci_bus *orion_pci_sys_scan_bus(int nr, struct pci_sys_data *sys);
+int orion_pci_hw_rd_conf(u32 bus, u32 dev, u32 func, u32 where, u32 size, u32 *val);
+int orion_pci_hw_wr_conf(u32 bus, u32 dev, u32 func, u32 where, u32 size, u32 val);
+
#endif /* __ARCH_ORION_COMMON_H__ */