Message ID | 38a60ac4e4ee93779ca7574999623dff3dba38e3.1453237258.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@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8230B9F96D for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 19 Jan 2016 22:44:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CD1B320546 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 19 Jan 2016 22:44:17 +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 1EF782045E for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 19 Jan 2016 22:44:17 +0000 (UTC) Received: from localhost ([::1]:39527 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 1aLf0a-00040U-JD for patchwork-qemu-devel@patchwork.kernel.org; Tue, 19 Jan 2016 17:44:16 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <alistair.francis@xilinx.com>) id 1aLeuV-0000um-Cs for qemu-devel@nongnu.org; Tue, 19 Jan 2016 17:38:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alistair.francis@xilinx.com>) id 1aLeuS-0003uV-5W for qemu-devel@nongnu.org; Tue, 19 Jan 2016 17:37:59 -0500 Received: from mail-cys01nam02on0062.outbound.protection.outlook.com ([104.47.37.62]:43552 helo=NAM02-CY1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <alistair.francis@xilinx.com>) id 1aLeuR-0003uP-Vb for qemu-devel@nongnu.org; Tue, 19 Jan 2016 17:37:56 -0500 Received: from CY1NAM02FT063.eop-nam02.prod.protection.outlook.com (10.152.74.53) by CY1NAM02HT160.eop-nam02.prod.protection.outlook.com (10.152.74.90) with Microsoft SMTP Server (TLS) id 15.1.355.15; Tue, 19 Jan 2016 22:37:54 +0000 Authentication-Results: spf=fail (sender IP is 149.199.60.96) smtp.mailfrom=xilinx.com; suse.de; dkim=none (message not signed) header.d=none; suse.de; 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 CY1NAM02FT063.mail.protection.outlook.com (10.152.75.161) with Microsoft SMTP Server (TLS) id 15.1.355.15 via Frontend Transport; Tue, 19 Jan 2016 22:37:53 +0000 Received: from 172-16-1-203.xilinx.com ([172.16.1.203]:34479 helo=xsj-tvapsmtp02.xilinx.com) by xsj-tvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from <alistair.francis@xilinx.com>) id 1aLeuO-0008R9-UE; Tue, 19 Jan 2016 14:37:52 -0800 Received: from [127.0.0.1] (port=41694 helo=tsj-smtp-dlp1.xlnx.xilinx.com) by xsj-tvapsmtp02.xilinx.com with esmtp (Exim 4.63) (envelope-from <alistair.francis@xilinx.com>) id 1aLeuO-0007hV-Nb; Tue, 19 Jan 2016 14:37:52 -0800 Received: from xsj-tvapsmtp02 (xsj-tvapsmtp02.xilinx.com [172.16.1.203]) by tsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id u0JMWJng015295; Tue, 19 Jan 2016 14:32:19 -0800 Received: from [172.19.74.182] (port=39730 helo=xsjalistai50.xlnx.xilinx.com) by xsj-tvapsmtp02 with esmtp (Exim 4.63) (envelope-from <alistair.francis@xilinx.com>) id 1aLeuN-0007hK-Vk; Tue, 19 Jan 2016 14:37:51 -0800 From: Alistair Francis <alistair.francis@xilinx.com> To: <qemu-devel@nongnu.org> Date: Tue, 19 Jan 2016 14:35:25 -0800 Message-ID: <38a60ac4e4ee93779ca7574999623dff3dba38e3.1453237258.git.alistair.francis@xilinx.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <cover.1453237257.git.alistair.francis@xilinx.com> References: <cover.1453237257.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-22054.006 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/palwNS5nwSIg9S27WniYn62ueLH4zwR3SIexTAoM10YrmbX0YOtyzPo pGP8sFiw3gjT2bnVt/s+WolLNIvryCvqWrFsheUcLe0zBjeZrbFQOP52BRBXJMTsKj18q/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)(199003)(189002)(50226001)(5003940100001)(586003)(11100500001)(50986999)(92566002)(85426001)(47776003)(1220700001)(5001960100002)(19580405001)(575784001)(48376002)(50466002)(86362001)(189998001)(106466001)(2950100001)(19580395003)(2906002)(5003600100002)(4326007)(77096005)(1096002)(229853001)(76176999)(105606002)(64026002)(5008740100001)(81156007)(87936001)(71366001)(6806005)(36756003)(33646002)(118296001)(110136002)(2351001)(107986001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1NAM02HT160; H:xsj-tvapsmtpgw01; FPR:; SPF:Fail; PTR:unknown-60-96.xilinx.com; A:1; MX:1; LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: ce9faf95-67be-4d74-7c3d-08d321212b8e X-Exchange-Antispam-Report-Test: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:CY1NAM02HT160; UriScan:(192813158149592); X-Microsoft-Antispam-PRVS: <994e7fdde63744c999a2db27a6611925@CY1NAM02HT160.eop-nam02.prod.protection.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(13017025)(13024025)(13018025)(13015025)(13023025)(8121501046)(3002001)(10201501046); SRVR:CY1NAM02HT160; BCL:0; PCL:0; RULEID:; SRVR:CY1NAM02HT160; X-Forefront-PRVS: 0826B2F01B X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2016 22:37:53.4798 (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: CY1NAM02HT160 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.37.62 Cc: edgar.iglesias@xilinx.com, peter.maydell@linaro.org, alistair.francis@xilinx.com, crosthwaitepeter@gmail.com, edgar.iglesias@gmail.com, afaerber@suse.de Subject: [Qemu-devel] [PATCH v2 13/16] 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 8a62a36..4a41059 100644 --- a/hw/core/irq.c +++ b/hw/core/irq.c @@ -76,6 +76,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);