common.h 778 B

1234567891011121314151617181920212223242526
  1. #ifndef __ARCH_ORION_COMMON_H__
  2. #define __ARCH_ORION_COMMON_H__
  3. /*
  4. * Basic Orion init functions used early by machine-setup.
  5. */
  6. void __init orion_map_io(void);
  7. /*
  8. * Shared code used internally by other Orion core functions.
  9. * (/mach-orion/pci.c)
  10. */
  11. struct pci_sys_data;
  12. struct pci_bus;
  13. void orion_pcie_id(u32 *dev, u32 *rev);
  14. u32 orion_pcie_local_bus_nr(void);
  15. u32 orion_pci_local_bus_nr(void);
  16. u32 orion_pci_local_dev_nr(void);
  17. int orion_pci_sys_setup(int nr, struct pci_sys_data *sys);
  18. struct pci_bus *orion_pci_sys_scan_bus(int nr, struct pci_sys_data *sys);
  19. int orion_pci_hw_rd_conf(u32 bus, u32 dev, u32 func, u32 where, u32 size, u32 *val);
  20. int orion_pci_hw_wr_conf(u32 bus, u32 dev, u32 func, u32 where, u32 size, u32 val);
  21. #endif /* __ARCH_ORION_COMMON_H__ */