summaryrefslogtreecommitdiff
path: root/include/linux/mailbox/mtk-vcp-mailbox.h
blob: 16e59d6780a715fc4f9daf55b5cadd506f538595 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
/*
 * Copyright (c) 2025 MediaTek Inc.
 */

#ifndef __MTK_VCP_MAILBOX_H__
#define __MTK_VCP_MAILBOX_H__

#define MTK_VCP_MBOX_SLOT_MAX_SIZE	0x100 /* mbox max slot size */

/**
 * struct mtk_ipi_info - mailbox message info for mtk-vcp-mailbox
 * @msg: The share buffer between IPC and mailbox driver
 * @len: Message length
 * @id: This is for identification purposes and not actually used
 *	by the mailbox hardware.
 * @index: The signal number of the mailbox message.
 * @slot_ofs: Data slot offset.
 * @irq_status: Captures incoming signals for the RX path.
 *
 * It is used between IPC with mailbox driver.
 */
struct mtk_ipi_info {
	void *msg;
	u32 len;
	u32 id;
	u32 index;
	u32 slot_ofs;
	u32 irq_status;
};

#endif