Commit | Line | Data |
---|---|---|
a636cd6c | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
02c981c0 BD |
2 | /* |
3 | * This file contains common function prototypes to avoid externs in the c files. | |
4 | * | |
5 | * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company. | |
02c981c0 BD |
6 | */ |
7 | ||
8 | #ifndef __MACH_PRIMA2_COMMON_H__ | |
9 | #define __MACH_PRIMA2_COMMON_H__ | |
10 | ||
11 | #include <linux/init.h> | |
7b6d864b RH |
12 | #include <linux/reboot.h> |
13 | ||
02c981c0 | 14 | #include <asm/mach/time.h> |
f2a94192 | 15 | #include <asm/exception.h> |
02c981c0 | 16 | |
6213f70e RK |
17 | extern volatile int prima2_pen_release; |
18 | ||
75305275 | 19 | extern const struct smp_operations sirfsoc_smp_ops; |
4898de3d BS |
20 | extern void sirfsoc_secondary_startup(void); |
21 | extern void sirfsoc_cpu_die(unsigned int cpu); | |
02c981c0 BD |
22 | |
23 | extern void __init sirfsoc_of_irq_init(void); | |
f2a94192 | 24 | extern asmlinkage void __exception_irq_entry sirfsoc_handle_irq(struct pt_regs *regs); |
02c981c0 | 25 | |
a4b4674e SG |
26 | #ifdef CONFIG_SUSPEND |
27 | extern int sirfsoc_pm_init(void); | |
28 | #else | |
29 | static inline int sirfsoc_pm_init(void) { return 0; } | |
30 | #endif | |
31 | ||
02c981c0 | 32 | #endif |