blob: 67ff4467ac1004f44dc76e7147fdc951096aa2e0 [file] [log] [blame]
Duy Truong790f06d2013-02-13 16:38:12 -08001/* Copyright (c) 2008-2009, The Linux Foundation. All rights reserved.
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07002 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 */
13
14#ifndef _ARCH_ARM_MACH_MSM_IRQ_H_
15#define _ARCH_ARM_MACH_MSM_IRQ_H_
16
17int msm_irq_idle_sleep_allowed(void);
18unsigned int msm_irq_pending(void);
19void msm_irq_enter_sleep1(bool arm9_wake, int from_idle, uint32_t *irq_mask);
20int msm_irq_enter_sleep2(bool arm9_wake, int from_idle);
21void msm_irq_exit_sleep1
22 (uint32_t irq_mask, uint32_t wakeup_reason, uint32_t pending_irqs);
23void msm_irq_exit_sleep2
24 (uint32_t irq_mask, uint32_t wakeup_reason, uint32_t pending);
25void msm_irq_exit_sleep3
26 (uint32_t irq_mask, uint32_t wakeup_reason, uint32_t pending_irqs);
27
28#endif