18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * This file is part of wl18xx 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 2011 Texas Instruments. All rights reserved. 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef __WL18XX_ACX_H__ 98c2ecf20Sopenharmony_ci#define __WL18XX_ACX_H__ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#include "../wlcore/wlcore.h" 128c2ecf20Sopenharmony_ci#include "../wlcore/acx.h" 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_cienum { 158c2ecf20Sopenharmony_ci ACX_NS_IPV6_FILTER = 0x0050, 168c2ecf20Sopenharmony_ci ACX_PEER_HT_OPERATION_MODE_CFG = 0x0051, 178c2ecf20Sopenharmony_ci ACX_CSUM_CONFIG = 0x0052, 188c2ecf20Sopenharmony_ci ACX_SIM_CONFIG = 0x0053, 198c2ecf20Sopenharmony_ci ACX_CLEAR_STATISTICS = 0x0054, 208c2ecf20Sopenharmony_ci ACX_AUTO_RX_STREAMING = 0x0055, 218c2ecf20Sopenharmony_ci ACX_PEER_CAP = 0x0056, 228c2ecf20Sopenharmony_ci ACX_INTERRUPT_NOTIFY = 0x0057, 238c2ecf20Sopenharmony_ci ACX_RX_BA_FILTER = 0x0058, 248c2ecf20Sopenharmony_ci ACX_AP_SLEEP_CFG = 0x0059, 258c2ecf20Sopenharmony_ci ACX_DYNAMIC_TRACES_CFG = 0x005A, 268c2ecf20Sopenharmony_ci ACX_TIME_SYNC_CFG = 0x005B, 278c2ecf20Sopenharmony_ci}; 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci/* numbers of bits the length field takes (add 1 for the actual number) */ 308c2ecf20Sopenharmony_ci#define WL18XX_HOST_IF_LEN_SIZE_FIELD 15 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci#define WL18XX_ACX_EVENTS_VECTOR (WL1271_ACX_INTR_WATCHDOG | \ 338c2ecf20Sopenharmony_ci WL1271_ACX_INTR_INIT_COMPLETE | \ 348c2ecf20Sopenharmony_ci WL1271_ACX_INTR_EVENT_A | \ 358c2ecf20Sopenharmony_ci WL1271_ACX_INTR_EVENT_B | \ 368c2ecf20Sopenharmony_ci WL1271_ACX_INTR_CMD_COMPLETE | \ 378c2ecf20Sopenharmony_ci WL1271_ACX_INTR_HW_AVAILABLE | \ 388c2ecf20Sopenharmony_ci WL1271_ACX_INTR_DATA | \ 398c2ecf20Sopenharmony_ci WL1271_ACX_SW_INTR_WATCHDOG) 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ci#define WL18XX_INTR_MASK (WL1271_ACX_INTR_WATCHDOG | \ 428c2ecf20Sopenharmony_ci WL1271_ACX_INTR_EVENT_A | \ 438c2ecf20Sopenharmony_ci WL1271_ACX_INTR_EVENT_B | \ 448c2ecf20Sopenharmony_ci WL1271_ACX_INTR_HW_AVAILABLE | \ 458c2ecf20Sopenharmony_ci WL1271_ACX_INTR_DATA | \ 468c2ecf20Sopenharmony_ci WL1271_ACX_SW_INTR_WATCHDOG) 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_cistruct wl18xx_acx_host_config_bitmap { 498c2ecf20Sopenharmony_ci struct acx_header header; 508c2ecf20Sopenharmony_ci 518c2ecf20Sopenharmony_ci __le32 host_cfg_bitmap; 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ci __le32 host_sdio_block_size; 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ci /* extra mem blocks per frame in TX. */ 568c2ecf20Sopenharmony_ci __le32 extra_mem_blocks; 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_ci /* 598c2ecf20Sopenharmony_ci * number of bits of the length field in the first TX word 608c2ecf20Sopenharmony_ci * (up to 15 - for using the entire 16 bits). 618c2ecf20Sopenharmony_ci */ 628c2ecf20Sopenharmony_ci __le32 length_field_size; 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ci} __packed; 658c2ecf20Sopenharmony_ci 668c2ecf20Sopenharmony_cienum { 678c2ecf20Sopenharmony_ci CHECKSUM_OFFLOAD_DISABLED = 0, 688c2ecf20Sopenharmony_ci CHECKSUM_OFFLOAD_ENABLED = 1, 698c2ecf20Sopenharmony_ci CHECKSUM_OFFLOAD_FAKE_RX = 2, 708c2ecf20Sopenharmony_ci CHECKSUM_OFFLOAD_INVALID = 0xFF 718c2ecf20Sopenharmony_ci}; 728c2ecf20Sopenharmony_ci 738c2ecf20Sopenharmony_cistruct wl18xx_acx_checksum_state { 748c2ecf20Sopenharmony_ci struct acx_header header; 758c2ecf20Sopenharmony_ci 768c2ecf20Sopenharmony_ci /* enum acx_checksum_state */ 778c2ecf20Sopenharmony_ci u8 checksum_state; 788c2ecf20Sopenharmony_ci u8 pad[3]; 798c2ecf20Sopenharmony_ci} __packed; 808c2ecf20Sopenharmony_ci 818c2ecf20Sopenharmony_ci 828c2ecf20Sopenharmony_cistruct wl18xx_acx_error_stats { 838c2ecf20Sopenharmony_ci u32 error_frame_non_ctrl; 848c2ecf20Sopenharmony_ci u32 error_frame_ctrl; 858c2ecf20Sopenharmony_ci u32 error_frame_during_protection; 868c2ecf20Sopenharmony_ci u32 null_frame_tx_start; 878c2ecf20Sopenharmony_ci u32 null_frame_cts_start; 888c2ecf20Sopenharmony_ci u32 bar_retry; 898c2ecf20Sopenharmony_ci u32 num_frame_cts_nul_flid; 908c2ecf20Sopenharmony_ci u32 tx_abort_failure; 918c2ecf20Sopenharmony_ci u32 tx_resume_failure; 928c2ecf20Sopenharmony_ci u32 rx_cmplt_db_overflow_cnt; 938c2ecf20Sopenharmony_ci u32 elp_while_rx_exch; 948c2ecf20Sopenharmony_ci u32 elp_while_tx_exch; 958c2ecf20Sopenharmony_ci u32 elp_while_tx; 968c2ecf20Sopenharmony_ci u32 elp_while_nvic_pending; 978c2ecf20Sopenharmony_ci u32 rx_excessive_frame_len; 988c2ecf20Sopenharmony_ci u32 burst_mismatch; 998c2ecf20Sopenharmony_ci u32 tbc_exch_mismatch; 1008c2ecf20Sopenharmony_ci} __packed; 1018c2ecf20Sopenharmony_ci 1028c2ecf20Sopenharmony_ci#define NUM_OF_RATES_INDEXES 30 1038c2ecf20Sopenharmony_cistruct wl18xx_acx_tx_stats { 1048c2ecf20Sopenharmony_ci u32 tx_prepared_descs; 1058c2ecf20Sopenharmony_ci u32 tx_cmplt; 1068c2ecf20Sopenharmony_ci u32 tx_template_prepared; 1078c2ecf20Sopenharmony_ci u32 tx_data_prepared; 1088c2ecf20Sopenharmony_ci u32 tx_template_programmed; 1098c2ecf20Sopenharmony_ci u32 tx_data_programmed; 1108c2ecf20Sopenharmony_ci u32 tx_burst_programmed; 1118c2ecf20Sopenharmony_ci u32 tx_starts; 1128c2ecf20Sopenharmony_ci u32 tx_stop; 1138c2ecf20Sopenharmony_ci u32 tx_start_templates; 1148c2ecf20Sopenharmony_ci u32 tx_start_int_templates; 1158c2ecf20Sopenharmony_ci u32 tx_start_fw_gen; 1168c2ecf20Sopenharmony_ci u32 tx_start_data; 1178c2ecf20Sopenharmony_ci u32 tx_start_null_frame; 1188c2ecf20Sopenharmony_ci u32 tx_exch; 1198c2ecf20Sopenharmony_ci u32 tx_retry_template; 1208c2ecf20Sopenharmony_ci u32 tx_retry_data; 1218c2ecf20Sopenharmony_ci u32 tx_retry_per_rate[NUM_OF_RATES_INDEXES]; 1228c2ecf20Sopenharmony_ci u32 tx_exch_pending; 1238c2ecf20Sopenharmony_ci u32 tx_exch_expiry; 1248c2ecf20Sopenharmony_ci u32 tx_done_template; 1258c2ecf20Sopenharmony_ci u32 tx_done_data; 1268c2ecf20Sopenharmony_ci u32 tx_done_int_template; 1278c2ecf20Sopenharmony_ci u32 tx_cfe1; 1288c2ecf20Sopenharmony_ci u32 tx_cfe2; 1298c2ecf20Sopenharmony_ci u32 frag_called; 1308c2ecf20Sopenharmony_ci u32 frag_mpdu_alloc_failed; 1318c2ecf20Sopenharmony_ci u32 frag_init_called; 1328c2ecf20Sopenharmony_ci u32 frag_in_process_called; 1338c2ecf20Sopenharmony_ci u32 frag_tkip_called; 1348c2ecf20Sopenharmony_ci u32 frag_key_not_found; 1358c2ecf20Sopenharmony_ci u32 frag_need_fragmentation; 1368c2ecf20Sopenharmony_ci u32 frag_bad_mblk_num; 1378c2ecf20Sopenharmony_ci u32 frag_failed; 1388c2ecf20Sopenharmony_ci u32 frag_cache_hit; 1398c2ecf20Sopenharmony_ci u32 frag_cache_miss; 1408c2ecf20Sopenharmony_ci} __packed; 1418c2ecf20Sopenharmony_ci 1428c2ecf20Sopenharmony_cistruct wl18xx_acx_rx_stats { 1438c2ecf20Sopenharmony_ci u32 rx_beacon_early_term; 1448c2ecf20Sopenharmony_ci u32 rx_out_of_mpdu_nodes; 1458c2ecf20Sopenharmony_ci u32 rx_hdr_overflow; 1468c2ecf20Sopenharmony_ci u32 rx_dropped_frame; 1478c2ecf20Sopenharmony_ci u32 rx_done_stage; 1488c2ecf20Sopenharmony_ci u32 rx_done; 1498c2ecf20Sopenharmony_ci u32 rx_defrag; 1508c2ecf20Sopenharmony_ci u32 rx_defrag_end; 1518c2ecf20Sopenharmony_ci u32 rx_cmplt; 1528c2ecf20Sopenharmony_ci u32 rx_pre_complt; 1538c2ecf20Sopenharmony_ci u32 rx_cmplt_task; 1548c2ecf20Sopenharmony_ci u32 rx_phy_hdr; 1558c2ecf20Sopenharmony_ci u32 rx_timeout; 1568c2ecf20Sopenharmony_ci u32 rx_rts_timeout; 1578c2ecf20Sopenharmony_ci u32 rx_timeout_wa; 1588c2ecf20Sopenharmony_ci u32 defrag_called; 1598c2ecf20Sopenharmony_ci u32 defrag_init_called; 1608c2ecf20Sopenharmony_ci u32 defrag_in_process_called; 1618c2ecf20Sopenharmony_ci u32 defrag_tkip_called; 1628c2ecf20Sopenharmony_ci u32 defrag_need_defrag; 1638c2ecf20Sopenharmony_ci u32 defrag_decrypt_failed; 1648c2ecf20Sopenharmony_ci u32 decrypt_key_not_found; 1658c2ecf20Sopenharmony_ci u32 defrag_need_decrypt; 1668c2ecf20Sopenharmony_ci u32 rx_tkip_replays; 1678c2ecf20Sopenharmony_ci u32 rx_xfr; 1688c2ecf20Sopenharmony_ci} __packed; 1698c2ecf20Sopenharmony_ci 1708c2ecf20Sopenharmony_cistruct wl18xx_acx_isr_stats { 1718c2ecf20Sopenharmony_ci u32 irqs; 1728c2ecf20Sopenharmony_ci} __packed; 1738c2ecf20Sopenharmony_ci 1748c2ecf20Sopenharmony_ci#define PWR_STAT_MAX_CONT_MISSED_BCNS_SPREAD 10 1758c2ecf20Sopenharmony_ci 1768c2ecf20Sopenharmony_cistruct wl18xx_acx_pwr_stats { 1778c2ecf20Sopenharmony_ci u32 missing_bcns_cnt; 1788c2ecf20Sopenharmony_ci u32 rcvd_bcns_cnt; 1798c2ecf20Sopenharmony_ci u32 connection_out_of_sync; 1808c2ecf20Sopenharmony_ci u32 cont_miss_bcns_spread[PWR_STAT_MAX_CONT_MISSED_BCNS_SPREAD]; 1818c2ecf20Sopenharmony_ci u32 rcvd_awake_bcns_cnt; 1828c2ecf20Sopenharmony_ci u32 sleep_time_count; 1838c2ecf20Sopenharmony_ci u32 sleep_time_avg; 1848c2ecf20Sopenharmony_ci u32 sleep_cycle_avg; 1858c2ecf20Sopenharmony_ci u32 sleep_percent; 1868c2ecf20Sopenharmony_ci u32 ap_sleep_active_conf; 1878c2ecf20Sopenharmony_ci u32 ap_sleep_user_conf; 1888c2ecf20Sopenharmony_ci u32 ap_sleep_counter; 1898c2ecf20Sopenharmony_ci} __packed; 1908c2ecf20Sopenharmony_ci 1918c2ecf20Sopenharmony_cistruct wl18xx_acx_rx_filter_stats { 1928c2ecf20Sopenharmony_ci u32 beacon_filter; 1938c2ecf20Sopenharmony_ci u32 arp_filter; 1948c2ecf20Sopenharmony_ci u32 mc_filter; 1958c2ecf20Sopenharmony_ci u32 dup_filter; 1968c2ecf20Sopenharmony_ci u32 data_filter; 1978c2ecf20Sopenharmony_ci u32 ibss_filter; 1988c2ecf20Sopenharmony_ci u32 protection_filter; 1998c2ecf20Sopenharmony_ci u32 accum_arp_pend_requests; 2008c2ecf20Sopenharmony_ci u32 max_arp_queue_dep; 2018c2ecf20Sopenharmony_ci} __packed; 2028c2ecf20Sopenharmony_ci 2038c2ecf20Sopenharmony_cistruct wl18xx_acx_rx_rate_stats { 2048c2ecf20Sopenharmony_ci u32 rx_frames_per_rates[50]; 2058c2ecf20Sopenharmony_ci} __packed; 2068c2ecf20Sopenharmony_ci 2078c2ecf20Sopenharmony_ci#define AGGR_STATS_TX_AGG 16 2088c2ecf20Sopenharmony_ci#define AGGR_STATS_RX_SIZE_LEN 16 2098c2ecf20Sopenharmony_ci 2108c2ecf20Sopenharmony_cistruct wl18xx_acx_aggr_stats { 2118c2ecf20Sopenharmony_ci u32 tx_agg_rate[AGGR_STATS_TX_AGG]; 2128c2ecf20Sopenharmony_ci u32 tx_agg_len[AGGR_STATS_TX_AGG]; 2138c2ecf20Sopenharmony_ci u32 rx_size[AGGR_STATS_RX_SIZE_LEN]; 2148c2ecf20Sopenharmony_ci} __packed; 2158c2ecf20Sopenharmony_ci 2168c2ecf20Sopenharmony_ci#define PIPE_STATS_HW_FIFO 11 2178c2ecf20Sopenharmony_ci 2188c2ecf20Sopenharmony_cistruct wl18xx_acx_pipeline_stats { 2198c2ecf20Sopenharmony_ci u32 hs_tx_stat_fifo_int; 2208c2ecf20Sopenharmony_ci u32 hs_rx_stat_fifo_int; 2218c2ecf20Sopenharmony_ci u32 enc_tx_stat_fifo_int; 2228c2ecf20Sopenharmony_ci u32 enc_rx_stat_fifo_int; 2238c2ecf20Sopenharmony_ci u32 rx_complete_stat_fifo_int; 2248c2ecf20Sopenharmony_ci u32 pre_proc_swi; 2258c2ecf20Sopenharmony_ci u32 post_proc_swi; 2268c2ecf20Sopenharmony_ci u32 sec_frag_swi; 2278c2ecf20Sopenharmony_ci u32 pre_to_defrag_swi; 2288c2ecf20Sopenharmony_ci u32 defrag_to_rx_xfer_swi; 2298c2ecf20Sopenharmony_ci u32 dec_packet_in; 2308c2ecf20Sopenharmony_ci u32 dec_packet_in_fifo_full; 2318c2ecf20Sopenharmony_ci u32 dec_packet_out; 2328c2ecf20Sopenharmony_ci u16 pipeline_fifo_full[PIPE_STATS_HW_FIFO]; 2338c2ecf20Sopenharmony_ci u16 padding; 2348c2ecf20Sopenharmony_ci} __packed; 2358c2ecf20Sopenharmony_ci 2368c2ecf20Sopenharmony_ci#define DIVERSITY_STATS_NUM_OF_ANT 2 2378c2ecf20Sopenharmony_ci 2388c2ecf20Sopenharmony_cistruct wl18xx_acx_diversity_stats { 2398c2ecf20Sopenharmony_ci u32 num_of_packets_per_ant[DIVERSITY_STATS_NUM_OF_ANT]; 2408c2ecf20Sopenharmony_ci u32 total_num_of_toggles; 2418c2ecf20Sopenharmony_ci} __packed; 2428c2ecf20Sopenharmony_ci 2438c2ecf20Sopenharmony_cistruct wl18xx_acx_thermal_stats { 2448c2ecf20Sopenharmony_ci u16 irq_thr_low; 2458c2ecf20Sopenharmony_ci u16 irq_thr_high; 2468c2ecf20Sopenharmony_ci u16 tx_stop; 2478c2ecf20Sopenharmony_ci u16 tx_resume; 2488c2ecf20Sopenharmony_ci u16 false_irq; 2498c2ecf20Sopenharmony_ci u16 adc_source_unexpected; 2508c2ecf20Sopenharmony_ci} __packed; 2518c2ecf20Sopenharmony_ci 2528c2ecf20Sopenharmony_ci#define WL18XX_NUM_OF_CALIBRATIONS_ERRORS 18 2538c2ecf20Sopenharmony_cistruct wl18xx_acx_calib_failure_stats { 2548c2ecf20Sopenharmony_ci u16 fail_count[WL18XX_NUM_OF_CALIBRATIONS_ERRORS]; 2558c2ecf20Sopenharmony_ci u32 calib_count; 2568c2ecf20Sopenharmony_ci} __packed; 2578c2ecf20Sopenharmony_ci 2588c2ecf20Sopenharmony_cistruct wl18xx_roaming_stats { 2598c2ecf20Sopenharmony_ci s32 rssi_level; 2608c2ecf20Sopenharmony_ci} __packed; 2618c2ecf20Sopenharmony_ci 2628c2ecf20Sopenharmony_cistruct wl18xx_dfs_stats { 2638c2ecf20Sopenharmony_ci u32 num_of_radar_detections; 2648c2ecf20Sopenharmony_ci} __packed; 2658c2ecf20Sopenharmony_ci 2668c2ecf20Sopenharmony_cistruct wl18xx_acx_statistics { 2678c2ecf20Sopenharmony_ci struct acx_header header; 2688c2ecf20Sopenharmony_ci 2698c2ecf20Sopenharmony_ci struct wl18xx_acx_error_stats error; 2708c2ecf20Sopenharmony_ci struct wl18xx_acx_tx_stats tx; 2718c2ecf20Sopenharmony_ci struct wl18xx_acx_rx_stats rx; 2728c2ecf20Sopenharmony_ci struct wl18xx_acx_isr_stats isr; 2738c2ecf20Sopenharmony_ci struct wl18xx_acx_pwr_stats pwr; 2748c2ecf20Sopenharmony_ci struct wl18xx_acx_rx_filter_stats rx_filter; 2758c2ecf20Sopenharmony_ci struct wl18xx_acx_rx_rate_stats rx_rate; 2768c2ecf20Sopenharmony_ci struct wl18xx_acx_aggr_stats aggr_size; 2778c2ecf20Sopenharmony_ci struct wl18xx_acx_pipeline_stats pipeline; 2788c2ecf20Sopenharmony_ci struct wl18xx_acx_diversity_stats diversity; 2798c2ecf20Sopenharmony_ci struct wl18xx_acx_thermal_stats thermal; 2808c2ecf20Sopenharmony_ci struct wl18xx_acx_calib_failure_stats calib; 2818c2ecf20Sopenharmony_ci struct wl18xx_roaming_stats roaming; 2828c2ecf20Sopenharmony_ci struct wl18xx_dfs_stats dfs; 2838c2ecf20Sopenharmony_ci} __packed; 2848c2ecf20Sopenharmony_ci 2858c2ecf20Sopenharmony_cistruct wl18xx_acx_clear_statistics { 2868c2ecf20Sopenharmony_ci struct acx_header header; 2878c2ecf20Sopenharmony_ci}; 2888c2ecf20Sopenharmony_ci 2898c2ecf20Sopenharmony_cienum wlcore_bandwidth { 2908c2ecf20Sopenharmony_ci WLCORE_BANDWIDTH_20MHZ, 2918c2ecf20Sopenharmony_ci WLCORE_BANDWIDTH_40MHZ, 2928c2ecf20Sopenharmony_ci}; 2938c2ecf20Sopenharmony_ci 2948c2ecf20Sopenharmony_cistruct wlcore_peer_ht_operation_mode { 2958c2ecf20Sopenharmony_ci struct acx_header header; 2968c2ecf20Sopenharmony_ci 2978c2ecf20Sopenharmony_ci u8 hlid; 2988c2ecf20Sopenharmony_ci u8 bandwidth; /* enum wlcore_bandwidth */ 2998c2ecf20Sopenharmony_ci u8 padding[2]; 3008c2ecf20Sopenharmony_ci}; 3018c2ecf20Sopenharmony_ci 3028c2ecf20Sopenharmony_ci/* 3038c2ecf20Sopenharmony_ci * ACX_PEER_CAP 3048c2ecf20Sopenharmony_ci * this struct is very similar to wl1271_acx_ht_capabilities, with the 3058c2ecf20Sopenharmony_ci * addition of supported rates 3068c2ecf20Sopenharmony_ci */ 3078c2ecf20Sopenharmony_cistruct wlcore_acx_peer_cap { 3088c2ecf20Sopenharmony_ci struct acx_header header; 3098c2ecf20Sopenharmony_ci 3108c2ecf20Sopenharmony_ci /* bitmask of capability bits supported by the peer */ 3118c2ecf20Sopenharmony_ci __le32 ht_capabilites; 3128c2ecf20Sopenharmony_ci 3138c2ecf20Sopenharmony_ci /* rates supported by the remote peer */ 3148c2ecf20Sopenharmony_ci __le32 supported_rates; 3158c2ecf20Sopenharmony_ci 3168c2ecf20Sopenharmony_ci /* Indicates to which link these capabilities apply. */ 3178c2ecf20Sopenharmony_ci u8 hlid; 3188c2ecf20Sopenharmony_ci 3198c2ecf20Sopenharmony_ci /* 3208c2ecf20Sopenharmony_ci * This the maximum A-MPDU length supported by the AP. The FW may not 3218c2ecf20Sopenharmony_ci * exceed this length when sending A-MPDUs 3228c2ecf20Sopenharmony_ci */ 3238c2ecf20Sopenharmony_ci u8 ampdu_max_length; 3248c2ecf20Sopenharmony_ci 3258c2ecf20Sopenharmony_ci /* This is the minimal spacing required when sending A-MPDUs to the AP*/ 3268c2ecf20Sopenharmony_ci u8 ampdu_min_spacing; 3278c2ecf20Sopenharmony_ci 3288c2ecf20Sopenharmony_ci u8 padding; 3298c2ecf20Sopenharmony_ci} __packed; 3308c2ecf20Sopenharmony_ci 3318c2ecf20Sopenharmony_ci/* 3328c2ecf20Sopenharmony_ci * ACX_INTERRUPT_NOTIFY 3338c2ecf20Sopenharmony_ci * enable/disable fast-link/PSM notification from FW 3348c2ecf20Sopenharmony_ci */ 3358c2ecf20Sopenharmony_cistruct wl18xx_acx_interrupt_notify { 3368c2ecf20Sopenharmony_ci struct acx_header header; 3378c2ecf20Sopenharmony_ci u32 enable; 3388c2ecf20Sopenharmony_ci}; 3398c2ecf20Sopenharmony_ci 3408c2ecf20Sopenharmony_ci/* 3418c2ecf20Sopenharmony_ci * ACX_RX_BA_FILTER 3428c2ecf20Sopenharmony_ci * enable/disable RX BA filtering in FW 3438c2ecf20Sopenharmony_ci */ 3448c2ecf20Sopenharmony_cistruct wl18xx_acx_rx_ba_filter { 3458c2ecf20Sopenharmony_ci struct acx_header header; 3468c2ecf20Sopenharmony_ci u32 enable; 3478c2ecf20Sopenharmony_ci}; 3488c2ecf20Sopenharmony_ci 3498c2ecf20Sopenharmony_cistruct acx_ap_sleep_cfg { 3508c2ecf20Sopenharmony_ci struct acx_header header; 3518c2ecf20Sopenharmony_ci /* Duty Cycle (20-80% of staying Awake) for IDLE AP 3528c2ecf20Sopenharmony_ci * (0: disable) 3538c2ecf20Sopenharmony_ci */ 3548c2ecf20Sopenharmony_ci u8 idle_duty_cycle; 3558c2ecf20Sopenharmony_ci /* Duty Cycle (20-80% of staying Awake) for Connected AP 3568c2ecf20Sopenharmony_ci * (0: disable) 3578c2ecf20Sopenharmony_ci */ 3588c2ecf20Sopenharmony_ci u8 connected_duty_cycle; 3598c2ecf20Sopenharmony_ci /* Maximum stations that are allowed to be connected to AP 3608c2ecf20Sopenharmony_ci * (255: no limit) 3618c2ecf20Sopenharmony_ci */ 3628c2ecf20Sopenharmony_ci u8 max_stations_thresh; 3638c2ecf20Sopenharmony_ci /* Timeout till enabling the Sleep Mechanism after data stops 3648c2ecf20Sopenharmony_ci * [unit: 100 msec] 3658c2ecf20Sopenharmony_ci */ 3668c2ecf20Sopenharmony_ci u8 idle_conn_thresh; 3678c2ecf20Sopenharmony_ci} __packed; 3688c2ecf20Sopenharmony_ci 3698c2ecf20Sopenharmony_ci/* 3708c2ecf20Sopenharmony_ci * ACX_DYNAMIC_TRACES_CFG 3718c2ecf20Sopenharmony_ci * configure the FW dynamic traces 3728c2ecf20Sopenharmony_ci */ 3738c2ecf20Sopenharmony_cistruct acx_dynamic_fw_traces_cfg { 3748c2ecf20Sopenharmony_ci struct acx_header header; 3758c2ecf20Sopenharmony_ci __le32 dynamic_fw_traces; 3768c2ecf20Sopenharmony_ci} __packed; 3778c2ecf20Sopenharmony_ci 3788c2ecf20Sopenharmony_ci/* 3798c2ecf20Sopenharmony_ci * ACX_TIME_SYNC_CFG 3808c2ecf20Sopenharmony_ci * configure the time sync parameters 3818c2ecf20Sopenharmony_ci */ 3828c2ecf20Sopenharmony_cistruct acx_time_sync_cfg { 3838c2ecf20Sopenharmony_ci struct acx_header header; 3848c2ecf20Sopenharmony_ci u8 sync_mode; 3858c2ecf20Sopenharmony_ci u8 zone_mac_addr[ETH_ALEN]; 3868c2ecf20Sopenharmony_ci u8 padding[1]; 3878c2ecf20Sopenharmony_ci} __packed; 3888c2ecf20Sopenharmony_ci 3898c2ecf20Sopenharmony_ciint wl18xx_acx_host_if_cfg_bitmap(struct wl1271 *wl, u32 host_cfg_bitmap, 3908c2ecf20Sopenharmony_ci u32 sdio_blk_size, u32 extra_mem_blks, 3918c2ecf20Sopenharmony_ci u32 len_field_size); 3928c2ecf20Sopenharmony_ciint wl18xx_acx_set_checksum_state(struct wl1271 *wl); 3938c2ecf20Sopenharmony_ciint wl18xx_acx_clear_statistics(struct wl1271 *wl); 3948c2ecf20Sopenharmony_ciint wl18xx_acx_peer_ht_operation_mode(struct wl1271 *wl, u8 hlid, bool wide); 3958c2ecf20Sopenharmony_ciint wl18xx_acx_set_peer_cap(struct wl1271 *wl, 3968c2ecf20Sopenharmony_ci struct ieee80211_sta_ht_cap *ht_cap, 3978c2ecf20Sopenharmony_ci bool allow_ht_operation, 3988c2ecf20Sopenharmony_ci u32 rate_set, u8 hlid); 3998c2ecf20Sopenharmony_ciint wl18xx_acx_interrupt_notify_config(struct wl1271 *wl, bool action); 4008c2ecf20Sopenharmony_ciint wl18xx_acx_rx_ba_filter(struct wl1271 *wl, bool action); 4018c2ecf20Sopenharmony_ciint wl18xx_acx_ap_sleep(struct wl1271 *wl); 4028c2ecf20Sopenharmony_ciint wl18xx_acx_dynamic_fw_traces(struct wl1271 *wl); 4038c2ecf20Sopenharmony_ciint wl18xx_acx_time_sync_cfg(struct wl1271 *wl); 4048c2ecf20Sopenharmony_ci 4058c2ecf20Sopenharmony_ci#endif /* __WL18XX_ACX_H__ */ 406