Skip to content

Commit

Permalink
tests/qtest/bcm2828-mailbox: Add mailbox tests tags. Part 1
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
serg3vik authored and pm215 committed Feb 27, 2024
1 parent 782c530 commit 0db2694
Showing 1 changed file with 177 additions and 0 deletions.
177 changes: 177 additions & 0 deletions tests/qtest/bcm2838-mailbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0db2694

Please sign in to comment.