From patchwork Wed May 8 02:33:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 16749 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f198.google.com (mail-ve0-f198.google.com [209.85.128.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 54251238FD for ; Wed, 8 May 2013 02:35:11 +0000 (UTC) Received: by mail-ve0-f198.google.com with SMTP id 15sf1728901vea.9 for ; Tue, 07 May 2013 19:34:51 -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=1Ko17Jd2GzNhHxAL6SuaX1APFsH4Yrm12c5k4AiAbVE=; b=ZvX6XJTh3JqkKepPs6EfuKBQ+ZCz16GrsrQAXoP8kCCtOnMtr6yXVJVq4yd/q4V44A Yh6cVBGwl0XlWBMU86aa2nsKcCLNPr6b0yDeAn3kV/IeR4Qd69mROLHkvBsrI2gg361+ 90uSgFBWE55FCu0SCr2/j0g/k8oDgw/Rk1pgVHFlc2PYqaRrSEFgLijkfgkohSR1YKC8 PdAlb1TpBQFirdEwFWhA/0r/rTZc7k8Fd8EQXP5ipFM3SzkkLmrezCfQAStK5Fj5VBOu nCnCMDRTjt7W5kfkzqiJtdTGRW0W5/N3P+RsN2sWcN3p6lJDJVWMaQklG5+ovrkah7bq 1yDw== X-Received: by 10.224.217.195 with SMTP id hn3mr6503310qab.5.1367980491033; Tue, 07 May 2013 19:34:51 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.106.73 with SMTP id gs9ls700673qeb.27.gmail; Tue, 07 May 2013 19:34:50 -0700 (PDT) X-Received: by 10.52.94.227 with SMTP id df3mr2692142vdb.48.1367980490807; Tue, 07 May 2013 19:34:50 -0700 (PDT) Received: from mail-ve0-x235.google.com (mail-ve0-x235.google.com [2607:f8b0:400c:c01::235]) by mx.google.com with ESMTPS id ec8si14134263vdb.111.2013.05.07.19.34.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 May 2013 19:34:50 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::235 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::235; Received: by mail-ve0-f181.google.com with SMTP id d10so1306586vea.40 for ; Tue, 07 May 2013 19:34:50 -0700 (PDT) X-Received: by 10.52.53.36 with SMTP id y4mr2456508vdo.51.1367980490726; Tue, 07 May 2013 19:34:50 -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 nf2csp131013veb; Tue, 7 May 2013 19:34:50 -0700 (PDT) X-Received: by 10.194.58.78 with SMTP id o14mr7169950wjq.39.1367980489754; Tue, 07 May 2013 19:34:49 -0700 (PDT) Received: from mail-wi0-x236.google.com (mail-wi0-x236.google.com [2a00:1450:400c:c05::236]) by mx.google.com with ESMTPS id wf2si8838641wjb.109.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: 2a00:1450:400c:c05::236 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=2a00:1450:400c:c05::236; Received: by mail-wi0-f182.google.com with SMTP id m6so1376913wiv.3 for ; Tue, 07 May 2013 19:34:49 -0700 (PDT) X-Received: by 10.194.133.130 with SMTP id pc2mr7146618wjb.35.1367980489240; Tue, 07 May 2013 19:34:49 -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.48 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 May 2013 19:34:48 -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 14/33] xen/arm: Introduce request_dt_irq Date: Wed, 8 May 2013 03:33:34 +0100 Message-Id: <36fa4d8253f148348a6694c1c78c9535929a77e4.1367979526.git.julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: X-Gm-Message-State: ALoCoQmZphwCVFP4kF9yMgilNg3cHikOYxUqxVZrifqWqKJKksDU7IU+tDb0tN3VWLcFZc949FF3 X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::235 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 request_irq in a 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/irq.c | 7 +++++++ xen/include/asm-arm/irq.h | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/xen/arch/arm/irq.c b/xen/arch/arm/irq.c index 8c96a0a..0b7a75f 100644 --- a/xen/arch/arm/irq.c +++ b/xen/arch/arm/irq.c @@ -93,6 +93,13 @@ void __cpuinit init_secondary_IRQ(void) BUG_ON(init_local_irq_data() < 0); } +int __init request_dt_irq(const struct dt_irq *irq, + void (*handler)(int, void *, struct cpu_user_regs *), + unsigned long irqflags, const char *devname, void *dev_id) +{ + return request_irq(irq->irq, handler, irqflags, devname, dev_id); +} + int __init request_irq(unsigned int irq, void (*handler)(int, void *, struct cpu_user_regs *), unsigned long irqflags, const char * devname, void *dev_id) diff --git a/xen/include/asm-arm/irq.h b/xen/include/asm-arm/irq.h index 47399ca..248398d 100644 --- a/xen/include/asm-arm/irq.h +++ b/xen/include/asm-arm/irq.h @@ -39,6 +39,10 @@ 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 request_dt_irq(const struct dt_irq *irq, + void (*handler)(int, void *, struct cpu_user_regs *), + unsigned long irqflags, const char *devname, + void *dev_id); int __init setup_dt_irq(const struct dt_irq *irq, struct irqaction *new); #endif /* _ASM_HW_IRQ_H */