From patchwork Thu Mar 2 22:40:44 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: 658157 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp144991wrb; Thu, 2 Mar 2023 14:42:19 -0800 (PST) X-Google-Smtp-Source: AK7set+o9bz7eRklydwMspe8n35J8hZMA4d6UWsIVCx8ItF3cVbVua5PoqzvNhrjp6zavWV+Ld88 X-Received: by 2002:ad4:5cec:0:b0:56e:a819:f902 with SMTP id iv12-20020ad45cec000000b0056ea819f902mr23136168qvb.2.1677796939429; Thu, 02 Mar 2023 14:42:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677796939; cv=none; d=google.com; s=arc-20160816; b=LmE+xj2786Z2TUOkhFKzWBl50M0jTWFxA60DXojTB5wy2zdPwmYZKMQCDMrGVFQCfn h6cQNX84fv81Z6bilJFaGlzj1NuXTfqHNd4moA0Q2ktFc3YMeVL1OZneLrHQm0m7cEy6 uJoMzWiNGkHbpF5pauyGYT/ROS2QDtBcFOB9wkfG06kDf0JqMBgyuNRGs7SJc6vs7pP9 ++ec+RDzj0cSd1lwBT3Qr3KUju4g2HJWIYqUloKvx6pcUh0mTZqyvtHBmX+JRzHOX5T7 zCsr0LaGX6xAERa9/ij/d8BA81r0dechGPdzSNUkJVOnOGsheIwX3+OILFZe13YxUSF7 Md1Q== 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=+sfyAsKb/ybApqIFl07T9s+7iUFCDW80zwk8fRCVEAE=; b=wwTjJ1SnPZQH6DpOouPzqj0H7ALS2PsWxkO9aAY5TxznsZxhPnx/jpF4aQNUC01C2X r1JF23TxA5A0z0sZDB45XuhbCOoYAo8etY0mIwnMgBX2xG/1EC6REOrEQoLhayyLE1zE UHxpXt47kifmMPr2MZHx+IF4clIADZmKMOmfsixSQTtIstKdRmj9xx5TDrFGxUVIlG+y jNxrLD1ntaN51hnfRQTQDrYohaQUg+KZCZfesUcwv3F15SPdRbYOqK+lgVj1wn6Gea8l 66iSzElCByTAHfDz8fR8oM7OQS3rquK9IVaLNSeEa1hEIREBxMsaEfuk6+YeZcx4H+Qo m53Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xu1rjB7Y; 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 11-20020a05620a048b00b0073cccac62f4si465002qkr.687.2023.03.02.14.42.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Mar 2023 14:42:19 -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=xu1rjB7Y; 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 1pXrcP-0007Ba-TK; Thu, 02 Mar 2023 17:41:45 -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 1pXrcN-00079W-SG for qemu-devel@nongnu.org; Thu, 02 Mar 2023 17:41:43 -0500 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXrcL-0008Rs-2P for qemu-devel@nongnu.org; Thu, 02 Mar 2023 17:41:43 -0500 Received: by mail-wm1-x32e.google.com with SMTP id j19-20020a05600c1c1300b003e9b564fae9so2844206wms.2 for ; Thu, 02 Mar 2023 14:41:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677796892; 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=+sfyAsKb/ybApqIFl07T9s+7iUFCDW80zwk8fRCVEAE=; b=xu1rjB7YD8DjZWjxzi3BvlMN8UixTnVYDqagQlFTxx2InrN87xWrEjkJp069tuj7Bz CxCQMD6hNI2YHq+JwGw0t3NrUUBdZOipfiA3z7a7BQxVUJJOWERZehqGQvhVf8KMhQLy fhV/jRictU1DOTTReu77WjZBTgZGBkQ7F/JKWDhvP3VrpglK/OTY6UsET+CtU3MPGa44 l/IUBYI2w5GPoVB9II3ocN2mXZtoAs4dxwvtJBg4Gv5sxd0k9OAMpwsTHjcPstW6z9st 1nGVu16OalqMzqfW1utxpjSRJVc0Ypo8j5QOq23tpKOImzT5RCGXPDNWLJxbYNh9uLRt nB2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677796892; 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=+sfyAsKb/ybApqIFl07T9s+7iUFCDW80zwk8fRCVEAE=; b=Zozx7WbSyz4txfS3voJdpK2Qjs6egntBPpTt4J/x2+Ri2OTgz9fCbd5dQhuPxgK8s7 ri/2x+q+P9P+LP4Y2tuNHI64ns3GevI9E7V559DO8mhD9NdvsKWL6sReLlVx/kBvU06S pGL7eDk6ym3ML9JVhOVXbH3IRScu34+cZhwfoHdhyfo3kxacUFZXHYEkfyzCIlwBfr9n YXBOwLhWTWDj3wOExNQXfrEzuu8sPxBAFG0XzFDPn9DUIXdqqD9R9Ywp2Z/jpC+4mQ4d hswb8AQD+xb39OOM1ItgvPlOepEs9yPEa0jDzk0lmmKVi71BHN8YJAuc6RIuuGDXkajD H3uQ== X-Gm-Message-State: AO0yUKXeNuHS3JlDItOC2/PGyA7TjEztAwrWzTn0T5ISeIHIUfjnYfOR I+5lzQUkuoQNKCA5Dqp4CcM1XL6K0RTQQhxr X-Received: by 2002:a05:600c:3422:b0:3e2:20c7:6544 with SMTP id y34-20020a05600c342200b003e220c76544mr8899029wmp.19.1677796892714; Thu, 02 Mar 2023 14:41:32 -0800 (PST) Received: from localhost.localdomain (43.red-95-127-39.staticip.rima-tde.net. [95.127.39.43]) by smtp.gmail.com with ESMTPSA id x17-20020adfdcd1000000b002c5804b6afasm497341wrm.67.2023.03.02.14.41.30 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 02 Mar 2023 14:41:32 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, Bernhard Beschow Cc: John Snow , David Woodhouse , BALATON Zoltan , =?utf-8?q?Herv=C3=A9_Poussineau?= , qemu-ppc@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Aurelien Jarno Subject: [PATCH v3 04/18] hw/isa/piix4: Wire PIIX4 IDE ouput IRQs to ISA bus IRQs 14/15 Date: Thu, 2 Mar 2023 23:40:44 +0100 Message-Id: <20230302224058.43315-5-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230302224058.43315-1-philmd@linaro.org> References: <20230302224058.43315-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=philmd@linaro.org; helo=mail-wm1-x32e.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 e0b149f8eb..702b458a3e 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; }