From patchwork Thu Jun 11 11:43:13 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: 11599787 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B5A8090 for ; Thu, 11 Jun 2020 11:45:04 +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 8A3F22072F for ; Thu, 11 Jun 2020 11:45:04 +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="KRdSs5et" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8A3F22072F 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+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:56662 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjLdn-0004NF-JW for patchwork-qemu-devel@patchwork.kernel.org; Thu, 11 Jun 2020 07:45:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjLcQ-0001wM-NP; Thu, 11 Jun 2020 07:43:38 -0400 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:33895) by eggs.gnu.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jjLcP-0001qo-KK; Thu, 11 Jun 2020 07:43:38 -0400 Received: by mail-wr1-x442.google.com with SMTP id r7so5841928wro.1; Thu, 11 Jun 2020 04:43:26 -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=KRdSs5etXYB7VhCaFESVJTcUxnkLKZJqRDxW57un9lr2AKgkDFnyxi2scXv0okNWJb FjyLLlELJH7B5bPtuqIxfYF/Nh7uQfKNHDFtVElAU8zMsq7m7fumli9hTsco9IRhwdgL 4Q9Pj7A0zIPXSRw+YExwxpLVskDTnqA7wIq75Yd0Qe3fvAJuqKaNeB5olusBE0wkVTd2 23j+TTBE/zVLtVslAcg7m0tZARsgWCb6ucaY+73Hk72CgLlQ8TNf3e3haww8k5oADOtL Hx+9Hmfj1aqGvn5Yhg0lvifJ+AqeZZEwdxDr6G7p4s93at2tT6gu2t8NDpAeT1xRvIHR EvoQ== 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=e0W9njcT31xOkDuB6y8JQRDKk6pgHQ0Q7QamB9g5l4Qn/ounB4Eo6Ovl2HiSPr/XWH ML5IFg8UxO7I1HS/2JiF+43Lbc/hHAmBKcAPBd5LSGPv2EBjQRfBso7Vda7nRWM9jYD5 80+AQ0OkzUB2YlNP3Mztrf3Pb+mkzQln0iR8hlLiKLImaGLTjIBWACSkFm5bre8S/hbs BUooToWz01wewgbEfDkfgipLy6Ax0wsQusFXLKgkgjte6YDMeLXMxH6EYsQmJ0QvjT4d 2UAuS039ZuGeiTK6vrS9mRpUHjSXA4G5W9j6lpvfUE5Zd4I2/NKNY4xYzGB2T8Eyn3Qc a5yg== X-Gm-Message-State: AOAM530B+wwudQEecrnScUZhFoaWZA43EDB7lgQO2HPE2+qB6coidm++ 8VFhKJWHlPF5cNlBEnEZbcQfHxNJ X-Google-Smtp-Source: ABdhPJwcBUHapxvBgF2I/O2kNdfTS1HheXb7dQHbQpWWRNcZznU+SAfzP6ukUThgzLgoIDyxO7RMMA== X-Received: by 2002:adf:fc81:: with SMTP id g1mr9343151wrr.156.1591875805030; Thu, 11 Jun 2020 04:43:25 -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 h29sm4832863wrc.78.2020.06.11.04.43.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jun 2020 04:43:24 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 3/7] hw/sh4: Use MemoryRegion typedef Date: Thu, 11 Jun 2020 13:43:13 +0200 Message-Id: <20200611114317.13044-4-f4bug@amsat.org> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200611114317.13044-1-f4bug@amsat.org> References: <20200611114317.13044-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 , Yoshinori Sato , qemu-trivial@nongnu.org, Magnus Damm , Michael Tokarev , Laurent Vivier , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Richard Henderson , =?utf-8?q?Alex_Benn=C3=A9?= =?utf-8?q?e?= , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.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);