[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 37/45] tests/qtest/bcm2828-mailbox: Add mailbox tests tags. Part 1
From: |
Peter Maydell |
Subject: |
[PULL 37/45] tests/qtest/bcm2828-mailbox: Add mailbox tests tags. Part 1 |
Date: |
Tue, 27 Feb 2024 13:33:06 +0000 |
From: Sergey Kambalin <serg.oker@gmail.com>
Signed-off-by: Sergey Kambalin <sergey.kambalin@auriga.com>
Message-id: 20240226000259.2752893-34-sergey.kambalin@auriga.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
---
tests/qtest/bcm2838-mailbox.h | 177 ++++++++++++++++++++++++++++++++++
1 file changed, 177 insertions(+)
diff --git a/tests/qtest/bcm2838-mailbox.h b/tests/qtest/bcm2838-mailbox.h
index 9222b38bad7..1360fbb8cf4 100644
--- a/tests/qtest/bcm2838-mailbox.h
+++ b/tests/qtest/bcm2838-mailbox.h
@@ -116,6 +116,183 @@ typedef struct {
\
}; \
} TypeName
+DECLARE_TAG_TYPE(TAG_GET_FIRMWARE_REVISION_t,
+ struct {},
+ struct {
+ uint32_t revision;
+ });
+
+DECLARE_TAG_TYPE(TAG_GET_FIRMWARE_VARIANT_t,
+ struct {},
+ struct {
+ uint32_t variant;
+ });
+
+DECLARE_TAG_TYPE(TAG_GET_BOARD_REVISION_t,
+ struct {},
+ struct {
+ uint32_t revision;
+ });
+
+DECLARE_TAG_TYPE(TAG_GET_ARM_MEMORY_t,
+ struct {},
+ struct {
+ uint32_t base;
+ uint32_t size;
+ });
+
+DECLARE_TAG_TYPE(TAG_GET_VC_MEMORY_t,
+ struct {},
+ struct {
+ uint32_t base;
+ uint32_t size;
+ });
+
+DECLARE_TAG_TYPE(TAG_SET_POWER_STATE_t,
+ struct {
+ uint32_t device_id;
+ uint32_t cmd;
+ },
+ struct {
+ uint32_t device_id;
+ uint32_t cmd;
+ });
+
+DECLARE_TAG_TYPE(TAG_GET_CLOCK_STATE_t,
+ struct {
+ uint32_t clock_id;
+ },
+ struct {
+ uint32_t clock_id;
+ uint32_t cmd;
+ });
+
+DECLARE_TAG_TYPE(TAG_GET_CLOCK_RATE_t,
+ struct {
+ uint32_t clock_id;
+ },
+ struct {
+ uint32_t clock_id;
+ uint32_t rate;
+ });
+
+DECLARE_TAG_TYPE(TAG_GET_MAX_CLOCK_RATE_t,
+ struct {
+ uint32_t clock_id;
+ },
+ struct {
+ uint32_t clock_id;
+ uint32_t rate;
+ });
+
+DECLARE_TAG_TYPE(TAG_GET_MIN_CLOCK_RATE_t,
+ struct {
+ uint32_t clock_id;
+ },
+ struct {
+ uint32_t clock_id;
+ uint32_t rate;
+ });
+
+DECLARE_TAG_TYPE(TAG_GET_CLOCKS_t,
+ struct {},
+ struct {
+ uint32_t root_clock;
+ uint32_t arm_clock;
+ });
+
+DECLARE_TAG_TYPE(TAG_GET_TEMPERATURE_t,
+ struct {
+ uint32_t temperature_id;
+ },
+ struct {
+ uint32_t temperature_id;
+ uint32_t temperature;
+ });
+
+DECLARE_TAG_TYPE(TAG_GET_MAX_TEMPERATURE_t,
+ struct {
+ uint32_t temperature_id;
+ },
+ struct {
+ uint32_t temperature_id;
+ uint32_t temperature;
+ });
+
+DECLARE_TAG_TYPE(TAG_FRAMEBUFFER_ALLOCATE_t,
+ struct {
+ uint32_t alignment;
+ },
+ struct {
+ uint32_t base;
+ uint32_t size;
+ });
+
+DECLARE_TAG_TYPE(TAG_FRAMEBUFFER_RELEASE_t,
+ struct {},
+ struct {});
+
+DECLARE_TAG_TYPE(TAG_FRAMEBUFFER_BLANK_t,
+ struct {
+ uint32_t on;
+ },
+ struct {
+ uint32_t on;
+ });
+
+DECLARE_TAG_TYPE(TAG_FRAMEBUFFER_GET_PHYSICAL_WIDTH_HEIGHT_t,
+ struct {},
+ struct {
+ uint32_t width;
+ uint32_t height;
+ });
+
+DECLARE_TAG_TYPE(TAG_FRAMEBUFFER_TEST_PHYSICAL_WIDTH_HEIGHT_t,
+ struct {
+ uint32_t width;
+ uint32_t height;
+ },
+ struct {
+ uint32_t width;
+ uint32_t height;
+ });
+
+DECLARE_TAG_TYPE(TAG_FRAMEBUFFER_SET_PHYSICAL_WIDTH_HEIGHT_t,
+ struct {
+ uint32_t width;
+ uint32_t height;
+ },
+ struct {
+ uint32_t width;
+ uint32_t height;
+ });
+
+DECLARE_TAG_TYPE(TAG_FRAMEBUFFER_GET_VIRTUAL_WIDTH_HEIGHT_t,
+ struct {},
+ struct {
+ uint32_t width;
+ uint32_t height;
+ });
+
+DECLARE_TAG_TYPE(TAG_FRAMEBUFFER_TEST_VIRTUAL_WIDTH_HEIGHT_t,
+ struct {
+ uint32_t width;
+ uint32_t height;
+ },
+ struct {
+ uint32_t width;
+ uint32_t height;
+ });
+
+DECLARE_TAG_TYPE(TAG_FRAMEBUFFER_SET_VIRTUAL_WIDTH_HEIGHT_t,
+ struct {
+ uint32_t width;
+ uint32_t height;
+ },
+ struct {
+ uint32_t width;
+ uint32_t height;
+ });
int mbox0_has_data(void);
void mbox0_read_message(uint8_t channel, void *msgbuf, size_t msgbuf_size);
--
2.34.1
- [PULL 31/45] hw/arm/raspi4b: Temporarily disable unimplemented rpi4b devices, (continued)
- [PULL 31/45] hw/arm/raspi4b: Temporarily disable unimplemented rpi4b devices, Peter Maydell, 2024/02/27
- [PULL 29/45] hw/arm: Add GPIO and SD to BCM2838 periph, Peter Maydell, 2024/02/27
- [PULL 36/45] tests/qtest/bcm2828-mailbox: Add mailbox test constants, Peter Maydell, 2024/02/27
- [PULL 34/45] tests/avocado/boot_linux_console.py: Add Rpi4b boot tests, Peter Maydell, 2024/02/27
- [PULL 23/45] hw/arm/raspi: Split out raspi machine common part, Peter Maydell, 2024/02/27
- [PULL 44/45] tests/qtest/bcm2828-mailbox: Append added properties to mailbox test, Peter Maydell, 2024/02/27
- [PULL 40/45] tests/qtest/bcm2828-mailbox: Add mailbox property tests. Part 1, Peter Maydell, 2024/02/27
- [PULL 43/45] hw/misc/bcm2835_property: Add missed BCM2835 properties, Peter Maydell, 2024/02/27
- [PULL 26/45] hw/gpio: Add BCM2838 GPIO stub, Peter Maydell, 2024/02/27
- [PULL 27/45] hw/gpio: Implement BCM2838 GPIO functionality, Peter Maydell, 2024/02/27
- [PULL 37/45] tests/qtest/bcm2828-mailbox: Add mailbox tests tags. Part 1,
Peter Maydell <=
- [PULL 33/45] hw/arm/bcm2838_peripherals: Add clock_isp stub, Peter Maydell, 2024/02/27
- [PULL 38/45] tests/qtest/bcm2828-mailbox: Add mailbox tests tags. Part 2, Peter Maydell, 2024/02/27
- [PULL 32/45] hw/arm: Add memory region for BCM2837 RPiVid ASB, Peter Maydell, 2024/02/27
- [PULL 45/45] docs/system/arm: Add RPi4B to raspi.rst, Peter Maydell, 2024/02/27
- [PULL 41/45] tests/qtest/bcm2828-mailbox: Add mailbox property tests. Part 2, Peter Maydell, 2024/02/27
- [PULL 42/45] tests/qtest/bcm2828-mailbox: Add mailbox property tests. Part 3, Peter Maydell, 2024/02/27