Files
linux-cryptodev-2.6/include/linux/mailbox/mtk-vcp-mailbox.h
Jjian Zhou b562abd956 mailbox: mediatek: Add mtk-vcp-mailbox driver
Add mtk-vcp-mailbox driver to support the communication with
VCP remote microprocessor.

Signed-off-by: Jjian Zhou <jjian.zhou@mediatek.com>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
2026-01-18 12:50:45 -06:00

33 lines
771 B
C

/* 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