wl1271_acx.h 32 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156
  1. /*
  2. * This file is part of wl1271
  3. *
  4. * Copyright (C) 1998-2009 Texas Instruments. All rights reserved.
  5. * Copyright (C) 2008-2009 Nokia Corporation
  6. *
  7. * Contact: Luciano Coelho <luciano.coelho@nokia.com>
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License
  11. * version 2 as published by the Free Software Foundation.
  12. *
  13. * This program is distributed in the hope that it will be useful, but
  14. * WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  21. * 02110-1301 USA
  22. *
  23. */
  24. #ifndef __WL1271_ACX_H__
  25. #define __WL1271_ACX_H__
  26. #include "wl1271.h"
  27. #include "wl1271_cmd.h"
  28. /*************************************************************************
  29. Host Interrupt Register (WiLink -> Host)
  30. **************************************************************************/
  31. /* HW Initiated interrupt Watchdog timer expiration */
  32. #define WL1271_ACX_INTR_WATCHDOG BIT(0)
  33. /* Init sequence is done (masked interrupt, detection through polling only ) */
  34. #define WL1271_ACX_INTR_INIT_COMPLETE BIT(1)
  35. /* Event was entered to Event MBOX #A*/
  36. #define WL1271_ACX_INTR_EVENT_A BIT(2)
  37. /* Event was entered to Event MBOX #B*/
  38. #define WL1271_ACX_INTR_EVENT_B BIT(3)
  39. /* Command processing completion*/
  40. #define WL1271_ACX_INTR_CMD_COMPLETE BIT(4)
  41. /* Signaling the host on HW wakeup */
  42. #define WL1271_ACX_INTR_HW_AVAILABLE BIT(5)
  43. /* The MISC bit is used for aggregation of RX, TxComplete and TX rate update */
  44. #define WL1271_ACX_INTR_DATA BIT(6)
  45. /* Trace meassge on MBOX #A */
  46. #define WL1271_ACX_INTR_TRACE_A BIT(7)
  47. /* Trace meassge on MBOX #B */
  48. #define WL1271_ACX_INTR_TRACE_B BIT(8)
  49. #define WL1271_ACX_INTR_ALL 0xFFFFFFFF
  50. #define WL1271_ACX_ALL_EVENTS_VECTOR (WL1271_ACX_INTR_WATCHDOG | \
  51. WL1271_ACX_INTR_INIT_COMPLETE | \
  52. WL1271_ACX_INTR_EVENT_A | \
  53. WL1271_ACX_INTR_EVENT_B | \
  54. WL1271_ACX_INTR_CMD_COMPLETE | \
  55. WL1271_ACX_INTR_HW_AVAILABLE | \
  56. WL1271_ACX_INTR_DATA)
  57. #define WL1271_INTR_MASK (WL1271_ACX_INTR_EVENT_A | \
  58. WL1271_ACX_INTR_EVENT_B | \
  59. WL1271_ACX_INTR_HW_AVAILABLE | \
  60. WL1271_ACX_INTR_DATA)
  61. /* Target's information element */
  62. struct acx_header {
  63. struct wl1271_cmd_header cmd;
  64. /* acx (or information element) header */
  65. u16 id;
  66. /* payload length (not including headers */
  67. u16 len;
  68. };
  69. struct acx_error_counter {
  70. struct acx_header header;
  71. /* The number of PLCP errors since the last time this */
  72. /* information element was interrogated. This field is */
  73. /* automatically cleared when it is interrogated.*/
  74. u32 PLCP_error;
  75. /* The number of FCS errors since the last time this */
  76. /* information element was interrogated. This field is */
  77. /* automatically cleared when it is interrogated.*/
  78. u32 FCS_error;
  79. /* The number of MPDUs without PLCP header errors received*/
  80. /* since the last time this information element was interrogated. */
  81. /* This field is automatically cleared when it is interrogated.*/
  82. u32 valid_frame;
  83. /* the number of missed sequence numbers in the squentially */
  84. /* values of frames seq numbers */
  85. u32 seq_num_miss;
  86. } __attribute__ ((packed));
  87. struct acx_revision {
  88. struct acx_header header;
  89. /*
  90. * The WiLink firmware version, an ASCII string x.x.x.x,
  91. * that uniquely identifies the current firmware.
  92. * The left most digit is incremented each time a
  93. * significant change is made to the firmware, such as
  94. * code redesign or new platform support.
  95. * The second digit is incremented when major enhancements
  96. * are added or major fixes are made.
  97. * The third digit is incremented for each GA release.
  98. * The fourth digit is incremented for each build.
  99. * The first two digits identify a firmware release version,
  100. * in other words, a unique set of features.
  101. * The first three digits identify a GA release.
  102. */
  103. char fw_version[20];
  104. /*
  105. * This 4 byte field specifies the WiLink hardware version.
  106. * bits 0 - 15: Reserved.
  107. * bits 16 - 23: Version ID - The WiLink version ID
  108. * (1 = first spin, 2 = second spin, and so on).
  109. * bits 24 - 31: Chip ID - The WiLink chip ID.
  110. */
  111. u32 hw_version;
  112. } __attribute__ ((packed));
  113. enum wl1271_psm_mode {
  114. /* Active mode */
  115. WL1271_PSM_CAM = 0,
  116. /* Power save mode */
  117. WL1271_PSM_PS = 1,
  118. /* Extreme low power */
  119. WL1271_PSM_ELP = 2,
  120. };
  121. struct acx_sleep_auth {
  122. struct acx_header header;
  123. /* The sleep level authorization of the device. */
  124. /* 0 - Always active*/
  125. /* 1 - Power down mode: light / fast sleep*/
  126. /* 2 - ELP mode: Deep / Max sleep*/
  127. u8 sleep_auth;
  128. u8 padding[3];
  129. } __attribute__ ((packed));
  130. enum {
  131. HOSTIF_PCI_MASTER_HOST_INDIRECT,
  132. HOSTIF_PCI_MASTER_HOST_DIRECT,
  133. HOSTIF_SLAVE,
  134. HOSTIF_PKT_RING,
  135. HOSTIF_DONTCARE = 0xFF
  136. };
  137. #define DEFAULT_UCAST_PRIORITY 0
  138. #define DEFAULT_RX_Q_PRIORITY 0
  139. #define DEFAULT_NUM_STATIONS 1
  140. #define DEFAULT_RXQ_PRIORITY 0 /* low 0 .. 15 high */
  141. #define DEFAULT_RXQ_TYPE 0x07 /* All frames, Data/Ctrl/Mgmt */
  142. #define TRACE_BUFFER_MAX_SIZE 256
  143. #define DP_RX_PACKET_RING_CHUNK_SIZE 1600
  144. #define DP_TX_PACKET_RING_CHUNK_SIZE 1600
  145. #define DP_RX_PACKET_RING_CHUNK_NUM 2
  146. #define DP_TX_PACKET_RING_CHUNK_NUM 2
  147. #define DP_TX_COMPLETE_TIME_OUT 20
  148. #define TX_MSDU_LIFETIME_MIN 0
  149. #define TX_MSDU_LIFETIME_MAX 3000
  150. #define TX_MSDU_LIFETIME_DEF 512
  151. #define RX_MSDU_LIFETIME_MIN 0
  152. #define RX_MSDU_LIFETIME_MAX 0xFFFFFFFF
  153. #define RX_MSDU_LIFETIME_DEF 512000
  154. struct acx_rx_msdu_lifetime {
  155. struct acx_header header;
  156. /*
  157. * The maximum amount of time, in TU, before the
  158. * firmware discards the MSDU.
  159. */
  160. u32 lifetime;
  161. } __attribute__ ((packed));
  162. /*
  163. * RX Config Options Table
  164. * Bit Definition
  165. * === ==========
  166. * 31:14 Reserved
  167. * 13 Copy RX Status - when set, write three receive status words
  168. * to top of rx'd MPDUs.
  169. * When cleared, do not write three status words (added rev 1.5)
  170. * 12 Reserved
  171. * 11 RX Complete upon FCS error - when set, give rx complete
  172. * interrupt for FCS errors, after the rx filtering, e.g. unicast
  173. * frames not to us with FCS error will not generate an interrupt.
  174. * 10 SSID Filter Enable - When set, the WiLink discards all beacon,
  175. * probe request, and probe response frames with an SSID that does
  176. * not match the SSID specified by the host in the START/JOIN
  177. * command.
  178. * When clear, the WiLink receives frames with any SSID.
  179. * 9 Broadcast Filter Enable - When set, the WiLink discards all
  180. * broadcast frames. When clear, the WiLink receives all received
  181. * broadcast frames.
  182. * 8:6 Reserved
  183. * 5 BSSID Filter Enable - When set, the WiLink discards any frames
  184. * with a BSSID that does not match the BSSID specified by the
  185. * host.
  186. * When clear, the WiLink receives frames from any BSSID.
  187. * 4 MAC Addr Filter - When set, the WiLink discards any frames
  188. * with a destination address that does not match the MAC address
  189. * of the adaptor.
  190. * When clear, the WiLink receives frames destined to any MAC
  191. * address.
  192. * 3 Promiscuous - When set, the WiLink receives all valid frames
  193. * (i.e., all frames that pass the FCS check).
  194. * When clear, only frames that pass the other filters specified
  195. * are received.
  196. * 2 FCS - When set, the WiLink includes the FCS with the received
  197. * frame.
  198. * When cleared, the FCS is discarded.
  199. * 1 PLCP header - When set, write all data from baseband to frame
  200. * buffer including PHY header.
  201. * 0 Reserved - Always equal to 0.
  202. *
  203. * RX Filter Options Table
  204. * Bit Definition
  205. * === ==========
  206. * 31:12 Reserved - Always equal to 0.
  207. * 11 Association - When set, the WiLink receives all association
  208. * related frames (association request/response, reassocation
  209. * request/response, and disassociation). When clear, these frames
  210. * are discarded.
  211. * 10 Auth/De auth - When set, the WiLink receives all authentication
  212. * and de-authentication frames. When clear, these frames are
  213. * discarded.
  214. * 9 Beacon - When set, the WiLink receives all beacon frames.
  215. * When clear, these frames are discarded.
  216. * 8 Contention Free - When set, the WiLink receives all contention
  217. * free frames.
  218. * When clear, these frames are discarded.
  219. * 7 Control - When set, the WiLink receives all control frames.
  220. * When clear, these frames are discarded.
  221. * 6 Data - When set, the WiLink receives all data frames.
  222. * When clear, these frames are discarded.
  223. * 5 FCS Error - When set, the WiLink receives frames that have FCS
  224. * errors.
  225. * When clear, these frames are discarded.
  226. * 4 Management - When set, the WiLink receives all management
  227. * frames.
  228. * When clear, these frames are discarded.
  229. * 3 Probe Request - When set, the WiLink receives all probe request
  230. * frames.
  231. * When clear, these frames are discarded.
  232. * 2 Probe Response - When set, the WiLink receives all probe
  233. * response frames.
  234. * When clear, these frames are discarded.
  235. * 1 RTS/CTS/ACK - When set, the WiLink receives all RTS, CTS and ACK
  236. * frames.
  237. * When clear, these frames are discarded.
  238. * 0 Rsvd Type/Sub Type - When set, the WiLink receives all frames
  239. * that have reserved frame types and sub types as defined by the
  240. * 802.11 specification.
  241. * When clear, these frames are discarded.
  242. */
  243. struct acx_rx_config {
  244. struct acx_header header;
  245. u32 config_options;
  246. u32 filter_options;
  247. } __attribute__ ((packed));
  248. struct acx_packet_detection {
  249. struct acx_header header;
  250. u32 threshold;
  251. } __attribute__ ((packed));
  252. enum acx_slot_type {
  253. SLOT_TIME_LONG = 0,
  254. SLOT_TIME_SHORT = 1,
  255. DEFAULT_SLOT_TIME = SLOT_TIME_SHORT,
  256. MAX_SLOT_TIMES = 0xFF
  257. };
  258. #define STATION_WONE_INDEX 0
  259. struct acx_slot {
  260. struct acx_header header;
  261. u8 wone_index; /* Reserved */
  262. u8 slot_time;
  263. u8 reserved[6];
  264. } __attribute__ ((packed));
  265. #define ACX_MC_ADDRESS_GROUP_MAX (8)
  266. #define ADDRESS_GROUP_MAX_LEN (ETH_ALEN * ACX_MC_ADDRESS_GROUP_MAX)
  267. struct acx_dot11_grp_addr_tbl {
  268. struct acx_header header;
  269. u8 enabled;
  270. u8 num_groups;
  271. u8 pad[2];
  272. u8 mac_table[ADDRESS_GROUP_MAX_LEN];
  273. } __attribute__ ((packed));
  274. #define RX_TIMEOUT_PS_POLL_MIN 0
  275. #define RX_TIMEOUT_PS_POLL_MAX (200000)
  276. #define RX_TIMEOUT_PS_POLL_DEF (15)
  277. #define RX_TIMEOUT_UPSD_MIN 0
  278. #define RX_TIMEOUT_UPSD_MAX (200000)
  279. #define RX_TIMEOUT_UPSD_DEF (15)
  280. struct acx_rx_timeout {
  281. struct acx_header header;
  282. /*
  283. * The longest time the STA will wait to receive
  284. * traffic from the AP after a PS-poll has been
  285. * transmitted.
  286. */
  287. u16 ps_poll_timeout;
  288. /*
  289. * The longest time the STA will wait to receive
  290. * traffic from the AP after a frame has been sent
  291. * from an UPSD enabled queue.
  292. */
  293. u16 upsd_timeout;
  294. } __attribute__ ((packed));
  295. #define RTS_THRESHOLD_MIN 0
  296. #define RTS_THRESHOLD_MAX 4096
  297. #define RTS_THRESHOLD_DEF 2347
  298. struct acx_rts_threshold {
  299. struct acx_header header;
  300. u16 threshold;
  301. u8 pad[2];
  302. } __attribute__ ((packed));
  303. struct acx_beacon_filter_option {
  304. struct acx_header header;
  305. u8 enable;
  306. /*
  307. * The number of beacons without the unicast TIM
  308. * bit set that the firmware buffers before
  309. * signaling the host about ready frames.
  310. * When set to 0 and the filter is enabled, beacons
  311. * without the unicast TIM bit set are dropped.
  312. */
  313. u8 max_num_beacons;
  314. u8 pad[2];
  315. } __attribute__ ((packed));
  316. /*
  317. * ACXBeaconFilterEntry (not 221)
  318. * Byte Offset Size (Bytes) Definition
  319. * =========== ============ ==========
  320. * 0 1 IE identifier
  321. * 1 1 Treatment bit mask
  322. *
  323. * ACXBeaconFilterEntry (221)
  324. * Byte Offset Size (Bytes) Definition
  325. * =========== ============ ==========
  326. * 0 1 IE identifier
  327. * 1 1 Treatment bit mask
  328. * 2 3 OUI
  329. * 5 1 Type
  330. * 6 2 Version
  331. *
  332. *
  333. * Treatment bit mask - The information element handling:
  334. * bit 0 - The information element is compared and transferred
  335. * in case of change.
  336. * bit 1 - The information element is transferred to the host
  337. * with each appearance or disappearance.
  338. * Note that both bits can be set at the same time.
  339. */
  340. #define BEACON_FILTER_TABLE_MAX_IE_NUM (32)
  341. #define BEACON_FILTER_TABLE_MAX_VENDOR_SPECIFIC_IE_NUM (6)
  342. #define BEACON_FILTER_TABLE_IE_ENTRY_SIZE (2)
  343. #define BEACON_FILTER_TABLE_EXTRA_VENDOR_SPECIFIC_IE_SIZE (6)
  344. #define BEACON_FILTER_TABLE_MAX_SIZE ((BEACON_FILTER_TABLE_MAX_IE_NUM * \
  345. BEACON_FILTER_TABLE_IE_ENTRY_SIZE) + \
  346. (BEACON_FILTER_TABLE_MAX_VENDOR_SPECIFIC_IE_NUM * \
  347. BEACON_FILTER_TABLE_EXTRA_VENDOR_SPECIFIC_IE_SIZE))
  348. #define BEACON_RULE_PASS_ON_CHANGE BIT(0)
  349. #define BEACON_RULE_PASS_ON_APPEARANCE BIT(1)
  350. #define BEACON_FILTER_IE_ID_CHANNEL_SWITCH_ANN (37)
  351. struct acx_beacon_filter_ie_table {
  352. struct acx_header header;
  353. u8 num_ie;
  354. u8 table[BEACON_FILTER_TABLE_MAX_SIZE];
  355. u8 pad[3];
  356. } __attribute__ ((packed));
  357. #define SYNCH_FAIL_DEFAULT_THRESHOLD 5 /* number of beacons */
  358. #define NO_BEACON_DEFAULT_TIMEOUT (100) /* TU */
  359. struct acx_conn_monit_params {
  360. struct acx_header header;
  361. u32 synch_fail_thold; /* number of beacons missed */
  362. u32 bss_lose_timeout; /* number of TU's from synch fail */
  363. };
  364. enum {
  365. SG_ENABLE = 0,
  366. SG_DISABLE,
  367. SG_SENSE_NO_ACTIVITY,
  368. SG_SENSE_ACTIVE
  369. };
  370. struct acx_bt_wlan_coex {
  371. struct acx_header header;
  372. /*
  373. * 0 -> PTA enabled
  374. * 1 -> PTA disabled
  375. * 2 -> sense no active mode, i.e.
  376. * an interrupt is sent upon
  377. * BT activity.
  378. * 3 -> PTA is switched on in response
  379. * to the interrupt sending.
  380. */
  381. u8 enable;
  382. u8 pad[3];
  383. } __attribute__ ((packed));
  384. struct acx_smart_reflex_state {
  385. struct acx_header header;
  386. u8 enable;
  387. u8 padding[3];
  388. };
  389. struct smart_reflex_err_table {
  390. u8 len;
  391. s8 upper_limit;
  392. s8 values[14];
  393. };
  394. struct acx_smart_reflex_config_params {
  395. struct acx_header header;
  396. struct smart_reflex_err_table error_table[3];
  397. };
  398. #define PTA_ANTENNA_TYPE_DEF (0)
  399. #define PTA_BT_HP_MAXTIME_DEF (2000)
  400. #define PTA_WLAN_HP_MAX_TIME_DEF (5000)
  401. #define PTA_SENSE_DISABLE_TIMER_DEF (1350)
  402. #define PTA_PROTECTIVE_RX_TIME_DEF (1500)
  403. #define PTA_PROTECTIVE_TX_TIME_DEF (1500)
  404. #define PTA_TIMEOUT_NEXT_BT_LP_PACKET_DEF (3000)
  405. #define PTA_SIGNALING_TYPE_DEF (1)
  406. #define PTA_AFH_LEVERAGE_ON_DEF (0)
  407. #define PTA_NUMBER_QUIET_CYCLE_DEF (0)
  408. #define PTA_MAX_NUM_CTS_DEF (3)
  409. #define PTA_NUMBER_OF_WLAN_PACKETS_DEF (2)
  410. #define PTA_NUMBER_OF_BT_PACKETS_DEF (2)
  411. #define PTA_PROTECTIVE_RX_TIME_FAST_DEF (1500)
  412. #define PTA_PROTECTIVE_TX_TIME_FAST_DEF (3000)
  413. #define PTA_CYCLE_TIME_FAST_DEF (8700)
  414. #define PTA_RX_FOR_AVALANCHE_DEF (5)
  415. #define PTA_ELP_HP_DEF (0)
  416. #define PTA_ANTI_STARVE_PERIOD_DEF (500)
  417. #define PTA_ANTI_STARVE_NUM_CYCLE_DEF (4)
  418. #define PTA_ALLOW_PA_SD_DEF (1)
  419. #define PTA_TIME_BEFORE_BEACON_DEF (6300)
  420. #define PTA_HPDM_MAX_TIME_DEF (1600)
  421. #define PTA_TIME_OUT_NEXT_WLAN_DEF (2550)
  422. #define PTA_AUTO_MODE_NO_CTS_DEF (0)
  423. #define PTA_BT_HP_RESPECTED_DEF (3)
  424. #define PTA_WLAN_RX_MIN_RATE_DEF (24)
  425. #define PTA_ACK_MODE_DEF (1)
  426. struct acx_bt_wlan_coex_param {
  427. struct acx_header header;
  428. u32 per_threshold;
  429. u32 max_scan_compensation_time;
  430. u16 nfs_sample_interval;
  431. u8 load_ratio;
  432. u8 auto_ps_mode;
  433. u8 probe_req_compensation;
  434. u8 scan_window_compensation;
  435. u8 antenna_config;
  436. u8 beacon_miss_threshold;
  437. u32 rate_adaptation_threshold;
  438. s8 rate_adaptation_snr;
  439. u8 padding[3];
  440. } __attribute__ ((packed));
  441. #define CCA_THRSH_ENABLE_ENERGY_D 0x140A
  442. #define CCA_THRSH_DISABLE_ENERGY_D 0xFFEF
  443. struct acx_energy_detection {
  444. struct acx_header header;
  445. /* The RX Clear Channel Assessment threshold in the PHY */
  446. u16 rx_cca_threshold;
  447. u8 tx_energy_detection;
  448. u8 pad;
  449. } __attribute__ ((packed));
  450. #define BCN_RX_TIMEOUT_DEF_VALUE 10000
  451. #define BROADCAST_RX_TIMEOUT_DEF_VALUE 20000
  452. #define RX_BROADCAST_IN_PS_DEF_VALUE 1
  453. #define CONSECUTIVE_PS_POLL_FAILURE_DEF 4
  454. struct acx_beacon_broadcast {
  455. struct acx_header header;
  456. u16 beacon_rx_timeout;
  457. u16 broadcast_timeout;
  458. /* Enables receiving of broadcast packets in PS mode */
  459. u8 rx_broadcast_in_ps;
  460. /* Consecutive PS Poll failures before updating the host */
  461. u8 ps_poll_threshold;
  462. u8 pad[2];
  463. } __attribute__ ((packed));
  464. struct acx_event_mask {
  465. struct acx_header header;
  466. u32 event_mask;
  467. u32 high_event_mask; /* Unused */
  468. } __attribute__ ((packed));
  469. #define CFG_RX_FCS BIT(2)
  470. #define CFG_RX_ALL_GOOD BIT(3)
  471. #define CFG_UNI_FILTER_EN BIT(4)
  472. #define CFG_BSSID_FILTER_EN BIT(5)
  473. #define CFG_MC_FILTER_EN BIT(6)
  474. #define CFG_MC_ADDR0_EN BIT(7)
  475. #define CFG_MC_ADDR1_EN BIT(8)
  476. #define CFG_BC_REJECT_EN BIT(9)
  477. #define CFG_SSID_FILTER_EN BIT(10)
  478. #define CFG_RX_INT_FCS_ERROR BIT(11)
  479. #define CFG_RX_INT_ENCRYPTED BIT(12)
  480. #define CFG_RX_WR_RX_STATUS BIT(13)
  481. #define CFG_RX_FILTER_NULTI BIT(14)
  482. #define CFG_RX_RESERVE BIT(15)
  483. #define CFG_RX_TIMESTAMP_TSF BIT(16)
  484. #define CFG_RX_RSV_EN BIT(0)
  485. #define CFG_RX_RCTS_ACK BIT(1)
  486. #define CFG_RX_PRSP_EN BIT(2)
  487. #define CFG_RX_PREQ_EN BIT(3)
  488. #define CFG_RX_MGMT_EN BIT(4)
  489. #define CFG_RX_FCS_ERROR BIT(5)
  490. #define CFG_RX_DATA_EN BIT(6)
  491. #define CFG_RX_CTL_EN BIT(7)
  492. #define CFG_RX_CF_EN BIT(8)
  493. #define CFG_RX_BCN_EN BIT(9)
  494. #define CFG_RX_AUTH_EN BIT(10)
  495. #define CFG_RX_ASSOC_EN BIT(11)
  496. #define SCAN_PASSIVE BIT(0)
  497. #define SCAN_5GHZ_BAND BIT(1)
  498. #define SCAN_TRIGGERED BIT(2)
  499. #define SCAN_PRIORITY_HIGH BIT(3)
  500. /* When set, disable HW encryption */
  501. #define DF_ENCRYPTION_DISABLE 0x01
  502. #define DF_SNIFF_MODE_ENABLE 0x80
  503. struct acx_feature_config {
  504. struct acx_header header;
  505. u32 options;
  506. u32 data_flow_options;
  507. } __attribute__ ((packed));
  508. struct acx_current_tx_power {
  509. struct acx_header header;
  510. u8 current_tx_power;
  511. u8 padding[3];
  512. } __attribute__ ((packed));
  513. enum acx_wake_up_event {
  514. WAKE_UP_EVENT_BEACON_BITMAP = 0x01, /* Wake on every Beacon*/
  515. WAKE_UP_EVENT_DTIM_BITMAP = 0x02, /* Wake on every DTIM*/
  516. WAKE_UP_EVENT_N_DTIM_BITMAP = 0x04, /* Wake on every Nth DTIM */
  517. WAKE_UP_EVENT_N_BEACONS_BITMAP = 0x08, /* Wake on every Nth Beacon */
  518. WAKE_UP_EVENT_BITS_MASK = 0x0F
  519. };
  520. struct acx_wake_up_condition {
  521. struct acx_header header;
  522. u8 wake_up_event; /* Only one bit can be set */
  523. u8 listen_interval;
  524. u8 pad[2];
  525. } __attribute__ ((packed));
  526. struct acx_aid {
  527. struct acx_header header;
  528. /*
  529. * To be set when associated with an AP.
  530. */
  531. u16 aid;
  532. u8 pad[2];
  533. } __attribute__ ((packed));
  534. enum acx_preamble_type {
  535. ACX_PREAMBLE_LONG = 0,
  536. ACX_PREAMBLE_SHORT = 1
  537. };
  538. struct acx_preamble {
  539. struct acx_header header;
  540. /*
  541. * When set, the WiLink transmits the frames with a short preamble and
  542. * when cleared, the WiLink transmits the frames with a long preamble.
  543. */
  544. u8 preamble;
  545. u8 padding[3];
  546. } __attribute__ ((packed));
  547. enum acx_ctsprotect_type {
  548. CTSPROTECT_DISABLE = 0,
  549. CTSPROTECT_ENABLE = 1
  550. };
  551. struct acx_ctsprotect {
  552. struct acx_header header;
  553. u8 ctsprotect;
  554. u8 padding[3];
  555. } __attribute__ ((packed));
  556. struct acx_tx_statistics {
  557. u32 internal_desc_overflow;
  558. } __attribute__ ((packed));
  559. struct acx_rx_statistics {
  560. u32 out_of_mem;
  561. u32 hdr_overflow;
  562. u32 hw_stuck;
  563. u32 dropped;
  564. u32 fcs_err;
  565. u32 xfr_hint_trig;
  566. u32 path_reset;
  567. u32 reset_counter;
  568. } __attribute__ ((packed));
  569. struct acx_dma_statistics {
  570. u32 rx_requested;
  571. u32 rx_errors;
  572. u32 tx_requested;
  573. u32 tx_errors;
  574. } __attribute__ ((packed));
  575. struct acx_isr_statistics {
  576. /* host command complete */
  577. u32 cmd_cmplt;
  578. /* fiqisr() */
  579. u32 fiqs;
  580. /* (INT_STS_ND & INT_TRIG_RX_HEADER) */
  581. u32 rx_headers;
  582. /* (INT_STS_ND & INT_TRIG_RX_CMPLT) */
  583. u32 rx_completes;
  584. /* (INT_STS_ND & INT_TRIG_NO_RX_BUF) */
  585. u32 rx_mem_overflow;
  586. /* (INT_STS_ND & INT_TRIG_S_RX_RDY) */
  587. u32 rx_rdys;
  588. /* irqisr() */
  589. u32 irqs;
  590. /* (INT_STS_ND & INT_TRIG_TX_PROC) */
  591. u32 tx_procs;
  592. /* (INT_STS_ND & INT_TRIG_DECRYPT_DONE) */
  593. u32 decrypt_done;
  594. /* (INT_STS_ND & INT_TRIG_DMA0) */
  595. u32 dma0_done;
  596. /* (INT_STS_ND & INT_TRIG_DMA1) */
  597. u32 dma1_done;
  598. /* (INT_STS_ND & INT_TRIG_TX_EXC_CMPLT) */
  599. u32 tx_exch_complete;
  600. /* (INT_STS_ND & INT_TRIG_COMMAND) */
  601. u32 commands;
  602. /* (INT_STS_ND & INT_TRIG_RX_PROC) */
  603. u32 rx_procs;
  604. /* (INT_STS_ND & INT_TRIG_PM_802) */
  605. u32 hw_pm_mode_changes;
  606. /* (INT_STS_ND & INT_TRIG_ACKNOWLEDGE) */
  607. u32 host_acknowledges;
  608. /* (INT_STS_ND & INT_TRIG_PM_PCI) */
  609. u32 pci_pm;
  610. /* (INT_STS_ND & INT_TRIG_ACM_WAKEUP) */
  611. u32 wakeups;
  612. /* (INT_STS_ND & INT_TRIG_LOW_RSSI) */
  613. u32 low_rssi;
  614. } __attribute__ ((packed));
  615. struct acx_wep_statistics {
  616. /* WEP address keys configured */
  617. u32 addr_key_count;
  618. /* default keys configured */
  619. u32 default_key_count;
  620. u32 reserved;
  621. /* number of times that WEP key not found on lookup */
  622. u32 key_not_found;
  623. /* number of times that WEP key decryption failed */
  624. u32 decrypt_fail;
  625. /* WEP packets decrypted */
  626. u32 packets;
  627. /* WEP decrypt interrupts */
  628. u32 interrupt;
  629. } __attribute__ ((packed));
  630. #define ACX_MISSED_BEACONS_SPREAD 10
  631. struct acx_pwr_statistics {
  632. /* the amount of enters into power save mode (both PD & ELP) */
  633. u32 ps_enter;
  634. /* the amount of enters into ELP mode */
  635. u32 elp_enter;
  636. /* the amount of missing beacon interrupts to the host */
  637. u32 missing_bcns;
  638. /* the amount of wake on host-access times */
  639. u32 wake_on_host;
  640. /* the amount of wake on timer-expire */
  641. u32 wake_on_timer_exp;
  642. /* the number of packets that were transmitted with PS bit set */
  643. u32 tx_with_ps;
  644. /* the number of packets that were transmitted with PS bit clear */
  645. u32 tx_without_ps;
  646. /* the number of received beacons */
  647. u32 rcvd_beacons;
  648. /* the number of entering into PowerOn (power save off) */
  649. u32 power_save_off;
  650. /* the number of entries into power save mode */
  651. u16 enable_ps;
  652. /*
  653. * the number of exits from power save, not including failed PS
  654. * transitions
  655. */
  656. u16 disable_ps;
  657. /*
  658. * the number of times the TSF counter was adjusted because
  659. * of drift
  660. */
  661. u32 fix_tsf_ps;
  662. /* Gives statistics about the spread continuous missed beacons.
  663. * The 16 LSB are dedicated for the PS mode.
  664. * The 16 MSB are dedicated for the PS mode.
  665. * cont_miss_bcns_spread[0] - single missed beacon.
  666. * cont_miss_bcns_spread[1] - two continuous missed beacons.
  667. * cont_miss_bcns_spread[2] - three continuous missed beacons.
  668. * ...
  669. * cont_miss_bcns_spread[9] - ten and more continuous missed beacons.
  670. */
  671. u32 cont_miss_bcns_spread[ACX_MISSED_BEACONS_SPREAD];
  672. /* the number of beacons in awake mode */
  673. u32 rcvd_awake_beacons;
  674. } __attribute__ ((packed));
  675. struct acx_mic_statistics {
  676. u32 rx_pkts;
  677. u32 calc_failure;
  678. } __attribute__ ((packed));
  679. struct acx_aes_statistics {
  680. u32 encrypt_fail;
  681. u32 decrypt_fail;
  682. u32 encrypt_packets;
  683. u32 decrypt_packets;
  684. u32 encrypt_interrupt;
  685. u32 decrypt_interrupt;
  686. } __attribute__ ((packed));
  687. struct acx_event_statistics {
  688. u32 heart_beat;
  689. u32 calibration;
  690. u32 rx_mismatch;
  691. u32 rx_mem_empty;
  692. u32 rx_pool;
  693. u32 oom_late;
  694. u32 phy_transmit_error;
  695. u32 tx_stuck;
  696. } __attribute__ ((packed));
  697. struct acx_ps_statistics {
  698. u32 pspoll_timeouts;
  699. u32 upsd_timeouts;
  700. u32 upsd_max_sptime;
  701. u32 upsd_max_apturn;
  702. u32 pspoll_max_apturn;
  703. u32 pspoll_utilization;
  704. u32 upsd_utilization;
  705. } __attribute__ ((packed));
  706. struct acx_rxpipe_statistics {
  707. u32 rx_prep_beacon_drop;
  708. u32 descr_host_int_trig_rx_data;
  709. u32 beacon_buffer_thres_host_int_trig_rx_data;
  710. u32 missed_beacon_host_int_trig_rx_data;
  711. u32 tx_xfr_host_int_trig_rx_data;
  712. } __attribute__ ((packed));
  713. struct acx_statistics {
  714. struct acx_header header;
  715. struct acx_tx_statistics tx;
  716. struct acx_rx_statistics rx;
  717. struct acx_dma_statistics dma;
  718. struct acx_isr_statistics isr;
  719. struct acx_wep_statistics wep;
  720. struct acx_pwr_statistics pwr;
  721. struct acx_aes_statistics aes;
  722. struct acx_mic_statistics mic;
  723. struct acx_event_statistics event;
  724. struct acx_ps_statistics ps;
  725. struct acx_rxpipe_statistics rxpipe;
  726. } __attribute__ ((packed));
  727. #define ACX_MAX_RATE_CLASSES 8
  728. #define ACX_RATE_MASK_UNSPECIFIED 0
  729. #define ACX_RATE_MASK_ALL 0x1eff
  730. #define ACX_RATE_RETRY_LIMIT 10
  731. struct acx_rate_class {
  732. u32 enabled_rates;
  733. u8 short_retry_limit;
  734. u8 long_retry_limit;
  735. u8 aflags;
  736. u8 reserved;
  737. };
  738. struct acx_rate_policy {
  739. struct acx_header header;
  740. u32 rate_class_cnt;
  741. struct acx_rate_class rate_class[ACX_MAX_RATE_CLASSES];
  742. } __attribute__ ((packed));
  743. #define WL1271_ACX_AC_COUNT 4
  744. struct acx_ac_cfg {
  745. struct acx_header header;
  746. u8 ac;
  747. u8 cw_min;
  748. u16 cw_max;
  749. u8 aifsn;
  750. u8 reserved;
  751. u16 tx_op_limit;
  752. } __attribute__ ((packed));
  753. enum wl1271_acx_ac {
  754. WL1271_ACX_AC_BE = 0,
  755. WL1271_ACX_AC_BK = 1,
  756. WL1271_ACX_AC_VI = 2,
  757. WL1271_ACX_AC_VO = 3,
  758. WL1271_ACX_AC_CTS2SELF = 4,
  759. WL1271_ACX_AC_ANY_TID = 0x1F,
  760. WL1271_ACX_AC_INVALID = 0xFF,
  761. };
  762. enum wl1271_acx_ps_scheme {
  763. WL1271_ACX_PS_SCHEME_LEGACY = 0,
  764. WL1271_ACX_PS_SCHEME_UPSD_TRIGGER = 1,
  765. WL1271_ACX_PS_SCHEME_LEGACY_PSPOLL = 2,
  766. WL1271_ACX_PS_SCHEME_SAPSD = 3,
  767. };
  768. enum wl1271_acx_ack_policy {
  769. WL1271_ACX_ACK_POLICY_LEGACY = 0,
  770. WL1271_ACX_ACK_POLICY_NO_ACK = 1,
  771. WL1271_ACX_ACK_POLICY_BLOCK = 2,
  772. };
  773. #define WL1271_ACX_TID_COUNT 7
  774. struct acx_tid_config {
  775. struct acx_header header;
  776. u8 queue_id;
  777. u8 channel_type;
  778. u8 tsid;
  779. u8 ps_scheme;
  780. u8 ack_policy;
  781. u8 padding[3];
  782. u32 apsd_conf[2];
  783. } __attribute__ ((packed));
  784. struct acx_frag_threshold {
  785. struct acx_header header;
  786. u16 frag_threshold;
  787. u8 padding[2];
  788. } __attribute__ ((packed));
  789. #define WL1271_ACX_TX_COMPL_TIMEOUT 5
  790. #define WL1271_ACX_TX_COMPL_THRESHOLD 5
  791. struct acx_tx_config_options {
  792. struct acx_header header;
  793. u16 tx_compl_timeout; /* msec */
  794. u16 tx_compl_threshold; /* number of packets */
  795. } __attribute__ ((packed));
  796. #define ACX_RX_MEM_BLOCKS 64
  797. #define ACX_TX_MIN_MEM_BLOCKS 64
  798. #define ACX_TX_DESCRIPTORS 32
  799. #define ACX_NUM_SSID_PROFILES 1
  800. struct wl1271_acx_config_memory {
  801. struct acx_header header;
  802. u8 rx_mem_block_num;
  803. u8 tx_min_mem_block_num;
  804. u8 num_stations;
  805. u8 num_ssid_profiles;
  806. u32 total_tx_descriptors;
  807. } __attribute__ ((packed));
  808. struct wl1271_acx_mem_map {
  809. struct acx_header header;
  810. void *code_start;
  811. void *code_end;
  812. void *wep_defkey_start;
  813. void *wep_defkey_end;
  814. void *sta_table_start;
  815. void *sta_table_end;
  816. void *packet_template_start;
  817. void *packet_template_end;
  818. /* Address of the TX result interface (control block) */
  819. u32 tx_result;
  820. u32 tx_result_queue_start;
  821. void *queue_memory_start;
  822. void *queue_memory_end;
  823. u32 packet_memory_pool_start;
  824. u32 packet_memory_pool_end;
  825. void *debug_buffer1_start;
  826. void *debug_buffer1_end;
  827. void *debug_buffer2_start;
  828. void *debug_buffer2_end;
  829. /* Number of blocks FW allocated for TX packets */
  830. u32 num_tx_mem_blocks;
  831. /* Number of blocks FW allocated for RX packets */
  832. u32 num_rx_mem_blocks;
  833. /* the following 4 fields are valid in SLAVE mode only */
  834. u8 *tx_cbuf;
  835. u8 *rx_cbuf;
  836. void *rx_ctrl;
  837. void *tx_ctrl;
  838. } __attribute__ ((packed));
  839. enum wl1271_acx_rx_queue_type {
  840. RX_QUEUE_TYPE_RX_LOW_PRIORITY, /* All except the high priority */
  841. RX_QUEUE_TYPE_RX_HIGH_PRIORITY, /* Management and voice packets */
  842. RX_QUEUE_TYPE_NUM,
  843. RX_QUEUE_TYPE_MAX = USHORT_MAX
  844. };
  845. #define WL1271_RX_INTR_THRESHOLD_DEF 0 /* no pacing, send interrupt on
  846. * every event */
  847. #define WL1271_RX_INTR_THRESHOLD_MIN 0
  848. #define WL1271_RX_INTR_THRESHOLD_MAX 15
  849. #define WL1271_RX_INTR_TIMEOUT_DEF 5
  850. #define WL1271_RX_INTR_TIMEOUT_MIN 1
  851. #define WL1271_RX_INTR_TIMEOUT_MAX 100
  852. struct wl1271_acx_rx_config_opt {
  853. struct acx_header header;
  854. u16 mblk_threshold;
  855. u16 threshold;
  856. u16 timeout;
  857. u8 queue_type;
  858. u8 reserved;
  859. } __attribute__ ((packed));
  860. enum {
  861. ACX_WAKE_UP_CONDITIONS = 0x0002,
  862. ACX_MEM_CFG = 0x0003,
  863. ACX_SLOT = 0x0004,
  864. ACX_AC_CFG = 0x0007,
  865. ACX_MEM_MAP = 0x0008,
  866. ACX_AID = 0x000A,
  867. /* ACX_FW_REV is missing in the ref driver, but seems to work */
  868. ACX_FW_REV = 0x000D,
  869. ACX_MEDIUM_USAGE = 0x000F,
  870. ACX_RX_CFG = 0x0010,
  871. ACX_TX_QUEUE_CFG = 0x0011, /* FIXME: only used by wl1251 */
  872. ACX_STATISTICS = 0x0013, /* Debug API */
  873. ACX_PWR_CONSUMPTION_STATISTICS = 0x0014,
  874. ACX_FEATURE_CFG = 0x0015,
  875. ACX_TID_CFG = 0x001A,
  876. ACX_PS_RX_STREAMING = 0x001B,
  877. ACX_BEACON_FILTER_OPT = 0x001F,
  878. ACX_NOISE_HIST = 0x0021,
  879. ACX_HDK_VERSION = 0x0022, /* ??? */
  880. ACX_PD_THRESHOLD = 0x0023,
  881. ACX_TX_CONFIG_OPT = 0x0024,
  882. ACX_CCA_THRESHOLD = 0x0025,
  883. ACX_EVENT_MBOX_MASK = 0x0026,
  884. ACX_CONN_MONIT_PARAMS = 0x002D,
  885. ACX_CONS_TX_FAILURE = 0x002F,
  886. ACX_BCN_DTIM_OPTIONS = 0x0031,
  887. ACX_SG_ENABLE = 0x0032,
  888. ACX_SG_CFG = 0x0033,
  889. ACX_BEACON_FILTER_TABLE = 0x0038,
  890. ACX_ARP_IP_FILTER = 0x0039,
  891. ACX_ROAMING_STATISTICS_TBL = 0x003B,
  892. ACX_RATE_POLICY = 0x003D,
  893. ACX_CTS_PROTECTION = 0x003E,
  894. ACX_SLEEP_AUTH = 0x003F,
  895. ACX_PREAMBLE_TYPE = 0x0040,
  896. ACX_ERROR_CNT = 0x0041,
  897. ACX_IBSS_FILTER = 0x0044,
  898. ACX_SERVICE_PERIOD_TIMEOUT = 0x0045,
  899. ACX_TSF_INFO = 0x0046,
  900. ACX_CONFIG_PS_WMM = 0x0049,
  901. ACX_ENABLE_RX_DATA_FILTER = 0x004A,
  902. ACX_SET_RX_DATA_FILTER = 0x004B,
  903. ACX_GET_DATA_FILTER_STATISTICS = 0x004C,
  904. ACX_RX_CONFIG_OPT = 0x004E,
  905. ACX_FRAG_CFG = 0x004F,
  906. ACX_BET_ENABLE = 0x0050,
  907. ACX_RSSI_SNR_TRIGGER = 0x0051,
  908. ACX_RSSI_SNR_WEIGHTS = 0x0051,
  909. ACX_KEEP_ALIVE_MODE = 0x0052,
  910. ACX_SET_KEEP_ALIVE_CONFIG = 0x0054,
  911. ACX_BA_SESSION_RESPONDER_POLICY = 0x0055,
  912. ACX_BA_SESSION_INITIATOR_POLICY = 0x0056,
  913. ACX_PEER_HT_CAP = 0x0057,
  914. ACX_HT_BSS_OPERATION = 0x0058,
  915. ACX_COEX_ACTIVITY = 0x0059,
  916. ACX_SET_SMART_REFLEX_DEBUG = 0x005A,
  917. ACX_SET_SMART_REFLEX_STATE = 0x005B,
  918. ACX_SET_SMART_REFLEX_PARAMS = 0x005F,
  919. DOT11_RX_MSDU_LIFE_TIME = 0x1004,
  920. DOT11_CUR_TX_PWR = 0x100D,
  921. DOT11_RX_DOT11_MODE = 0x1012,
  922. DOT11_RTS_THRESHOLD = 0x1013,
  923. DOT11_GROUP_ADDRESS_TBL = 0x1014,
  924. MAX_DOT11_IE = DOT11_GROUP_ADDRESS_TBL,
  925. MAX_IE = 0xFFFF
  926. };
  927. int wl1271_acx_wake_up_conditions(struct wl1271 *wl, u8 wake_up_event,
  928. u8 listen_interval);
  929. int wl1271_acx_sleep_auth(struct wl1271 *wl, u8 sleep_auth);
  930. int wl1271_acx_fw_version(struct wl1271 *wl, char *buf, size_t len);
  931. int wl1271_acx_tx_power(struct wl1271 *wl, int power);
  932. int wl1271_acx_feature_cfg(struct wl1271 *wl);
  933. int wl1271_acx_mem_map(struct wl1271 *wl,
  934. struct acx_header *mem_map, size_t len);
  935. int wl1271_acx_rx_msdu_life_time(struct wl1271 *wl, u32 life_time);
  936. int wl1271_acx_rx_config(struct wl1271 *wl, u32 config, u32 filter);
  937. int wl1271_acx_pd_threshold(struct wl1271 *wl);
  938. int wl1271_acx_slot(struct wl1271 *wl, enum acx_slot_type slot_time);
  939. int wl1271_acx_group_address_tbl(struct wl1271 *wl, bool enable,
  940. void *mc_list, u32 mc_list_len);
  941. int wl1271_acx_service_period_timeout(struct wl1271 *wl);
  942. int wl1271_acx_rts_threshold(struct wl1271 *wl, u16 rts_threshold);
  943. int wl1271_acx_beacon_filter_opt(struct wl1271 *wl, bool enable_filter);
  944. int wl1271_acx_beacon_filter_table(struct wl1271 *wl);
  945. int wl1271_acx_conn_monit_params(struct wl1271 *wl);
  946. int wl1271_acx_sg_enable(struct wl1271 *wl);
  947. int wl1271_acx_sg_cfg(struct wl1271 *wl);
  948. int wl1271_acx_cca_threshold(struct wl1271 *wl);
  949. int wl1271_acx_bcn_dtim_options(struct wl1271 *wl);
  950. int wl1271_acx_aid(struct wl1271 *wl, u16 aid);
  951. int wl1271_acx_event_mbox_mask(struct wl1271 *wl, u32 event_mask);
  952. int wl1271_acx_set_preamble(struct wl1271 *wl, enum acx_preamble_type preamble);
  953. int wl1271_acx_cts_protect(struct wl1271 *wl,
  954. enum acx_ctsprotect_type ctsprotect);
  955. int wl1271_acx_statistics(struct wl1271 *wl, struct acx_statistics *stats);
  956. int wl1271_acx_rate_policies(struct wl1271 *wl, u32 enabled_rates);
  957. int wl1271_acx_ac_cfg(struct wl1271 *wl);
  958. int wl1271_acx_tid_cfg(struct wl1271 *wl);
  959. int wl1271_acx_frag_threshold(struct wl1271 *wl);
  960. int wl1271_acx_tx_config_options(struct wl1271 *wl);
  961. int wl1271_acx_mem_cfg(struct wl1271 *wl);
  962. int wl1271_acx_init_mem_config(struct wl1271 *wl);
  963. int wl1271_acx_init_rx_interrupt(struct wl1271 *wl);
  964. int wl1271_acx_smart_reflex(struct wl1271 *wl);
  965. #endif /* __WL1271_ACX_H__ */