blob: b669172e777b02080eae8d5d4331ab9568588ff3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
#ifndef __CONN_MD_EXP_H_
#define __CONN_MD_EXP_H_
#if defined(CONFIG_MTK_ECCCI_DRIVER) || defined(CONFIG_MTK_ECCCI_DRIVER_MODULE)
#include "port_ipc.h" /*data structure is defined here, mediatek/kernel/drivers/eccci */
#include "ccci_ipc_task_ID.h" /*IPC task id is defined here, mediatek/kernel/drivers/eccci */
typedef unsigned int uint32;
typedef unsigned char uint8;
typedef unsigned short uint16;
#ifdef CHAR
#undef CHAR
#endif
#define IPC_HEADER_FILE_INCLUDED 1
#endif
#ifndef IPC_HEADER_FILE_INCLUDED
/* #if defined(CONFIG_MTK_EEMCS_DEVICES) || defined(CONFIG_MTK_EEMCS_DEVICES_MODULE) */
#include "eemcs_ipc.h" /*data structure is defined here, mediatek/kernel/drivers/eemcs */
#include "eemcs_ipc_task_ID.h" /*IPC task id is defined here, mediatek/kernel/drivers/eemcs */
/* #endif */
#endif
typedef enum {
CONN_MD_ERR_NO_ERR = 0,
CONN_MD_ERR_DEF_ERR = -1,
CONN_MD_ERR_INVALID_PARAM = -2,
CONN_MD_ERR_OTHERS = -4,
} CONN_MD_ERR_CODE;
/*For IDC test*/
typedef int (*CONN_MD_MSG_RX_CB) (ipc_ilm_t *ilm);
typedef struct {
CONN_MD_MSG_RX_CB rx_cb;
} CONN_MD_BRIDGE_OPS, *P_CONN_MD_BRIDGE_OPS;
extern int mtk_conn_md_bridge_reg(uint32 u_id, CONN_MD_BRIDGE_OPS *p_ops);
extern int mtk_conn_md_bridge_unreg(uint32 u_id);
extern int mtk_conn_md_bridge_send_msg(ipc_ilm_t *ilm);
#if 0
static int __weak mtk_conn_md_bridge_reg(uint32 u_id, CONN_MD_BRIDGE_OPS *p_ops)
{
pr_err("MTK_CONN Weak FUNCTION~~~\n");
return 0;
}
static int __weak mtk_conn_md_bridge_unreg(uint32 u_id)
{
pr_err("MTK_CONN Weak FUNCTION~~~\n");
return 0;
}
static int __weak mtk_conn_md_bridge_send_msg(ipc_ilm_t *ilm)
{
pr_err("MTK_CONN Weak FUNCTION~~~\n");
return 0;
}
#endif
#endif /*__CONN_MD_EXP_H_*/
|