Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 1 | /* arch/arm/mach-msm/sirc.h |
| 2 | * |
| 3 | * Copyright (C) 2009 Google, Inc. |
| 4 | * Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
| 5 | * |
| 6 | * This software is licensed under the terms of the GNU General Public |
| 7 | * License version 2, as published by the Free Software Foundation, and |
| 8 | * may be copied, distributed, and modified under those terms. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | */ |
| 16 | |
| 17 | #ifndef _ARCH_ARM_MACH_MSM_SIRC_H |
| 18 | #define _ARCH_ARM_MACH_MSM_SIRC_H |
| 19 | |
| 20 | #if defined(CONFIG_ARCH_MSM_SCORPION) && !defined(CONFIG_MSM_SMP) |
| 21 | void sirc_fiq_select(int irq, bool enable); |
| 22 | #else |
| 23 | static inline void sirc_fiq_select(int irq, bool enable) {} |
| 24 | #endif |
| 25 | |
| 26 | #if defined(CONFIG_ARCH_QSD8X50) || defined(CONFIG_ARCH_FSM9XXX) |
| 27 | void __init msm_init_sirc(void); |
| 28 | void msm_sirc_enter_sleep(void); |
| 29 | void msm_sirc_exit_sleep(void); |
| 30 | #else |
| 31 | static inline void __init msm_init_sirc(void) {} |
| 32 | static inline void msm_sirc_enter_sleep(void) { } |
| 33 | static inline void msm_sirc_exit_sleep(void) { } |
| 34 | #endif |
| 35 | |
| 36 | #endif |