2 ****************************************************************************************
6 * @brief ecrnx driver debug functions;
8 * Copyright (C) ESWIN 2015-2020
10 ****************************************************************************************
13 #include <linux/init.h>
14 #include "ecrnx_defs.h"
15 #include "eswin_utils.h"
17 #ifdef CONFIG_ECRNX_DBG_LEVEL
18 int ecrnx_dbg_level = CONFIG_ECRNX_DBG_LEVEL; //defined in the 6600u_feature file
20 int ecrnx_dbg_level = DRV_DBG_TYPE_NONE;
28 #ifndef CONFIG_ECRNX_DEBUGFS_CUSTOM
29 int ecrnx_fw_log_level_set(u32 level, u32 dir)
31 uint32_t dbg_info[3] = {0};
33 dbg_info[0] = 0x01; //SLAVE_LOG_LEVEL
37 ECRNX_PRINT("%s: fstype:%d, level:%d, dir:%d \n", __func__, dbg_info[0], dbg_info[1], dbg_info[2]);
38 ECRNX_PRINT("info_len:%d \n", sizeof(dbg_info));
39 return host_send(dbg_info, sizeof(dbg_info), TX_FLAG_MSG_DEBUGFS_IE);