You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
925 B

/*
* Copyright (c) Hisilicon Technologies Co., Ltd. 2019-2019. All rights reserved.
* Description: common interface in mailbox driver
*/
#ifndef _MBX_COMMON_H_
#define _MBX_COMMON_H_
#include "drv_mbx.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
td_s32 mbx_tx(td_u32 handle, const td_u8 *msg, td_u32 msg_len, td_u32 * const tx_len, td_u32 timeout);
td_s32 mbx_rx(td_u32 handle, td_u8 *msg, td_u32 msg_len, td_u32 * const rx_len, td_u32 timeout);
td_s32 mbx_register_irq_callback(td_u32 handle, session_callback func, const td_void * const data);
td_s32 mbx_open(td_u32 session_id, td_u32 rx_buf_size, td_u32 tx_buf_size);
td_s32 mbx_close(td_u32 handle);
td_s32 mbx_rx_msg(const td_void *rx_head_addr);
struct mailbox *get_mailbox_data(td_void);
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
#endif /* _MBX_COMMON_H_ */