From nobody Wed Nov 27 02:35:18 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1702003265; cv=none; d=zohomail.com; s=zohoarc; b=lXeowrFbA2VmK4/GtGJsqCx3EyuN5eP1cAbiPvYPEqq6zWAXwy+HoW6JTRP9qumv7PM5F1G/wzQ2HWr+/k2Ekj17VRawSox23t8wncaspQ57T8zzpLfev3fy/y8dqurimsMbDAs4Nv4OcRpfmXEJpSznpSCYsZixx7vrjOucHcQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1702003265; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=gY8sUeibQtSIKqZZj4hPgQKFQsYZHNo91+gsd8Kiers=; b=dEAnJvVnLTePITIwmbp+nM6oUVDKLjguGvDHxbbR/8FGBXFmdKIl7qbhYqBOaHcHM7bcR8iVkr58KVpmkXj3TWyiJZXGDG+FZ1wBNGCmIIaCyWi97+F9WqM7RzmjUR5Vbps9y7hLVCKO7Jlf9dqnbfm9uLmn4XQSFNf7I/sz4qQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1702003265529777.5197592641958; Thu, 7 Dec 2023 18:41:05 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBQh2-0000wu-VR; Thu, 07 Dec 2023 21:34:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rBQgz-0000Ue-4u; Thu, 07 Dec 2023 21:34:17 -0500 Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rBQgx-0002qC-D6; Thu, 07 Dec 2023 21:34:16 -0500 Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2c9fe0b5b28so20026031fa.1; Thu, 07 Dec 2023 18:34:14 -0800 (PST) Received: from localhost.localdomain ([185.200.240.39]) by smtp.gmail.com with ESMTPSA id r1-20020a2e94c1000000b002c9e6cbf78esm99062ljh.19.2023.12.07.18.34.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 18:34:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702002853; x=1702607653; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gY8sUeibQtSIKqZZj4hPgQKFQsYZHNo91+gsd8Kiers=; b=Yv5BscJmN/WGKdqL9RvOSLfE7WpQTvozPTewkJ+2k97IjoRq0DFCz+Yi6takQ4Sh+u ABhIdvoW4Kv631nrbj3uXE/NZjcEGuoYNYwJvovvVELwWZe9ZwsffeMrFRhM5OKzbnBb qtOlJBbFNGNKoQVao9ZvvIX4f2/Aks5iDMs9yXUFUPPsf/fM9J11AZ35/DWZ/dRafMEP NgLqffGY82mJspx1+NZaWGecdNCc/MmJS5+gFCUDFl6A0iQbvkyi8yKdY7Po0qUIvofk cG3ZM2arkbZlK/oqCPPqeQIpGdpUTe5y5aeAEKTB7jkpH3QQbK+lVBr7jotRKY0HCzL5 YK6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702002853; x=1702607653; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gY8sUeibQtSIKqZZj4hPgQKFQsYZHNo91+gsd8Kiers=; b=iGiV5whQl+rWELZfVIlqepURm904VeenuPol6cOj6dOpx4QZD+IqGBR/Pa3xaqgt8+ KuHVLbCXU93qyA7jDtBmcGcOIdoej9PmnszsFmw0DJYq7+XwMbHzQRQjEuX8RBJdTHVW B3Ln2p2UW/fql9wd47zNsPHguYlNvEk8rgxzjS2n8CIGbxcTEoIUmkOjx8/5lo59x/4y mcKGfUa6p1xtWfAbZMjFJ6X+aoXwGb4J6l3xZ2YG7Sr2S8tx2Ctnepn63VCYb7gsG6/f zAsOB95oLJSN7rzyqxw9xb6FRyqZFs+oUNHrxn5i7qwBFEokvrRvU0v0ZfTPyjAGzpjq qw9A== X-Gm-Message-State: AOJu0YzQX6r63M24a7WODYjn1cIc0dZUEO4Juzol2DX07Sv16JW2fYAk N4MrCn8vBC+rST1PwEx6rhiy0H/s9PqgzA== X-Google-Smtp-Source: AGHT+IEL9W1AMql8OVTpjVefI9776IHaWCT2k5XneTJbhQgwI5x+iw6gev8Jq8gS4+EIqw88vZOruw== X-Received: by 2002:a05:651c:198c:b0:2ca:227b:7f4d with SMTP id bx12-20020a05651c198c00b002ca227b7f4dmr2327461ljb.0.1702002853009; Thu, 07 Dec 2023 18:34:13 -0800 (PST) From: Sergey Kambalin X-Google-Original-From: Sergey Kambalin To: qemu-arm@nongnu.org Cc: qemu-devel@nongnu.org, Sergey Kambalin Subject: [PATCH v4 39/45] Add mailbox tests tags. Part 3 Date: Thu, 7 Dec 2023 20:31:39 -0600 Message-Id: <20231208023145.1385775-40-sergey.kambalin@auriga.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231208023145.1385775-1-sergey.kambalin@auriga.com> References: <20231208023145.1385775-1-sergey.kambalin@auriga.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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; Received-SPF: pass client-ip=2a00:1450:4864:20::22a; envelope-from=serg.oker@gmail.com; helo=mail-lj1-x22a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1702003266260100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Sergey Kambalin --- tests/qtest/bcm2838-mailbox.h | 78 +++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/tests/qtest/bcm2838-mailbox.h b/tests/qtest/bcm2838-mailbox.h index 49668668da..2b140a5d32 100644 --- a/tests/qtest/bcm2838-mailbox.h +++ b/tests/qtest/bcm2838-mailbox.h @@ -514,6 +514,84 @@ DECLARE_TAG_TYPE(TAG_GET_DMA_CHANNELS_t, uint32_t mask; }); =20 +DECLARE_TAG_TYPE(TAG_GET_THROTTLED_t, + struct {}, + struct { + uint32_t throttled; + }); + +DECLARE_TAG_TYPE(TAG_GET_NUM_DISPLAYS_t, + struct {}, + struct { + uint32_t num_displays; + }); + +DECLARE_TAG_TYPE(TAG_GET_DISPLAY_SETTINGS_t, + struct {}, + struct { + uint32_t display_num; + uint32_t phys_width; + uint32_t phys_height; + uint32_t bpp; + uint16_t pitch; + uint32_t virt_width; + uint32_t virt_height; + uint16_t virt_width_offset; + uint32_t virt_height_offset; + uint32_t fb_bus_address_lo; + uint32_t fb_bus_address_hi; + }); + +DECLARE_TAG_TYPE(TAG_GET_GPIO_CONFIG_t, + struct { + uint32_t gpio_num; + }, + struct { + uint32_t zero; + uint32_t direction; + uint32_t polarity; + uint32_t term_en; + uint32_t term_pull_up; + }); + + +DECLARE_TAG_TYPE(TAG_SET_GPIO_CONFIG_t, + struct { + uint32_t gpio_num; + uint32_t direction; + uint32_t polarity; + uint32_t term_en; + uint32_t term_pull_up; + uint32_t state; + }, + struct { + uint32_t zero; + }); + +DECLARE_TAG_TYPE(TAG_GET_GPIO_STATE_t, + struct { + uint32_t gpio_num; + }, + struct { + uint32_t zero; + uint32_t state; + }); + +DECLARE_TAG_TYPE(TAG_SET_GPIO_STATE_t, + struct { + uint32_t gpio_num; + uint32_t state; + }, + struct { + uint32_t zero; + }); + +DECLARE_TAG_TYPE(TAG_INITIALIZE_VCHIQ_t, + struct {}, + struct { + uint32_t zero; + }); + int mbox0_has_data(void); void mbox0_read_message(uint8_t channel, void *msgbuf, size_t msgbuf_size); void mbox1_write_message(uint8_t channel, uint32_t msg_addr); --=20 2.34.1