From patchwork Thu Mar 11 05:30:30 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 84785 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2B5UYmv029021 for ; Thu, 11 Mar 2010 05:30:34 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751075Ab0CKFaa (ORCPT ); Thu, 11 Mar 2010 00:30:30 -0500 Received: from mail-yx0-f200.google.com ([209.85.210.200]:47467 "EHLO mail-yx0-f200.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751041Ab0CKFaa (ORCPT ); Thu, 11 Mar 2010 00:30:30 -0500 Received: by yxe38 with SMTP id 38so2076660yxe.22 for ; Wed, 10 Mar 2010 21:30:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :subject; bh=cul6Ov30y0q4oXi9i6wozRu8I9ZtkrCx5h0tiE4SLsw=; b=b5zmoWFgqPcARUnGfuOvK9TuSGKSPTsVaGQo5b5Ooehs20GVLjxe8Amx78wZwktbE8 03s6ARRC5uZIAyZPifsY43IjoZ28uBUcNkjGuI052AUAUkQZxIdJI0Cx732aIVtS5uyY BAfildToIRATMAQWHb5M+uQal4NFJxGGz3N/U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:subject; b=J5Y1MkX4TDpODBgocmcNoyCbpwSV17lDjPq9g9weVj+9BjL7Mpoqa6/p+c1yCS0HOk 1AaSKufpT/bn0YA3i4ZG1UC+5xYEIJYSuSC2+hhYNMMiz0JAeUeTyy3xxk0u1FCV1G4A chaBB4hRxp67grvU5MiY2miN8ubGCN4wB+YKk= Received: by 10.101.209.21 with SMTP id l21mr2637720anq.114.1268285429659; Wed, 10 Mar 2010 21:30:29 -0800 (PST) Received: from [127.0.0.1] (49.14.32.202.bf.2iij.net [202.32.14.49]) by mx.google.com with ESMTPS id 16sm5659256gxk.9.2010.03.10.21.30.28 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 10 Mar 2010 21:30:28 -0800 (PST) From: Magnus Damm To: lethal@linux-sh.org Cc: Magnus Damm , linux-sh@vger.kernel.org Date: Thu, 11 Mar 2010 14:30:30 +0900 Message-Id: <20100311053030.26699.955.sendpatchset@t400s> Subject: [PATCH] ARM: mach-shmobile: add INTCS macros Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 11 Mar 2010 05:30:35 +0000 (UTC) --- 0001/arch/arm/mach-shmobile/include/mach/irqs.h +++ work/arch/arm/mach-shmobile/include/mach/irqs.h 2010-03-09 21:13:19.000000000 +0900 @@ -4,7 +4,13 @@ #define NR_IRQS 512 #define NR_IRQS_LEGACY 8 +/* INTCA */ #define evt2irq(evt) (((evt) >> 5) - 16) #define irq2evt(irq) (((irq) + 16) << 5) +/* INTCS */ +#define INTCS_VECT_BASE 0x3400 +#define INTCS_VECT(n, vect) INTC_VECT((n), INTCS_VECT_BASE + (vect)) +#define intcs_evt2irq(evt) evt2irq(INTCS_VECT_BASE + (evt)) + #endif /* __ASM_MACH_IRQS_H */