|
5 | 5 | */ |
6 | 6 |
|
7 | 7 | /** |
8 | | - * @brief Header containing FMAC interface specific declarations for the |
9 | | - * Zephyr OS layer of the Wi-Fi driver. |
| 8 | + * @brief Header containing system mode specific declarations |
10 | 9 | */ |
11 | 10 |
|
12 | | -#ifndef __ZEPHYR_FMAC_MAIN_H__ |
13 | | -#define __ZEPHYR_FMAC_MAIN_H__ |
| 11 | +#ifndef __SYSTEM_MAIN_H__ |
| 12 | +#define __SYSTEM_MAIN_H__ |
14 | 13 |
|
15 | 14 | #include <stdio.h> |
16 | 15 |
|
17 | 16 | #include <version.h> |
18 | 17 |
|
19 | 18 | #include <zephyr/kernel.h> |
20 | 19 | #include <zephyr/net/net_if.h> |
21 | | -#ifdef CONFIG_NRF71_RADIO_TEST |
22 | | -#include <nrf71_radio_test.h> |
23 | | -#else |
24 | 20 | #include <zephyr/net/wifi_mgmt.h> |
25 | 21 | #include <zephyr/net/ethernet.h> |
| 22 | + |
26 | 23 | #ifdef CONFIG_NETWORKING |
27 | | -#include <net_if.h> |
| 24 | +#include <system/net_if.h> |
28 | 25 | #endif /* CONFIG_NETWORKING */ |
| 26 | + |
29 | 27 | #ifdef CONFIG_NRF71_STA_MODE |
30 | 28 | #include <drivers/driver_zephyr.h> |
31 | 29 | #endif /* CONFIG_NRF71_STA_MODE */ |
| 30 | + |
32 | 31 | #include <system/fmac_api.h> |
33 | | -#endif /* CONFIG_NRF71_RADIO_TEST */ |
34 | 32 | #include <nrf71_wifi_ctrl.h> |
| 33 | +#include <common/rf_params.h> |
| 34 | +#include <common/vtf.h> |
35 | 35 |
|
36 | 36 | #define NRF71_DRIVER_VERSION "1."KERNEL_VERSION_STRING |
37 | 37 |
|
38 | | -#define NUM_RF_PARAM_ADDRS 22 |
39 | | - |
40 | 38 | /* Calculate compile-time maximum for vendor stats */ |
41 | 39 | #ifdef CONFIG_NET_STATISTICS_ETHERNET_VENDOR |
42 | 40 | #define MAX_VENDOR_STATS ((sizeof(struct rpu_sys_fw_stats) / sizeof(uint32_t)) + 1) |
43 | 41 | #endif /* CONFIG_NET_STATISTICS_ETHERNET_VENDOR */ |
44 | 42 |
|
45 | | -#ifndef CONFIG_NRF71_OFFLOADED_RAW_TX |
46 | | -#ifndef CONFIG_NRF71_RADIO_TEST |
47 | 43 | struct nrf_wifi_vif_ctx_zep { |
48 | 44 | const struct device *zep_dev_ctx; |
49 | 45 | struct net_if *zep_net_if_ctx; |
@@ -155,40 +151,17 @@ struct nrf_wifi_ctx_zep { |
155 | 151 |
|
156 | 152 | struct nrf_wifi_drv_priv_zep { |
157 | 153 | struct nrf_wifi_fmac_priv *fmac_priv; |
158 | | - /* TODO: Replace with a linked list to handle unlimited RPUs */ |
159 | 154 | struct nrf_wifi_ctx_zep rpu_ctx_zep; |
160 | 155 | }; |
161 | 156 |
|
162 | 157 | extern struct nrf_wifi_drv_priv_zep rpu_drv_priv_zep; |
163 | | -#endif /* !CONFIG_NRF71_RADIO_TEST */ |
164 | | - |
165 | | -void nrf_wifi_scan_timeout_work(struct k_work *work); |
166 | | - |
167 | | -void configure_tx_pwr_settings(struct nrf_wifi_tx_pwr_ctrl_params *tx_pwr_ctrl_params, |
168 | | - struct nrf_wifi_tx_pwr_ceil_params *tx_pwr_ceil_params); |
169 | | -void configure_board_dep_params(struct nrf_wifi_board_params *board_params); |
170 | | -void set_tx_pwr_ceil_default(struct nrf_wifi_tx_pwr_ceil_params *pwr_ceil_params); |
171 | | -const char *nrf_wifi_get_drv_version(void); |
172 | | -char *nrf_wifi_sprint_ll_addr_buf(const uint8_t *ll, uint8_t ll_len, |
173 | | - char *buf, int buflen); |
174 | | -enum nrf_wifi_status nrf_wifi_fmac_dev_add_zep(struct nrf_wifi_drv_priv_zep *drv_priv_zep); |
175 | | -enum nrf_wifi_status nrf_wifi_fmac_dev_rem_zep(struct nrf_wifi_drv_priv_zep *drv_priv_zep); |
176 | | -struct nrf_wifi_vif_ctx_zep *nrf_wifi_get_vif_ctx(struct net_if *iface); |
| 158 | + |
177 | 159 | #ifdef CONFIG_NRF_WIFI_RPU_RECOVERY |
178 | 160 | void nrf_wifi_rpu_recovery_cb(void *vif_ctx, |
179 | 161 | void *event_data, |
180 | 162 | unsigned int event_len); |
181 | 163 | #endif /* CONFIG_NRF_WIFI_RPU_RECOVERY */ |
182 | | -#if defined(CONFIG_NRF71_RAW_DATA_TX) || defined(CONFIG_NRF71_RAW_DATA_RX) |
183 | | -unsigned char get_nrf_wifi_op_band(void); |
184 | | -#endif |
185 | | -#endif /* !CONFIG_NRF71_OFFLOADED_RAW_TX */ |
186 | | -enum nrf_wifi_status nrf_wifi_fmac_config_rf_params(void *dev_ctx, |
187 | | - unsigned int *rf_params_addr); |
188 | | - |
189 | | -enum nrf_wifi_status nrf_wifi_fmac_config_vtf_params(struct nrf_wifi_fmac_dev_ctx *dev_ctx, |
190 | | - unsigned int voltage, |
191 | | - unsigned int temp, |
192 | | - unsigned int x0, |
193 | | - unsigned int *vtf_buffer_start_address); |
194 | | -#endif /* __ZEPHYR_FMAC_MAIN_H__ */ |
| 164 | + |
| 165 | +enum nrf_wifi_status nrf_wifi_sys_fmac_dev_add_zep(struct nrf_wifi_drv_priv_zep *drv_priv_zep); |
| 166 | +enum nrf_wifi_status nrf_wifi_sys_fmac_dev_rem_zep(struct nrf_wifi_drv_priv_zep *drv_priv_zep); |
| 167 | +#endif /* __SYSTEM_MAIN_H__ */ |
0 commit comments