From patchwork Fri May 10 02:18:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 16832 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f71.google.com (mail-qe0-f71.google.com [209.85.128.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 592F3238F7 for ; Fri, 10 May 2013 02:19:58 +0000 (UTC) Received: by mail-qe0-f71.google.com with SMTP id 1sf4689280qec.10 for ; Thu, 09 May 2013 19:19:33 -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=xHh1CfFX8IDXl7b50xe+bWAdUMOIoNLiYPdZPWiHidc=; b=VP28jqqtwX3Y6g6Le763nnO54SrCDCbVzK60udNC0ogjSRIgYpGvnmkcJ+v2AWJFFY izhrD93JoFUeoI2zedAPtyDOyiAJSdEBwVZ+fm47FDdmwsu8cJrnzvSApRoYRSfAqX7q f1FObqQws96A4W30kpR6W5iEvCSQGKIEV/aosXm67ltJDVqtgmXXLEC3eStUSk4l/0rd +1ORQjBkeXVYYbwea5d/0L/sdQGzNBAUFO3ZTvisgY2lr6j2ujCwawfGkUIaJ3FvGEyB QVT5hoPFmdn8rxBxvlNgSm+mnIcb2GEHjydUAg/yJ7ION1OgDgyi/0G6kwUJGABt15hI m7PA== X-Received: by 10.236.183.98 with SMTP id p62mr7499477yhm.3.1368152373842; Thu, 09 May 2013 19:19:33 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.0.142 with SMTP id 14ls1883906qee.91.gmail; Thu, 09 May 2013 19:19:33 -0700 (PDT) X-Received: by 10.220.202.138 with SMTP id fe10mr9672772vcb.26.1368152373663; Thu, 09 May 2013 19:19:33 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id u8si348021vck.29.2013.05.09.19.19.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 May 2013 19:19:33 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.170 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.170; Received: by mail-vc0-f170.google.com with SMTP id gf12so3314673vcb.1 for ; Thu, 09 May 2013 19:19:33 -0700 (PDT) X-Received: by 10.52.66.101 with SMTP id e5mr8322177vdt.57.1368152373567; Thu, 09 May 2013 19:19:33 -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.220.217.15 with SMTP id hk15csp36224vcb; Thu, 9 May 2013 19:19:33 -0700 (PDT) X-Received: by 10.180.198.175 with SMTP id jd15mr688405wic.28.1368152372610; Thu, 09 May 2013 19:19:32 -0700 (PDT) Received: from mail-we0-x22c.google.com (mail-we0-x22c.google.com [2a00:1450:400c:c03::22c]) by mx.google.com with ESMTPS id e7si170301wjw.51.2013.05.09.19.19.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 May 2013 19:19:32 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c03::22c is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=2a00:1450:400c:c03::22c; Received: by mail-we0-f172.google.com with SMTP id w60so3587254wes.3 for ; Thu, 09 May 2013 19:19:31 -0700 (PDT) X-Received: by 10.194.8.7 with SMTP id n7mr21400659wja.55.1368152371040; Thu, 09 May 2013 19:19:31 -0700 (PDT) Received: from belegaer.uk.xensource.com. (firewall.ctxuk.citrix.com. [46.33.159.2]) by mx.google.com with ESMTPSA id dj7sm597075wib.6.2013.05.09.19.19.29 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 May 2013 19:19:30 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Cc: Stefano.Stabellini@eu.citrix.com, ian.campbell@citrix.com, patches@linaro.org, Julien Grall Subject: [PATCH V3 20/41] xen/arm: Introduce setup_dt_irq Date: Fri, 10 May 2013 03:18:06 +0100 Message-Id: <1368152307-598-21-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1368152307-598-1-git-send-email-julien.grall@linaro.org> References: <1368152307-598-1-git-send-email-julien.grall@linaro.org> X-Gm-Message-State: ALoCoQm+xbD5g9bBeZSBVpV2T9a9puD6KkOciTbQaxzzzYstRJPQioC1olI6cmwI35nXnup2MIOD X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.170 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 6f57d66..cd3144e 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 eeb733a..de3aa22 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 */ @@ -26,6 +27,7 @@ struct irq_cfg { #define nr_static_irqs NR_IRQS struct irq_desc; +struct irqaction; struct irq_desc *__irq_to_desc(int irq); @@ -38,6 +40,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: