19#ifdef CONFIG_HCC_SUPPORT_IPC
21#define IPC_MEM_MSG_MAX 4
22#define HCC_PREMEM_LEN 4
23#define HCC_LOSS_MEM_MAX 8
24#define IPC_MAX_XFER_LEN 2048
26#define IPC_CHAN_DATA 0
29#define IPC_MEM_PRIV_MSG_FLAG 0x5A
30#define IPC_MEM_PRIV_MSG_FLAG_OFFSET 8
31#define IPC_MEM_PRIV_MSG (IPC_MEM_PRIV_MSG_FLAG << IPC_MEM_PRIV_MSG_FLAG_OFFSET)
34 HCC_IPC_MEM_REQUEST = 1,
36 HCC_IPC_MEM_TX_COMPLETE,
38 HCC_IPC_MEM_RX_COMPLETE,
39 HCC_IPC_MEM_PRIV_MSG = IPC_MEM_PRIV_MSG,
40 HCC_IPC_MEM_CLEAR_PREMEM,
43typedef struct hcc_ipc_mem_request {
48 td_u16 data_len[IPC_MEM_MSG_MAX];
49} hcc_ipc_mem_request_t;
51typedef struct hcc_ipc_mem_reply {
56 td_u16 data_len[IPC_MEM_MSG_MAX];
57 td_u8 *addr[IPC_MEM_MSG_MAX];
60typedef struct hcc_ipc_mem_complete {
65 td_u8 *addr[IPC_MEM_MSG_MAX];
66} hcc_ipc_mem_complete_t;
68typedef struct hcc_ipc_cfg {
79td_s32 hcc_adapt_ipc_cfg(hcc_ipc_cfg_t *cfg);
@ HCC_IPC_TRANS_PREMEM
Definition hcc_cfg_comm.h:34
td_void hcc_ipc_complement_mem(td_void)
td_void hcc_ipc_clear_premem(td_void)
struct osal_list_head * hcc_ipc_get_pre_mem_list(td_u8 queue_id)
enum _hcc_queue_dir_ hcc_queue_dir
osal_u8 type
Definition oal_net.h:0
osal_u8 rsv[3]
Definition oal_net.h:2
Definition hcc_bus_types.h:58
Definition hcc_bus_types.h:91
Definition hcc_queue.h:41
Definition osal_list.h:39
#define TD_CONST
Definition td_base.h:18
unsigned short td_u16
Definition td_type.h:37
unsigned char td_u8
Definition td_type.h:36
td_u8 td_bool
Definition td_type.h:50
void td_void
Definition td_type.h:49
int td_s32
Definition td_type.h:44