wl1271_acx.h 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221
  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_DATA)
  60. /* Target's information element */
  61. struct acx_header {
  62. struct wl1271_cmd_header cmd;
  63. /* acx (or information element) header */
  64. u16 id;
  65. /* payload length (not including headers */
  66. u16 len;
  67. };
  68. struct acx_error_counter {
  69. struct acx_header header;
  70. /* The number of PLCP errors since the last time this */
  71. /* information element was interrogated. This field is */
  72. /* automatically cleared when it is interrogated.*/
  73. u32 PLCP_error;
  74. /* The number of FCS errors since the last time this */
  75. /* information element was interrogated. This field is */
  76. /* automatically cleared when it is interrogated.*/
  77. u32 FCS_error;
  78. /* The number of MPDUs without PLCP header errors received*/
  79. /* since the last time this information element was interrogated. */
  80. /* This field is automatically cleared when it is interrogated.*/
  81. u32 valid_frame;
  82. /* the number of missed sequence numbers in the squentially */
  83. /* values of frames seq numbers */
  84. u32 seq_num_miss;
  85. } __attribute__ ((packed));
  86. struct acx_revision {
  87. struct acx_header header;
  88. /*
  89. * The WiLink firmware version, an ASCII string x.x.x.x,
  90. * that uniquely identifies the current firmware.
  91. * The left most digit is incremented each time a
  92. * significant change is made to the firmware, such as
  93. * code redesign or new platform support.
  94. * The second digit is incremented when major enhancements
  95. * are added or major fixes are made.
  96. * The third digit is incremented for each GA release.
  97. * The fourth digit is incremented for each build.
  98. * The first two digits identify a firmware release version,
  99. * in other words, a unique set of features.
  100. * The first three digits identify a GA release.
  101. */
  102. char fw_version[20];
  103. /*
  104. * This 4 byte field specifies the WiLink hardware version.
  105. * bits 0 - 15: Reserved.
  106. * bits 16 - 23: Version ID - The WiLink version ID
  107. * (1 = first spin, 2 = second spin, and so on).
  108. * bits 24 - 31: Chip ID - The WiLink chip ID.
  109. */
  110. u32 hw_version;
  111. } __attribute__ ((packed));
  112. enum wl1271_psm_mode {
  113. /* Active mode */
  114. WL1271_PSM_CAM = 0,
  115. /* Power save mode */
  116. WL1271_PSM_PS = 1,
  117. /* Extreme low power */
  118. WL1271_PSM_ELP = 2,
  119. };
  120. struct acx_sleep_auth {
  121. struct acx_header header;
  122. /* The sleep level authorization of the device. */
  123. /* 0 - Always active*/
  124. /* 1 - Power down mode: light / fast sleep*/
  125. /* 2 - ELP mode: Deep / Max sleep*/
  126. u8 sleep_auth;
  127. u8 padding[3];
  128. } __attribute__ ((packed));
  129. enum {
  130. HOSTIF_PCI_MASTER_HOST_INDIRECT,
  131. HOSTIF_PCI_MASTER_HOST_DIRECT,
  132. HOSTIF_SLAVE,
  133. HOSTIF_PKT_RING,
  134. HOSTIF_DONTCARE = 0xFF
  135. };
  136. #define DEFAULT_UCAST_PRIORITY 0
  137. #define DEFAULT_RX_Q_PRIORITY 0
  138. #define DEFAULT_NUM_STATIONS 1
  139. #define DEFAULT_RXQ_PRIORITY 0 /* low 0 .. 15 high */
  140. #define DEFAULT_RXQ_TYPE 0x07 /* All frames, Data/Ctrl/Mgmt */
  141. #define TRACE_BUFFER_MAX_SIZE 256
  142. #define DP_RX_PACKET_RING_CHUNK_SIZE 1600
  143. #define DP_TX_PACKET_RING_CHUNK_SIZE 1600
  144. #define DP_RX_PACKET_RING_CHUNK_NUM 2
  145. #define DP_TX_PACKET_RING_CHUNK_NUM 2
  146. #define DP_TX_COMPLETE_TIME_OUT 20
  147. #define FW_TX_CMPLT_BLOCK_SIZE 16
  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 ADDRESS_GROUP_MAX (8)
  266. #define ADDRESS_GROUP_MAX_LEN (ETH_ALEN * 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. struct acx_beacon_filter_ie_table {
  349. struct acx_header header;
  350. u8 num_ie;
  351. u8 table[BEACON_FILTER_TABLE_MAX_SIZE];
  352. u8 pad[3];
  353. } __attribute__ ((packed));
  354. enum {
  355. SG_ENABLE = 0,
  356. SG_DISABLE,
  357. SG_SENSE_NO_ACTIVITY,
  358. SG_SENSE_ACTIVE
  359. };
  360. struct acx_bt_wlan_coex {
  361. struct acx_header header;
  362. /*
  363. * 0 -> PTA enabled
  364. * 1 -> PTA disabled
  365. * 2 -> sense no active mode, i.e.
  366. * an interrupt is sent upon
  367. * BT activity.
  368. * 3 -> PTA is switched on in response
  369. * to the interrupt sending.
  370. */
  371. u8 enable;
  372. u8 pad[3];
  373. } __attribute__ ((packed));
  374. #define PTA_ANTENNA_TYPE_DEF (0)
  375. #define PTA_BT_HP_MAXTIME_DEF (2000)
  376. #define PTA_WLAN_HP_MAX_TIME_DEF (5000)
  377. #define PTA_SENSE_DISABLE_TIMER_DEF (1350)
  378. #define PTA_PROTECTIVE_RX_TIME_DEF (1500)
  379. #define PTA_PROTECTIVE_TX_TIME_DEF (1500)
  380. #define PTA_TIMEOUT_NEXT_BT_LP_PACKET_DEF (3000)
  381. #define PTA_SIGNALING_TYPE_DEF (1)
  382. #define PTA_AFH_LEVERAGE_ON_DEF (0)
  383. #define PTA_NUMBER_QUIET_CYCLE_DEF (0)
  384. #define PTA_MAX_NUM_CTS_DEF (3)
  385. #define PTA_NUMBER_OF_WLAN_PACKETS_DEF (2)
  386. #define PTA_NUMBER_OF_BT_PACKETS_DEF (2)
  387. #define PTA_PROTECTIVE_RX_TIME_FAST_DEF (1500)
  388. #define PTA_PROTECTIVE_TX_TIME_FAST_DEF (3000)
  389. #define PTA_CYCLE_TIME_FAST_DEF (8700)
  390. #define PTA_RX_FOR_AVALANCHE_DEF (5)
  391. #define PTA_ELP_HP_DEF (0)
  392. #define PTA_ANTI_STARVE_PERIOD_DEF (500)
  393. #define PTA_ANTI_STARVE_NUM_CYCLE_DEF (4)
  394. #define PTA_ALLOW_PA_SD_DEF (1)
  395. #define PTA_TIME_BEFORE_BEACON_DEF (6300)
  396. #define PTA_HPDM_MAX_TIME_DEF (1600)
  397. #define PTA_TIME_OUT_NEXT_WLAN_DEF (2550)
  398. #define PTA_AUTO_MODE_NO_CTS_DEF (0)
  399. #define PTA_BT_HP_RESPECTED_DEF (3)
  400. #define PTA_WLAN_RX_MIN_RATE_DEF (24)
  401. #define PTA_ACK_MODE_DEF (1)
  402. struct acx_bt_wlan_coex_param {
  403. struct acx_header header;
  404. /*
  405. * The minimum rate of a received WLAN packet in the STA,
  406. * during protective mode, of which a new BT-HP request
  407. * during this Rx will always be respected and gain the antenna.
  408. */
  409. u32 min_rate;
  410. /* Max time the BT HP will be respected. */
  411. u16 bt_hp_max_time;
  412. /* Max time the WLAN HP will be respected. */
  413. u16 wlan_hp_max_time;
  414. /*
  415. * The time between the last BT activity
  416. * and the moment when the sense mode returns
  417. * to SENSE_INACTIVE.
  418. */
  419. u16 sense_disable_timer;
  420. /* Time before the next BT HP instance */
  421. u16 rx_time_bt_hp;
  422. u16 tx_time_bt_hp;
  423. /* range: 10-20000 default: 1500 */
  424. u16 rx_time_bt_hp_fast;
  425. u16 tx_time_bt_hp_fast;
  426. /* range: 2000-65535 default: 8700 */
  427. u16 wlan_cycle_fast;
  428. /* range: 0 - 15000 (Msec) default: 1000 */
  429. u16 bt_anti_starvation_period;
  430. /* range 400-10000(Usec) default: 3000 */
  431. u16 next_bt_lp_packet;
  432. /* Deafult: worst case for BT DH5 traffic */
  433. u16 wake_up_beacon;
  434. /* range: 0-50000(Usec) default: 1050 */
  435. u16 hp_dm_max_guard_time;
  436. /*
  437. * This is to prevent both BT & WLAN antenna
  438. * starvation.
  439. * Range: 100-50000(Usec) default:2550
  440. */
  441. u16 next_wlan_packet;
  442. /* 0 -> shared antenna */
  443. u8 antenna_type;
  444. /*
  445. * 0 -> TI legacy
  446. * 1 -> Palau
  447. */
  448. u8 signal_type;
  449. /*
  450. * BT AFH status
  451. * 0 -> no AFH
  452. * 1 -> from dedicated GPIO
  453. * 2 -> AFH on (from host)
  454. */
  455. u8 afh_leverage_on;
  456. /*
  457. * The number of cycles during which no
  458. * TX will be sent after 1 cycle of RX
  459. * transaction in protective mode
  460. */
  461. u8 quiet_cycle_num;
  462. /*
  463. * The maximum number of CTSs that will
  464. * be sent for receiving RX packet in
  465. * protective mode
  466. */
  467. u8 max_cts;
  468. /*
  469. * The number of WLAN packets
  470. * transferred in common mode before
  471. * switching to BT.
  472. */
  473. u8 wlan_packets_num;
  474. /*
  475. * The number of BT packets
  476. * transferred in common mode before
  477. * switching to WLAN.
  478. */
  479. u8 bt_packets_num;
  480. /* range: 1-255 default: 5 */
  481. u8 missed_rx_avalanche;
  482. /* range: 0-1 default: 1 */
  483. u8 wlan_elp_hp;
  484. /* range: 0 - 15 default: 4 */
  485. u8 bt_anti_starvation_cycles;
  486. u8 ack_mode_dual_ant;
  487. /*
  488. * Allow PA_SD assertion/de-assertion
  489. * during enabled BT activity.
  490. */
  491. u8 pa_sd_enable;
  492. /*
  493. * Enable/Disable PTA in auto mode:
  494. * Support Both Active & P.S modes
  495. */
  496. u8 pta_auto_mode_enable;
  497. /* range: 0 - 20 default: 1 */
  498. u8 bt_hp_respected_num;
  499. } __attribute__ ((packed));
  500. #define CCA_THRSH_ENABLE_ENERGY_D 0x140A
  501. #define CCA_THRSH_DISABLE_ENERGY_D 0xFFEF
  502. struct acx_energy_detection {
  503. struct acx_header header;
  504. /* The RX Clear Channel Assessment threshold in the PHY */
  505. u16 rx_cca_threshold;
  506. u8 tx_energy_detection;
  507. u8 pad;
  508. } __attribute__ ((packed));
  509. #define BCN_RX_TIMEOUT_DEF_VALUE 10000
  510. #define BROADCAST_RX_TIMEOUT_DEF_VALUE 20000
  511. #define RX_BROADCAST_IN_PS_DEF_VALUE 1
  512. #define CONSECUTIVE_PS_POLL_FAILURE_DEF 4
  513. struct acx_beacon_broadcast {
  514. struct acx_header header;
  515. u16 beacon_rx_timeout;
  516. u16 broadcast_timeout;
  517. /* Enables receiving of broadcast packets in PS mode */
  518. u8 rx_broadcast_in_ps;
  519. /* Consecutive PS Poll failures before updating the host */
  520. u8 ps_poll_threshold;
  521. u8 pad[2];
  522. } __attribute__ ((packed));
  523. struct acx_event_mask {
  524. struct acx_header header;
  525. u32 event_mask;
  526. u32 high_event_mask; /* Unused */
  527. } __attribute__ ((packed));
  528. #define CFG_RX_FCS BIT(2)
  529. #define CFG_RX_ALL_GOOD BIT(3)
  530. #define CFG_UNI_FILTER_EN BIT(4)
  531. #define CFG_BSSID_FILTER_EN BIT(5)
  532. #define CFG_MC_FILTER_EN BIT(6)
  533. #define CFG_MC_ADDR0_EN BIT(7)
  534. #define CFG_MC_ADDR1_EN BIT(8)
  535. #define CFG_BC_REJECT_EN BIT(9)
  536. #define CFG_SSID_FILTER_EN BIT(10)
  537. #define CFG_RX_INT_FCS_ERROR BIT(11)
  538. #define CFG_RX_INT_ENCRYPTED BIT(12)
  539. #define CFG_RX_WR_RX_STATUS BIT(13)
  540. #define CFG_RX_FILTER_NULTI BIT(14)
  541. #define CFG_RX_RESERVE BIT(15)
  542. #define CFG_RX_TIMESTAMP_TSF BIT(16)
  543. #define CFG_RX_RSV_EN BIT(0)
  544. #define CFG_RX_RCTS_ACK BIT(1)
  545. #define CFG_RX_PRSP_EN BIT(2)
  546. #define CFG_RX_PREQ_EN BIT(3)
  547. #define CFG_RX_MGMT_EN BIT(4)
  548. #define CFG_RX_FCS_ERROR BIT(5)
  549. #define CFG_RX_DATA_EN BIT(6)
  550. #define CFG_RX_CTL_EN BIT(7)
  551. #define CFG_RX_CF_EN BIT(8)
  552. #define CFG_RX_BCN_EN BIT(9)
  553. #define CFG_RX_AUTH_EN BIT(10)
  554. #define CFG_RX_ASSOC_EN BIT(11)
  555. #define SCAN_PASSIVE BIT(0)
  556. #define SCAN_5GHZ_BAND BIT(1)
  557. #define SCAN_TRIGGERED BIT(2)
  558. #define SCAN_PRIORITY_HIGH BIT(3)
  559. struct acx_feature_config {
  560. struct acx_header header;
  561. u32 options;
  562. u32 data_flow_options;
  563. } __attribute__ ((packed));
  564. struct acx_current_tx_power {
  565. struct acx_header header;
  566. u8 current_tx_power;
  567. u8 padding[3];
  568. } __attribute__ ((packed));
  569. enum acx_wake_up_event {
  570. WAKE_UP_EVENT_BEACON_BITMAP = 0x01, /* Wake on every Beacon*/
  571. WAKE_UP_EVENT_DTIM_BITMAP = 0x02, /* Wake on every DTIM*/
  572. WAKE_UP_EVENT_N_DTIM_BITMAP = 0x04, /* Wake on every Nth DTIM */
  573. WAKE_UP_EVENT_N_BEACONS_BITMAP = 0x08, /* Wake on every Nth Beacon */
  574. WAKE_UP_EVENT_BITS_MASK = 0x0F
  575. };
  576. struct acx_wake_up_condition {
  577. struct acx_header header;
  578. u8 wake_up_event; /* Only one bit can be set */
  579. u8 listen_interval;
  580. u8 pad[2];
  581. } __attribute__ ((packed));
  582. struct acx_aid {
  583. struct acx_header header;
  584. /*
  585. * To be set when associated with an AP.
  586. */
  587. u16 aid;
  588. u8 pad[2];
  589. } __attribute__ ((packed));
  590. enum acx_preamble_type {
  591. ACX_PREAMBLE_LONG = 0,
  592. ACX_PREAMBLE_SHORT = 1
  593. };
  594. struct acx_preamble {
  595. struct acx_header header;
  596. /*
  597. * When set, the WiLink transmits the frames with a short preamble and
  598. * when cleared, the WiLink transmits the frames with a long preamble.
  599. */
  600. u8 preamble;
  601. u8 padding[3];
  602. } __attribute__ ((packed));
  603. enum acx_ctsprotect_type {
  604. CTSPROTECT_DISABLE = 0,
  605. CTSPROTECT_ENABLE = 1
  606. };
  607. struct acx_ctsprotect {
  608. struct acx_header header;
  609. u8 ctsprotect;
  610. u8 padding[3];
  611. } __attribute__ ((packed));
  612. struct acx_tx_statistics {
  613. u32 internal_desc_overflow;
  614. } __attribute__ ((packed));
  615. struct acx_rx_statistics {
  616. u32 out_of_mem;
  617. u32 hdr_overflow;
  618. u32 hw_stuck;
  619. u32 dropped;
  620. u32 fcs_err;
  621. u32 xfr_hint_trig;
  622. u32 path_reset;
  623. u32 reset_counter;
  624. } __attribute__ ((packed));
  625. struct acx_dma_statistics {
  626. u32 rx_requested;
  627. u32 rx_errors;
  628. u32 tx_requested;
  629. u32 tx_errors;
  630. } __attribute__ ((packed));
  631. struct acx_isr_statistics {
  632. /* host command complete */
  633. u32 cmd_cmplt;
  634. /* fiqisr() */
  635. u32 fiqs;
  636. /* (INT_STS_ND & INT_TRIG_RX_HEADER) */
  637. u32 rx_headers;
  638. /* (INT_STS_ND & INT_TRIG_RX_CMPLT) */
  639. u32 rx_completes;
  640. /* (INT_STS_ND & INT_TRIG_NO_RX_BUF) */
  641. u32 rx_mem_overflow;
  642. /* (INT_STS_ND & INT_TRIG_S_RX_RDY) */
  643. u32 rx_rdys;
  644. /* irqisr() */
  645. u32 irqs;
  646. /* (INT_STS_ND & INT_TRIG_TX_PROC) */
  647. u32 tx_procs;
  648. /* (INT_STS_ND & INT_TRIG_DECRYPT_DONE) */
  649. u32 decrypt_done;
  650. /* (INT_STS_ND & INT_TRIG_DMA0) */
  651. u32 dma0_done;
  652. /* (INT_STS_ND & INT_TRIG_DMA1) */
  653. u32 dma1_done;
  654. /* (INT_STS_ND & INT_TRIG_TX_EXC_CMPLT) */
  655. u32 tx_exch_complete;
  656. /* (INT_STS_ND & INT_TRIG_COMMAND) */
  657. u32 commands;
  658. /* (INT_STS_ND & INT_TRIG_RX_PROC) */
  659. u32 rx_procs;
  660. /* (INT_STS_ND & INT_TRIG_PM_802) */
  661. u32 hw_pm_mode_changes;
  662. /* (INT_STS_ND & INT_TRIG_ACKNOWLEDGE) */
  663. u32 host_acknowledges;
  664. /* (INT_STS_ND & INT_TRIG_PM_PCI) */
  665. u32 pci_pm;
  666. /* (INT_STS_ND & INT_TRIG_ACM_WAKEUP) */
  667. u32 wakeups;
  668. /* (INT_STS_ND & INT_TRIG_LOW_RSSI) */
  669. u32 low_rssi;
  670. } __attribute__ ((packed));
  671. struct acx_wep_statistics {
  672. /* WEP address keys configured */
  673. u32 addr_key_count;
  674. /* default keys configured */
  675. u32 default_key_count;
  676. u32 reserved;
  677. /* number of times that WEP key not found on lookup */
  678. u32 key_not_found;
  679. /* number of times that WEP key decryption failed */
  680. u32 decrypt_fail;
  681. /* WEP packets decrypted */
  682. u32 packets;
  683. /* WEP decrypt interrupts */
  684. u32 interrupt;
  685. } __attribute__ ((packed));
  686. #define ACX_MISSED_BEACONS_SPREAD 10
  687. struct acx_pwr_statistics {
  688. /* the amount of enters into power save mode (both PD & ELP) */
  689. u32 ps_enter;
  690. /* the amount of enters into ELP mode */
  691. u32 elp_enter;
  692. /* the amount of missing beacon interrupts to the host */
  693. u32 missing_bcns;
  694. /* the amount of wake on host-access times */
  695. u32 wake_on_host;
  696. /* the amount of wake on timer-expire */
  697. u32 wake_on_timer_exp;
  698. /* the number of packets that were transmitted with PS bit set */
  699. u32 tx_with_ps;
  700. /* the number of packets that were transmitted with PS bit clear */
  701. u32 tx_without_ps;
  702. /* the number of received beacons */
  703. u32 rcvd_beacons;
  704. /* the number of entering into PowerOn (power save off) */
  705. u32 power_save_off;
  706. /* the number of entries into power save mode */
  707. u16 enable_ps;
  708. /*
  709. * the number of exits from power save, not including failed PS
  710. * transitions
  711. */
  712. u16 disable_ps;
  713. /*
  714. * the number of times the TSF counter was adjusted because
  715. * of drift
  716. */
  717. u32 fix_tsf_ps;
  718. /* Gives statistics about the spread continuous missed beacons.
  719. * The 16 LSB are dedicated for the PS mode.
  720. * The 16 MSB are dedicated for the PS mode.
  721. * cont_miss_bcns_spread[0] - single missed beacon.
  722. * cont_miss_bcns_spread[1] - two continuous missed beacons.
  723. * cont_miss_bcns_spread[2] - three continuous missed beacons.
  724. * ...
  725. * cont_miss_bcns_spread[9] - ten and more continuous missed beacons.
  726. */
  727. u32 cont_miss_bcns_spread[ACX_MISSED_BEACONS_SPREAD];
  728. /* the number of beacons in awake mode */
  729. u32 rcvd_awake_beacons;
  730. } __attribute__ ((packed));
  731. struct acx_mic_statistics {
  732. u32 rx_pkts;
  733. u32 calc_failure;
  734. } __attribute__ ((packed));
  735. struct acx_aes_statistics {
  736. u32 encrypt_fail;
  737. u32 decrypt_fail;
  738. u32 encrypt_packets;
  739. u32 decrypt_packets;
  740. u32 encrypt_interrupt;
  741. u32 decrypt_interrupt;
  742. } __attribute__ ((packed));
  743. struct acx_event_statistics {
  744. u32 heart_beat;
  745. u32 calibration;
  746. u32 rx_mismatch;
  747. u32 rx_mem_empty;
  748. u32 rx_pool;
  749. u32 oom_late;
  750. u32 phy_transmit_error;
  751. u32 tx_stuck;
  752. } __attribute__ ((packed));
  753. struct acx_ps_statistics {
  754. u32 pspoll_timeouts;
  755. u32 upsd_timeouts;
  756. u32 upsd_max_sptime;
  757. u32 upsd_max_apturn;
  758. u32 pspoll_max_apturn;
  759. u32 pspoll_utilization;
  760. u32 upsd_utilization;
  761. } __attribute__ ((packed));
  762. struct acx_rxpipe_statistics {
  763. u32 rx_prep_beacon_drop;
  764. u32 descr_host_int_trig_rx_data;
  765. u32 beacon_buffer_thres_host_int_trig_rx_data;
  766. u32 missed_beacon_host_int_trig_rx_data;
  767. u32 tx_xfr_host_int_trig_rx_data;
  768. } __attribute__ ((packed));
  769. struct acx_statistics {
  770. struct acx_header header;
  771. struct acx_tx_statistics tx;
  772. struct acx_rx_statistics rx;
  773. struct acx_dma_statistics dma;
  774. struct acx_isr_statistics isr;
  775. struct acx_wep_statistics wep;
  776. struct acx_pwr_statistics pwr;
  777. struct acx_aes_statistics aes;
  778. struct acx_mic_statistics mic;
  779. struct acx_event_statistics event;
  780. struct acx_ps_statistics ps;
  781. struct acx_rxpipe_statistics rxpipe;
  782. } __attribute__ ((packed));
  783. #define ACX_MAX_RATE_CLASSES 8
  784. #define ACX_RATE_MASK_UNSPECIFIED 0
  785. #define ACX_RATE_MASK_ALL 0x1eff
  786. #define ACX_RATE_RETRY_LIMIT 10
  787. struct acx_rate_class {
  788. u32 enabled_rates;
  789. u8 short_retry_limit;
  790. u8 long_retry_limit;
  791. u8 aflags;
  792. u8 reserved;
  793. };
  794. struct acx_rate_policy {
  795. struct acx_header header;
  796. u32 rate_class_cnt;
  797. struct acx_rate_class rate_class[ACX_MAX_RATE_CLASSES];
  798. } __attribute__ ((packed));
  799. #define WL1271_ACX_AC_COUNT 4
  800. struct acx_ac_cfg {
  801. struct acx_header header;
  802. u8 ac;
  803. u8 cw_min;
  804. u16 cw_max;
  805. u8 aifsn;
  806. u8 reserved;
  807. u16 tx_op_limit;
  808. } __attribute__ ((packed));
  809. enum wl1271_acx_ac {
  810. WL1271_ACX_AC_BE = 0,
  811. WL1271_ACX_AC_BK = 1,
  812. WL1271_ACX_AC_VI = 2,
  813. WL1271_ACX_AC_VO = 3,
  814. WL1271_ACX_AC_CTS2SELF = 4,
  815. WL1271_ACX_AC_ANY_TID = 0x1F,
  816. WL1271_ACX_AC_INVALID = 0xFF,
  817. };
  818. enum wl1271_acx_ps_scheme {
  819. WL1271_ACX_PS_SCHEME_LEGACY = 0,
  820. WL1271_ACX_PS_SCHEME_UPSD_TRIGGER = 1,
  821. WL1271_ACX_PS_SCHEME_LEGACY_PSPOLL = 2,
  822. WL1271_ACX_PS_SCHEME_SAPSD = 3,
  823. };
  824. enum wl1271_acx_ack_policy {
  825. WL1271_ACX_ACK_POLICY_LEGACY = 0,
  826. WL1271_ACX_ACK_POLICY_NO_ACK = 1,
  827. WL1271_ACX_ACK_POLICY_BLOCK = 2,
  828. };
  829. #define WL1271_ACX_TID_COUNT 7
  830. struct acx_tid_config {
  831. struct acx_header header;
  832. u8 queue_id;
  833. u8 channel_type;
  834. u8 tsid;
  835. u8 ps_scheme;
  836. u8 ack_policy;
  837. u8 padding[3];
  838. u32 apsd_conf[2];
  839. } __attribute__ ((packed));
  840. struct acx_frag_threshold {
  841. struct acx_header header;
  842. u16 frag_threshold;
  843. u8 padding[2];
  844. } __attribute__ ((packed));
  845. #define WL1271_ACX_TX_COMPL_TIMEOUT 5
  846. #define WL1271_ACX_TX_COMPL_THRESHOLD 5
  847. struct acx_tx_config_options {
  848. struct acx_header header;
  849. u16 tx_compl_timeout; /* msec */
  850. u16 tx_compl_threshold; /* number of packets */
  851. } __attribute__ ((packed));
  852. #define ACX_RX_MEM_BLOCKS 64
  853. #define ACX_TX_MIN_MEM_BLOCKS 64
  854. #define ACX_TX_DESCRIPTORS 32
  855. #define ACX_NUM_SSID_PROFILES 1
  856. struct wl1271_acx_config_memory {
  857. struct acx_header header;
  858. u8 rx_mem_block_num;
  859. u8 tx_min_mem_block_num;
  860. u8 num_stations;
  861. u8 num_ssid_profiles;
  862. u32 total_tx_descriptors;
  863. } __attribute__ ((packed));
  864. struct wl1271_acx_mem_map {
  865. struct acx_header header;
  866. void *code_start;
  867. void *code_end;
  868. void *wep_defkey_start;
  869. void *wep_defkey_end;
  870. void *sta_table_start;
  871. void *sta_table_end;
  872. void *packet_template_start;
  873. void *packet_template_end;
  874. /* Address of the TX result interface (control block) */
  875. u32 tx_result;
  876. u32 tx_result_queue_start;
  877. void *queue_memory_start;
  878. void *queue_memory_end;
  879. u32 packet_memory_pool_start;
  880. u32 packet_memory_pool_end;
  881. void *debug_buffer1_start;
  882. void *debug_buffer1_end;
  883. void *debug_buffer2_start;
  884. void *debug_buffer2_end;
  885. /* Number of blocks FW allocated for TX packets */
  886. u32 num_tx_mem_blocks;
  887. /* Number of blocks FW allocated for RX packets */
  888. u32 num_rx_mem_blocks;
  889. /* the following 4 fields are valid in SLAVE mode only */
  890. u8 *tx_cbuf;
  891. u8 *rx_cbuf;
  892. void *rx_ctrl;
  893. void *tx_ctrl;
  894. } __attribute__ ((packed));
  895. enum wl1271_acx_rx_queue_type {
  896. RX_QUEUE_TYPE_RX_LOW_PRIORITY, /* All except the high priority */
  897. RX_QUEUE_TYPE_RX_HIGH_PRIORITY, /* Management and voice packets */
  898. RX_QUEUE_TYPE_NUM,
  899. RX_QUEUE_TYPE_MAX = USHORT_MAX
  900. };
  901. #define WL1271_RX_INTR_THRESHOLD_DEF 0 /* no pacing, send interrupt on
  902. * every event */
  903. #define WL1271_RX_INTR_THRESHOLD_MIN 0
  904. #define WL1271_RX_INTR_THRESHOLD_MAX 15
  905. #define WL1271_RX_INTR_TIMEOUT_DEF 5
  906. #define WL1271_RX_INTR_TIMEOUT_MIN 1
  907. #define WL1271_RX_INTR_TIMEOUT_MAX 100
  908. struct wl1271_acx_rx_config_opt {
  909. struct acx_header header;
  910. u16 mblk_threshold;
  911. u16 threshold;
  912. u16 timeout;
  913. u8 queue_type;
  914. u8 reserved;
  915. } __attribute__ ((packed));
  916. enum {
  917. ACX_WAKE_UP_CONDITIONS = 0x0002,
  918. ACX_MEM_CFG = 0x0003,
  919. ACX_SLOT = 0x0004,
  920. ACX_AC_CFG = 0x0007,
  921. ACX_MEM_MAP = 0x0008,
  922. ACX_AID = 0x000A,
  923. /* ACX_FW_REV is missing in the ref driver, but seems to work */
  924. ACX_FW_REV = 0x000D,
  925. ACX_MEDIUM_USAGE = 0x000F,
  926. ACX_RX_CFG = 0x0010,
  927. ACX_TX_QUEUE_CFG = 0x0011, /* FIXME: only used by wl1251 */
  928. ACX_STATISTICS = 0x0013, /* Debug API */
  929. ACX_PWR_CONSUMPTION_STATISTICS = 0x0014,
  930. ACX_FEATURE_CFG = 0x0015,
  931. ACX_TID_CFG = 0x001A,
  932. ACX_PS_RX_STREAMING = 0x001B,
  933. ACX_BEACON_FILTER_OPT = 0x001F,
  934. ACX_NOISE_HIST = 0x0021,
  935. ACX_HDK_VERSION = 0x0022, /* ??? */
  936. ACX_PD_THRESHOLD = 0x0023,
  937. ACX_TX_CONFIG_OPT = 0x0024,
  938. ACX_CCA_THRESHOLD = 0x0025,
  939. ACX_EVENT_MBOX_MASK = 0x0026,
  940. ACX_CONN_MONIT_PARAMS = 0x002D,
  941. ACX_CONS_TX_FAILURE = 0x002F,
  942. ACX_BCN_DTIM_OPTIONS = 0x0031,
  943. ACX_SG_ENABLE = 0x0032,
  944. ACX_SG_CFG = 0x0033,
  945. ACX_BEACON_FILTER_TABLE = 0x0038,
  946. ACX_ARP_IP_FILTER = 0x0039,
  947. ACX_ROAMING_STATISTICS_TBL = 0x003B,
  948. ACX_RATE_POLICY = 0x003D,
  949. ACX_CTS_PROTECTION = 0x003E,
  950. ACX_SLEEP_AUTH = 0x003F,
  951. ACX_PREAMBLE_TYPE = 0x0040,
  952. ACX_ERROR_CNT = 0x0041,
  953. ACX_IBSS_FILTER = 0x0044,
  954. ACX_SERVICE_PERIOD_TIMEOUT = 0x0045,
  955. ACX_TSF_INFO = 0x0046,
  956. ACX_CONFIG_PS_WMM = 0x0049,
  957. ACX_ENABLE_RX_DATA_FILTER = 0x004A,
  958. ACX_SET_RX_DATA_FILTER = 0x004B,
  959. ACX_GET_DATA_FILTER_STATISTICS = 0x004C,
  960. ACX_RX_CONFIG_OPT = 0x004E,
  961. ACX_FRAG_CFG = 0x004F,
  962. ACX_BET_ENABLE = 0x0050,
  963. ACX_RSSI_SNR_TRIGGER = 0x0051,
  964. ACX_RSSI_SNR_WEIGHTS = 0x0051,
  965. ACX_KEEP_ALIVE_MODE = 0x0052,
  966. ACX_SET_KEEP_ALIVE_CONFIG = 0x0054,
  967. ACX_BA_SESSION_RESPONDER_POLICY = 0x0055,
  968. ACX_BA_SESSION_INITIATOR_POLICY = 0x0056,
  969. ACX_PEER_HT_CAP = 0x0057,
  970. ACX_HT_BSS_OPERATION = 0x0058,
  971. ACX_COEX_ACTIVITY = 0x0059,
  972. DOT11_RX_MSDU_LIFE_TIME = 0x1004,
  973. DOT11_CUR_TX_PWR = 0x100D,
  974. DOT11_RX_DOT11_MODE = 0x1012,
  975. DOT11_RTS_THRESHOLD = 0x1013,
  976. DOT11_GROUP_ADDRESS_TBL = 0x1014,
  977. MAX_DOT11_IE = DOT11_GROUP_ADDRESS_TBL,
  978. MAX_IE = 0xFFFF
  979. };
  980. int wl1271_acx_wake_up_conditions(struct wl1271 *wl, u8 wake_up_event,
  981. u8 listen_interval);
  982. int wl1271_acx_sleep_auth(struct wl1271 *wl, u8 sleep_auth);
  983. int wl1271_acx_fw_version(struct wl1271 *wl, char *buf, size_t len);
  984. int wl1271_acx_tx_power(struct wl1271 *wl, int power);
  985. int wl1271_acx_feature_cfg(struct wl1271 *wl);
  986. int wl1271_acx_mem_map(struct wl1271 *wl,
  987. struct acx_header *mem_map, size_t len);
  988. int wl1271_acx_rx_msdu_life_time(struct wl1271 *wl, u32 life_time);
  989. int wl1271_acx_rx_config(struct wl1271 *wl, u32 config, u32 filter);
  990. int wl1271_acx_pd_threshold(struct wl1271 *wl);
  991. int wl1271_acx_slot(struct wl1271 *wl, enum acx_slot_type slot_time);
  992. int wl1271_acx_group_address_tbl(struct wl1271 *wl);
  993. int wl1271_acx_service_period_timeout(struct wl1271 *wl);
  994. int wl1271_acx_rts_threshold(struct wl1271 *wl, u16 rts_threshold);
  995. int wl1271_acx_beacon_filter_opt(struct wl1271 *wl);
  996. int wl1271_acx_beacon_filter_table(struct wl1271 *wl);
  997. int wl1271_acx_sg_enable(struct wl1271 *wl);
  998. int wl1271_acx_sg_cfg(struct wl1271 *wl);
  999. int wl1271_acx_cca_threshold(struct wl1271 *wl);
  1000. int wl1271_acx_bcn_dtim_options(struct wl1271 *wl);
  1001. int wl1271_acx_aid(struct wl1271 *wl, u16 aid);
  1002. int wl1271_acx_event_mbox_mask(struct wl1271 *wl, u32 event_mask);
  1003. int wl1271_acx_set_preamble(struct wl1271 *wl, enum acx_preamble_type preamble);
  1004. int wl1271_acx_cts_protect(struct wl1271 *wl,
  1005. enum acx_ctsprotect_type ctsprotect);
  1006. int wl1271_acx_statistics(struct wl1271 *wl, struct acx_statistics *stats);
  1007. int wl1271_acx_rate_policies(struct wl1271 *wl);
  1008. int wl1271_acx_ac_cfg(struct wl1271 *wl);
  1009. int wl1271_acx_tid_cfg(struct wl1271 *wl);
  1010. int wl1271_acx_frag_threshold(struct wl1271 *wl);
  1011. int wl1271_acx_tx_config_options(struct wl1271 *wl);
  1012. int wl1271_acx_mem_cfg(struct wl1271 *wl);
  1013. int wl1271_acx_init_mem_config(struct wl1271 *wl);
  1014. int wl1271_acx_init_rx_interrupt(struct wl1271 *wl);
  1015. #endif /* __WL1271_ACX_H__ */