[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 36/45] Add mailbox test constants
From: |
Peter Maydell |
Subject: |
Re: [PATCH v4 36/45] Add mailbox test constants |
Date: |
Mon, 15 Jan 2024 14:55:04 +0000 |
On Fri, 8 Dec 2023 at 02:36, Sergey Kambalin <serg.oker@gmail.com> wrote:
>
> Signed-off-by: Sergey Kambalin <sergey.kambalin@auriga.com>
> ---
> tests/qtest/bcm2838-mailbox.h | 139 ++++++++++++++++++++++++++++++++++
> 1 file changed, 139 insertions(+)
>
> diff --git a/tests/qtest/bcm2838-mailbox.h b/tests/qtest/bcm2838-mailbox.h
> index 1d02ca9c2c..8acc4bd2ff 100644
> --- a/tests/qtest/bcm2838-mailbox.h
> +++ b/tests/qtest/bcm2838-mailbox.h
> @@ -7,6 +7,145 @@
> * See the COPYING file in the top-level directory.
> */
>
> +#define MBOX0_BASE 0xFE00B880
> +#define MBOX1_BASE 0xFE00B8A0
> +
> +#define MBOX_REG_READ 0x00
> +#define MBOX_REG_WRITE 0x00
> +#define MBOX_REG_PEEK 0x10
> +#define MBOX_REG_SENDER 0x14
> +#define MBOX_REG_STATUS 0x18
> +#define MBOX_REG_CONFIG 0x1C
> +
> +#define MBOX_READ_EMPTY 0x40000000
> +
> +#define MBOX_CHANNEL_ID_PROPERTY 8
> +
> +#define MBOX_PROCESS_REQUEST 0x00000000
> +#define MBOX_SUCCESS 0x80000000
> +#define MBOX_ERROR_PARSING_BUFFER 0x80000001
> +
> +#define TAG_END 0x00000000
> +#define TAG_GET_FIRMWARE_REVISION 0x00000001
> +#define TAG_GET_FIRMWARE_VARIANT 0x00000002
> +#define TAG_GET_BOARD_REVISION 0x00010002
> +#define TAG_GET_ARM_MEMORY 0x00010005
> +#define TAG_GET_VC_MEMORY 0x00010006
> +#define TAG_SET_DEVICE_POWER_STATE 0x00028001
> +#define TAG_GET_CLOCK_STATE 0x00030001
> +#define TAG_GET_CLOCK_RATE 0x00030002
> +#define TAG_GET_MAX_CLOCK_RATE 0x00030004
> +#define TAG_GET_MIN_CLOCK_RATE 0x00030007
> +#define TAG_GET_CLOCKS 0x00010007
> +#define TAG_GET_TEMPERATURE 0x00030006
> +#define TAG_GET_MAX_TEMPERATURE 0x0003000a
> +#define TAG_ALLOCATE_BUFFER 0x00040001
> +#define TAG_RELEASE_FRAMEBUFFER 0x00048001
> +#define TAG_BLANK_FRAMEBUFFER 0x00040002
> +#define TAG_GET_FB_PHYS_WIDTH 0x00040003
> +#define TAG_TEST_FB_PHYS_WIDTH 0x00044003
> +#define TAG_SET_FB_PHYS_WIDTH 0x00048003
> +#define TAG_GET_FB_VIRT_WIDTH 0x00040004
> +#define TAG_TEST_FB_VIRT_WIDTH 0x00044004
> +#define TAG_SET_FB_VIRT_WIDTH 0x00048004
> +#define TAG_GET_FB_DEPTH 0x00040005
> +#define TAG_TEST_FB_DEPTH 0x00044005
> +#define TAG_SET_FB_DEPTH 0x00048005
> +#define TAG_GET_PIXEL_ORDER 0x00040006
> +#define TAG_TEST_PIXEL_ORDER 0x00044006
> +#define TAG_SET_PIXEL_ORDER 0x00048006
> +#define TAG_GET_FB_ALPHA_MODE 0x00040007
> +#define TAG_TEST_FB_ALPHA_MODE 0x00044007
> +#define TAG_SET_FB_ALPHA_MODE 0x00048007
> +#define TAG_GET_PITCH 0x00040008
> +#define TAG_SET_PITCH 0x00048008
> +#define TAG_GET_VIRTUAL_OFFSET 0x00040009
> +#define TAG_TEST_VIRTUAL_OFFSET 0x00044009
> +#define TAG_SET_VIRTUAL_OFFSET 0x00048009
> +#define TAG_GET_OVERSCAN 0x0004000a
> +#define TAG_TEST_OVERSCAN 0x0004400a
> +#define TAG_SET_OVERSCAN 0x0004800a
> +#define TAG_SET_PALETTE 0x0004800b
> +#define TAG_GET_COMMANDLINE 0x00050001
> +#define TAG_GET_DMA_CHANNELS 0x00060001
> +#define TAG_GET_THROTTLED 0x00030046
> +#define TAG_GET_NUM_DISPLAYS 0x00040013
> +#define TAG_GET_DISPLAY_SETTINGS 0x00040014
> +#define TAG_GET_GPIO_CONFIG 0x00030043
> +#define TAG_SET_GPIO_CONFIG 0x00038043
> +#define TAG_GET_GPIO_STATE 0x00030041
> +#define TAG_SET_GPIO_STATE 0x00038041
> +#define TAG_INITIALIZE_VCHIQ 0x00048010
We already have definitions for the tags in
include/hw/arm/raspberrypi-fw-defs.h so we can
use those instead of defining them over again.
thanks
-- PMM
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH v4 36/45] Add mailbox test constants,
Peter Maydell <=