From patchwork Tue Sep 1 14:07:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 1355028 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=vivier.eu 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 ozlabs.org (Postfix) with ESMTPS id 4Bgppx0y5Tz9sVZ for ; Wed, 2 Sep 2020 00:09:29 +1000 (AEST) Received: from localhost ([::1]:54166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kD6yV-0003W0-2p for incoming@patchwork.ozlabs.org; Tue, 01 Sep 2020 10:09:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kD6xO-0002aV-HV; Tue, 01 Sep 2020 10:08:18 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:60855) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kD6xJ-0003KL-6P; Tue, 01 Sep 2020 10:08:18 -0400 Received: from localhost.localdomain ([82.252.135.186]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1Mwwhx-1kWhB60b9P-00yN0Y; Tue, 01 Sep 2020 16:08:07 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Subject: [PULL 01/44] hw/register: Document register_init_block @memory_size Date: Tue, 1 Sep 2020 16:07:20 +0200 Message-Id: <20200901140803.888852-2-laurent@vivier.eu> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200901140803.888852-1-laurent@vivier.eu> References: <20200901140803.888852-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:8bPLAURVEaw24uNIxjnDnEMeRGpp+71eXkutyufMLXcBTz61pZD Zsupbjl+GyhN5taXWYddh3xmOxCZiHGlvixPO3J9hc6H5trWMm8/gF7RCJ8EaOUhI5uGRhu Nf8Kpv5uQWBIM/QidHGtsoOkbvJvr6F3jrn9T8bG+wPpLwzD8hlgD8fyYFJYqTzJW53slV4 ZrQ7u5rwaFMkkQzi+mhWg== X-UI-Out-Filterresults: notjunk:1;V03:K0:6yH3oOnANKo=:QYcnEQLvzXxnPS4jyuek2y eit0oOs+cqrbApyqIrTHrsGdIwW9degKpQ/s+b9g6ASMeuBZPC0RTTw6U2M0REakn1O7ebmhT ePX0ON+e3CVAa/80XHq3doSSO9c2jHI8N0T10XMgS8QGfyPThQACO5L7A5sUOqEBEmqlH52Ut 7URYzS234ZRaC8ogeXnPGzJO8RNjZ5nEI3IXu0IajH3b1ovrzpQB+HirpfhplvQ1LIpwrgyQH KQE7FB2loYsPk4g5PIdXx7Z8utGHoxW4VLa9WcDZaRw0PSj2P+rIfQpxqxVwgauk52c2RF8B+ 72LszN6HC2nsQ/NMLPOxbxqFtA4v9hvULGqOe+Px6b5WEjQFEqZ5i78i2j2DTCzDOehB3bMqp sevuvt3uoAqlSj0JOYZ6It+4m1sx1TUuPfG6+mQdUvI0TmQHyV5mTGp8FV3Ed90O5yK9UspFl OcCy4IQPBc2pUsK/5MOnv6uXVi9sSeV7mvIF8jU10sc6m6wBPAl8b+c0o7SPV5nhFO5W8Jz9+ GZml2w9sCNwqVNu+m9sZGTGGMjUTcluhCbr1BbgHMM69U8PBfm1gfdaDUPpY2qmRsF87pmkJr 5FyI72mOq/nXOilU4fKdxvyvYgEak4DQUL5wGlT/ZBhElDhyljZpBGXlwda/c93koDebyyukL eALGtbcSt5zljWAoDEK4N0g1ogHpaTuztw5UQ9bcnVfoJ/MvOAFByxUR9lKcArGtV/Og4t3na QJ1ZDWQLwAeBiZuTRMpgropAI6lFkKsn+PE6LRqmIw5flFGv1ZgbWPl7jr8bUCQU0yoSyGxQS NRPljbG1vStKFwQEtpX4jwTCUm1FHYrsbX3sn0xXwppMYXjkdIyhdRPE6ishhsMS2C73Gpo Received-SPF: none client-ip=212.227.17.10; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/01 10:08:11 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no 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: qemu-trivial@nongnu.org, Alistair Francis , Laurent Vivier , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé Document the 'memory_size' argument of register_init_block(). Fixes: a74229597e ("register: Add block initialise helper") Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis Reviewed-by: Laurent Vivier Message-Id: <20200707062308.4531-1-f4bug@amsat.org> Signed-off-by: Laurent Vivier --- include/hw/register.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/hw/register.h b/include/hw/register.h index 5d2c565ae02e..fdac5e69b545 100644 --- a/include/hw/register.h +++ b/include/hw/register.h @@ -181,6 +181,7 @@ uint64_t register_read_memory(void *opaque, hwaddr addr, unsigned size); * @data: Array to use for register data, must already be allocated * @ops: Memory region ops to access registers. * @debug enabled: turn on/off verbose debug information + * @memory_size: Size of the memory region * returns: A structure containing all of the registers and an initialized * memory region (r_array->mem) the caller should add to a container. */