From patchwork Wed May 8 02:33:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 16748 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f72.google.com (mail-qe0-f72.google.com [209.85.128.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 066B825CEA for ; Wed, 8 May 2013 02:35:10 +0000 (UTC) Received: by mail-qe0-f72.google.com with SMTP id 1sf1774386qee.7 for ; Tue, 07 May 2013 19:34:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=CggMm7pvz85axQB/dIjXfs8odrre/+dHLZ9oXsrapz0=; b=Fg8MP6oMr7F47eQbGxrGcE3n6KHqDL5g+GEM0rH8gkKqgef/EaDGCyTD9Gq/nTh4IN +dJZgJLXQP8aR+30FlxaLsNZyweq7vzL1G+XWNbq8lOoIRl2peiYwjx/sfOgmylE8AkD jMMXO1c8yzRShc0mr9y2nkJ8Pk+bO23wlmkIUOhh3SIu5feJm+T3keezDoiTSFPOrt5H UG+eevO7jBfxKS+g7GUmFxRrSdAtEisof3LZhuSX0ZqeZX5BpR1/ZT3EcdX2dtRlL3So QfZ46YaQCJ84QYE3iX4keZTRjnYOmjTN+tPYdaQfealiyeipAmo8pFXvOuGimgWjK3II 9klg== X-Received: by 10.236.62.166 with SMTP id y26mr2733253yhc.39.1367980489940; Tue, 07 May 2013 19:34:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.3.5 with SMTP id 5ls670468qey.92.gmail; Tue, 07 May 2013 19:34:49 -0700 (PDT) X-Received: by 10.52.18.206 with SMTP id y14mr2718634vdd.29.1367980489668; Tue, 07 May 2013 19:34:49 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id sa4si14140657vdc.88.2013.05.07.19.34.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 May 2013 19:34:49 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id gd11so1223170vcb.14 for ; Tue, 07 May 2013 19:34:49 -0700 (PDT) X-Received: by 10.220.89.198 with SMTP id f6mr3200903vcm.45.1367980489545; Tue, 07 May 2013 19:34:49 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp131011veb; Tue, 7 May 2013 19:34:49 -0700 (PDT) X-Received: by 10.194.90.202 with SMTP id by10mr7257689wjb.11.1367980488408; Tue, 07 May 2013 19:34:48 -0700 (PDT) Received: from mail-we0-x234.google.com (mail-we0-x234.google.com [2a00:1450:400c:c03::234]) by mx.google.com with ESMTPS id mc9si8852013wjb.5.2013.05.07.19.34.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 May 2013 19:34:48 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c03::234 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=2a00:1450:400c:c03::234; Received: by mail-we0-f180.google.com with SMTP id n5so1234547wev.39 for ; Tue, 07 May 2013 19:34:48 -0700 (PDT) X-Received: by 10.194.178.74 with SMTP id cw10mr4841534wjc.22.1367980488036; Tue, 07 May 2013 19:34:48 -0700 (PDT) Received: from belegaer.uk.xensource.com. (firewall.ctxuk.citrix.com. [46.33.159.2]) by mx.google.com with ESMTPSA id v6sm6823630wiy.11.2013.05.07.19.34.46 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 May 2013 19:34:47 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Cc: Stefano.Stabellini@eu.citrix.com, patches@linaro.org, ian.campbell@citrix.com, Julien Grall Subject: [PATCH V2 13/33] xen/arm: Introduce setup_dt_irq Date: Wed, 8 May 2013 03:33:33 +0100 Message-Id: <59baa87bb89ca069aa508c3bd593ae532ea9777c.1367979526.git.julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: X-Gm-Message-State: ALoCoQlJG6TgBhZA4j5NHIULR3AtD27uotfJ0zdRcunVo7UgpZgq+2Ka80WUztDClM4vQ4LGm97L X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This function will replace setup_irq in later patch. It takes a dt_irq as first argument instead of an unsigned int. Signed-off-by: Julien Grall Acked-by: Ian Campbell --- xen/arch/arm/gic.c | 5 +++++ xen/include/asm-arm/irq.h | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/xen/arch/arm/gic.c b/xen/arch/arm/gic.c index 78fc144..1efa9a3 100644 --- a/xen/arch/arm/gic.c +++ b/xen/arch/arm/gic.c @@ -521,6 +521,11 @@ static int __setup_irq(struct irq_desc *desc, unsigned int irq, return 0; } +int __init setup_dt_irq(const struct dt_irq *irq, struct irqaction *new) +{ + return setup_irq(irq->irq, new); +} + int __init setup_irq(unsigned int irq, struct irqaction *new) { int rc; diff --git a/xen/include/asm-arm/irq.h b/xen/include/asm-arm/irq.h index 9fc008c..47399ca 100644 --- a/xen/include/asm-arm/irq.h +++ b/xen/include/asm-arm/irq.h @@ -2,6 +2,7 @@ #define _ASM_HW_IRQ_H #include +#include #define NR_VECTORS 256 /* XXX */ @@ -25,6 +26,7 @@ struct irq_cfg { #define nr_static_irqs NR_IRQS struct irq_desc; +struct irqaction; struct irq_desc *__irq_to_desc(int irq); @@ -37,6 +39,8 @@ void do_IRQ(struct cpu_user_regs *regs, unsigned int irq, int is_fiq); void init_IRQ(void); void init_secondary_IRQ(void); +int __init setup_dt_irq(const struct dt_irq *irq, struct irqaction *new); + #endif /* _ASM_HW_IRQ_H */ /* * Local variables: