Message ID | 0832cb738ee117be036a4f35cbff23c777d56060.1438200827.git.alistair.francis@xilinx.com |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id BE8F51402D0 for <incoming@patchwork.ozlabs.org>; Thu, 30 Jul 2015 06:34:03 +1000 (AEST) Received: from localhost ([::1]:36984 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1ZKY37-0003JD-NP for incoming@patchwork.ozlabs.org; Wed, 29 Jul 2015 16:34:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55412) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <alistair.francis@xilinx.com>) id 1ZKXuf-0005Do-8c for qemu-devel@nongnu.org; Wed, 29 Jul 2015 16:25:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alistair.francis@xilinx.com>) id 1ZKXua-0002zn-Ed for qemu-devel@nongnu.org; Wed, 29 Jul 2015 16:25:17 -0400 Received: from mail-by2on0088.outbound.protection.outlook.com ([207.46.100.88]:11447 helo=na01-by2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <alistair.francis@xilinx.com>) id 1ZKXua-0002zj-5C for qemu-devel@nongnu.org; Wed, 29 Jul 2015 16:25:12 -0400 Received: from BY2FFO11HUB026.protection.gbl (10.1.14.112) by BY2FFO11HUB044.protection.gbl (10.1.15.225) with Microsoft SMTP Server (TLS) id 15.1.231.11; Wed, 29 Jul 2015 20:25:10 +0000 Received: from BY2FFO11OLC007.protection.gbl (10.1.14.32) by BY2FFO11HUB026.protection.gbl (10.1.14.112) with Microsoft SMTP Server (TLS) id 15.1.231.11; Wed, 29 Jul 2015 20:25:07 +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; 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 BY2FFO11OLC007.mail.protection.outlook.com (10.1.14.254) with Microsoft SMTP Server (TLS) id 15.1.231.11 via Frontend Transport; Wed, 29 Jul 2015 20:25:07 +0000 Received: from 172-16-1-203.xilinx.com ([172.16.1.203]:49728 helo=xsj-tvapsmtp02.xilinx.com) by xsj-tvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from <alistair.francis@xilinx.com>) id 1ZKXuS-0003aL-SB; Wed, 29 Jul 2015 13:25:04 -0700 Received: from [127.0.0.1] (port=39142 helo=tsj-smtp-dlp1.xlnx.xilinx.com) by xsj-tvapsmtp02.xilinx.com with esmtp (Exim 4.63) (envelope-from <alistair.francis@xilinx.com>) id 1ZKXuS-0004VC-Le; Wed, 29 Jul 2015 13:25:04 -0700 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 t6TKKSNO010179; Wed, 29 Jul 2015 13:20:28 -0700 Received: from [172.19.5.153] (port=49433 helo=xsjrdevl46.xilinx.com) by xsj-tvapsmtp02 with esmtp (Exim 4.63) (envelope-from <alistair.francis@xilinx.com>) id 1ZKXuR-0004V9-KF; Wed, 29 Jul 2015 13:25:03 -0700 From: Alistair Francis <alistair.francis@xilinx.com> To: <qemu-devel@nongnu.org> Date: Wed, 29 Jul 2015 13:25:03 -0700 Message-ID: <0832cb738ee117be036a4f35cbff23c777d56060.1438200827.git.alistair.francis@xilinx.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <cover.1438200827.git.alistair.francis@xilinx.com> References: <cover.1438200827.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-21710.005 X-TM-AS-Result: No--2.459-7.0-31-10 X-imss-scan-details: No--2.459-7.0-31-10 X-TMASE-MatchedRID: yWYOB9VwmhlGlhjnipkGEBWCVBr+Ay98DiUf/hQuYYVtw+n+iKWyyMRk oeJ3OFRcFXq3kuUpln++daZEFcM/u2+sGcdbpdKcngIgpj8eDcAZ1CdBJOsoY8RB0bsfrpPIcSq bxBgG0w5jgROGmK6SuTt0pNax1WDaXgTJ4sx7p2Mlz490pXHOSOMSIbkTA4aqTJ6koRhNFp3M+l FVrj15ubfDWLxLjce0OEKwvUImahKCvqWrFsheUcLe0zBjeZrbFQOP52BRBXJMTsKj18q/fA== X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC007; 1:fN3Q0o1japEyVT/cb4Os5bJUnb+zYgLB+LYcwhQDLFe06o0sfu08uhtb4WsExLUekmqhMdFmY1RhljvClEn+o9emeomDrP0jnilRLUnU8jX8sy2rb/eqifH7CNtj5CBW3YD3SCCrA/YC2dCvToiJ12TLvBxv7PhXUDFW95uzOtngXf35vu7xIOMH9PRZToRCRFOXwElA4vLrhTDiDzF2TKBbrxhRA+tVgYvHHT0QbtbzxjRIc5PaV9Nv8KHnbNBgvLz3lxelWgh1d5bwFa15bKF+x2ujtFge6bjwu0pz7zknwf7IXGR+kDNU0EJqY0Kz X-Forefront-Antispam-Report: CIP:149.199.60.96; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(339900001)(189002)(199003)(229853001)(19580405001)(85426001)(5001960100002)(2351001)(6806004)(92566002)(19580395003)(50466002)(76176999)(575784001)(50986999)(86362001)(48376002)(87936001)(110136002)(71366001)(46102003)(189998001)(64026002)(47776003)(77096005)(106466001)(2950100001)(105606002)(33646002)(36756003)(5003600100002)(5003940100001)(62966003)(77156002)(118296001)(50226001)(107986001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2FFO11HUB026; H:xsj-tvapsmtpgw01; FPR:; SPF:Fail; MLV:nov; MX:1; A:1; PTR:unknown-60-96.xilinx.com; LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11HUB026; 2:p1p1kK8tSH3lTcVaRiq2MVZEu9D2+bGFyidDgpOlV8EKjuXdx2mRyQVoSY/WfQ+Uq08PCAdY0x15lMVCSc5lJjzIIeWd3RpsSVHJpkBUtXyR6fpjFNvn0vDh6j6KE6RZbONp3y6uOvujjZp6Rl6cpQrgybeDYfWWrOz4SHJU0Qo=; 3:T1S+t0smoKbvEEftMTmBXPvU1SHQTGct7OlM2Dcl1RlyEOThTp7T9wPm+97SP3y3B+8MtqUCM7Z8Dx5fytv0xhPk1Dl0BXmn3EXtCcOetFzr81IOdEcYf1IxveG/vc5eChG+kPlyRhpsM5yI6H0elTN8OnRVZYj7ZAFEeBnzDr1kzvNAW7nhMQLHT2CjEUG55xg9DXELCj15MoP74ljS1+WmEZ9knrdo1uZVtaCQSOs=; 25:o2oDTgHsfHh9cwV6f54Nd7a7O+iPSbNHkAnsqZd7lNbCG7HKjUxjdWP6H4T6e4E5pOopoqNoOH8MZSSXJmFM3OF/ekN4RkTrN3rIJDimbMfdNIOtdX0eyFcDF88v83VweTFY2HnzADeYCRWvQRSj3wkxPp9XeQraedcNbTRn5g7bF9qIgHU2EZ4CsPU8ZFCb3rwwwZnmRykNPs48YtFgdwt2iowBjEVrWLIGJ30mpG/nayd40zBa8Udm940WKRNpT/vCs+r6VQeXYsUERuU44g== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BY2FFO11HUB026; UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BY2FFO11HUB044; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11HUB026; 20:Zm7dmamvw/e/DBh/dE4evjY9YQd/8PJe2+aE6FVWMRI8XtcxpttlcuzCHefHWHbLiKV87L6OdBCKxYgEaxSWOiErKbnXxelknWm355ZkXEcr58pYsb0qcRW7xCSTlkfJ0JAUTkSGgLFlAO1NyGTJ8n0PFcvu1YPvmqxsALWy9Jqe/fezhXrULbNypRqGHqltM0f7/Z1SXnPEStT6ov93rp4YYK8uwIhn0W0BRt1pURAIRXe/kkrfuGEFnnB3TmyC3+Tu4fM24KEVKubZVDfx3dq1vovGilZhs80Uzgrc9JAaP7v0yiAHUofftckhZyt+SBy+cUtvLwxiceiJWAKJdmjCXjrL8+LLRqypynE4CaU3BvQbHANsGBeVijrK0CXK6hUkUO+5tLCVq4QNmiaLNGsoOrsjkjcKWmkDLKvVDXPXNxnPGaRD6Mx0WN/7VxCqvYUQMUNYHpkOPpXFLCjs/HEzh8ELba9oy1dOTNjgcptcalIs1LogE2XcDQDOgExM; 4:UWYJv9iUrIPczIR+6jRO9Vr15Oyz8N6nNktxVANF9KKt/C/TbgLHOUNNn5BeoiUyka7j3G8cBwfsSR+XRO9bevRF2/Sh0EpOIzZK1lByLqpWm+rvod6d5WmGW26l7Kvk4u0lZnyk/3KBHG10Xkh6lJORElmEVWHLDn4hCHzA7OuoK9vyXZD6lcbv0yoS+LGDnaM8Mafr2sseUAylgUf9hfUTQqi780j9o74kYG32Ef8PrLo5pNtOu6FZO/Tft2UxdbH7U4mP9G8tkyq2iWdTZYy8DpIee+apdu/UKaX/CG8= BY2FFO11HUB026: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: <BY2FFO11HUB026BC9FF11D0FEF141222ABE28C0@BY2FFO11HUB026.protection.gbl> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:BY2FFO11HUB026; BCL:0; PCL:0; RULEID:; SRVR:BY2FFO11HUB026; X-Forefront-PRVS: 0652EA5565 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2FFO11HUB026; 23:UFquni5BFP6FYq+l6p+QpbiUc21gjl+Axokja0Ni?= =?us-ascii?Q?3nqy0QUsy3x2888TUUf9JwtxyQZnljGorcb4sEB8RK/0amByLeTnRNsP+Pwr?= =?us-ascii?Q?x7qqaM99h/eh9WPb4l/A9fvBvy7Zmikk8ugAVxHkMeN2WvvBoCQlI2T2uKoG?= =?us-ascii?Q?pNsCZIEIeq3wsJwQjoreQ964tlXtZpEvS7nJNzX+ihdRgG+ChEvRuJYMHGnq?= =?us-ascii?Q?Szobewfj8pTa3hnbuBhySJaFm8pCUn9aDcBNMDYVHQdc8s8kSt5ve3SUREdH?= =?us-ascii?Q?Xa/2bEkj25JZAHrkfpS6Jmt13eNJ0YAsy5wBBRpwh0V0t54gscB8Xt5ZrAOZ?= =?us-ascii?Q?rMeNEfvLMVa+KipozK4kzmAyyeEh7DsRhnZvsuFn2RoNTMCqg3TDn9tQpu+7?= =?us-ascii?Q?wqpILO7r5yuGLO9zxJSYp3YJRiQNENZYsaur0mV3ZzpHtNQAAmQEFpOxwrfo?= =?us-ascii?Q?j05zq0HdAVzs7MRDmKflEiLrHR6lZUx8TjbGy/ihlICKBXyRFd+MTTlK3geZ?= =?us-ascii?Q?g9xPjBCcoi/JlPAczAivKAMnFwO9qp1EuEapM8g4N0RPRGrgcijWzgi3eHaD?= =?us-ascii?Q?dwIVgu1us8N5Lu2AijIE2IAXT/pmA+fcyBn2seJxpF/8/nLV5t6yMUa0Dp+O?= =?us-ascii?Q?0dCErli0//2998go/IzCJnE7yLpMhtm+bM1nGkEl97ICbUHATGqxVLj70XjH?= =?us-ascii?Q?GXeqB1/B0ZOLU4RBYWxu3cD14loRYW6RXweZWdYz6AE8a/Wouuv4cvWx7Gxe?= =?us-ascii?Q?zq8JHuFnbh9I0xS6loLqvOwfN2s78rpc5hqNCo5BDLKR1LQ7s/ZMU4DC26sk?= =?us-ascii?Q?rwKs/oSjvRB/bm9tbbGKAnqQyD5cGjzGlC28cVFuTQ361N2RFlIAk4KDZMIY?= =?us-ascii?Q?Zy97XJXRWZlqg+e75NqZ3ICXy64wU5fhXk4WuUUARyMmhUmOMqAgXqX3HLgz?= =?us-ascii?Q?+ruYERmRdsevftMdKOMkY8JM8XQ0kr6hwOyWHhOmLis4MgX/0gKa1LIq3JAT?= =?us-ascii?Q?4T5cM6hP/7ZL9LvOJYI4SOVjJre37Ara4CWVbiyCrniFRYccOWAvUBf58qZt?= =?us-ascii?Q?FJz/phQ=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11HUB026; 5:Lr7s37xUgcKuWaEhqBap/xMNdocwT/ASZTKWk3a1+bXUZn7rVObEafBkoJqESBolYEQ9/BTTNFlKawGRSewswYxPBcoPfLwFA5shlkVNXv/UGWS6O/U+7DTm1UocOE51obnAh4vrfKzmVClyOzTJjQ==; 24:N/tSeQuV1zddV6c8Z8bEzMfST50ReJ5xo6roGQYxmtITeWSgVWEmtK4lrx98+oMORINK/RyjSi3T0l0gEbAxPDH6joTtcuOlxeqyyTSg/a0= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jul 2015 20:25:07.4670 (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: BY2FFO11HUB026 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11HUB044; 2:1mE9I7WihZ/dwhUzTML/jHUIbTuo/rZhPdiy01QIdvX0WUokijNi7i4L1UObPzWTscW2GdFT0F28yftDXKEbXgiDxXhbrtxhHlhL/KWiRRFFTvmP1Wxjwkwk6s1K/t3EEpveLcrwd0/3tzfurBasSlKC5zhrB1pweJgFmAjgle0=; 3:lKVZNd8GN5WOIgXP4ZiG/tuR/rZ5WvKglEEsIB4d/IQaymiqtNYAF0nV/DBY5k8Ze4LJI7DkfY3PoGS6z+CHKolebEatotTi82zKOaNzp+DhkJ6xJ7rtcX+Z+5OH+YTpUmDm7o546O6qTg8JL5jVgv5hLPsL9MMAjFP8gMqJUNXZN3X+HX/MguykvJoX9AqNSzmGJI3JkXP1eaboIulzAFF2Uk6m5o6nVjwglx2nKrA=; 25:sDFMiHhT4TY/7JuD+9o689pEXXh+rSisB2V8kO3nR3v1BP4spi0uIPylpcMRK11scdNGnqulL97GfAosrS2U9yV+S6XCj8JRyvUrN3Qo0R4HsQmG9CTrv18au1gNBulpx7mjqpqLPil6OHYzxNJcSixJsGxOLHCXQCLxlRYe9+NHQiPBb0gPc7p2cjGiPFWMfdjC3mnxS7L0wa7QKVMTwQ8FT2oK7ZAVrEPZh3XScupJXRKbm2Fu29mxuXngIDj0pcmONTG7om4zOZXikuyYhQ==; 20:rDxmzspDMEOVuR8l+0U/0NoVe6GGDQCeONsARV9os6T0XJonDr/kN43HbKOJrr9gW4V4QhQr6rg4ZkB1uSq+Gw== BY2FFO11HUB044: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11HUB044; 23:rQbC2Nn49aYxa7WLIZMeeqMkXdt4BQ0EAGJ+HarC4icyqAN4+jsmEDJlI+6WbCsIjSHgb7//4DWU/gppkC1nDckK4id9tyKloblnrlvOhi8ss+SfvyOXhiHrQxJ8kq0XsltuSTAwBohCfhLD+h9H9WJMhPC3jLaVb9Z0rPxd3KfBHIvy4I8Scd4Cbm1vIuKi X-OriginatorOrg: xilinx.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (barebone) [generic] [fuzzy] X-Received-From: 207.46.100.88 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 v1 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org |
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);