From patchwork Wed Feb 15 16:16:29 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: 653720 Delivered-To: patch@linaro.org Received: by 2002:adf:f90f:0:0:0:0:0 with SMTP id b15csp431930wrr; Wed, 15 Feb 2023 08:19:37 -0800 (PST) X-Google-Smtp-Source: AK7set9PwZac7eYIdtJjL3iLkD2BoFCIHHslAeMqlh2t5B9ONTcl8Ff6IxJz0w2yRpjhOTP02UlR X-Received: by 2002:a05:622a:343:b0:3b6:5fc7:f554 with SMTP id r3-20020a05622a034300b003b65fc7f554mr4813885qtw.7.1676477977572; Wed, 15 Feb 2023 08:19:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676477977; cv=none; d=google.com; s=arc-20160816; b=nAGl+QwQDuTrI+DRH61RbiowR0Fw9M9waetaYIDxHo9L3bHba2lua5ZYVjFQuCDSWn KW7s+KLWCRW2n9c4nxEHKZbkDuPvDVVsHkcLCk9reNfy3IHSdn4K9NXQRtzELyfHIQeJ moVVNP2ENcpsXqTmSoYUv0xltMEA+TUYM4iurgfgz0YLGlTtyB3qw0LtBvXQyVfYi+kw HyMTylJhQoxdrOX+Wx+nJbtws/ZCHEU0dwwscvAYGLw0anlfhiEXYCD5EMK5rVjfI3BY GeFAJd1FmT5hAGbn1G+pjNzqlFmTJ8xefu+DpS7+KPy1nbrvtj7pZ6xT3iGQQcxLKLPM lgMw== 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=Fwf3B8Umbt5plQJjIYprPrULazHXeAYCSttsSsG++/E=; b=zrVZsN/2zlacHTcUvKxMzLlgTl+AGOd1YqNrLjfDAgOItgiY2xoZtPYIf6YQKhL+Ll R3HV8CTRnD1njaI6YbXnA5N+JxiUwqQJVqZWpFDAJThbQVDAGlrygW127nD5dZRtW1LB shNU7xEUG9AnVDuXLczwj52MZzA2P1+eV8fdXJspNdOY/lAeRtOoUDm7zup/oK7eiG2Y 8GacpjuK5v+tTyeO3lxr+V3Vuj1EXZBzPeCxzaU1GpnPfZdGwd5ZgXtAQ34XGaH2x8v3 Rv12PMdIv4rtTGmt1pYUyXWWQ2FrJcq2bYlEiK+eNrb8BvUqxUXlDOc/ixOv+pghCqRd RiPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qkGAG7kO; 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 s21-20020a05622a019500b003b832228feasi15140554qtw.289.2023.02.15.08.19.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Feb 2023 08:19:37 -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=qkGAG7kO; 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 1pSKTG-0007DH-6q; Wed, 15 Feb 2023 11:17:26 -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 1pSKT8-00070O-Mf for qemu-devel@nongnu.org; Wed, 15 Feb 2023 11:17:20 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pSKT6-0008I3-W3 for qemu-devel@nongnu.org; Wed, 15 Feb 2023 11:17:18 -0500 Received: by mail-wm1-x333.google.com with SMTP id f47-20020a05600c492f00b003dc584a7b7eso1970865wmp.3 for ; Wed, 15 Feb 2023 08:17:16 -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=Fwf3B8Umbt5plQJjIYprPrULazHXeAYCSttsSsG++/E=; b=qkGAG7kOkskl36bFhSWGOdlSEQRpmI/4HMV+IQ1pZgH+vZg70sfuC3QP6M7HO8L4Gi 8loZ9KPxLqz3C/RmeqmIn2Ky9P/5+BH3ajVK2sgEfhS4Y2Zo0M250r9Oc/+wFm27B7kd UuXTY1qB1DNOGd4KOJa2BgSmdkYc2GMX/LOB35/hUfpm7WVzNajR+7E0ZYtk0h1VS37+ h7WREDcdTHG3tgNXtSYB0/QVIeI9I3OnXrOUrKYIj09OTEMjp9ftLN2TCyA1/th6c/BT N92qIgfrUJLaOJ4TuQpVv/bQcYX4bhZFnM3VtLj7CpJJH7zCCyllggkJGbZPQXh+uyLj DU9g== 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=Fwf3B8Umbt5plQJjIYprPrULazHXeAYCSttsSsG++/E=; b=uBcZ0F0hYr7QhXchTCoChWsou9LrkqpdL9ce6npz2ecC7VarTsF0x7+u+i2lUJqbqZ vCJWURli/u+Lc1UNqXzMw4AseMHNbAdIATjPO1e7dd5ubbKlt4jg7NCjilJZe2/FX2w2 /IZCwybt7ylqJws3L6w4ZNWpXeNg++/geCReusjw6yOBcTpjflTRdiI1uN+dDzIAxL3h iP2PMpIufEmCqkC2/JPpNgfW+nsdROQq6JqzZ0PfDDYcv5EiZcs4SxJErAB3JH7zTMC4 2KvoCKA+n46xRHh4a+qJphQcdVEnzSR4grZ7haJzaxishG6E8iDp3bOn/2p8UcX0kvvH 37hw== X-Gm-Message-State: AO0yUKWdwhcttHDQyKdRfSPiFPQVrM+Gvu8CYTUhm/thEzgJcNE68/5B VeuyIP3qll3dMKpFoEOSBKorHTIWi7OZiHur X-Received: by 2002:a05:600c:4d93:b0:3dc:57e8:1d2f with SMTP id v19-20020a05600c4d9300b003dc57e81d2fmr2331503wmp.9.1676477835546; Wed, 15 Feb 2023 08:17:15 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id r4-20020a05600c35c400b003df245cd853sm2718598wmq.44.2023.02.15.08.17.14 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 15 Feb 2023 08:17:15 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Herv=C3=A9_Poussineau?= , =?utf-8?q?Phil?= =?utf-8?q?ippe_Mathieu-Daud=C3=A9?= , qemu-block@nongnu.org, John Snow , Eduardo Habkost , Paolo Bonzini , Kevin Wolf , qemu-ppc@nongnu.org, Hanna Reitz , "Michael S. Tsirkin" , Richard Henderson , Gerd Hoffmann , Aurelien Jarno Subject: [PATCH v2 06/18] hw/isa/piix4: Wire PIIX4 IDE ouput IRQs to ISA bus IRQs 14/15 Date: Wed, 15 Feb 2023 17:16:29 +0100 Message-Id: <20230215161641.32663-7-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230215161641.32663-1-philmd@linaro.org> References: <20230215161641.32663-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=philmd@linaro.org; helo=mail-wm1-x333.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 piix4_realize() initialized an array of 16 ISA IRQs in PIIX4State::isa[], use it to wire the IDE output IRQs. Signed-off-by: Philippe Mathieu-Daudé --- hw/isa/piix4.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/isa/piix4.c b/hw/isa/piix4.c index de60ceef73..94e5dc7825 100644 --- a/hw/isa/piix4.c +++ b/hw/isa/piix4.c @@ -229,6 +229,8 @@ static void piix4_realize(PCIDevice *dev, Error **errp) /* IDE */ qdev_prop_set_int32(DEVICE(&s->ide), "addr", dev->devfn + 1); + qdev_connect_gpio_out_named(DEVICE(&s->ide), "ide-irq", 0, s->isa[14]); + qdev_connect_gpio_out_named(DEVICE(&s->ide), "ide-irq", 1, s->isa[15]); if (!qdev_realize(DEVICE(&s->ide), BUS(pci_bus), errp)) { return; }