]> err.no Git - linux-2.6/blob - arch/arm/mach-orion/common.h
[ARM] Orion: PCI support
[linux-2.6] / arch / arm / mach-orion / common.h
1 #ifndef __ARCH_ORION_COMMON_H__
2 #define __ARCH_ORION_COMMON_H__
3
4 /*
5  * Basic Orion init functions used early by machine-setup.
6  */
7 void __init orion_map_io(void);
8
9 /*
10  * Shared code used internally by other Orion core functions.
11  * (/mach-orion/pci.c)
12  */
13
14 struct pci_sys_data;
15 struct pci_bus;
16
17 void orion_pcie_id(u32 *dev, u32 *rev);
18 u32 orion_pcie_local_bus_nr(void);
19 u32 orion_pci_local_bus_nr(void);
20 u32 orion_pci_local_dev_nr(void);
21 int orion_pci_sys_setup(int nr, struct pci_sys_data *sys);
22 struct pci_bus *orion_pci_sys_scan_bus(int nr, struct pci_sys_data *sys);
23 int orion_pci_hw_rd_conf(u32 bus, u32 dev, u32 func, u32 where, u32 size, u32 *val);
24 int orion_pci_hw_wr_conf(u32 bus, u32 dev, u32 func, u32 where, u32 size, u32 val);
25
26 #endif /* __ARCH_ORION_COMMON_H__ */