blob: 526cffb625a9767f297d407b20349c60edded7f0 [file] [log] [blame]
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
#define CONTROLLER_NAME "mhu_ctlr"
#define CHANNEL_MAX 2
#define CHANNEL_LOW_PRIORITY "cpu_to_scp_low"
#define CHANNEL_HIGH_PRIORITY "cpu_to_scp_high"
struct mhu_data_buf {
u32 cmd;
int tx_size;
void *tx_buf;
int rx_size;
void *rx_buf;
void *cl_data;
};
extern struct device *the_scpi_device;
extern bool m4_chan_spt;
extern struct device *dsp_scpi_device;
extern int mbox_message_drop_wait(void);