common.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 struct smp_operations sirfsoc_smp_ops;
  14. extern void sirfsoc_secondary_startup(void);
  15. extern void sirfsoc_cpu_die(unsigned int cpu);
  16. extern void __init sirfsoc_of_irq_init(void);
  17. extern void __init sirfsoc_of_clk_init(void);
  18. extern void sirfsoc_restart(char, const char *);
  19. extern asmlinkage void __exception_irq_entry sirfsoc_handle_irq(struct pt_regs *regs);
  20. #ifndef CONFIG_DEBUG_LL
  21. static inline void sirfsoc_map_lluart(void) {}
  22. #else
  23. extern void __init sirfsoc_map_lluart(void);
  24. #endif
  25. #ifndef CONFIG_SMP
  26. static inline void sirfsoc_map_scu(void) {}
  27. #else
  28. extern void sirfsoc_map_scu(void);
  29. #endif
  30. #ifdef CONFIG_SUSPEND
  31. extern int sirfsoc_pm_init(void);
  32. #else
  33. static inline int sirfsoc_pm_init(void) { return 0; }
  34. #endif
  35. #endif