aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/gic.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-tegra/gic.h')
-rw-r--r--arch/arm/mach-tegra/gic.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/gic.h b/arch/arm/mach-tegra/gic.h
new file mode 100644
index 00000000000..22bb85f1852
--- /dev/null
+++ b/arch/arm/mach-tegra/gic.h
@@ -0,0 +1,51 @@
1/*
2 * arch/arm/mach-tegra/include/mach/gic.h
3 *
4 * Copyright (C) 2010-2012 NVIDIA Corporation
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 _MACH_TEGRA_GIC_H_
18#define _MACH_TEGRA_GIC_H_
19
20#if defined(CONFIG_HOTPLUG_CPU) || defined(CONFIG_PM_SLEEP)
21
22void tegra_gic_cpu_disable(void);
23void tegra_gic_cpu_enable(void);
24
25#ifndef CONFIG_ARCH_TEGRA_2x_SOC
26
27void tegra_gic_pass_through_disable(void);
28
29#endif
30#endif
31
32
33#if defined(CONFIG_PM_SLEEP)
34
35int tegra_gic_pending_interrupt(void);
36
37#ifndef CONFIG_ARCH_TEGRA_2x_SOC
38
39void tegra_gic_dist_disable(void);
40void tegra_gic_dist_enable(void);
41
42void tegra_gic_disable_affinity(void);
43void tegra_gic_restore_affinity(void);
44void tegra_gic_affinity_to_cpu0(void);
45
46#endif
47#endif
48
49void __init tegra_gic_init(void);
50
51#endif /* _MACH_TEGRA_GIC_H_ */