common.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 <linux/reboot.h>
  12. #include <asm/mach/time.h>
  13. #include <asm/exception.h>
  14. #define SIRFSOC_VA_BASE _AC(0xFEC00000, UL)
  15. #define SIRFSOC_VA(x) (SIRFSOC_VA_BASE + ((x) & 0x00FFF000))
  16. extern struct smp_operations sirfsoc_smp_ops;
  17. extern void sirfsoc_secondary_startup(void);
  18. extern void sirfsoc_cpu_die(unsigned int cpu);
  19. extern void __init sirfsoc_of_irq_init(void);
  20. extern void __init sirfsoc_of_clk_init(void);
  21. extern void sirfsoc_restart(enum reboot_mode, const char *);
  22. extern asmlinkage void __exception_irq_entry sirfsoc_handle_irq(struct pt_regs *regs);
  23. #ifndef CONFIG_DEBUG_LL
  24. static inline void sirfsoc_map_lluart(void) {}
  25. #else
  26. extern void __init sirfsoc_map_lluart(void);
  27. #endif
  28. #ifndef CONFIG_SMP
  29. static inline void sirfsoc_map_scu(void) {}
  30. #else
  31. extern void sirfsoc_map_scu(void);
  32. #endif
  33. #ifdef CONFIG_SUSPEND
  34. extern int sirfsoc_pm_init(void);
  35. #else
  36. static inline int sirfsoc_pm_init(void) { return 0; }
  37. #endif
  38. #endif