mirror of
https://github.com/physwizz/a155-U-u1.git
synced 2025-02-15 00:18:03 +00:00
27 lines
829 B
C
27 lines
829 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2020 MediaTek Inc.
|
|
*/
|
|
#ifndef __AUDIO_MBOX_H__
|
|
#define __AUDIO_MBOX_H__
|
|
|
|
#include <linux/soc/mediatek/mtk-mbox.h>
|
|
|
|
#define AUDIO_TOTAL_MBOX 1
|
|
#define AUDIO_MBOX_CH_ID 0
|
|
#define AUDIO_TOTAL_SEND_PIN 1
|
|
#define AUDIO_TOTAL_RECV_PIN 1
|
|
#define AUDIO_MBOX_SEND_SLOT_SIZE 32
|
|
#define AUDIO_MBOX_RECV_SLOT_SIZE 32
|
|
#define AUDIO_MBOX_SEND_SLOT_OFFSET 0
|
|
#define AUDIO_MBOX_RECV_SLOT_OFFSET 32
|
|
#define AUDIO_MBOX_SLOT_COUNT (AUDIO_MBOX_SEND_SLOT_SIZE + AUDIO_MBOX_RECV_SLOT_SIZE)
|
|
|
|
int audio_mbox_send(void *msg, unsigned int wait);
|
|
bool is_audio_mbox_init_done(void);
|
|
|
|
extern struct device_attribute dev_attr_audio_ipi_test;
|
|
extern int audio_mbox_pin_cb(unsigned int id, void *prdata, void *buf, unsigned int len);
|
|
|
|
#endif /* __AUDIO_MBOX_H__ */
|