conn_md_exp.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef __CONN_MD_EXP_H_
  2. #define __CONN_MD_EXP_H_
  3. #include "port_ipc.h" /*data structure is defined here, mediatek/kernel/drivers/eccci */
  4. #include "ccci_ipc_task_ID.h" /*IPC task id is defined here, mediatek/kernel/drivers/eccci */
  5. typedef unsigned int uint32;
  6. typedef unsigned char uint8;
  7. typedef unsigned short uint16;
  8. #ifdef CHAR
  9. #undef CHAR
  10. #endif
  11. typedef enum {
  12. CONN_MD_ERR_NO_ERR = 0,
  13. CONN_MD_ERR_DEF_ERR = -1,
  14. CONN_MD_ERR_INVALID_PARAM = -2,
  15. CONN_MD_ERR_OTHERS = -4,
  16. } CONN_MD_ERR_CODE;
  17. /*For IDC test*/
  18. typedef int (*CONN_MD_MSG_RX_CB) (ipc_ilm_t *ilm);
  19. typedef struct {
  20. CONN_MD_MSG_RX_CB rx_cb;
  21. } CONN_MD_BRIDGE_OPS, *P_CONN_MD_BRIDGE_OPS;
  22. extern int mtk_conn_md_bridge_reg(uint32 u_id, CONN_MD_BRIDGE_OPS *p_ops);
  23. extern int mtk_conn_md_bridge_unreg(uint32 u_id);
  24. extern int mtk_conn_md_bridge_send_msg(ipc_ilm_t *ilm);
  25. #if 0
  26. static int __weak mtk_conn_md_bridge_reg(uint32 u_id, CONN_MD_BRIDGE_OPS *p_ops)
  27. {
  28. pr_err("MTK_CONN Weak FUNCTION~~~\n");
  29. return 0;
  30. }
  31. static int __weak mtk_conn_md_bridge_unreg(uint32 u_id)
  32. {
  33. pr_err("MTK_CONN Weak FUNCTION~~~\n");
  34. return 0;
  35. }
  36. static int __weak mtk_conn_md_bridge_send_msg(ipc_ilm_t *ilm)
  37. {
  38. pr_err("MTK_CONN Weak FUNCTION~~~\n");
  39. return 0;
  40. }
  41. #endif
  42. #endif /*__CONN_MD_EXP_H_*/