| 1 |
/* SPDX-License-Identifier: BSD-3-Clause-Clear */ |
| 2 |
/* |
| 3 |
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. |
| 4 |
* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. |
| 5 |
*/ |
| 6 |
|
| 7 |
#ifndef ATH11K_HW_H |
| 8 |
#define ATH11K_HW_H |
| 9 |
|
| 10 |
#include "hal.h" |
| 11 |
#include "wmi.h" |
| 12 |
|
| 13 |
/* Target configuration defines */ |
| 14 |
|
| 15 |
/* Num VDEVS per radio */ |
| 16 |
#define TARGET_NUM_VDEVS(ab) (ab->hw_params.num_vdevs) |
| 17 |
|
| 18 |
#define TARGET_NUM_PEERS_PDEV(ab) (ab->hw_params.num_peers + TARGET_NUM_VDEVS(ab)) |
| 19 |
|
| 20 |
/* Num of peers for Single Radio mode */ |
| 21 |
#define TARGET_NUM_PEERS_SINGLE(ab) (TARGET_NUM_PEERS_PDEV(ab)) |
| 22 |
|
| 23 |
/* Num of peers for DBS */ |
| 24 |
#define TARGET_NUM_PEERS_DBS(ab) (2 * TARGET_NUM_PEERS_PDEV(ab)) |
| 25 |
|
| 26 |
/* Num of peers for DBS_SBS */ |
| 27 |
#define TARGET_NUM_PEERS_DBS_SBS(ab) (3 * TARGET_NUM_PEERS_PDEV(ab)) |
| 28 |
|
| 29 |
/* Max num of stations (per radio) */ |
| 30 |
#define TARGET_NUM_STATIONS(ab) (ab->hw_params.num_peers) |
| 31 |
|
| 32 |
#define TARGET_NUM_PEERS(ab, x) TARGET_NUM_PEERS_##x(ab) |
| 33 |
#define TARGET_NUM_PEER_KEYS 2 |
| 34 |
#define TARGET_NUM_TIDS(ab, x) (2 * TARGET_NUM_PEERS(ab, x) + \ |
| 35 |
4 * TARGET_NUM_VDEVS(ab) + 8) |
| 36 |
|
| 37 |
#define TARGET_AST_SKID_LIMIT 16 |
| 38 |
#define TARGET_NUM_OFFLD_PEERS 4 |
| 39 |
#define TARGET_NUM_OFFLD_REORDER_BUFFS 4 |
| 40 |
|
| 41 |
#define TARGET_TX_CHAIN_MASK (BIT(0) | BIT(1) | BIT(2) | BIT(4)) |
| 42 |
#define TARGET_RX_CHAIN_MASK (BIT(0) | BIT(1) | BIT(2) | BIT(4)) |
| 43 |
#define TARGET_RX_TIMEOUT_LO_PRI 100 |
| 44 |
#define TARGET_RX_TIMEOUT_HI_PRI 40 |
| 45 |
|
| 46 |
#define TARGET_DECAP_MODE_RAW 0 |
| 47 |
#define TARGET_DECAP_MODE_NATIVE_WIFI 1 |
| 48 |
#define TARGET_DECAP_MODE_ETH 2 |
| 49 |
|
| 50 |
#define TARGET_SCAN_MAX_PENDING_REQS 4 |
| 51 |
#define TARGET_BMISS_OFFLOAD_MAX_VDEV 3 |
| 52 |
#define TARGET_ROAM_OFFLOAD_MAX_VDEV 3 |
| 53 |
#define TARGET_ROAM_OFFLOAD_MAX_AP_PROFILES 8 |
| 54 |
#define TARGET_GTK_OFFLOAD_MAX_VDEV 3 |
| 55 |
#define TARGET_NUM_MCAST_GROUPS 12 |
| 56 |
#define TARGET_NUM_MCAST_TABLE_ELEMS 64 |
| 57 |
#define TARGET_MCAST2UCAST_MODE 2 |
| 58 |
#define TARGET_TX_DBG_LOG_SIZE 1024 |
| 59 |
#define TARGET_RX_SKIP_DEFRAG_TIMEOUT_DUP_DETECTION_CHECK 1 |
| 60 |
#define TARGET_VOW_CONFIG 0 |
| 61 |
#define TARGET_NUM_MSDU_DESC (2500) |
| 62 |
#define TARGET_MAX_FRAG_ENTRIES 6 |
| 63 |
#define TARGET_MAX_BCN_OFFLD 16 |
| 64 |
#define TARGET_NUM_WDS_ENTRIES 32 |
| 65 |
#define TARGET_DMA_BURST_SIZE 1 |
| 66 |
#define TARGET_RX_BATCHMODE 1 |
| 67 |
#define TARGET_EMA_MAX_PROFILE_PERIOD 8 |
| 68 |
|
| 69 |
#define ATH11K_HW_MAX_QUEUES 4 |
| 70 |
#define ATH11K_QUEUE_LEN 4096 |
| 71 |
|
| 72 |
#define ATH11k_HW_RATECODE_CCK_SHORT_PREAM_MASK 0x4 |
| 73 |
|
| 74 |
#define ATH11K_FW_DIR "ath11k" |
| 75 |
|
| 76 |
#define ATH11K_BOARD_MAGIC "QCA-ATH11K-BOARD" |
| 77 |
#define ATH11K_BOARD_API2_FILE "board-2.bin" |
| 78 |
#define ATH11K_DEFAULT_BOARD_FILE "board.bin" |
| 79 |
#define ATH11K_DEFAULT_CAL_FILE "caldata.bin" |
| 80 |
#define ATH11K_AMSS_FILE "amss.bin" |
| 81 |
#define ATH11K_M3_FILE "m3.bin" |
| 82 |
#define ATH11K_REGDB_FILE_NAME "regdb.bin" |
| 83 |
|
| 84 |
#define ATH11K_CE_OFFSET(ab) (ab->mem_ce - ab->mem) |
| 85 |
|
| 86 |
enum ath11k_hw_rate_cck { |
| 87 |
ATH11K_HW_RATE_CCK_LP_11M = 0, |
| 88 |
ATH11K_HW_RATE_CCK_LP_5_5M, |
| 89 |
ATH11K_HW_RATE_CCK_LP_2M, |
| 90 |
ATH11K_HW_RATE_CCK_LP_1M, |
| 91 |
ATH11K_HW_RATE_CCK_SP_11M, |
| 92 |
ATH11K_HW_RATE_CCK_SP_5_5M, |
| 93 |
ATH11K_HW_RATE_CCK_SP_2M, |
| 94 |
}; |
| 95 |
|
| 96 |
enum ath11k_hw_rate_ofdm { |
| 97 |
ATH11K_HW_RATE_OFDM_48M = 0, |
| 98 |
ATH11K_HW_RATE_OFDM_24M, |
| 99 |
ATH11K_HW_RATE_OFDM_12M, |
| 100 |
ATH11K_HW_RATE_OFDM_6M, |
| 101 |
ATH11K_HW_RATE_OFDM_54M, |
| 102 |
ATH11K_HW_RATE_OFDM_36M, |
| 103 |
ATH11K_HW_RATE_OFDM_18M, |
| 104 |
ATH11K_HW_RATE_OFDM_9M, |
| 105 |
}; |
| 106 |
|
| 107 |
enum ath11k_bus { |
| 108 |
ATH11K_BUS_AHB, |
| 109 |
ATH11K_BUS_PCI, |
| 110 |
}; |
| 111 |
|
| 112 |
#define ATH11K_EXT_IRQ_GRP_NUM_MAX 11 |
| 113 |
|
| 114 |
struct hal_rx_desc; |
| 115 |
struct hal_tcl_data_cmd; |
| 116 |
|
| 117 |
struct ath11k_hw_ring_mask { |
| 118 |
u8 tx[ATH11K_EXT_IRQ_GRP_NUM_MAX]; |
| 119 |
u8 rx_mon_status[ATH11K_EXT_IRQ_GRP_NUM_MAX]; |
| 120 |
u8 rx[ATH11K_EXT_IRQ_GRP_NUM_MAX]; |
| 121 |
u8 rx_err[ATH11K_EXT_IRQ_GRP_NUM_MAX]; |
| 122 |
u8 rx_wbm_rel[ATH11K_EXT_IRQ_GRP_NUM_MAX]; |
| 123 |
u8 reo_status[ATH11K_EXT_IRQ_GRP_NUM_MAX]; |
| 124 |
u8 rxdma2host[ATH11K_EXT_IRQ_GRP_NUM_MAX]; |
| 125 |
u8 host2rxdma[ATH11K_EXT_IRQ_GRP_NUM_MAX]; |
| 126 |
}; |
| 127 |
|
| 128 |
struct ath11k_hw_tcl2wbm_rbm_map { |
| 129 |
u8 tcl_ring_num; |
| 130 |
u8 wbm_ring_num; |
| 131 |
u8 rbm_id; |
| 132 |
}; |
| 133 |
|
| 134 |
struct ath11k_hw_hal_params { |
| 135 |
enum hal_rx_buf_return_buf_manager rx_buf_rbm; |
| 136 |
const struct ath11k_hw_tcl2wbm_rbm_map *tcl2wbm_rbm_map; |
| 137 |
size_t num_tx_rings; |
| 138 |
}; |
| 139 |
|
| 140 |
struct ath11k_hw_params { |
| 141 |
const char *name; |
| 142 |
u16 hw_rev; |
| 143 |
u8 max_radios; |
| 144 |
u32 bdf_addr; |
| 145 |
|
| 146 |
struct { |
| 147 |
const char *dir; |
| 148 |
size_t board_size; |
| 149 |
size_t cal_offset; |
| 150 |
} fw; |
| 151 |
|
| 152 |
const struct ath11k_hw_ops *hw_ops; |
| 153 |
const struct ath11k_hw_ring_mask *ring_mask; |
| 154 |
|
| 155 |
bool internal_sleep_clock; |
| 156 |
|
| 157 |
const struct ath11k_hw_regs *regs; |
| 158 |
u32 qmi_service_ins_id; |
| 159 |
const struct ce_attr *host_ce_config; |
| 160 |
u32 ce_count; |
| 161 |
const struct ce_pipe_config *target_ce_config; |
| 162 |
u32 target_ce_count; |
| 163 |
const struct service_to_pipe *svc_to_ce_map; |
| 164 |
u32 svc_to_ce_map_len; |
| 165 |
const struct ce_ie_addr *ce_ie_addr; |
| 166 |
const struct ce_remap *ce_remap; |
| 167 |
|
| 168 |
bool single_pdev_only; |
| 169 |
|
| 170 |
bool rxdma1_enable; |
| 171 |
int num_rxdma_per_pdev; |
| 172 |
bool rx_mac_buf_ring; |
| 173 |
bool vdev_start_delay; |
| 174 |
bool htt_peer_map_v2; |
| 175 |
|
| 176 |
struct { |
| 177 |
u8 fft_sz; |
| 178 |
u8 fft_pad_sz; |
| 179 |
u8 summary_pad_sz; |
| 180 |
u8 fft_hdr_len; |
| 181 |
u16 max_fft_bins; |
| 182 |
bool fragment_160mhz; |
| 183 |
} spectral; |
| 184 |
|
| 185 |
u16 interface_modes; |
| 186 |
bool supports_monitor; |
| 187 |
bool full_monitor_mode; |
| 188 |
bool supports_shadow_regs; |
| 189 |
bool idle_ps; |
| 190 |
bool supports_sta_ps; |
| 191 |
bool coldboot_cal_mm; |
| 192 |
bool coldboot_cal_ftm; |
| 193 |
bool cbcal_restart_fw; |
| 194 |
int fw_mem_mode; |
| 195 |
u32 num_vdevs; |
| 196 |
u32 num_peers; |
| 197 |
bool supports_suspend; |
| 198 |
u32 hal_desc_sz; |
| 199 |
bool supports_regdb; |
| 200 |
bool fix_l1ss; |
| 201 |
bool credit_flow; |
| 202 |
const struct ath11k_hw_hal_params *hal_params; |
| 203 |
bool supports_dynamic_smps_6ghz; |
| 204 |
bool alloc_cacheable_memory; |
| 205 |
bool supports_rssi_stats; |
| 206 |
bool fw_wmi_diag_event; |
| 207 |
bool current_cc_support; |
| 208 |
bool dbr_debug_support; |
| 209 |
bool global_reset; |
| 210 |
const struct cfg80211_sar_capa *bios_sar_capa; |
| 211 |
bool m3_fw_support; |
| 212 |
bool fixed_bdf_addr; |
| 213 |
bool fixed_mem_region; |
| 214 |
bool static_window_map; |
| 215 |
bool hybrid_bus_type; |
| 216 |
bool fixed_fw_mem; |
| 217 |
bool support_off_channel_tx; |
| 218 |
bool supports_multi_bssid; |
| 219 |
|
| 220 |
struct { |
| 221 |
u32 start; |
| 222 |
u32 end; |
| 223 |
} sram_dump; |
| 224 |
|
| 225 |
bool tcl_ring_retry; |
| 226 |
u32 tx_ring_size; |
| 227 |
bool smp2p_wow_exit; |
| 228 |
bool support_fw_mac_sequence; |
| 229 |
bool support_dual_stations; |
| 230 |
bool pdev_suspend; |
| 231 |
bool cfr_support; |
| 232 |
u32 cfr_num_stream_bufs; |
| 233 |
u32 cfr_stream_buf_size; |
| 234 |
}; |
| 235 |
|
| 236 |
struct ath11k_hw_ops { |
| 237 |
u8 (*get_hw_mac_from_pdev_id)(int pdev_id); |
| 238 |
void (*wmi_init_config)(struct ath11k_base *ab, |
| 239 |
struct target_resource_config *config); |
| 240 |
int (*mac_id_to_pdev_id)(struct ath11k_hw_params *hw, int mac_id); |
| 241 |
int (*mac_id_to_srng_id)(struct ath11k_hw_params *hw, int mac_id); |
| 242 |
void (*tx_mesh_enable)(struct ath11k_base *ab, |
| 243 |
struct hal_tcl_data_cmd *tcl_cmd); |
| 244 |
bool (*rx_desc_get_first_msdu)(struct hal_rx_desc *desc); |
| 245 |
bool (*rx_desc_get_last_msdu)(struct hal_rx_desc *desc); |
| 246 |
u8 (*rx_desc_get_l3_pad_bytes)(struct hal_rx_desc *desc); |
| 247 |
u8 *(*rx_desc_get_hdr_status)(struct hal_rx_desc *desc); |
| 248 |
bool (*rx_desc_encrypt_valid)(struct hal_rx_desc *desc); |
| 249 |
u32 (*rx_desc_get_encrypt_type)(struct hal_rx_desc *desc); |
| 250 |
u8 (*rx_desc_get_decap_type)(struct hal_rx_desc *desc); |
| 251 |
u8 (*rx_desc_get_mesh_ctl)(struct hal_rx_desc *desc); |
| 252 |
bool (*rx_desc_get_ldpc_support)(struct hal_rx_desc *desc); |
| 253 |
bool (*rx_desc_get_mpdu_seq_ctl_vld)(struct hal_rx_desc *desc); |
| 254 |
bool (*rx_desc_get_mpdu_fc_valid)(struct hal_rx_desc *desc); |
| 255 |
u16 (*rx_desc_get_mpdu_start_seq_no)(struct hal_rx_desc *desc); |
| 256 |
u16 (*rx_desc_get_msdu_len)(struct hal_rx_desc *desc); |
| 257 |
u8 (*rx_desc_get_msdu_sgi)(struct hal_rx_desc *desc); |
| 258 |
u8 (*rx_desc_get_msdu_rate_mcs)(struct hal_rx_desc *desc); |
| 259 |
u8 (*rx_desc_get_msdu_rx_bw)(struct hal_rx_desc *desc); |
| 260 |
u32 (*rx_desc_get_msdu_freq)(struct hal_rx_desc *desc); |
| 261 |
u8 (*rx_desc_get_msdu_pkt_type)(struct hal_rx_desc *desc); |
| 262 |
u8 (*rx_desc_get_msdu_nss)(struct hal_rx_desc *desc); |
| 263 |
u8 (*rx_desc_get_mpdu_tid)(struct hal_rx_desc *desc); |
| 264 |
u16 (*rx_desc_get_mpdu_peer_id)(struct hal_rx_desc *desc); |
| 265 |
void (*rx_desc_copy_attn_end_tlv)(struct hal_rx_desc *fdesc, |
| 266 |
struct hal_rx_desc *ldesc); |
| 267 |
u32 (*rx_desc_get_mpdu_start_tag)(struct hal_rx_desc *desc); |
| 268 |
u32 (*rx_desc_get_mpdu_ppdu_id)(struct hal_rx_desc *desc); |
| 269 |
void (*rx_desc_set_msdu_len)(struct hal_rx_desc *desc, u16 len); |
| 270 |
struct rx_attention *(*rx_desc_get_attention)(struct hal_rx_desc *desc); |
| 271 |
u8 *(*rx_desc_get_msdu_payload)(struct hal_rx_desc *desc); |
| 272 |
void (*reo_setup)(struct ath11k_base *ab); |
| 273 |
u16 (*mpdu_info_get_peerid)(struct hal_rx_mpdu_info *mpdu_info); |
| 274 |
bool (*rx_desc_mac_addr2_valid)(struct hal_rx_desc *desc); |
| 275 |
u8* (*rx_desc_mpdu_start_addr2)(struct hal_rx_desc *desc); |
| 276 |
u32 (*get_ring_selector)(struct sk_buff *skb); |
| 277 |
}; |
| 278 |
|
| 279 |
extern const struct ath11k_hw_ops ipq8074_ops; |
| 280 |
extern const struct ath11k_hw_ops ipq6018_ops; |
| 281 |
extern const struct ath11k_hw_ops qca6390_ops; |
| 282 |
extern const struct ath11k_hw_ops qcn9074_ops; |
| 283 |
extern const struct ath11k_hw_ops wcn6855_ops; |
| 284 |
extern const struct ath11k_hw_ops wcn6750_ops; |
| 285 |
extern const struct ath11k_hw_ops ipq5018_ops; |
| 286 |
|
| 287 |
extern const struct ath11k_hw_ring_mask ath11k_hw_ring_mask_ipq8074; |
| 288 |
extern const struct ath11k_hw_ring_mask ath11k_hw_ring_mask_qca6390; |
| 289 |
extern const struct ath11k_hw_ring_mask ath11k_hw_ring_mask_qcn9074; |
| 290 |
extern const struct ath11k_hw_ring_mask ath11k_hw_ring_mask_wcn6750; |
| 291 |
|
| 292 |
extern const struct ce_ie_addr ath11k_ce_ie_addr_ipq8074; |
| 293 |
extern const struct ce_ie_addr ath11k_ce_ie_addr_ipq5018; |
| 294 |
|
| 295 |
extern const struct ce_remap ath11k_ce_remap_ipq5018; |
| 296 |
|
| 297 |
extern const struct ath11k_hw_hal_params ath11k_hw_hal_params_ipq5018; |
| 298 |
extern const struct ath11k_hw_hal_params ath11k_hw_hal_params_ipq8074; |
| 299 |
extern const struct ath11k_hw_hal_params ath11k_hw_hal_params_qca6390; |
| 300 |
extern const struct ath11k_hw_hal_params ath11k_hw_hal_params_wcn6750; |
| 301 |
|
| 302 |
static inline |
| 303 |
int ath11k_hw_get_mac_from_pdev_id(struct ath11k_hw_params *hw, |
| 304 |
int pdev_idx) |
| 305 |
{ |
| 306 |
if (hw->hw_ops->get_hw_mac_from_pdev_id) |
| 307 |
return hw->hw_ops->get_hw_mac_from_pdev_id(pdev_idx); |
| 308 |
|
| 309 |
return 0; |
| 310 |
} |
| 311 |
|
| 312 |
static inline int ath11k_hw_mac_id_to_pdev_id(struct ath11k_hw_params *hw, |
| 313 |
int mac_id) |
| 314 |
{ |
| 315 |
if (hw->hw_ops->mac_id_to_pdev_id) |
| 316 |
return hw->hw_ops->mac_id_to_pdev_id(hw, mac_id); |
| 317 |
|
| 318 |
return 0; |
| 319 |
} |
| 320 |
|
| 321 |
static inline int ath11k_hw_mac_id_to_srng_id(struct ath11k_hw_params *hw, |
| 322 |
int mac_id) |
| 323 |
{ |
| 324 |
if (hw->hw_ops->mac_id_to_srng_id) |
| 325 |
return hw->hw_ops->mac_id_to_srng_id(hw, mac_id); |
| 326 |
|
| 327 |
return 0; |
| 328 |
} |
| 329 |
|
| 330 |
struct ath11k_fw_ie { |
| 331 |
__le32 id; |
| 332 |
__le32 len; |
| 333 |
u8 data[]; |
| 334 |
}; |
| 335 |
|
| 336 |
enum ath11k_bd_ie_board_type { |
| 337 |
ATH11K_BD_IE_BOARD_NAME = 0, |
| 338 |
ATH11K_BD_IE_BOARD_DATA = 1, |
| 339 |
}; |
| 340 |
|
| 341 |
enum ath11k_bd_ie_regdb_type { |
| 342 |
ATH11K_BD_IE_REGDB_NAME = 0, |
| 343 |
ATH11K_BD_IE_REGDB_DATA = 1, |
| 344 |
}; |
| 345 |
|
| 346 |
enum ath11k_bd_ie_type { |
| 347 |
/* contains sub IEs of enum ath11k_bd_ie_board_type */ |
| 348 |
ATH11K_BD_IE_BOARD = 0, |
| 349 |
/* contains sub IEs of enum ath11k_bd_ie_regdb_type */ |
| 350 |
ATH11K_BD_IE_REGDB = 1, |
| 351 |
}; |
| 352 |
|
| 353 |
struct ath11k_hw_regs { |
| 354 |
u32 hal_tcl1_ring_base_lsb; |
| 355 |
u32 hal_tcl1_ring_base_msb; |
| 356 |
u32 hal_tcl1_ring_id; |
| 357 |
u32 hal_tcl1_ring_misc; |
| 358 |
u32 hal_tcl1_ring_tp_addr_lsb; |
| 359 |
u32 hal_tcl1_ring_tp_addr_msb; |
| 360 |
u32 hal_tcl1_ring_consumer_int_setup_ix0; |
| 361 |
u32 hal_tcl1_ring_consumer_int_setup_ix1; |
| 362 |
u32 hal_tcl1_ring_msi1_base_lsb; |
| 363 |
u32 hal_tcl1_ring_msi1_base_msb; |
| 364 |
u32 hal_tcl1_ring_msi1_data; |
| 365 |
u32 hal_tcl2_ring_base_lsb; |
| 366 |
u32 hal_tcl_ring_base_lsb; |
| 367 |
|
| 368 |
u32 hal_tcl_status_ring_base_lsb; |
| 369 |
|
| 370 |
u32 hal_reo1_ring_base_lsb; |
| 371 |
u32 hal_reo1_ring_base_msb; |
| 372 |
u32 hal_reo1_ring_id; |
| 373 |
u32 hal_reo1_ring_misc; |
| 374 |
u32 hal_reo1_ring_hp_addr_lsb; |
| 375 |
u32 hal_reo1_ring_hp_addr_msb; |
| 376 |
u32 hal_reo1_ring_producer_int_setup; |
| 377 |
u32 hal_reo1_ring_msi1_base_lsb; |
| 378 |
u32 hal_reo1_ring_msi1_base_msb; |
| 379 |
u32 hal_reo1_ring_msi1_data; |
| 380 |
u32 hal_reo2_ring_base_lsb; |
| 381 |
u32 hal_reo1_aging_thresh_ix_0; |
| 382 |
u32 hal_reo1_aging_thresh_ix_1; |
| 383 |
u32 hal_reo1_aging_thresh_ix_2; |
| 384 |
u32 hal_reo1_aging_thresh_ix_3; |
| 385 |
|
| 386 |
u32 hal_reo1_ring_hp; |
| 387 |
u32 hal_reo1_ring_tp; |
| 388 |
u32 hal_reo2_ring_hp; |
| 389 |
|
| 390 |
u32 hal_reo_tcl_ring_base_lsb; |
| 391 |
u32 hal_reo_tcl_ring_hp; |
| 392 |
|
| 393 |
u32 hal_reo_status_ring_base_lsb; |
| 394 |
u32 hal_reo_status_hp; |
| 395 |
|
| 396 |
u32 hal_reo_cmd_ring_base_lsb; |
| 397 |
u32 hal_reo_cmd_ring_hp; |
| 398 |
|
| 399 |
u32 hal_sw2reo_ring_base_lsb; |
| 400 |
u32 hal_sw2reo_ring_hp; |
| 401 |
|
| 402 |
u32 hal_seq_wcss_umac_ce0_src_reg; |
| 403 |
u32 hal_seq_wcss_umac_ce0_dst_reg; |
| 404 |
u32 hal_seq_wcss_umac_ce1_src_reg; |
| 405 |
u32 hal_seq_wcss_umac_ce1_dst_reg; |
| 406 |
|
| 407 |
u32 hal_wbm_idle_link_ring_base_lsb; |
| 408 |
u32 hal_wbm_idle_link_ring_misc; |
| 409 |
|
| 410 |
u32 hal_wbm_release_ring_base_lsb; |
| 411 |
|
| 412 |
u32 hal_wbm0_release_ring_base_lsb; |
| 413 |
u32 hal_wbm1_release_ring_base_lsb; |
| 414 |
|
| 415 |
u32 pcie_qserdes_sysclk_en_sel; |
| 416 |
u32 pcie_pcs_osc_dtct_config_base; |
| 417 |
|
| 418 |
u32 hal_shadow_base_addr; |
| 419 |
u32 hal_reo1_misc_ctl; |
| 420 |
}; |
| 421 |
|
| 422 |
extern const struct ath11k_hw_regs ipq8074_regs; |
| 423 |
extern const struct ath11k_hw_regs qca6390_regs; |
| 424 |
extern const struct ath11k_hw_regs qcn9074_regs; |
| 425 |
extern const struct ath11k_hw_regs wcn6855_regs; |
| 426 |
extern const struct ath11k_hw_regs wcn6750_regs; |
| 427 |
extern const struct ath11k_hw_regs ipq5018_regs; |
| 428 |
|
| 429 |
static inline const char *ath11k_bd_ie_type_str(enum ath11k_bd_ie_type type) |
| 430 |
{ |
| 431 |
switch (type) { |
| 432 |
case ATH11K_BD_IE_BOARD: |
| 433 |
return "board data"; |
| 434 |
case ATH11K_BD_IE_REGDB: |
| 435 |
return "regdb data"; |
| 436 |
} |
| 437 |
|
| 438 |
return "unknown"; |
| 439 |
} |
| 440 |
|
| 441 |
extern const struct cfg80211_sar_capa ath11k_hw_sar_capa_wcn6855; |
| 442 |
|
| 443 |
#endif |