blob: f719969018d326dfb122ca813df57d51b235951a [file] [log] [blame]
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07001/* 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)
21void sirc_fiq_select(int irq, bool enable);
22#else
23static inline void sirc_fiq_select(int irq, bool enable) {}
24#endif
25
26#if defined(CONFIG_ARCH_QSD8X50) || defined(CONFIG_ARCH_FSM9XXX)
27void __init msm_init_sirc(void);
28void msm_sirc_enter_sleep(void);
29void msm_sirc_exit_sleep(void);
30#else
31static inline void __init msm_init_sirc(void) {}
32static inline void msm_sirc_enter_sleep(void) { }
33static inline void msm_sirc_exit_sleep(void) { }
34#endif
35
36#endif