Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
acx.h
Go to the documentation of this file.
1 /*
2  * This file is part of wl18xx
3  *
4  * Copyright (C) 2011 Texas Instruments. All rights reserved.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * version 2 as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18  * 02110-1301 USA
19  *
20  */
21 
22 #ifndef __WL18XX_ACX_H__
23 #define __WL18XX_ACX_H__
24 
25 #include "../wlcore/wlcore.h"
26 #include "../wlcore/acx.h"
27 
28 enum {
30 };
31 
32 /* numbers of bits the length field takes (add 1 for the actual number) */
33 #define WL18XX_HOST_IF_LEN_SIZE_FIELD 15
34 
35 #define WL18XX_ACX_EVENTS_VECTOR (WL1271_ACX_INTR_WATCHDOG | \
36  WL1271_ACX_INTR_INIT_COMPLETE | \
37  WL1271_ACX_INTR_EVENT_A | \
38  WL1271_ACX_INTR_EVENT_B | \
39  WL1271_ACX_INTR_CMD_COMPLETE | \
40  WL1271_ACX_INTR_HW_AVAILABLE | \
41  WL1271_ACX_INTR_DATA | \
42  WL1271_ACX_SW_INTR_WATCHDOG)
43 
44 #define WL18XX_INTR_MASK (WL1271_ACX_INTR_WATCHDOG | \
45  WL1271_ACX_INTR_EVENT_A | \
46  WL1271_ACX_INTR_EVENT_B | \
47  WL1271_ACX_INTR_HW_AVAILABLE | \
48  WL1271_ACX_INTR_DATA | \
49  WL1271_ACX_SW_INTR_WATCHDOG)
50 
53 
55 
57 
58  /* extra mem blocks per frame in TX. */
60 
61  /*
62  * number of bits of the length field in the first TX word
63  * (up to 15 - for using the entire 16 bits).
64  */
66 
67 } __packed;
68 
69 enum {
74 };
75 
78 
79  /* enum acx_checksum_state */
81  u8 pad[3];
82 } __packed;
83 
84 
91 } __packed;
92 
100 } __packed;
101 
105 } __packed;
106 
143 } __packed;
144 
173 } __packed;
174 
177 } __packed;
178 
179 #define PWR_STAT_MAX_CONT_MISSED_BCNS_SPREAD 10
180 
187 } __packed;
188 
193 } __packed;
194 
202 } __packed;
203 
214 } __packed;
215 
218 } __packed;
219 
220 #define AGGR_STATS_TX_AGG 16
221 #define AGGR_STATS_TX_RATE 16
222 #define AGGR_STATS_RX_SIZE_LEN 16
223 
227 } __packed;
228 
229 #define PIPE_STATS_HW_FIFO 11
230 
251 } __packed;
252 
258 } __packed;
259 
262 
275 } __packed;
276 
279 };
280 
281 int wl18xx_acx_host_if_cfg_bitmap(struct wl1271 *wl, u32 host_cfg_bitmap,
282  u32 sdio_blk_size, u32 extra_mem_blks,
283  u32 len_field_size);
284 int wl18xx_acx_set_checksum_state(struct wl1271 *wl);
285 int wl18xx_acx_clear_statistics(struct wl1271 *wl);
286 
287 #endif /* __WL18XX_ACX_H__ */