Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 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 | |
| 9 | #ifndef __MACH_PRIMA2_COMMON_H__ |
| 10 | #define __MACH_PRIMA2_COMMON_H__ |
| 11 | |
| 12 | #include <linux/init.h> |
Robin Holt | 7b6d864 | 2013-07-08 16:01:40 -0700 | [diff] [blame] | 13 | #include <linux/reboot.h> |
| 14 | |
Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 15 | #include <asm/mach/time.h> |
Barry Song | f2a9419 | 2012-12-20 19:11:18 +0800 | [diff] [blame] | 16 | #include <asm/exception.h> |
Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 17 | |
Masahiro Yamada | 7530527 | 2015-11-15 10:39:53 +0900 | [diff] [blame] | 18 | extern const struct smp_operations sirfsoc_smp_ops; |
Barry Song | 4898de3 | 2012-12-20 19:37:32 +0800 | [diff] [blame] | 19 | extern void sirfsoc_secondary_startup(void); |
| 20 | extern void sirfsoc_cpu_die(unsigned int cpu); |
Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 21 | |
| 22 | extern void __init sirfsoc_of_irq_init(void); |
Barry Song | f2a9419 | 2012-12-20 19:11:18 +0800 | [diff] [blame] | 23 | extern asmlinkage void __exception_irq_entry sirfsoc_handle_irq(struct pt_regs *regs); |
Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 24 | |
Shawn Guo | a4b4674 | 2012-04-26 20:51:36 +0800 | [diff] [blame] | 25 | #ifdef CONFIG_SUSPEND |
| 26 | extern int sirfsoc_pm_init(void); |
| 27 | #else |
| 28 | static inline int sirfsoc_pm_init(void) { return 0; } |
| 29 | #endif |
| 30 | |
Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 31 | #endif |