hc
2024-08-16 62c46c9150c4afde7e5b25436263fddf79d66f0b
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
/**
 * rwnx_utils.c
 *
 * IPC utility function definitions
 *
 * Copyright (C) RivieraWaves 2012-2019
 */
#include "rwnx_utils.h"
#include "rwnx_defs.h"
#include "rwnx_rx.h"
#include "rwnx_tx.h"
#include "rwnx_msg_rx.h"
#include "rwnx_debugfs.h"
#include "rwnx_prof.h"
#include "ipc_host.h"
 
extern int get_testmode(void);
extern void get_fw_path(char* fw_path);
extern int testmode;
extern char aic_fw_path[200];
 
 
int rwnx_init_aic(struct rwnx_hw *rwnx_hw)
{
   RWNX_DBG(RWNX_FN_ENTRY_STR);
#ifdef AICWF_SDIO_SUPPORT
   aicwf_sdio_host_init(&(rwnx_hw->sdio_env), NULL, NULL, rwnx_hw);
#else
   aicwf_usb_host_init(&(rwnx_hw->usb_env), NULL, NULL, rwnx_hw);
#endif
   rwnx_cmd_mgr_init(rwnx_hw->cmd_mgr);
 
   testmode = get_testmode();
   memset(aic_fw_path, 0, 200);
   get_fw_path(aic_fw_path);
 
   return 0;
}