From patchwork Wed Feb 15 11:26:52 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: 653688 Delivered-To: patch@linaro.org Received: by 2002:adf:f90f:0:0:0:0:0 with SMTP id b15csp280243wrr; Wed, 15 Feb 2023 03:27:32 -0800 (PST) X-Google-Smtp-Source: AK7set/euV/Ro5UXbgO43xGQxgudzaZWmfd3XYozuIsOnzJsZ0HmV1X2c0ao21AqbMmQwDX8mPx0 X-Received: by 2002:a05:622a:149:b0:3bc:fa3d:b8ba with SMTP id v9-20020a05622a014900b003bcfa3db8bamr2960517qtw.24.1676460452264; Wed, 15 Feb 2023 03:27:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676460452; cv=none; d=google.com; s=arc-20160816; b=YsCYYZghVHK9I6aS7HLWukSNb1YReK/K+nHUNYaou2qI30MQvqltdasxaZnqNx9SkS xoIcP6qRrO8s6fdlo+ttXyyiOB5tnqwrmZ7p+6pp8VbS1K2PtFejCSrhJihydPwuAIZI x0KURfibXSRCV6EDudLViccD2iIoGE3q6A6xm/7FX7pHYkxa5NTYLhHUAkHN40eoB5/9 1BT7Pm/fE+VJSasxJVxVadLTN0qQsJno3zc87Irx+tbpDSytJk6zTBfvj26jufO/dKKY e78bd0oqabcT24we+enwunfuxFSuSVR2cOZmgtriwL1tBeDEFLxExZKAroHh2tN6XIW6 E98w== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=sSM6ztMVd2QOZhnxUWFqggt+hjD4dShMf0V9sif6D34=; b=PvaavPX1EsW8MQMBMuJWDoi+G7QFCtFcJob4wwvlqurlYoVbFI+aeNW1aCAFX/fWc3 4rK2VWLZqvS/poutIACNaKy1/TfBNYvhltECW2ugIIe4KoIHLzYjDR3zId5+64e2XNS+ 8ulaHOCC6l3ZZOxLF40S0/ikVZ5WfVbhBBjLpSSDjaH5lolz/GvR6MmJrQYkEqM8Wr1R XbSVr1mv/ORrUnBGIMMSthwy0LGaVas7J1jHBhxNTR8/zIVhyC3uhbaw2p02izw9b+CS TlG7hNdq/DvsvNdofQnd0vgshBPnuar6xBnC4GgaPv5Jd1PJFvpYgF5kVf5tnM7X+xdf bZgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GfB59kvD; 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 f7-20020ac87f07000000b003b634217ff8si13928047qtk.774.2023.02.15.03.27.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Feb 2023 03:27:32 -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=GfB59kvD; 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 1pSFwV-0008AP-00; Wed, 15 Feb 2023 06:27:19 -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 1pSFwU-00089x-3C for qemu-devel@nongnu.org; Wed, 15 Feb 2023 06:27:18 -0500 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pSFwS-0003Np-ED for qemu-devel@nongnu.org; Wed, 15 Feb 2023 06:27:17 -0500 Received: by mail-wm1-x32d.google.com with SMTP id r18so13080155wmq.5 for ; Wed, 15 Feb 2023 03:27:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=sSM6ztMVd2QOZhnxUWFqggt+hjD4dShMf0V9sif6D34=; b=GfB59kvD58TuO62SlofweuaKWkc7xraeq41mydW5DpQLE+/uj9qi079xCy+izck8iW J2+cZ5m/hjyXx5gmpwKrjMe2kSmU3Kfm4sZbS6TAamuaLvDpMmY0rkkhlv5YRi+tZwoA Nfl3yjoQclx5BiG8gIzvG7QmXpa6YT1/56Vwgs7x0GXCphYaDOqD1QCSVOFYTW7pRmsd 5QMBK5/rcczCtFj76Uspy/uFQ6i18OXoCnTqjc4v/eYvS2Z7hoK+1r9BTY7otJfSTlXT RmZ5BbqJZmptn5gQD+GC8AVpeke/EV012r1rluB907e5Ov9mU7X3BVM3CtfVAp6cSjeu yGHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sSM6ztMVd2QOZhnxUWFqggt+hjD4dShMf0V9sif6D34=; b=5yKHuGxdYrjrQp/Upq7BpItoI+F5GbJQ03gcKWG9JPXrlBffH5e8toVz+qfSeQCXw4 yQjQv/X76l3natb9IWAWMD8g3PdNSZujpL6LEhLFPTektreFGYElT7Z1yDd/YF4WyPck ZPweh5Z3wGpUk4QxOcRJJ5rxhnhM94MRtKvel9axk1Ity0PBJYzFXIQ+MJ/3ILXRUSxD HT9n8tekHrYJszsGShE9AK4vqU6RHh9ET+nzonfijHxBBsHruXjqXW8aAAtcYFCkzu59 hr3zcMfCFWZNlcmSDHtVN4/5O1psNm6f4RbPI+tRx1pGJDSERQCuGVoRD3hkjNadq6sF Dkmw== X-Gm-Message-State: AO0yUKWlAbqNpw+8z0pJ1BRgce7mOcTpjqud6Q0jN1kdZA+JlttyTJm5 ijDcSXUQPBpW+XU1pQSC4qT4q0JCKvn32S9X X-Received: by 2002:a05:600c:4da2:b0:3dc:561a:79e7 with SMTP id v34-20020a05600c4da200b003dc561a79e7mr1679477wmp.2.1676460434633; Wed, 15 Feb 2023 03:27:14 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id c2-20020a05600c0a4200b003e1fb31fc2bsm1968513wmq.37.2023.02.15.03.27.13 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 15 Feb 2023 03:27:14 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, Eduardo Habkost , John Snow , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 00/20] hw/ide: QOM/QDev housekeeping Date: Wed, 15 Feb 2023 12:26:52 +0100 Message-Id: <20230215112712.23110-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=philmd@linaro.org; helo=mail-wm1-x32d.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 Mostly trivial cleanups in preparation of a v2 of "hw/ide: Untangle ISA/PCI abuses of ide_init_ioport()": https://lore.kernel.org/qemu-devel/20230208000743.79415-1-philmd@linaro.org/ Bernhard Beschow (1): hw/ide/pci: Unexport bmdma_active_if() John Snow (1): MAINTAINERS: Mark IDE and Floppy as "Odd Fixes" Philippe Mathieu-Daudé (18): hw/ide/mmio: Use CamelCase for MMIO_IDE state name hw/ide/mmio: Extract TYPE_MMIO_IDE declarations to 'hw/ide/mmio.h' hw/ide/isa: Extract TYPE_ISA_IDE declarations to 'hw/ide/isa.h' hw/ide/isa: Remove intermediate ISAIDEState::irq variable hw/ide/atapi: Restrict 'scsi/constants.h' inclusion hw/ide: Remove unused 'qapi/qapi-types-run-state.h' hw/ide: Include 'exec/ioport.h' instead of 'hw/isa/isa.h' hw/ide: Un-inline ide_set_irq() hw/ide: Rename ide_set_irq() -> ide_bus_set_irq() hw/ide: Rename ide_create_drive() -> ide_bus_create_drive() hw/ide: Rename ide_register_restart_cb -> ide_bus_register_restart_cb hw/ide: Rename ide_exec_cmd() -> ide_bus_exec_cmd() hw/ide: Rename ide_init2() -> ide_bus_init_output_irq() hw/ide: Rename idebus_active_if() -> ide_bus_active_if() hw/ide/ioport: Remove unnecessary includes hw/ide/piix: Remove unused includes hw/ide/piix: Pass Error* to pci_piix_init_ports() for better error msg hw/ide/piix: Refactor pci_piix_init_ports as pci_piix_init_bus per bus MAINTAINERS | 4 +- hw/arm/sbsa-ref.c | 2 +- hw/i386/pc_piix.c | 1 + hw/ide/ahci.c | 9 +++-- hw/ide/atapi.c | 13 ++++--- hw/ide/cmd646.c | 4 +- hw/ide/core.c | 80 +++++++++++++++++++++------------------ hw/ide/ich.c | 1 + hw/ide/ioport.c | 10 ----- hw/ide/isa.c | 22 +++++------ hw/ide/macio.c | 15 ++++---- hw/ide/microdrive.c | 9 +++-- hw/ide/mmio.c | 37 ++++++++---------- hw/ide/pci.c | 11 +++++- hw/ide/piix.c | 46 ++++++++++------------ hw/ide/qdev.c | 2 +- hw/ide/sii3112.c | 4 +- hw/ide/trace-events | 2 +- hw/ide/via.c | 4 +- hw/misc/macio/gpio.c | 1 + hw/sh4/r2d.c | 2 +- hw/sparc64/sun4u.c | 1 + include/hw/ide.h | 8 ---- include/hw/ide/internal.h | 25 ++++-------- include/hw/ide/isa.h | 20 ++++++++++ include/hw/ide/mmio.h | 26 +++++++++++++ include/hw/ide/pci.h | 6 --- 27 files changed, 193 insertions(+), 172 deletions(-) create mode 100644 include/hw/ide/isa.h create mode 100644 include/hw/ide/mmio.h