Path: blob/master/arch/arm/mach-msm/include/mach/irqs.h
17613 views
/*1* Copyright (C) 2007 Google, Inc.2* Copyright (c) 2008-2010, Code Aurora Forum. All rights reserved.3* Author: Brian Swetland <[email protected]>4*5* This software is licensed under the terms of the GNU General Public6* License version 2, as published by the Free Software Foundation, and7* may be copied, distributed, and modified under those terms.8*9* This program is distributed in the hope that it will be useful,10* but WITHOUT ANY WARRANTY; without even the implied warranty of11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12* GNU General Public License for more details.13*14*/1516#ifndef __ASM_ARCH_MSM_IRQS_H17#define __ASM_ARCH_MSM_IRQS_H1819#define MSM_IRQ_BIT(irq) (1 << ((irq) & 31))2021#if defined(CONFIG_ARCH_MSM7X30)22#include "irqs-7x30.h"23#elif defined(CONFIG_ARCH_QSD8X50)24#include "irqs-8x50.h"25#include "sirc.h"26#elif defined(CONFIG_ARCH_MSM8X60)27#include "irqs-8x60.h"28#elif defined(CONFIG_ARCH_MSM8960)29/* TODO: Make these not generic. */30#include "irqs-8960.h"31#elif defined(CONFIG_ARCH_MSM_ARM11)32#include "irqs-7x00.h"33#else34#error "Unknown architecture specification"35#endif3637#define NR_IRQS (NR_MSM_IRQS + NR_GPIO_IRQS + NR_BOARD_IRQS)38#define MSM_GPIO_TO_INT(n) (NR_MSM_IRQS + (n))39#define MSM_INT_TO_REG(base, irq) (base + irq / 32)4041#endif424344