From nobody Tue Feb 10 06:07:52 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1576782419; cv=none; d=zohomail.com; s=zohoarc; b=EvxZMbCCTLMJqF0UWPPXr5lEtSXyfhGP4Ekz0k5UMIXqDMpYOXT8X9t7TcMKjdZA8VP9FsAhXfMxrH1SLPvSNqDipxc2MS8pxQhRZPBipgVSsiB86k4eNRo94dNbQIEk9iaJ9/aDT5ysVLiJkQgBIu6a1yncGVY59xFxQl6bJLk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576782419; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=xqTqck0MunQzlvW3fvG1Eh5JVsO+310wsc6ir4XWOg8=; b=MfWy7tw0O/lTaLMPfN0dXUBZJsWwG0WujGV+KGU8d0h/eb1Hat0/Mk6biXVFr5POGBVcfd0KKWQTyxArEYsDm2vjZemsv6oMyJgjeon2FOBU+iX6frexTEsXdGuFY1YfjSalMWMz+1PYgWd1c2ED4zT6aTAoEC1x+dS61mb6B1w= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1576782419717679.610001585267; Thu, 19 Dec 2019 11:06:59 -0800 (PST) Received: from localhost ([::1]:46862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ii18T-0007cv-Qe for importer@patchew.org; Thu, 19 Dec 2019 14:06:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40084) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ii0tj-0007AO-JS for qemu-devel@nongnu.org; Thu, 19 Dec 2019 13:51:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ii0ti-0008BU-5L for qemu-devel@nongnu.org; Thu, 19 Dec 2019 13:51:43 -0500 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:45868) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ii0th-00085U-R3; Thu, 19 Dec 2019 13:51:42 -0500 Received: by mail-wr1-x442.google.com with SMTP id j42so7020432wrj.12; Thu, 19 Dec 2019 10:51:41 -0800 (PST) Received: from x1w.redhat.com (34.red-83-42-66.dynamicip.rima-tde.net. [83.42.66.34]) by smtp.gmail.com with ESMTPSA id b67sm7435494wmc.38.2019.12.19.10.51.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2019 10:51:40 -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=xqTqck0MunQzlvW3fvG1Eh5JVsO+310wsc6ir4XWOg8=; b=DbT48iy/7ZvB5pfzW11tJNj8wYlfwPabB00bOKJ0VQCM46ByzLZ4a49Xm0UmmMz/Gk BGzwYIr+W3WolPSvYe9MMm2oHybcm/jmi0jszdd7i557I3GQ8/ltFe9RruaamPmLfoT4 4K9qkxJazaD2em1FwLUI1ZgEiOG4Xr8mXmYLBhkIZwAX/ZGsvPCvMEa8vu6jWHGFP0PL O+xvyO5ZZTE8Hes37CPKCnSis217ZDk27eSmewXK8UAnA3FEL4qSTxfQfTJda/nPg9P8 yaXQlotZOlEeiz77X81NBHRWjEV+39FKZ1wBvsb8kXvsvscMZ6XMp5zazNLXq+f9fbf2 bY7A== 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=xqTqck0MunQzlvW3fvG1Eh5JVsO+310wsc6ir4XWOg8=; b=d2OQgjyq82a1PfZoGPtPp3E0PZoBd+NU15oX7Yxg0aKBoWwPbtEWxH/SLftSsNIUgf 3b/xdxUqhcjxrNtvWM857PcTeKAGtWoQJiZo9YlZzdE8h6RG/UbvZqN5sI98hpH8olDq Pq7wlLJ53QaneO4IhYMV0x9Q18EcgAfs+wyShfJTCOIKcP3et0zx9HuDs3QAEVF3Wrhu 7F7pwsO35d/6IPWU0KQ5Ho1QMSPxpJu1RQ8Zl3S9sOfBKUMrPqJRivaurVKhKA3dTAam oDw+J38GqZaspBh1xk25rPIeYgOgEV+BC3SrrH5jS3bZNpeSqzzf5KLLr828AufvYeFV qfLQ== X-Gm-Message-State: APjAAAUn3ZFZnEY+xycK7s/WBPyufXVtWZIsYIeVwJg8MlSFM+4NG6T6 U9FTqCdIMIoVKWbC73/Gla6VDdQu X-Google-Smtp-Source: APXvYqx/VGHdVWsKIJFPURExgJ03KjIrRp4uQuR5eGkcfc5bbnhAU+9EE5LXjLtXy9fSJPgB7ME4Ig== X-Received: by 2002:a5d:6144:: with SMTP id y4mr11215374wrt.367.1576781500573; Thu, 19 Dec 2019 10:51:40 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, Niek Linnenbank Subject: [RFC PATCH 09/13] hw/timer/allwinner: Rename AwA10TimerContext as AllwinnerTmrState Date: Thu, 19 Dec 2019 19:51:23 +0100 Message-Id: <20191219185127.24388-10-f4bug@amsat.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191219185127.24388-1-f4bug@amsat.org> References: <20191219185127.24388-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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: 2a00:1450:4864:20::442 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Beniamino Galvani , Peter Maydell , qemu-arm@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) This structure will be common to various Allwinner timer controllers, rename it. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/hw/timer/allwinner-a10-pit.h | 6 +++--- hw/timer/allwinner-a10-pit.c | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/include/hw/timer/allwinner-a10-pit.h b/include/hw/timer/allwin= ner-a10-pit.h index 8c64c33f01..3a47633cc4 100644 --- a/include/hw/timer/allwinner-a10-pit.h +++ b/include/hw/timer/allwinner-a10-pit.h @@ -10,7 +10,7 @@ =20 typedef struct AwA10PITState AwA10PITState; =20 -typedef struct AwA10TimerContext { +typedef struct AllwinnerTmrState { AwA10PITState *container; int index; ptimer_state *ptimer; @@ -18,14 +18,14 @@ typedef struct AwA10TimerContext { uint32_t control; uint32_t interval; uint32_t count; -} AwA10TimerContext; +} AllwinnerTmrState; =20 struct AwA10PITState { /*< private >*/ SysBusDevice parent_obj; /*< public >*/ size_t timer_count; - AwA10TimerContext timer[AW_PIT_TIMER_MAX]; + AllwinnerTmrState timer[AW_PIT_TIMER_MAX]; MemoryRegion iomem; uint32_t clk_freq[4]; =20 diff --git a/hw/timer/allwinner-a10-pit.c b/hw/timer/allwinner-a10-pit.c index 3f47588703..ecfc198937 100644 --- a/hw/timer/allwinner-a10-pit.c +++ b/hw/timer/allwinner-a10-pit.c @@ -234,10 +234,10 @@ static const VMStateDescription vmstate_aw_timer =3D { .version_id =3D 0, .minimum_version_id =3D 0, .fields =3D (VMStateField[]) { - VMSTATE_UINT32(control, AwA10TimerContext), - VMSTATE_UINT32(interval, AwA10TimerContext), - VMSTATE_UINT32(count, AwA10TimerContext), - VMSTATE_PTIMER(ptimer, AwA10TimerContext), + VMSTATE_UINT32(control, AllwinnerTmrState), + VMSTATE_UINT32(interval, AllwinnerTmrState), + VMSTATE_UINT32(count, AllwinnerTmrState), + VMSTATE_PTIMER(ptimer, AllwinnerTmrState), VMSTATE_END_OF_LIST() } }; @@ -252,7 +252,7 @@ static const VMStateDescription vmstate_a10_pit =3D { VMSTATE_STRUCT_ARRAY(timer, AwA10PITState, AW_PIT_TIMER_MAX, 0, vmstate_aw_timer, - AwA10TimerContext), + AllwinnerTmrState), VMSTATE_UINT32(watch_dog_mode, AwA10PITState), VMSTATE_UINT32(watch_dog_control, AwA10PITState), VMSTATE_UINT32(count_lo, AwA10PITState), @@ -289,7 +289,7 @@ static void a10_pit_reset(DeviceState *dev) =20 static void a10_pit_timer_cb(void *opaque) { - AwA10TimerContext *tc =3D opaque; + AllwinnerTmrState *tc =3D opaque; AwA10PITState *s =3D tc->container; uint8_t i =3D tc->index; =20 @@ -319,7 +319,7 @@ static void a10_pit_init(Object *obj) sysbus_init_mmio(sbd, &s->iomem); =20 for (i =3D 0; i < s->timer_count; i++) { - AwA10TimerContext *tc =3D &s->timer[i]; + AllwinnerTmrState *tc =3D &s->timer[i]; =20 tc->container =3D s; tc->index =3D i; --=20 2.21.0