From patchwork Thu Jan 5 13:07:04 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: 13089837 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 66277C3DA7A for ; Thu, 5 Jan 2023 13:08:08 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDPxv-0004CA-9L; Thu, 05 Jan 2023 08:07:27 -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 1pDPxt-0004BZ-Fz for qemu-devel@nongnu.org; Thu, 05 Jan 2023 08:07:25 -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 1pDPxs-0004Fz-1O for qemu-devel@nongnu.org; Thu, 05 Jan 2023 08:07:25 -0500 Received: by mail-wm1-x32d.google.com with SMTP id bg13-20020a05600c3c8d00b003d9712b29d2so1267456wmb.2 for ; Thu, 05 Jan 2023 05:07:23 -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=2LQQtF6mRwowaB8cMgADklf0rC+6ac5gfQ1xXYhmt1U=; b=fab5WOaHaFzusPOu6s5XqZeEdYjzSX1/z1hAHXHX/OX+a5nF66nKV09HJ7ixBIFPY0 i4lJQZGy+KBkNDj41Xr6vl2hBm6LWl+Mws66LRfupf1z2wFXiQJw55fb+gKvDRduU/zX mK5b2jJ/PwHtQAu6vgVvuylKWPOK6SG5nP+968tQ0MKjHfcwdwaeLBHgDd6LN5sL9xkC dWCtWszITLqFYTR1w37tWbHf3Xzfksl2QppUXcZ6J8Oc3+/YUQwQiW6XkzK4IpUJMYBb +eGlqbOhZWlWUoSdf+6RKxOHXyxWvmJb5x3a/9CMvoGwyBtzJ66sQN+CeLbV+qOBf2K9 puHQ== 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=2LQQtF6mRwowaB8cMgADklf0rC+6ac5gfQ1xXYhmt1U=; b=ysBP9cz5/ot6UHBG3LJ2R6diU5RFsSDLhXF5xFsl0+5u1ZZ7RcIgOQSqGCPMNmBSkz T7/rslLGVr3gjUSl4cXSmGBeA6p0R0uKQLmeYXGx+8EzgXDHO4dfzxrxgHhrvnLzfMeP CNpMK+DjQy7wSqNRbxsRWC5ZzEEpAgyCvXxaGHzp7QZN5tgKcm8hG0rlBRnhGEWmDLRf yK1T6VxqNPGmpC7AbIpvwPX1HRdEUjJxt0ItvJVDGhODSnnP7PwfBH4YrpVZUIyvw27w /231btu3ilAaNA2gwzucqudsQ5V+T6AzuUV8N/tVod3DGp10m4JeRrfKzInedytGjQsg bJhQ== X-Gm-Message-State: AFqh2kp7ccmNv1e8d148oe7+qafuNdqM7PXDgvEh+vcgJiUdo1+ThNx/ ZLOqLuZRetbOTbnm5rPB/S3zCsDzP6DOW3U2 X-Google-Smtp-Source: AMrXdXuSQqa2trccbPf4aM7VbMdS5qT97PBZXgvT5z0i6qCohOr3WxUMmFLvvM2GkITEPDzBi1zXjg== X-Received: by 2002:a05:600c:16c5:b0:3d1:f687:1fd0 with SMTP id l5-20020a05600c16c500b003d1f6871fd0mr36512864wmn.12.1672924042358; Thu, 05 Jan 2023 05:07:22 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id j1-20020a05600c1c0100b003cfaae07f68sm2650283wms.17.2023.01.05.05.07.21 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 05 Jan 2023 05:07:22 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Huacai Chen , Bernhard Beschow , Jiaxun Yang Subject: [PATCH 2/8] hw/pci-host/bonito: Use 'bonito_host' for PCI host bridge code Date: Thu, 5 Jan 2023 14:07:04 +0100 Message-Id: <20230105130710.49264-3-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230105130710.49264-1-philmd@linaro.org> References: <20230105130710.49264-1-philmd@linaro.org> 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=ham 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org To make it easier to differentiate between the Host Bridge object and its PCI function #0, rename bonito_pcihost* as bonito_host*. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- hw/pci-host/bonito.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/pci-host/bonito.c b/hw/pci-host/bonito.c index b0d09c85d0..a804731f49 100644 --- a/hw/pci-host/bonito.c +++ b/hw/pci-host/bonito.c @@ -627,7 +627,7 @@ static const VMStateDescription vmstate_bonito = { } }; -static void bonito_pcihost_realize(DeviceState *dev, Error **errp) +static void bonito_host_realize(DeviceState *dev, Error **errp) { PCIHostState *phb = PCI_HOST_BRIDGE(dev); BonitoState *bs = BONITO_PCI_HOST_BRIDGE(dev); @@ -795,23 +795,23 @@ static const TypeInfo bonito_info = { }, }; -static void bonito_pcihost_class_init(ObjectClass *klass, void *data) +static void bonito_host_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); - dc->realize = bonito_pcihost_realize; + dc->realize = bonito_host_realize; } -static const TypeInfo bonito_pcihost_info = { +static const TypeInfo bonito_host_info = { .name = TYPE_BONITO_PCI_HOST_BRIDGE, .parent = TYPE_PCI_HOST_BRIDGE, .instance_size = sizeof(BonitoState), - .class_init = bonito_pcihost_class_init, + .class_init = bonito_host_class_init, }; static void bonito_register_types(void) { - type_register_static(&bonito_pcihost_info); + type_register_static(&bonito_host_info); type_register_static(&bonito_info); }