From nobody Wed Feb 11 06:57:38 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1522080328576543.3896147559816; Mon, 26 Mar 2018 09:05:28 -0700 (PDT) Received: from localhost ([::1]:57697 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0Uch-0004VK-Do for importer@patchew.org; Mon, 26 Mar 2018 12:05:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44398) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0UZg-00024t-2w for qemu-devel@nongnu.org; Mon, 26 Mar 2018 12:02:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0UZc-0000J1-4Q for qemu-devel@nongnu.org; Mon, 26 Mar 2018 12:02:20 -0400 Received: from mail-qk0-x241.google.com ([2607:f8b0:400d:c09::241]:33680) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f0UZc-0000Iu-0j; Mon, 26 Mar 2018 12:02:16 -0400 Received: by mail-qk0-x241.google.com with SMTP id d206so8284923qkb.0; Mon, 26 Mar 2018 09:02:15 -0700 (PDT) Received: from x1.local ([138.117.48.212]) by smtp.gmail.com with ESMTPSA id 53sm12033771qto.94.2018.03.26.09.02.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Mar 2018 09:02:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QSA4+kYd0lapdxGj8ETOaAgE5e5p+IyRWF+oYRUWlQE=; b=fy41hmJQxMQMu3B6FY0TihYoM69U0GlwrQSpFQpgRnKr4izqtteGWZzlLJbmOMRxfO ZYXDtSgqzWLU1fYeSBcKuA/4s4tK28nyI1kIgzvsSbqPkJVbK4oV6GFycUR7xJrjJcwT oG6py/eIFEJbfgBy31DndQep/ACX0HFK/hEjdK4O3QkF+fWA+YRItXdw4zdz0qAzx0uT SoiR3A3ZGKNQi2uq5OWVAopkHZTAlsLp3fp5gu3N9F6SYnDQziYZzDcD5EGuZetJS+mU ORtWvuOYSKA9zfY4LuLM1Sbp7+xunuXs6/HCFsyNvJQSMxIvP9LY34oWev7Gpb0GgVfF qNYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=QSA4+kYd0lapdxGj8ETOaAgE5e5p+IyRWF+oYRUWlQE=; b=dWh1ZY1xLa5bwvxsaNXebaYs8qxQ+5LTzjCFlqShhAbS227EVUHITaIGWUpfWAbf5F QtfxaYIjrsumfvrndmd+MjOFw240kXhhBDDI/eBWu+7uDCvF4KxdTAvPoQAjP2t0fTHF BxlF+qEWoPrEdeU6miubL9a9HgM+L8Zrr9Odu90m9ygEK7wD9H+VA1Sse1cAEk6Q8mdU qgJ6oH1Zew3wzNhUpr1M4NbtoXK9cRWEjk6/LOyZ+Apb77MGMOUamuTBv4Kx1p8M7DFS ETrhFpjVXjWdhcrtN/RrZtBrPHdnPlZ2/nDuUpo0b1v8O2fn2qXICk+2k0zouuKAtlNx 58HA== X-Gm-Message-State: AElRT7Eu4dnGFS8uhncCxeKmVBYa6kgDkkRYU7FY7vLRWTPkjRu5AmY2 o1IQ4YCZGolWDRxqx8R6CO8= X-Google-Smtp-Source: AG47ELudKvKiz6SeI1KwchOJkBvxN9V2IkR7iSVeC6+KtGTQfoZO0ydBFAhnk7ZYigvSl8uG4x0UhA== X-Received: by 10.55.103.148 with SMTP id b142mr57018908qkc.45.1522080135374; Mon, 26 Mar 2018 09:02:15 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Eduardo Otubo , Thomas Huth , Paolo Bonzini Date: Mon, 26 Mar 2018 13:02:05 -0300 Message-Id: <20180326160205.1518-1-f4bug@amsat.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180326153441.32641-1-f4bug@amsat.org> References: <20180326153441.32641-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::241 Subject: [Qemu-devel] [PATCH for-2.13 4/5] hw/dma/i8257: Rename i8257_dma_init() -> i8257_dma_init_cascaded() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "open list:PReP" , Eduardo Habkost , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Michael Tokarev , Alexander Graf , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Nageswara Sastry , =?UTF-8?q?Herv=C3=A9=20Poussineau?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 To keep the patch diff simple, an inline function is used (then removed in the next commit). Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/hw/dma/i8257.h | 6 +++++- hw/dma/i82374.c | 2 +- hw/dma/i8257.c | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/include/hw/dma/i8257.h b/include/hw/dma/i8257.h index 3053f18797..986319e4e3 100644 --- a/include/hw/dma/i8257.h +++ b/include/hw/dma/i8257.h @@ -46,6 +46,10 @@ typedef struct I8257State { PortioList portio_pageh; } I8257State; =20 -void i8257_dma_init(ISABus *bus, bool high_page_enable); +void i8257_dma_init_cascaded(ISABus *bus, bool high_page_enable); +static inline void i8257_dma_init(ISABus *bus, bool high_page_enable) +{ + i8257_dma_init_cascaded(bus, high_page_enable); +} =20 #endif diff --git a/hw/dma/i82374.c b/hw/dma/i82374.c index 892f655a7e..b95edd7b98 100644 --- a/hw/dma/i82374.c +++ b/hw/dma/i82374.c @@ -125,7 +125,7 @@ static void i82374_realize(DeviceState *dev, Error **er= rp) error_setg(errp, "DMA already initialized on ISA bus"); return; } - i8257_dma_init(isa_bus, true); + i8257_dma_init_cascaded(isa_bus, true); =20 portio_list_init(&s->port_list, OBJECT(s), i82374_portio_list, s, "i82374"); diff --git a/hw/dma/i8257.c b/hw/dma/i8257.c index 72f8893b9e..c930c4c531 100644 --- a/hw/dma/i8257.c +++ b/hw/dma/i8257.c @@ -654,7 +654,7 @@ static ISADevice *i8257_dma_init_slave(ISABus *bus, boo= l high_page_enable) return isa; } =20 -void i8257_dma_init(ISABus *bus, bool high_page_enable) +void i8257_dma_init_cascaded(ISABus *bus, bool high_page_enable) { ISADevice *master, *slave; =20 --=20 2.16.3