common.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * This file contains common function prototypes to avoid externs in the c files.
  3. *
  4. * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
  5. *
  6. * Licensed under GPLv2 or later.
  7. */
  8. #ifndef __MACH_PRIMA2_COMMON_H__
  9. #define __MACH_PRIMA2_COMMON_H__
  10. #include <linux/init.h>
  11. #include <asm/mach/time.h>
  12. #include <asm/exception.h>
  13. extern void sirfsoc_prima2_timer_init(void);
  14. extern void sirfsoc_marco_timer_init(void);
  15. extern struct smp_operations sirfsoc_smp_ops;
  16. extern void sirfsoc_secondary_startup(void);
  17. extern void sirfsoc_cpu_die(unsigned int cpu);
  18. extern void __init sirfsoc_of_irq_init(void);
  19. extern void __init sirfsoc_of_clk_init(void);
  20. extern void sirfsoc_restart(char, const char *);
  21. extern asmlinkage void __exception_irq_entry sirfsoc_handle_irq(struct pt_regs *regs);
  22. #ifndef CONFIG_DEBUG_LL
  23. static inline void sirfsoc_map_lluart(void) {}
  24. #else
  25. extern void __init sirfsoc_map_lluart(void);
  26. #endif
  27. #ifndef CONFIG_SMP
  28. static inline void sirfsoc_map_scu(void) {}
  29. #else
  30. extern void sirfsoc_map_scu(void);
  31. #endif
  32. #ifdef CONFIG_SUSPEND
  33. extern int sirfsoc_pm_init(void);
  34. #else
  35. static inline int sirfsoc_pm_init(void) { return 0; }
  36. #endif
  37. #endif