Message ID | a8b2b3bd9439e22942be01b06b7e0cfd9efeea20.1457470980.git.alistair.francis@xilinx.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D377DC0553 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 8 Mar 2016 21:12:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 45E33201E4 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 8 Mar 2016 21:12:16 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8C7C8201C8 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 8 Mar 2016 21:12:15 +0000 (UTC) Received: from localhost ([::1]:37425 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1adOvO-0000lB-TF for patchwork-qemu-devel@patchwork.kernel.org; Tue, 08 Mar 2016 16:12:14 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <alistair.francis@xilinx.com>) id 1adOtR-0006KN-0H for qemu-devel@nongnu.org; Tue, 08 Mar 2016 16:10:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alistair.francis@xilinx.com>) id 1adOtL-000345-UQ for qemu-devel@nongnu.org; Tue, 08 Mar 2016 16:10:12 -0500 Received: from mail-sn1nam02on0068.outbound.protection.outlook.com ([104.47.36.68]:20256 helo=NAM02-SN1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <alistair.francis@xilinx.com>) id 1adOtL-00033Q-PT for qemu-devel@nongnu.org; Tue, 08 Mar 2016 16:10:07 -0500 Received: from SN1NAM02FT026.eop-nam02.prod.protection.outlook.com (10.152.72.51) by SN1NAM02HT199.eop-nam02.prod.protection.outlook.com (10.152.73.101) with Microsoft SMTP Server (TLS) id 15.1.427.7; Tue, 8 Mar 2016 21:10:06 +0000 Authentication-Results: spf=fail (sender IP is 149.199.60.96) smtp.mailfrom=xilinx.com; linaro.org; dkim=none (message not signed) header.d=none; linaro.org; dmarc=none action=none header.from=xilinx.com; Received-SPF: Fail (protection.outlook.com: domain of xilinx.com does not designate 149.199.60.96 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.96; helo=xsj-tvapsmtpgw01; Received: from xsj-tvapsmtpgw01 (149.199.60.96) by SN1NAM02FT026.mail.protection.outlook.com (10.152.72.97) with Microsoft SMTP Server (TLS) id 15.1.427.7 via Frontend Transport; Tue, 8 Mar 2016 21:10:03 +0000 Received: from 172-16-1-203.xilinx.com ([172.16.1.203]:47574 helo=xsj-tvapsmtp02.xilinx.com) by xsj-tvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from <alistair.francis@xilinx.com>) id 1adOtD-0006Cp-Gw; Tue, 08 Mar 2016 13:09:59 -0800 Received: from [127.0.0.1] (port=48519 helo=tsj-smtp-dlp1.xlnx.xilinx.com) by xsj-tvapsmtp02.xilinx.com with esmtp (Exim 4.63) (envelope-from <alistair.francis@xilinx.com>) id 1adOtD-0000et-Cd; Tue, 08 Mar 2016 13:09:59 -0800 Received: from xsj-tvapsmtp02 (smtptest.xilinx.com [172.16.1.203]) by tsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id u28L48vE021903; Tue, 8 Mar 2016 13:04:09 -0800 Received: from [172.19.74.182] (port=56670 helo=xsjalistai50.xlnx.xilinx.com) by xsj-tvapsmtp02 with esmtp (Exim 4.63) (envelope-from <alistair.francis@xilinx.com>) id 1adOtC-0000eq-He; Tue, 08 Mar 2016 13:09:58 -0800 From: Alistair Francis <alistair.francis@xilinx.com> To: <qemu-devel@nongnu.org>, <peter.maydell@linaro.org> Date: Tue, 8 Mar 2016 13:06:58 -0800 Message-ID: <a8b2b3bd9439e22942be01b06b7e0cfd9efeea20.1457470980.git.alistair.francis@xilinx.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <cover.1457470980.git.alistair.francis@xilinx.com> References: <cover.1457470980.git.alistair.francis@xilinx.com> X-RCIS-Action: ALLOW X-TM-AS-MML: disable X-TM-AS-Product-Ver: IMSS-7.1.0.1679-8.0.0.1202-22178.005 X-TM-AS-Result: No--2.972-7.0-31-10 X-imss-scan-details: No--2.972-7.0-31-10 X-TMASE-MatchedRID: yWYOB9VwmhlGlhjnipkGEBWCVBr+Ay98DiUf/hQuYYVtw+n+iKWyyMRk oeJ3OFRcFXq3kuUpln++daZEFcM/u2+sGcdbpdKcngIgpj8eDcAZ1CdBJOsoY8RB0bsfrpPIcSq bxBgG0w5DVAShqJkPRN/palwNS5nwSIg9S27WniYn62ueLH4zwTwX2IN4fQ8gtgTKrhbHiqMHTb cmwZhizMMuxQhUMa4ehmjqA5KKqPeCvqWrFsheUcLe0zBjeZrbFQOP52BRBXJMTsKj18q/fA== X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:149.199.60.96; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(85426001)(6806005)(5008740100001)(87936001)(575784001)(86362001)(48376002)(92566002)(81166005)(47776003)(189998001)(76176999)(50466002)(50986999)(11100500001)(33646002)(118296001)(1096002)(5001770100001)(64026002)(1220700001)(4326007)(5003940100001)(77096005)(105606002)(106466001)(2906002)(36756003)(2950100001)(5003600100002)(19580405001)(586003)(229853001)(71366001)(19580395003)(50226001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1NAM02HT199; H:xsj-tvapsmtpgw01; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: b3fc1dc4-f811-4825-e3fc-08d347960609 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN1NAM02HT199; X-Microsoft-Antispam-PRVS: <f49f94b5a4994752858e615a77e6cae3@SN1NAM02HT199.eop-nam02.prod.protection.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(13024025)(13018025)(13015025)(5005006)(13023025)(13017025)(10201501046)(3002001); SRVR:SN1NAM02HT199; BCL:0; PCL:0; RULEID:; SRVR:SN1NAM02HT199; X-Forefront-PRVS: 08756AC3C8 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Mar 2016 21:10:03.5255 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.96]; Helo=[xsj-tvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1NAM02HT199 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.36.68 Cc: edgar.iglesias@xilinx.com, alistair.francis@xilinx.com, crosthwaitepeter@gmail.com, edgar.iglesias@gmail.com, alex.bennee@linaro.org, afaerber@suse.de, fred.konrad@greensocs.com Subject: [Qemu-devel] [PATCH v5 12/15] irq: Add opaque setter routine X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/hw/core/irq.c b/hw/core/irq.c index 49ff2e6..9d125fb 100644 --- a/hw/core/irq.c +++ b/hw/core/irq.c @@ -77,6 +77,11 @@ qemu_irq qemu_allocate_irq(qemu_irq_handler handler, void *opaque, int n) return irq; } +void qemu_irq_set_opaque(qemu_irq irq, void *opaque) +{ + irq->opaque = opaque; +} + void qemu_free_irqs(qemu_irq *s, int n) { int i; diff --git a/include/hw/irq.h b/include/hw/irq.h index 4c4c2ea..edad0fc 100644 --- a/include/hw/irq.h +++ b/include/hw/irq.h @@ -44,6 +44,8 @@ qemu_irq qemu_allocate_irq(qemu_irq_handler handler, void *opaque, int n); qemu_irq *qemu_extend_irqs(qemu_irq *old, int n_old, qemu_irq_handler handler, void *opaque, int n); +void qemu_irq_set_opaque(qemu_irq irq, void *opaque); + void qemu_free_irqs(qemu_irq *s, int n); void qemu_free_irq(qemu_irq irq);