Message ID | 2b1cacbb49ec4ad0d83d1313477477e47b79b8f2.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 255D414030C for <incoming@patchwork.ozlabs.org>; Thu, 30 Jul 2015 06:26:02 +1000 (AEST) Received: from localhost ([::1]:36913 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 1ZKXvM-0006Ax-12 for incoming@patchwork.ozlabs.org; Wed, 29 Jul 2015 16:26:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <alistair.francis@xilinx.com>) id 1ZKXuY-0004wA-DX for qemu-devel@nongnu.org; Wed, 29 Jul 2015 16:25:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alistair.francis@xilinx.com>) id 1ZKXuT-0002p4-KQ for qemu-devel@nongnu.org; Wed, 29 Jul 2015 16:25:10 -0400 Received: from mail-bn1bon0067.outbound.protection.outlook.com ([157.56.111.67]:28448 helo=na01-bn1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <alistair.francis@xilinx.com>) id 1ZKXuT-0002nE-FO for qemu-devel@nongnu.org; Wed, 29 Jul 2015 16:25:05 -0400 Received: from BN1BFFO11FD016.protection.gbl (10.58.144.33) by BN1BFFO11HUB042.protection.gbl (10.58.144.189) with Microsoft SMTP Server (TLS) id 15.1.231.11; Wed, 29 Jul 2015 20:25:04 +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 BN1BFFO11FD016.mail.protection.outlook.com (10.58.144.79) with Microsoft SMTP Server (TLS) id 15.1.231.11 via Frontend Transport; Wed, 29 Jul 2015 20:25:03 +0000 Received: from 172-16-1-203.xilinx.com ([172.16.1.203]:49719 helo=xsj-tvapsmtp02.xilinx.com) by xsj-tvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from <alistair.francis@xilinx.com>) id 1ZKXuQ-0003aI-O6; Wed, 29 Jul 2015 13:25:02 -0700 Received: from [127.0.0.1] (port=39132 helo=tsj-smtp-dlp1.xlnx.xilinx.com) by xsj-tvapsmtp02.xilinx.com with esmtp (Exim 4.63) (envelope-from <alistair.francis@xilinx.com>) id 1ZKXuQ-0004Up-BP; Wed, 29 Jul 2015 13:25:02 -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 t6TKKQVn010175; Wed, 29 Jul 2015 13:20:26 -0700 Received: from [172.19.5.153] (port=49431 helo=xsjrdevl46.xilinx.com) by xsj-tvapsmtp02 with esmtp (Exim 4.63) (envelope-from <alistair.francis@xilinx.com>) id 1ZKXuP-0004UU-6t; Wed, 29 Jul 2015 13:25:01 -0700 From: Alistair Francis <alistair.francis@xilinx.com> To: <qemu-devel@nongnu.org> Date: Wed, 29 Jul 2015 13:25:01 -0700 Message-ID: <2b1cacbb49ec4ad0d83d1313477477e47b79b8f2.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.207-7.0-31-10 X-imss-scan-details: No--2.207-7.0-31-10 X-TMASE-MatchedRID: XSBgVm8tTncuomMkG8nx0hWCVBr+Ay98N25XIDQLt3bfUZT83lbkELlV chvAooLe7uKWKn2LBnuAMuqetGVetnyef22ep6XYxlblqLlYqXKc22s/RRukKhaXWSpjHsdPPjw 6LJbudlp83NI0wFVaPO3Y0AdQmMzjRuyKUIIbYOH+/qNDILyrUmZpOsCGNjyHV7hwMSTZASv+v9 v52ZIoWjoAf389xF3XFSk9HhUZnw7OGIWnws4LoyHWPYzouJUy X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD016; 1:aKTP9eCm6f3D83KF64D5y9EmVyk6gWzk9yrTZASO4FRVABLDWWh3bsS0T+g9eWXbCxGnn+avnGpq7vFmCLCU9Xamo0i+EjiXiK0crWqHWxttz2XEkZD6EyguWj9c8/HnVHLYc7e/3reYtGZzgFgXN0KcDfrVERVFtkiSQ0Nnx5nUE6UK0vcYHcm4ibVcUkE0K2sktzkmZ3Ffe7s5Hbgp1ObqNNieFdxafp2+XbltqL6RaHcFTyc68N9QVF8CTNg3Go8dWMTZmArKG1ZAuLNnHKd3mfWat1NyEyszKFSh7+D5BBJXh3fDY5obLcH/BzB/ X-Forefront-Antispam-Report: CIP:149.199.60.96; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(979002)(6009001)(2980300002)(339900001)(199003)(189002)(19580405001)(5001960100002)(19580395003)(110136002)(106466001)(48376002)(33646002)(50226001)(5001920100001)(47776003)(6806004)(87936001)(85426001)(50466002)(50986999)(2351001)(76176999)(189998001)(71366001)(229853001)(105606002)(92566002)(2950100001)(86362001)(118296001)(77096005)(5003940100001)(46102003)(5003600100002)(77156002)(62966003)(36756003)(64026002)(107986001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1BFFO11HUB042; H:xsj-tvapsmtpgw01; FPR:; SPF:Fail; MLV:ovr; A:1; MX:1; PTR:unknown-60-96.xilinx.com; LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11HUB042; 2:dnlJrZ23TOtoskp81fg9JsbPrZzKt/oj6IeliNjCI2de5M/yRD1er0Sd1aOvVvt+Fw/dHK8MgWg9Qsa8Q+HifY8somPitpjtqFuviql9b1JuSfSSz8aMW9u8+kntWhaOU+mq7OR6iakam0rWkR44vKRuDIrIqK3eZ9Io88JApBI=; 3:PLnahIOZuEVQ2wifHKirI9/2gT1Xmc6FLyDBC+40Pf3hKKL8jUqAbHDD0bWccQrQYEAlfUqi+qi6cUnz2Eu0ZD6tshq3lA9te+FVsFiqLMo76Ie+mUwZIsvh9O2OmidENhoyYBEKMOwPUNiyl6hzwKa+vZfL6W//dLtDk5/QbZK6JEYuvD12Fie7JiPxDsAlXhH41ec0VZ5FetqZ+jK9xkuVvmNu2fMl+//MdrwSx7E=; 25:sDjVTLUWuAEriuzm+q/S2Olg/HEH4iHTtrrJa59ZfxiHQcHq3VlRiHir3tdMuHXzgbVtM1IBWt8y9WtnFpne+gN2zKn0QOpi8MukS+9ntei8eHdh3VssKI0F2C1UQAbRYRmHgLvy8VCVG/srkRDmkfjdjM5nNFotNoxHseHUFJxBp9gwTNbBPlvKjZA4ufwA2OTS7w9A80clfsHRmWaydb43lO3yyOtTvGYGHtKiyGxszeWlsizjDulyEMa3S2LR X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN1BFFO11HUB042; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11HUB042; 20:wYduAuPBBG8KfsjdjwIoFJhQSUSKX9OJuv1yw94mMo1hLrFiJXjGQ2nRxPK8v37wIfdtrDaLkK7ISvkhq1718sW8wCwEVOO/7IJYU2WemrNz24uiKNS6IyFH6q89bIuAZopvvXleUVOVJsvhbS69wJWM41Yba/dc3qf/cItJ82Xqm4K22BQLksjhIBezFk9xJ8EY9CLcWEIImK9jeWnPSJU9iZlVOsW5NwBiLPrJyb3/9m70Qwg4Ly+rW+AAqjLREZhq4anvo3VS2uygEANFDv9V9tmKDzuFUvjNJtKduAo30nhys6OSO1FYrbSVfEfAqdWJpri3yLEL3PS2LcN/vPrOftGopeisyOw9ZJxyOzNvupwEZunfgTvJEaLmqVZNHF8m9mjfQVp891L3ucH0kjdU9jjFzIoPedBfWe+0q6DLgEdfvdjMm3fFP03rsExC0QcJ7aT5Jp5yb4Rkzrl9aEjaiMBcEaBv+fWxFSksXhDSW2NWvo3511RPzrqVELmg; 4:u21ANzZ0AThdSNHpNpssY71V3M8X5XzGypo2WWelrceVFgwG/wQpmCKc1GIeRRGU1ahCUESBsNMVSqzbF8/J5ReBSSj3kXiPMroUR/lnCzMpAt279DmYRQ01uZn36CoAdrRSE1xBT/dr/LJBOfEfC73Z5wndg8ZUi5e6IE7f+CMgqJqUrCtoGNoND4FG+f2um8FRLIrXokDklSBvjS1WsUcNSlxsPvlfRFewkgQx6+6PtMaWESYwGHqbV0vN87pDEBtSLKHkMEJknHtEF7vjyAHj6awT3DbQNtnQFDHbxjE= BN1BFFO11HUB042: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: <BN1BFFO11HUB04214E062D699E996B5B2FEE28C0@BN1BFFO11HUB042.protection.gbl> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:BN1BFFO11HUB042; BCL:0; PCL:0; RULEID:; SRVR:BN1BFFO11HUB042; X-Forefront-PRVS: 0652EA5565 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1BFFO11HUB042; 23:H4Os7sKB+OCpWhYtI7Gsxn+wG4yPz9STBeuPOWv?= =?us-ascii?Q?HqYyXPgfKkvLOY6X56fZG2yf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ii?Q?dTkwh9p0RayFFVbusNiKfYn9Fh1sOp1hT9nafugigAGQ6+YLVrUBjnJsL/NN?= =?us-ascii?Q?0A6S1Tmu8ZJMZnSYZmlXSXHdiQNRwSXOvldSgaoe8W/NYhldRYBgMJtTMSmd?= =?us-ascii?Q?cVlCUl7PQZsCM3kWlhZuuzmoXMAxFFUK7PeRivEH4GZkvXwUy4ZZeukdbGEK?= =?us-ascii?Q?RFTbWgyCpdW2GeTmUVVXOX3KqbdCmUkD5HLgfE9rYOIdaLfqXv1r8jg=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11HUB042; 5:lAKov6a8xVtruTS59ZCfQBEvubrLSziKwmm2V8sUIZRanr8UL8ujbjkVhFxl/mMoHZi8r+xi3w31KYHEFR0J4DXQ/7jEsWZje7tNvGWWGP63GShANHyvhIs6E9InQ3ostLn4oFEPtc/oMuiXUj1Huw==; 24:OyTCEb5YcJhOfKnUOrnNlCLcWwPBHA1ezdK2sIGWfxCArBARMb1n38y1MdRjEr3Bn0l3k+l3oGtxEBe0v1jLz65LVz542uuhBWLKGdxpVng= X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jul 2015 20:25:03.5933 (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: BN1BFFO11HUB042 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (barebone) [generic] [fuzzy] X-Received-From: 157.56.111.67 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 11/15] qdev: Add qdev_pass_all_gpios API 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/qdev.c b/hw/core/qdev.c index 3594151..75f8139 100644 --- a/hw/core/qdev.c +++ b/hw/core/qdev.c @@ -576,6 +576,15 @@ void qdev_pass_gpios(DeviceState *dev, DeviceState *container, QLIST_INSERT_HEAD(&container->gpios, ngl, node); } +void qdev_pass_all_gpios(DeviceState *dev, DeviceState *container) +{ + NamedGPIOList *ngl; + + QLIST_FOREACH(ngl, &dev->gpios, node) { + qdev_pass_gpios(dev, container, ngl->name); + } +} + BusState *qdev_get_child_bus(DeviceState *dev, const char *name) { BusState *bus; diff --git a/include/hw/qdev-core.h b/include/hw/qdev-core.h index 0a21d57..1cf44e1 100644 --- a/include/hw/qdev-core.h +++ b/include/hw/qdev-core.h @@ -299,6 +299,7 @@ void qdev_init_gpio_out_named(DeviceState *dev, qemu_irq *pins, void qdev_pass_gpios(DeviceState *dev, DeviceState *container, const char *name); +void qdev_pass_all_gpios(DeviceState *dev, DeviceState *container); BusState *qdev_get_parent_bus(DeviceState *dev);