From patchwork Wed Jun 10 22:08:49 2020 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: 280823 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6FEB6C433DF for ; Wed, 10 Jun 2020 22:11:02 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 37C302072E for ; Wed, 10 Jun 2020 22:11:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ivRNWkvY" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 37C302072E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amsat.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:59354 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jj8w1-0007qv-En for qemu-devel@archiver.kernel.org; Wed, 10 Jun 2020 18:11:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jj8uP-0005mg-HE; Wed, 10 Jun 2020 18:09:21 -0400 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:43642) by eggs.gnu.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jj8uO-0008Hs-Np; Wed, 10 Jun 2020 18:09:21 -0400 Received: by mail-wr1-x442.google.com with SMTP id l10so4027320wrr.10; Wed, 10 Jun 2020 15:09:08 -0700 (PDT) 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=B90u68HWanE8Ef/dq5GEfdfCsFqZeY71gyQo1Aa7Eho=; b=ivRNWkvY/CYg1r4+YE57MTF7jA6Debgfens3DLYERfxKda/1RWtGHBw0Ba9TLk2Fdf CFcAxqH5/EkF6RoF5OdVo7wclMmVgEKgJxxclNmlv3myFtepMnjF9YKZWvOE2DDWrfHb CIzyzJQmSmrcKzy7OVC03ObujXiD5OpwkBKq/kZZrF8eBNcgF6vCHJfsv+ZI15FYXPSt eL+k+oa7cvemhQYsFJTr6mVGV+Xe8FQu8oQu4+q6Z0UfrTHGnrZV/eGYlpjSm9Zx+Gf0 EFP3iesTRXDdjhTkZ0gAIaQImCif1OsXxpM0Z65JmA1/IjRSGjtpdyxs9jnA+bhTFO3v PJTg== 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=B90u68HWanE8Ef/dq5GEfdfCsFqZeY71gyQo1Aa7Eho=; b=rkbZG00kKfNCq1DJN5DoCrXIDUHdYvdUr3KWzEA8Z7CZttcO3Tlh93qE50aa/F/jwj kreC/68VgAZslyhdH5QmO0W6TZnscoDuk2mUxKSKPDsgJBWZKEXw86ltTHY5d4PmVr2b h66Yk1gcz+J1rv4hebMVuOsfzoIQSAvjmI8mWGdwNzGPmS/XkeiXW0xSp+vfp5ldszte sWEl75cqI1i3nDfoxwOEuKAiN0+nr1qq9Qc/Ni6iYM/VfFEHMOU3ngGaK4yEQQuNWecK +yl4bCx9OS0m6K8A3axhIyXeZDqxIPGDlWR56sb4KfgB3418c8EAXT2wGhB7QG4cZdQD CS1Q== X-Gm-Message-State: AOAM533EywxJeGDUw4B8Cg3ICl2iUOSbYZJJ59agpniXa2IEW9jMRDFy ZqX6/NLkD6P57RZw3muEUETp+GqD X-Google-Smtp-Source: ABdhPJzvKAg7UyXWh512AU932j5Nbpey0MOgBcSYCOTqSCInBdBdHBq5BQGY1LuEYwbEcHMHUMaj/Q== X-Received: by 2002:a5d:69cb:: with SMTP id s11mr5952217wrw.91.1591826946587; Wed, 10 Jun 2020 15:09:06 -0700 (PDT) Received: from x1w.redhat.com (181.red-88-10-103.dynamicip.rima-tde.net. [88.10.103.181]) by smtp.gmail.com with ESMTPSA id 40sm1819354wrc.15.2020.06.10.15.09.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 15:09:05 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 07/11] hw/sh4: Use MemoryRegion typedef Date: Thu, 11 Jun 2020 00:08:49 +0200 Message-Id: <20200610220853.8558-8-f4bug@amsat.org> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200610220853.8558-1-f4bug@amsat.org> References: <20200610220853.8558-1-f4bug@amsat.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::442; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-x442.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 0 X-Spam_score: 0.0 X-Spam_bar: / X-Spam_report: (0.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=1, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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: Fam Zheng , Thomas Huth , Magnus Damm , Yoshinori Sato , qemu-trivial@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , Michael Tokarev , Laurent Vivier , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?b?w6k=?= , Aleksandar Markovic , Richard Henderson , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Use the MemoryRegion type defined in "qemu/typedefs.h", to keep the repository style consistent. Reviewed-by: Richard Henderson Reviewed-by: Thomas Huth Signed-off-by: Philippe Mathieu-Daudé --- include/hw/sh4/sh.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/hw/sh4/sh.h b/include/hw/sh4/sh.h index 767a2df7e2..fe773cb01d 100644 --- a/include/hw/sh4/sh.h +++ b/include/hw/sh4/sh.h @@ -10,9 +10,8 @@ /* sh7750.c */ struct SH7750State; -struct MemoryRegion; -struct SH7750State *sh7750_init(SuperHCPU *cpu, struct MemoryRegion *sysmem); +struct SH7750State *sh7750_init(SuperHCPU *cpu, MemoryRegion *sysmem); typedef struct { /* The callback will be triggered if any of the designated lines change */ @@ -32,7 +31,7 @@ int sh7750_register_io_device(struct SH7750State *s, #define TMU012_FEAT_TOCR (1 << 0) #define TMU012_FEAT_3CHAN (1 << 1) #define TMU012_FEAT_EXTCLK (1 << 2) -void tmu012_init(struct MemoryRegion *sysmem, hwaddr base, +void tmu012_init(MemoryRegion *sysmem, hwaddr base, int feat, uint32_t freq, qemu_irq ch0_irq, qemu_irq ch1_irq, qemu_irq ch2_irq0, qemu_irq ch2_irq1);