36 #ifndef __OS_HAL_MBOX_H__
37 #define __OS_HAL_MBOX_H__
39 #include "mhal_mbox.h"
149 #define MBOX_NUM_SW_INT (8)
Invalid channel.
Definition: os_hal_mbox.h:135
int mtk_os_hal_mbox_fifo_write(mbox_channel_t channel, const struct mbox_fifo_item *buf, mbox_tr_type_t type)
This function is used to write data to MBOX channel FIFO.
int mtk_os_hal_mbox_ioctl(mbox_channel_t channel, mbox_ioctl_t ctrl, void *arg)
Control various hardware settings of MBOX.
enum mbox_ioctl_type mbox_ioctl_t
Users should specify the ioctl type when setting/getting information to/from MBOX HW...
The argument of user callback.
Definition: os_hal_mbox.h:162
int mtk_os_hal_mbox_fifo_register_cb(mbox_channel_t channel, mtk_os_hal_mbox_cb cb, struct mbox_fifo_event *mask)
This function is used to register user FIFO interrupt callback.
int mtk_os_hal_mbox_fifo_read(mbox_channel_t channel, struct mbox_fifo_item *buf, mbox_tr_type_t type)
This function is used to read MBOX channel FIFO data.
int mtk_os_hal_mbox_fifo_unregister_cb(mbox_channel_t channel)
This function is used to unregister user FIFO interrupt callback.
enum mbox_transfer_type mbox_tr_type_t
User should specify the transfer type when reading/writing FIFO.
For A7 <-> M4.
Definition: os_hal_mbox.h:131
mbox_channel_t
MBOX channel.
Definition: os_hal_mbox.h:129
void(* mtk_os_hal_mbox_cb)(struct mtk_os_hal_mbox_cb_data *data)
This defines the callback function prototype.
Definition: os_hal_mbox.h:187
Software interrupt information.
Definition: mhal_mbox.h:272
For M4 <-> M4.
Definition: os_hal_mbox.h:133
int mtk_os_hal_mbox_sw_int_unregister_cb(mbox_channel_t channel)
This function is used to unregister user software interrupt callback.
int mtk_os_hal_mbox_sw_int_register_cb(mbox_channel_t channel, mtk_os_hal_mbox_cb cb, u32 irq_status)
This function is used to register user software interrupt callback.
FIFO interrupt status information or enable mask.
Definition: mhal_mbox.h:246
struct mbox_fifo_event event
FIFO interrupt information.
Definition: os_hal_mbox.h:164
The data and cmd written to/read from MBOX FIFO.
Definition: mhal_mbox.h:217
int mtk_os_hal_mbox_close_channel(mbox_channel_t channel)
Close MBOX channel.
struct mbox_swint_info swint
Software interrupt information.
Definition: os_hal_mbox.h:166
int mtk_os_hal_mbox_open_channel(mbox_channel_t channel)
Open MBOX channel.