VOID mtk_wcn_stp_set_if_tx_type ( ENUM_STP_TX_IF_TYPE stp_if_type ) { g_stp_if_type = stp_if_type; osal_dbg_print("[%s] set STP_IF_TX to %s.\n", __FUNCTION__, (STP_UART_IF_TX == stp_if_type)? "UART" : ((STP_SDIO_IF_TX == stp_if_type) ? "SDIO" : "NULL")); }
INT32 mtk_wcn_stp_register_event_cb(INT32 type, MTK_WCN_STP_EVENT_CB func) { if (type < MTKSTP_MAX_TASK_NUM) { event_callback_tbl[type] = func; /*clear rx queue*/ osal_dbg_print("Flush type = %d Rx Queue\n", type); mtk_wcn_stp_flush_rx_queue(type); } return 0; }
INT32 stp_notify_btm_dump(MTKSTP_BTM_T *stp_btm) { /* pr_warn("%s:enter++\n",__func__); */ if (NULL == stp_btm) { osal_dbg_print("%s: NULL POINTER\n", __func__); return -1; } else { gDumplogflag = 1; osal_trigger_event(&stp_btm->STPd_event); return 0; } }
static INT32 mtk_wcn_sys_event_set(UINT8 function_type) { if((function_type < MTKSTP_MAX_TASK_NUM) && (event_callback_tbl[function_type] != 0x0)) { (*event_callback_tbl[function_type])(); } else { /* FIXME: error handling */ osal_dbg_print("[%s] STP set event fail. It seems the function is not active.\n", __func__); } return 0; }
INT32 mtk_wcn_stp_register_if_tx(ENUM_STP_TX_IF_TYPE stp_if, MTK_WCN_STP_IF_TX func) { if (STP_UART_IF_TX == stp_if) { stp_uart_if_tx = func; } else if (STP_SDIO_IF_TX == stp_if) { stp_sdio_if_tx = func; } else { osal_dbg_print("[%s] STP_IF_TX(%d) out of boundary.\n", __FUNCTION__, stp_if); return -1; } return 0; }