Merge tag 'locks-v3.16-2' of git://git.samba.org/jlayton/linux
[linux/fpc-iii.git] / arch / arm / mach-prima2 / common.h
blob07d3e5ed9264f2cce1bfaf584db6fdddd7290175
1 /*
2 * This file contains common function prototypes to avoid externs in the c files.
4 * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
6 * Licensed under GPLv2 or later.
7 */
9 #ifndef __MACH_PRIMA2_COMMON_H__
10 #define __MACH_PRIMA2_COMMON_H__
12 #include <linux/init.h>
13 #include <linux/reboot.h>
15 #include <asm/mach/time.h>
16 #include <asm/exception.h>
18 #define SIRFSOC_VA_BASE _AC(0xFEC00000, UL)
19 #define SIRFSOC_VA(x) (SIRFSOC_VA_BASE + ((x) & 0x00FFF000))
21 extern struct smp_operations sirfsoc_smp_ops;
22 extern void sirfsoc_secondary_startup(void);
23 extern void sirfsoc_cpu_die(unsigned int cpu);
25 extern void __init sirfsoc_of_irq_init(void);
26 extern asmlinkage void __exception_irq_entry sirfsoc_handle_irq(struct pt_regs *regs);
28 #ifndef CONFIG_DEBUG_LL
29 static inline void sirfsoc_map_lluart(void) {}
30 #else
31 extern void __init sirfsoc_map_lluart(void);
32 #endif
34 #ifndef CONFIG_SMP
35 static inline void sirfsoc_map_scu(void) {}
36 #else
37 extern void sirfsoc_map_scu(void);
38 #endif
40 #ifdef CONFIG_SUSPEND
41 extern int sirfsoc_pm_init(void);
42 #else
43 static inline int sirfsoc_pm_init(void) { return 0; }
44 #endif
46 #endif