1 #ifndef __ARCH_ORION_COMMON_H__
2 #define __ARCH_ORION_COMMON_H__
5 * Basic Orion init functions used early by machine-setup.
8 void __init orion_map_io(void);
9 void __init orion_init(void);
12 * Enumerations and functions for Orion windows mapping. Used by Orion core
13 * functions to map its interfaces and by the machine-setup to map its on-
14 * board devices. Details in /mach-orion/addr-map.c
31 void orion_setup_cpu_win(enum orion_target target, u32 base, u32 size, int remap);
32 void orion_setup_cpu_wins(void);
33 void orion_setup_eth_wins(void);
34 void orion_setup_usb_wins(void);
35 void orion_setup_pci_wins(void);
36 void orion_setup_pcie_wins(void);
37 void orion_setup_sata_wins(void);
40 * Shared code used internally by other Orion core functions.
47 void orion_pcie_id(u32 *dev, u32 *rev);
48 u32 orion_pcie_local_bus_nr(void);
49 u32 orion_pci_local_bus_nr(void);
50 u32 orion_pci_local_dev_nr(void);
51 int orion_pci_sys_setup(int nr, struct pci_sys_data *sys);
52 struct pci_bus *orion_pci_sys_scan_bus(int nr, struct pci_sys_data *sys);
53 int orion_pci_hw_rd_conf(u32 bus, u32 dev, u32 func, u32 where, u32 size, u32 *val);
54 int orion_pci_hw_wr_conf(u32 bus, u32 dev, u32 func, u32 where, u32 size, u32 val);
57 * Valid GPIO pins according to MPP setup, used by machine-setup.
58 * (/mach-orion/gpio.c).
61 void __init orion_gpio_set_valid_pins(u32 pins);
62 void gpio_display(void); /* debug */
64 #endif /* __ARCH_ORION_COMMON_H__ */