19d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho/*
29d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho * This file is part of wl12xx
39d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho *
49d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho * Copyright (C) 1998-2009, 2011 Texas Instruments. All rights reserved.
59d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho * Copyright (C) 2008-2010 Nokia Corporation
69d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho *
79d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho * This program is free software; you can redistribute it and/or
89d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho * modify it under the terms of the GNU General Public License
99d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho * version 2 as published by the Free Software Foundation.
109d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho *
119d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho * This program is distributed in the hope that it will be useful, but
129d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho * WITHOUT ANY WARRANTY; without even the implied warranty of
139d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
149d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho * General Public License for more details.
159d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho *
169d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho * You should have received a copy of the GNU General Public License
179d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho * along with this program; if not, write to the Free Software
189d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
199d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho * 02110-1301 USA
209d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho *
219d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho */
229d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho
239d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho#ifndef __WL12XX_ACX_H__
249d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho#define __WL12XX_ACX_H__
259d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho
269d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho#include "../wlcore/wlcore.h"
2710b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho#include "../wlcore/acx.h"
289d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho
29f5755fe96cb010031a50458e6d1391377d94c275Ido Reis#define WL12XX_ACX_ALL_EVENTS_VECTOR	(WL1271_ACX_INTR_WATCHDOG      | \
30f5755fe96cb010031a50458e6d1391377d94c275Ido Reis					WL1271_ACX_INTR_INIT_COMPLETE | \
31f5755fe96cb010031a50458e6d1391377d94c275Ido Reis					WL1271_ACX_INTR_EVENT_A       | \
32f5755fe96cb010031a50458e6d1391377d94c275Ido Reis					WL1271_ACX_INTR_EVENT_B       | \
33f5755fe96cb010031a50458e6d1391377d94c275Ido Reis					WL1271_ACX_INTR_CMD_COMPLETE  | \
34f5755fe96cb010031a50458e6d1391377d94c275Ido Reis					WL1271_ACX_INTR_HW_AVAILABLE  | \
35f5755fe96cb010031a50458e6d1391377d94c275Ido Reis					WL1271_ACX_INTR_DATA)
36f5755fe96cb010031a50458e6d1391377d94c275Ido Reis
37f5755fe96cb010031a50458e6d1391377d94c275Ido Reis#define WL12XX_INTR_MASK		(WL1271_ACX_INTR_WATCHDOG      | \
38f5755fe96cb010031a50458e6d1391377d94c275Ido Reis					WL1271_ACX_INTR_EVENT_A       | \
39f5755fe96cb010031a50458e6d1391377d94c275Ido Reis					WL1271_ACX_INTR_EVENT_B       | \
40f5755fe96cb010031a50458e6d1391377d94c275Ido Reis					WL1271_ACX_INTR_HW_AVAILABLE  | \
41f5755fe96cb010031a50458e6d1391377d94c275Ido Reis					WL1271_ACX_INTR_DATA)
42f5755fe96cb010031a50458e6d1391377d94c275Ido Reis
439d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelhostruct wl1271_acx_host_config_bitmap {
449d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho	struct acx_header header;
459d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho
469d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho	__le32 host_cfg_bitmap;
479d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho} __packed;
489d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho
4910b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelhostruct wl12xx_acx_tx_statistics {
5010b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 internal_desc_overflow;
5110b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho}  __packed;
5210b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
5310b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelhostruct wl12xx_acx_rx_statistics {
5410b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 out_of_mem;
5510b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 hdr_overflow;
5610b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 hw_stuck;
5710b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 dropped;
5810b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 fcs_err;
5910b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 xfr_hint_trig;
6010b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 path_reset;
6110b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 reset_counter;
6210b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho} __packed;
6310b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
6410b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelhostruct wl12xx_acx_dma_statistics {
6510b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 rx_requested;
6610b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 rx_errors;
6710b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 tx_requested;
6810b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 tx_errors;
6910b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho}  __packed;
7010b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
7110b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelhostruct wl12xx_acx_isr_statistics {
7210b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* host command complete */
7310b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 cmd_cmplt;
7410b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
7510b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* fiqisr() */
7610b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 fiqs;
7710b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
7810b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* (INT_STS_ND & INT_TRIG_RX_HEADER) */
7910b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 rx_headers;
8010b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
8110b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* (INT_STS_ND & INT_TRIG_RX_CMPLT) */
8210b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 rx_completes;
8310b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
8410b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* (INT_STS_ND & INT_TRIG_NO_RX_BUF) */
8510b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 rx_mem_overflow;
8610b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
8710b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* (INT_STS_ND & INT_TRIG_S_RX_RDY) */
8810b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 rx_rdys;
8910b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
9010b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* irqisr() */
9110b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 irqs;
9210b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
9310b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* (INT_STS_ND & INT_TRIG_TX_PROC) */
9410b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 tx_procs;
9510b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
9610b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* (INT_STS_ND & INT_TRIG_DECRYPT_DONE) */
9710b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 decrypt_done;
9810b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
9910b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* (INT_STS_ND & INT_TRIG_DMA0) */
10010b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 dma0_done;
10110b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
10210b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* (INT_STS_ND & INT_TRIG_DMA1) */
10310b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 dma1_done;
10410b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
10510b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* (INT_STS_ND & INT_TRIG_TX_EXC_CMPLT) */
10610b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 tx_exch_complete;
10710b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
10810b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* (INT_STS_ND & INT_TRIG_COMMAND) */
10910b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 commands;
11010b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
11110b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* (INT_STS_ND & INT_TRIG_RX_PROC) */
11210b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 rx_procs;
11310b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
11410b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* (INT_STS_ND & INT_TRIG_PM_802) */
11510b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 hw_pm_mode_changes;
11610b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
11710b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* (INT_STS_ND & INT_TRIG_ACKNOWLEDGE) */
11810b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 host_acknowledges;
11910b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
12010b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* (INT_STS_ND & INT_TRIG_PM_PCI) */
12110b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 pci_pm;
12210b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
12310b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* (INT_STS_ND & INT_TRIG_ACM_WAKEUP) */
12410b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 wakeups;
12510b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
12610b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* (INT_STS_ND & INT_TRIG_LOW_RSSI) */
12710b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 low_rssi;
12810b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho} __packed;
12910b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
13010b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelhostruct wl12xx_acx_wep_statistics {
13110b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* WEP address keys configured */
13210b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 addr_key_count;
13310b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
13410b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* default keys configured */
13510b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 default_key_count;
13610b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
13710b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 reserved;
13810b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
13910b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* number of times that WEP key not found on lookup */
14010b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 key_not_found;
14110b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
14210b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* number of times that WEP key decryption failed */
14310b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 decrypt_fail;
14410b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
14510b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* WEP packets decrypted */
14610b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 packets;
14710b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
14810b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* WEP decrypt interrupts */
14910b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 interrupt;
15010b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho} __packed;
15110b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
15210b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho#define ACX_MISSED_BEACONS_SPREAD 10
15310b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
15410b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelhostruct wl12xx_acx_pwr_statistics {
15510b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* the amount of enters into power save mode (both PD & ELP) */
15610b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 ps_enter;
15710b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
15810b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* the amount of enters into ELP mode */
15910b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 elp_enter;
16010b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
16110b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* the amount of missing beacon interrupts to the host */
16210b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 missing_bcns;
16310b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
16410b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* the amount of wake on host-access times */
16510b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 wake_on_host;
16610b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
16710b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* the amount of wake on timer-expire */
16810b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 wake_on_timer_exp;
16910b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
17010b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* the number of packets that were transmitted with PS bit set */
17110b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 tx_with_ps;
17210b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
17310b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* the number of packets that were transmitted with PS bit clear */
17410b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 tx_without_ps;
17510b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
17610b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* the number of received beacons */
17710b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 rcvd_beacons;
17810b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
17910b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* the number of entering into PowerOn (power save off) */
18010b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 power_save_off;
18110b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
18210b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* the number of entries into power save mode */
18310b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le16 enable_ps;
18410b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
18510b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/*
18610b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	 * the number of exits from power save, not including failed PS
18710b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	 * transitions
18810b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	 */
18910b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le16 disable_ps;
19010b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
19110b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/*
19210b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	 * the number of times the TSF counter was adjusted because
19310b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	 * of drift
19410b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	 */
19510b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 fix_tsf_ps;
19610b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
19710b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* Gives statistics about the spread continuous missed beacons.
19810b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	 * The 16 LSB are dedicated for the PS mode.
19910b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	 * The 16 MSB are dedicated for the PS mode.
20010b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	 * cont_miss_bcns_spread[0] - single missed beacon.
20110b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	 * cont_miss_bcns_spread[1] - two continuous missed beacons.
20210b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	 * cont_miss_bcns_spread[2] - three continuous missed beacons.
20310b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	 * ...
20410b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	 * cont_miss_bcns_spread[9] - ten and more continuous missed beacons.
20510b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	*/
20610b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 cont_miss_bcns_spread[ACX_MISSED_BEACONS_SPREAD];
20710b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
20810b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	/* the number of beacons in awake mode */
20910b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 rcvd_awake_beacons;
21010b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho} __packed;
21110b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
21210b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelhostruct wl12xx_acx_mic_statistics {
21310b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 rx_pkts;
21410b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 calc_failure;
21510b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho} __packed;
21610b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
21710b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelhostruct wl12xx_acx_aes_statistics {
21810b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 encrypt_fail;
21910b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 decrypt_fail;
22010b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 encrypt_packets;
22110b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 decrypt_packets;
22210b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 encrypt_interrupt;
22310b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 decrypt_interrupt;
22410b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho} __packed;
22510b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
22610b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelhostruct wl12xx_acx_event_statistics {
22710b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 heart_beat;
22810b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 calibration;
22910b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 rx_mismatch;
23010b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 rx_mem_empty;
23110b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 rx_pool;
23210b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 oom_late;
23310b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 phy_transmit_error;
23410b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 tx_stuck;
23510b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho} __packed;
23610b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
23710b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelhostruct wl12xx_acx_ps_statistics {
23810b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 pspoll_timeouts;
23910b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 upsd_timeouts;
24010b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 upsd_max_sptime;
24110b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 upsd_max_apturn;
24210b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 pspoll_max_apturn;
24310b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 pspoll_utilization;
24410b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 upsd_utilization;
24510b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho} __packed;
24610b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
24710b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelhostruct wl12xx_acx_rxpipe_statistics {
24810b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 rx_prep_beacon_drop;
24910b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 descr_host_int_trig_rx_data;
25010b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 beacon_buffer_thres_host_int_trig_rx_data;
25110b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 missed_beacon_host_int_trig_rx_data;
25210b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	__le32 tx_xfr_host_int_trig_rx_data;
25310b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho} __packed;
25410b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
25510b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelhostruct wl12xx_acx_statistics {
25610b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	struct acx_header header;
25710b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
25810b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	struct wl12xx_acx_tx_statistics tx;
25910b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	struct wl12xx_acx_rx_statistics rx;
26010b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	struct wl12xx_acx_dma_statistics dma;
26110b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	struct wl12xx_acx_isr_statistics isr;
26210b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	struct wl12xx_acx_wep_statistics wep;
26310b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	struct wl12xx_acx_pwr_statistics pwr;
26410b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	struct wl12xx_acx_aes_statistics aes;
26510b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	struct wl12xx_acx_mic_statistics mic;
26610b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	struct wl12xx_acx_event_statistics event;
26710b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	struct wl12xx_acx_ps_statistics ps;
26810b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho	struct wl12xx_acx_rxpipe_statistics rxpipe;
26910b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho} __packed;
27010b1e8a27a45559df7d02c864081e929369d83bfLuciano Coelho
2719d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelhoint wl1271_acx_host_if_cfg_bitmap(struct wl1271 *wl, u32 host_cfg_bitmap);
2729d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho
2739d68d1eea7fb4d05b5bd037da6a66329d640b2f1Luciano Coelho#endif /* __WL12XX_ACX_H__ */
274