From nobody Tue Nov 18 10:38:42 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.221.43 as permitted sender) client-ip=209.85.221.43; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-f43.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.43 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1609455000; cv=none; d=zohomail.com; s=zohoarc; b=GOcHnAxywXS0fB6PZ+7BgE5WyoIIxuifM6L9IGlA4A+rDXRLZsVOLVFmfr/ToLU4HrncJ7iXTd6lBX6sHbnbT0JfzhoMKEvTsvcB0yTXmpS0JBqR9DeNGXvG1g0OIiBWWJOScBq6Rfgc5hKisywquUySHqxBXjJ36a6MEtlEFWI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1609455000; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=zpXgP9moZBrSC473lu7QGvZbzGR5/trPsHw8SfcFSaA=; b=UhBvRJs5JxYkWOOUEfzp3M2VKnILiCmD2GFK/e2RlwK6UEU9J53XKlBtQobDJYALj3EMoWdsim+mQLUUhi3TNOiEu6PSj63qm+oJhBZ6xHzKXxi+PN2XIA+hLHdAbWI3AcO6kPO7ODtUhB3+QR+8uRI//nNlAjrTmNN4nNWDCqI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.43 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by mx.zohomail.com with SMTPS id 1609455000183434.8499729471672; Thu, 31 Dec 2020 14:50:00 -0800 (PST) Received: by mail-wr1-f43.google.com with SMTP id w5so21012464wrm.11 for ; Thu, 31 Dec 2020 14:49:59 -0800 (PST) Return-Path: Return-Path: Received: from localhost.localdomain (239.red-83-42-57.dynamicip.rima-tde.net. [83.42.57.239]) by smtp.gmail.com with ESMTPSA id s1sm73228987wrv.97.2020.12.31.14.49.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Dec 2020 14:49:57 -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=zpXgP9moZBrSC473lu7QGvZbzGR5/trPsHw8SfcFSaA=; b=c2NUqgSeZEiaA5RZAU2EyMjQN3wcDgK6nBfaToXNSTYmyzmKnEjkUHMpyRGsCuAoCO Aq3QtK/exYVGj7R33s+5mX4SqvICgEwfhVgoh3M1cRYz/0Y6ode+XchEkGMnaUXn2O7x szqyHrRaPkmUbMd/e0jE1WsECGTBEyfEbyfOjMGrzRAtIZ83h0tLOXDv9cuVC38LG+k8 nUQvkEqStchVnsvba5cthZfUVZU2WVreDszqD12wdQ/SRuHRc9B4h7yNYKsCb/VH9Brx jQufP5voa6CRoroWtfU1cPylkzkpDb5YeKx6EbEt3CYZF7LnXU4aNvyMUX4wZx3Gte6i Jvng== 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=zpXgP9moZBrSC473lu7QGvZbzGR5/trPsHw8SfcFSaA=; b=Sq8+hz8cqg7DlUT45x4KoKptLMFHECRJiUDlYlAk2D6DKK3Q10jt+z9m/X17CIzn0d YLWdv/1+yzwxb42TfdSyB2fwFxxlIqSQgBRSBbTV3En+unJrkC4aTXYeVzFupsc2BNAV /J89AWMdChLcwN0eBbmuTlb4y1dwo9pcWl4kQtIn8RUcsH5Bfh/LRFWZUKjghZiq7TwY NTup2q2BEGN8hKyPpKcHX5PrrF+T1cvb6oO1sIxdFLZcuCw+2/HzRCSWBnLkNOM66WwO EuwCYbm2/yEuH5TXEZkSX0qhvnmmXF6JPQIEdxMyLgLSAzczhkgBquAQk5qmR0I+UQlA 2Tow== X-Gm-Message-State: AOAM531f6jVs5iwHvYk7B0pb79MtS2RjDNY5l4j5JL/LH2e/ys3xeZ3q Jz2xcxzkNpm4SHFZeCunlI4= X-Google-Smtp-Source: ABdhPJxVy8JZj8s35RJPmonjGj9EwE0mzrxii/EQKK2hMbyhMcP4V0BvmK30W2pHAqmfdue7pQvcvg== X-Received: by 2002:a05:6000:10c4:: with SMTP id b4mr67406710wrx.170.1609454998452; Thu, 31 Dec 2020 14:49:58 -0800 (PST) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Jiaxun Yang , Aleksandar Rikalo , Aurelien Jarno , Huacai Chen Subject: [PATCH 09/18] hw/pci-host/bonito: Rename north bridge helpers Date: Thu, 31 Dec 2020 23:49:02 +0100 Message-Id: <20201231224911.1467352-10-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201231224911.1467352-1-f4bug@amsat.org> References: <20201231224911.1467352-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) Rename north bridge related helpers as 'bonito_northbridge_*'. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- 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 a091ef15d27..d91ed82c99e 100644 --- a/hw/pci-host/bonito.c +++ b/hw/pci-host/bonito.c @@ -270,7 +270,7 @@ static void bonito_remap(PCIBonitoState *s) } } =20 -static void bonito_writel(void *opaque, hwaddr addr, +static void bonito_northbridge_write(void *opaque, hwaddr addr, uint64_t val, unsigned size) { PCIBonitoState *s =3D opaque; @@ -335,7 +335,7 @@ static void bonito_writel(void *opaque, hwaddr addr, } } =20 -static uint64_t bonito_readl(void *opaque, hwaddr addr, +static uint64_t bonito_northbridge_read(void *opaque, hwaddr addr, unsigned size) { PCIBonitoState *s =3D opaque; @@ -352,9 +352,9 @@ static uint64_t bonito_readl(void *opaque, hwaddr addr, } } =20 -static const MemoryRegionOps bonito_ops =3D { - .read =3D bonito_readl, - .write =3D bonito_writel, +static const MemoryRegionOps bonito_northbridge_ops =3D { + .read =3D bonito_northbridge_read, + .write =3D bonito_northbridge_write, .endianness =3D DEVICE_NATIVE_ENDIAN, .valid =3D { .min_access_size =3D 4, @@ -681,7 +681,7 @@ static void bonito_realize(PCIDevice *dev, Error **errp) pci_config_set_prog_interface(dev->config, 0x00); =20 /* set the north bridge register mapping */ - memory_region_init_io(&s->iomem, OBJECT(s), &bonito_ops, s, + memory_region_init_io(&s->iomem, OBJECT(s), &bonito_northbridge_ops, s, "north-bridge-register", BONITO_INTERNAL_REG_SIZ= E); sysbus_init_mmio(sysbus, &s->iomem); sysbus_mmio_map(sysbus, 0, BONITO_INTERNAL_REG_BASE); --=20 2.26.2