From nobody Tue Oct 28 12:16:29 2025 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 1515380387763675.2637528172229; Sun, 7 Jan 2018 18:59:47 -0800 (PST) Received: from localhost ([::1]:59440 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYNf8-0001VW-Ug for importer@patchew.org; Sun, 07 Jan 2018 21:59:47 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYNSu-0007FQ-EL for qemu-devel@nongnu.org; Sun, 07 Jan 2018 21:47:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYNSt-0002mc-Ji for qemu-devel@nongnu.org; Sun, 07 Jan 2018 21:47:08 -0500 Received: from mail-qt0-x244.google.com ([2607:f8b0:400d:c0d::244]:34509) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eYNSt-0002mT-Ee for qemu-devel@nongnu.org; Sun, 07 Jan 2018 21:47:07 -0500 Received: by mail-qt0-x244.google.com with SMTP id 33so12079467qtv.1 for ; Sun, 07 Jan 2018 18:47:07 -0800 (PST) Received: from x1.local ([138.117.48.219]) by smtp.gmail.com with ESMTPSA id d10sm7156245qkg.16.2018.01.07.18.47.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Jan 2018 18:47:06 -0800 (PST) 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=SkgBRYF+Vfsu+2dJcRnSemO8p5LNSTPMjSVtAoxIXtU=; b=P2DJt+9+wNqgsVm4hzfO8HiB6fGcPogdYgVXUPoPuvGj636XQ5t7Z4/mN0mi25xdEq MlqI+nqcrrbpYyJztsIkQ0Cbdrj9A4qUmw+/FfLz6T9sMTHLwl96/u90c3L84DUTpdBY PUr7L5E9pjFkGm0UWKDkg2zb/DQptwySKcVs09pYg6WUir9czyG4CmVSEzPO774n+MUV bUzENI33grwsOoqAOzub+8DY9Ro7FUvwiSqhWk2Y04Y5dJCYEAqVeY82X1ttVUotTLgP MSBTyOBQQg6fdQYnvPQrIDZZviRkoOAHUuExJWBwmnki3zxhJPxhkXoU/c+KA4xqhWOn D1og== 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=SkgBRYF+Vfsu+2dJcRnSemO8p5LNSTPMjSVtAoxIXtU=; b=ip6GTR9KLd4L++ne+iuB9Htu6STq3JkgluoX8pLQxjEw6THJRo9KTILCl8L6s/yCkn WqxRW5PvM0JGXqCAOyKnjuLKKJ1a6TWk6xswRRiNsDelMpKa1HnmvCj2A307LyEvujoc sCoHHUG5mdv5EduS8v2jEn22noByrDi5qB6H9ItHI89elsNcPEJvDCgu7oFHcajLgXp8 BYWsz7axseylMz1l/QQwajFLJvZojcbVanBFliBmSx0St+UMXNDRponMqgrGD2QVi4eP UwfUzWSfHtHIkIIyAfMUZN8Aad/w70gE23c19zRXq4Gqv/JAs9lXFNqTOuUZi2Xltku4 8xXA== X-Gm-Message-State: AKwxytd5harb1irghO8wW4xVqbQn/3H+CVIOGUUCXhVdRKpivmcBnEmE mauDqAq8UgOQmfeBnsoUNZs= X-Google-Smtp-Source: ACJfBosFrzNOVmne2NqtK5UFCsRVO0ObMcRrKjREnxyDQRRbxPPJQGov8hZvgkA0n5itdwA4F+giTQ== X-Received: by 10.237.44.7 with SMTP id f7mr14645044qtd.118.1515379626919; Sun, 07 Jan 2018 18:47:06 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Paolo Bonzini , "Michael S. Tsirkin" , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Aurelien Jarno , Eduardo Habkost , Marcel Apfelbaum Date: Sun, 7 Jan 2018 23:45:46 -0300 Message-Id: <20180108024558.17983-18-f4bug@amsat.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180108024558.17983-1-f4bug@amsat.org> References: <20180108024558.17983-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:c0d::244 Subject: [Qemu-devel] [PATCH 17/29] piix: move piix4 declaration into new southbridge/i82371_piix.h 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: Igor Mammedov , Yongbok Kim , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org 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 Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/hw/i386/pc.h | 2 -- include/hw/southbridge/i82371_piix.h | 17 +++++++++++++++++ hw/isa/piix4.c | 1 + hw/mips/gt64xxx_pci.c | 1 + MAINTAINERS | 1 + 5 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 include/hw/southbridge/i82371_piix.h diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h index d2b67e44a7..195c02febe 100644 --- a/include/hw/i386/pc.h +++ b/include/hw/i386/pc.h @@ -272,8 +272,6 @@ PCIBus *i440fx_init(const char *host_type, const char *= pci_type, MemoryRegion *ram_memory); =20 PCIBus *find_i440fx(void); -/* piix4.c */ -extern PCIDevice *piix4_dev; =20 /* pc_sysfw.c */ void pc_system_firmware_init(MemoryRegion *rom_memory, diff --git a/include/hw/southbridge/i82371_piix.h b/include/hw/southbridge/= i82371_piix.h new file mode 100644 index 0000000000..95ac25becd --- /dev/null +++ b/include/hw/southbridge/i82371_piix.h @@ -0,0 +1,17 @@ +/* + * Intel 82371 PIIX South Bridge Emulation + * + * Copyright (c) 2018 Philippe Mathieu-Daud=C3=A9 + * + * This work is licensed under the terms of the GNU GPL, version 2 or late= r. + * See the COPYING file in the top-level directory. + */ +#ifndef HW_ISA_PIIX_H +#define HW_ISA_PIIX_H + +#include "hw/pci/pci.h" + +/* piix4.c */ +extern PCIDevice *piix4_dev; + +#endif /* HW_ISA_PIIX_H */ diff --git a/hw/isa/piix4.c b/hw/isa/piix4.c index c19aa5a74f..b0f6a0a342 100644 --- a/hw/isa/piix4.c +++ b/hw/isa/piix4.c @@ -28,6 +28,7 @@ #include "hw/i386/pc.h" #include "hw/pci/pci.h" #include "hw/isa/isa.h" +#include "hw/southbridge/i82371_piix.h" #include "hw/sysbus.h" =20 PCIDevice *piix4_dev; diff --git a/hw/mips/gt64xxx_pci.c b/hw/mips/gt64xxx_pci.c index 5a9dad9aae..24cc4044d7 100644 --- a/hw/mips/gt64xxx_pci.c +++ b/hw/mips/gt64xxx_pci.c @@ -28,6 +28,7 @@ #include "hw/pci/pci.h" #include "hw/pci/pci_host.h" #include "hw/i386/pc.h" +#include "hw/southbridge/i82371_piix.h" #include "exec/address-spaces.h" =20 //#define DEBUG diff --git a/MAINTAINERS b/MAINTAINERS index 6f867da743..cead15b69b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -888,6 +888,7 @@ F: include/hw/dma/i8257.h F: include/hw/i2c/pm_smbus.h F: include/hw/isa/superio.h F: include/hw/input/i8042.h +F: include/hw/southbridge/i82371_piix.h F: include/hw/timer/hpet.h F: include/hw/timer/i8254* F: include/hw/timer/mc146818rtc* --=20 2.15.1