Files
threeeye bc1d038eac REVVL 6 Pro kernel bring-up: full working tree snapshot (2026-09-12)
Squashed backup commit (no shallow-clone history issues) of
xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream
commit 9eece662e) plus all fixes applied to get everpal_defconfig building
clean against a modern (GCC 15.2.0) toolchain -- see the previous commit
message on the lineage-23.2 branch (also in this repo history is not
available here since this is a squashed snapshot; full incremental history
lives in the local DL380 checkout and the upstream GitHub remote).

Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
2026-09-12 13:36:46 +00:00

38 lines
1.1 KiB
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2020 MediaTek Inc.
*/
#ifndef __ADSP_MBOX_H__
#define __ADSP_MBOX_H__
#include <mt-plat/mtk_tinysys_ipi.h>
#include <mt-plat/mtk-mbox.h>
#define ADSP_MBOX_TOTAL (5)
#define ADSP_MBOX0_CH_ID 0
#define ADSP_MBOX1_CH_ID 1
#define ADSP_MBOX2_CH_ID 2
#define ADSP_MBOX3_CH_ID 3
#define ADSP_MBOX4_CH_ID 4
#define ADSP_MBOX_SEND_IDX 0
#define ADSP_MBOX_RECV_IDX 1
#define ADSP_TOTAL_SEND_PIN 2
#define ADSP_TOTAL_RECV_PIN 2
#define ADSP_IPI_CH_CNT (ADSP_TOTAL_SEND_PIN + ADSP_TOTAL_RECV_PIN)
#define ADSP_MBOX_SLOT_COUNT 64
#define ADSP_MBOX_SEND_SLOT_OFFSET 0
#define ADSP_MBOX_RECV_SLOT_OFFSET 0
#define SHARE_BUF_SIZE (ADSP_MBOX_SLOT_COUNT * MBOX_SLOT_SIZE)
int adsp_mbox_send(struct mtk_mbox_pin_send *pin_send, void *msg,
unsigned int wait);
int adsp_mbox_probe(struct platform_device *pdev);
struct mtk_mbox_pin_send *get_adsp_mbox_pin_send(int index);
struct mtk_mbox_pin_recv *get_adsp_mbox_pin_recv(int index);
#endif /* __ADSP_MBOX_H__ */