Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
[wrt350n-kernel.git] / arch / arm / mach-orion / common.h
blob74e64fc14ddfb34db66bf58c1e04da527818c8ba
1 #ifndef __ARCH_ORION_COMMON_H__
2 #define __ARCH_ORION_COMMON_H__
4 /*
5 * Basic Orion init functions used early by machine-setup.
6 */
8 void __init orion_map_io(void);
9 void __init orion_init_irq(void);
10 void __init orion_init(void);
13 * Enumerations and functions for Orion windows mapping. Used by Orion core
14 * functions to map its interfaces and by the machine-setup to map its on-
15 * board devices. Details in /mach-orion/addr-map.c
18 enum orion_target {
19 ORION_DEV_BOOT = 0,
20 ORION_DEV0,
21 ORION_DEV1,
22 ORION_DEV2,
23 ORION_PCIE_MEM,
24 ORION_PCIE_IO,
25 ORION_PCI_MEM,
26 ORION_PCI_IO,
27 ORION_DDR,
28 ORION_REGS,
29 ORION_MAX_TARGETS
32 void orion_setup_cpu_win(enum orion_target target, u32 base, u32 size, int remap);
33 void orion_setup_cpu_wins(void);
34 void orion_setup_eth_wins(void);
35 void orion_setup_usb_wins(void);
36 void orion_setup_pci_wins(void);
37 void orion_setup_pcie_wins(void);
38 void orion_setup_sata_wins(void);
41 * Shared code used internally by other Orion core functions.
42 * (/mach-orion/pci.c)
45 struct pci_sys_data;
46 struct pci_bus;
48 void orion_pcie_id(u32 *dev, u32 *rev);
49 u32 orion_pcie_local_bus_nr(void);
50 u32 orion_pci_local_bus_nr(void);
51 u32 orion_pci_local_dev_nr(void);
52 int orion_pci_sys_setup(int nr, struct pci_sys_data *sys);
53 struct pci_bus *orion_pci_sys_scan_bus(int nr, struct pci_sys_data *sys);
54 int orion_pci_hw_rd_conf(u32 bus, u32 dev, u32 func, u32 where, u32 size, u32 *val);
55 int orion_pci_hw_wr_conf(u32 bus, u32 dev, u32 func, u32 where, u32 size, u32 val);
58 * Valid GPIO pins according to MPP setup, used by machine-setup.
59 * (/mach-orion/gpio.c).
62 void __init orion_gpio_set_valid_pins(u32 pins);
63 void gpio_display(void); /* debug */
66 * Orion system timer (clocksource + clockevnt, /mach-orion/time.c)
68 extern struct sys_timer orion_timer;
71 * Pull in Orion Ethernet platform_data, used by machine-setup
74 struct mv643xx_eth_platform_data;
76 void __init orion_eth_init(struct mv643xx_eth_platform_data *eth_data);
79 * Orion Sata platform_data, used by machine-setup
82 struct mv_sata_platform_data;
84 void __init orion_sata_init(struct mv_sata_platform_data *sata_data);
86 <<<<<<< HEAD:arch/arm/mach-orion/common.h
87 =======
88 struct machine_desc;
89 struct meminfo;
90 struct tag;
91 extern void __init tag_fixup_mem32(struct machine_desc *, struct tag *,
92 char **, struct meminfo *);
94 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/arm/mach-orion/common.h
95 #endif /* __ARCH_ORION_COMMON_H__ */