From patchwork Fri Feb 10 16:37:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 652340 Delivered-To: patch@linaro.org Received: by 2002:adf:f90f:0:0:0:0:0 with SMTP id b15csp1059486wrr; Fri, 10 Feb 2023 08:38:49 -0800 (PST) X-Google-Smtp-Source: AK7set8OZFxwdhW3TNBJA5kLpCP7dBu3JEObq6uqGYHwxIT/ROG2VXT165B76x/cHKkElgd7L2sl X-Received: by 2002:a05:6214:c2a:b0:53a:d85a:f11d with SMTP id a10-20020a0562140c2a00b0053ad85af11dmr22872894qvd.46.1676047129705; Fri, 10 Feb 2023 08:38:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676047129; cv=none; d=google.com; s=arc-20160816; b=Z2jSoEqFhV/S8pz5ljlZoyrX9oT1g/B4ubMTnikGf1+rKr9KaKmkK08VcjEofbwNcP yjU5JNk+G5rN2ggsNnhOGhNuxC+THkzZGRHzMEtSIot0H2QJ9v5iTXWgHFcEFIVbmu2B 6gDLao/ytfje/g38n0Cb7IPS1GFWuKFsF4cvxLZR7wfLd3JjjL6vowCiFyQaPPSf7EzU RXppIdxTzHb4dLH2PgkE52Q0t76CSsp3UYEAhMpmCYXRxp8u+hIzN2SReZUvyj7zCIOx BWjWu6Xm9sYNSrBEJtv4O59C/LCiBg9jGjnkgmeVUOqHy3JKloAEPstVAHNbQhxaE6tS xEHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=789ooQfaoGTNLsCSsIVAXNSCAD6XOwXp+1Wop0X/7+8=; b=qrDxJfGRvtN4YoLX2/1DYHOX7JNQLN5EOc6bOuGaBuoVHubvxld9nKuusKcNdjEOQq 4XZt0MXMluTvUh0ZcVQ76BF8vk7/YMpHEhv163YkdgydBAE5GQxTN5Q1d4fM7Ac/eNsh IIR4jV09Y7S3g0T4W/L2qrtfXnCDTE9VHbs1JFOQIYbqsQK2q0gZl654XB0990jmGBtm 5P5FeQ+NSdNqigbf7u+nO3JXr29LSB/fXqG9ZM4qVFba2J/5wpN9soFCLirF2ZC/i7Py gtrIfzgBM4sNovbBDHn3Sp4Bd4fdjGo7KaJQkpVGCzwmLdcWWpb8EWkVkOIdSiETxarN 9F2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EjVc1K69; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id o15-20020a0cf4cf000000b005321cec271bsi4258712qvm.186.2023.02.10.08.38.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 Feb 2023 08:38:49 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EjVc1K69; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQWQ2-0001NZ-In; Fri, 10 Feb 2023 11:38:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQWPr-0001Js-Rp for qemu-devel@nongnu.org; Fri, 10 Feb 2023 11:38:27 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pQWPn-0000Hb-1J for qemu-devel@nongnu.org; Fri, 10 Feb 2023 11:38:24 -0500 Received: by mail-wm1-x32f.google.com with SMTP id n13so4224617wmr.4 for ; Fri, 10 Feb 2023 08:38:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=789ooQfaoGTNLsCSsIVAXNSCAD6XOwXp+1Wop0X/7+8=; b=EjVc1K69YB+Oewq2eNrpQ5H6wBU8amXtPamYOi2/QR98uEAvjtQ9VX8g9r+8Ejtjtm /E7qIl/6RRNQIHJsF3JJzTvJ7JbcVFQ4MWibXApbbVWfuzTn7OoHVp6TSldbJAiLkdG8 E3bSiH8sJI7ZywcZRmlIZvzFRKE/45o9Oa+/mMXoCuHj108HmGPTtcQspidbPkxT4+Uf AqoYXzGkuH6UDZYvWOCHjRkpAbfJ6RxXsMTZ4/0ytqAPQEeNe7LcJctmp6Qe8ZXwSXBT EbT7sChduQK3DvF3e5KDYgYMopBpnWZOIk+xJk8VNuFsUFdXtaneNGFxKQ+5OevpZtQt iNqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=789ooQfaoGTNLsCSsIVAXNSCAD6XOwXp+1Wop0X/7+8=; b=4EVqnUEXlUGZWdHeKABv9O8poLpPqTQJogE0oqcqDN+4gssaF3zN8ns+YuFDcM/d+m jFYPZ1giIEN/9HipzigB8OqfWUSGjssnZGfvXnadbzSOd4jlQM+Hc6hfxgCvXR+Dgc4A 4XInWgrk+6IhUrJ6GYsHLivTbjWtSTFM0Umfiidcz7HT1pmuRuDCohy4xxISrPhjZCWo Nk+jeOZtl8Mnp8gpt/guX/x2fQJ2ena1WYUGQ2HNCVgox2s3faVjuGw4cH/6eEtIF+KL pJL2A+ivl+orKkKcwi+S2Fi/reTtEyhLqyELTuRz1uX+vkP9ZUAuP4V2132ERrl8FZUu io/Q== X-Gm-Message-State: AO0yUKWM4VXVfXJCM1kYIn9ev8PaJzdjTMHFwf1ng97Ynkk/G7jv5xEA WWGtAz3LWGX6uD6p4klssF2s0GZp1qO48zL1 X-Received: by 2002:a05:600c:2e89:b0:3e1:bfc:d16e with SMTP id p9-20020a05600c2e8900b003e10bfcd16emr10833011wmn.39.1676047101615; Fri, 10 Feb 2023 08:38:21 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id o32-20020a05600c512000b003e0238d9101sm6544038wms.31.2023.02.10.08.38.20 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 10 Feb 2023 08:38:21 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Thomas Huth , Sergio Lopez , Richard Henderson , qemu-ppc@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 07/11] hw/isa: Reorder to separate ISABus* vs ISADevice* functions Date: Fri, 10 Feb 2023 17:37:40 +0100 Message-Id: <20230210163744.32182-8-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230210163744.32182-1-philmd@linaro.org> References: <20230210163744.32182-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=philmd@linaro.org; helo=mail-wm1-x32f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Separate functions taking an ISABus* argument versus functions taking a ISADevice* one. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- include/hw/isa/isa.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/hw/isa/isa.h b/include/hw/isa/isa.h index 25acd5c34c..e81cd33e3c 100644 --- a/include/hw/isa/isa.h +++ b/include/hw/isa/isa.h @@ -74,12 +74,8 @@ struct ISADevice { ISABus *isa_bus_new(DeviceState *dev, MemoryRegion *address_space, MemoryRegion *address_space_io, Error **errp); void isa_bus_irqs(ISABus *bus, qemu_irq *irqs); -qemu_irq isa_get_irq(ISADevice *dev, unsigned isairq); -void isa_connect_gpio_out(ISADevice *isadev, int gpioirq, unsigned isairq); void isa_bus_dma(ISABus *bus, IsaDma *dma8, IsaDma *dma16); IsaDma *isa_get_dma(ISABus *bus, int nchan); -MemoryRegion *isa_address_space(ISADevice *dev); -MemoryRegion *isa_address_space_io(ISADevice *dev); ISADevice *isa_new(const char *name); ISADevice *isa_try_new(const char *name); bool isa_realize_and_unref(ISADevice *dev, ISABus *bus, Error **errp); @@ -87,6 +83,11 @@ ISADevice *isa_create_simple(ISABus *bus, const char *name); ISADevice *isa_vga_init(ISABus *bus); +qemu_irq isa_get_irq(ISADevice *dev, unsigned isairq); +void isa_connect_gpio_out(ISADevice *isadev, int gpioirq, unsigned isairq); +MemoryRegion *isa_address_space(ISADevice *dev); +MemoryRegion *isa_address_space_io(ISADevice *dev); + /** * isa_register_ioport: Install an I/O port region on the ISA bus. *