acx.h 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317
  1. /*
  2. * This file is part of wl1271
  3. *
  4. * Copyright (C) 1998-2009 Texas Instruments. All rights reserved.
  5. * Copyright (C) 2008-2010 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 __ACX_H__
  25. #define __ACX_H__
  26. #include "wl12xx.h"
  27. #include "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 message on MBOX #A */
  46. #define WL1271_ACX_INTR_TRACE_A BIT(7)
  47. /* Trace message 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_WATCHDOG | \
  58. WL1271_ACX_INTR_EVENT_A | \
  59. WL1271_ACX_INTR_EVENT_B | \
  60. WL1271_ACX_INTR_HW_AVAILABLE | \
  61. WL1271_ACX_INTR_DATA)
  62. /* Target's information element */
  63. struct acx_header {
  64. struct wl1271_cmd_header cmd;
  65. /* acx (or information element) header */
  66. __le16 id;
  67. /* payload length (not including headers */
  68. __le16 len;
  69. } __packed;
  70. struct acx_error_counter {
  71. struct acx_header header;
  72. /* The number of PLCP errors since the last time this */
  73. /* information element was interrogated. This field is */
  74. /* automatically cleared when it is interrogated.*/
  75. __le32 PLCP_error;
  76. /* The number of FCS errors since the last time this */
  77. /* information element was interrogated. This field is */
  78. /* automatically cleared when it is interrogated.*/
  79. __le32 FCS_error;
  80. /* The number of MPDUs without PLCP header errors received*/
  81. /* since the last time this information element was interrogated. */
  82. /* This field is automatically cleared when it is interrogated.*/
  83. __le32 valid_frame;
  84. /* the number of missed sequence numbers in the squentially */
  85. /* values of frames seq numbers */
  86. __le32 seq_num_miss;
  87. } __packed;
  88. enum wl12xx_role {
  89. WL1271_ROLE_STA = 0,
  90. WL1271_ROLE_IBSS,
  91. WL1271_ROLE_AP,
  92. WL1271_ROLE_DEVICE,
  93. WL1271_ROLE_P2P_CL,
  94. WL1271_ROLE_P2P_GO,
  95. WL12XX_INVALID_ROLE_TYPE = 0xff
  96. };
  97. enum wl1271_psm_mode {
  98. /* Active mode */
  99. WL1271_PSM_CAM = 0,
  100. /* Power save mode */
  101. WL1271_PSM_PS = 1,
  102. /* Extreme low power */
  103. WL1271_PSM_ELP = 2,
  104. };
  105. struct acx_sleep_auth {
  106. struct acx_header header;
  107. /* The sleep level authorization of the device. */
  108. /* 0 - Always active*/
  109. /* 1 - Power down mode: light / fast sleep*/
  110. /* 2 - ELP mode: Deep / Max sleep*/
  111. u8 sleep_auth;
  112. u8 padding[3];
  113. } __packed;
  114. enum {
  115. HOSTIF_PCI_MASTER_HOST_INDIRECT,
  116. HOSTIF_PCI_MASTER_HOST_DIRECT,
  117. HOSTIF_SLAVE,
  118. HOSTIF_PKT_RING,
  119. HOSTIF_DONTCARE = 0xFF
  120. };
  121. #define DEFAULT_UCAST_PRIORITY 0
  122. #define DEFAULT_RX_Q_PRIORITY 0
  123. #define DEFAULT_RXQ_PRIORITY 0 /* low 0 .. 15 high */
  124. #define DEFAULT_RXQ_TYPE 0x07 /* All frames, Data/Ctrl/Mgmt */
  125. #define TRACE_BUFFER_MAX_SIZE 256
  126. #define DP_RX_PACKET_RING_CHUNK_SIZE 1600
  127. #define DP_TX_PACKET_RING_CHUNK_SIZE 1600
  128. #define DP_RX_PACKET_RING_CHUNK_NUM 2
  129. #define DP_TX_PACKET_RING_CHUNK_NUM 2
  130. #define DP_TX_COMPLETE_TIME_OUT 20
  131. #define TX_MSDU_LIFETIME_MIN 0
  132. #define TX_MSDU_LIFETIME_MAX 3000
  133. #define TX_MSDU_LIFETIME_DEF 512
  134. #define RX_MSDU_LIFETIME_MIN 0
  135. #define RX_MSDU_LIFETIME_MAX 0xFFFFFFFF
  136. #define RX_MSDU_LIFETIME_DEF 512000
  137. struct acx_rx_msdu_lifetime {
  138. struct acx_header header;
  139. /*
  140. * The maximum amount of time, in TU, before the
  141. * firmware discards the MSDU.
  142. */
  143. __le32 lifetime;
  144. } __packed;
  145. struct acx_packet_detection {
  146. struct acx_header header;
  147. __le32 threshold;
  148. } __packed;
  149. enum acx_slot_type {
  150. SLOT_TIME_LONG = 0,
  151. SLOT_TIME_SHORT = 1,
  152. DEFAULT_SLOT_TIME = SLOT_TIME_SHORT,
  153. MAX_SLOT_TIMES = 0xFF
  154. };
  155. #define STATION_WONE_INDEX 0
  156. struct acx_slot {
  157. struct acx_header header;
  158. u8 role_id;
  159. u8 wone_index; /* Reserved */
  160. u8 slot_time;
  161. u8 reserved[5];
  162. } __packed;
  163. #define ACX_MC_ADDRESS_GROUP_MAX (8)
  164. #define ADDRESS_GROUP_MAX_LEN (ETH_ALEN * ACX_MC_ADDRESS_GROUP_MAX)
  165. struct acx_dot11_grp_addr_tbl {
  166. struct acx_header header;
  167. u8 role_id;
  168. u8 enabled;
  169. u8 num_groups;
  170. u8 pad[1];
  171. u8 mac_table[ADDRESS_GROUP_MAX_LEN];
  172. } __packed;
  173. struct acx_rx_timeout {
  174. struct acx_header header;
  175. u8 role_id;
  176. u8 reserved;
  177. __le16 ps_poll_timeout;
  178. __le16 upsd_timeout;
  179. u8 padding[2];
  180. } __packed;
  181. struct acx_rts_threshold {
  182. struct acx_header header;
  183. u8 role_id;
  184. u8 reserved;
  185. __le16 threshold;
  186. } __packed;
  187. struct acx_beacon_filter_option {
  188. struct acx_header header;
  189. u8 role_id;
  190. u8 enable;
  191. /*
  192. * The number of beacons without the unicast TIM
  193. * bit set that the firmware buffers before
  194. * signaling the host about ready frames.
  195. * When set to 0 and the filter is enabled, beacons
  196. * without the unicast TIM bit set are dropped.
  197. */
  198. u8 max_num_beacons;
  199. u8 pad[1];
  200. } __packed;
  201. /*
  202. * ACXBeaconFilterEntry (not 221)
  203. * Byte Offset Size (Bytes) Definition
  204. * =========== ============ ==========
  205. * 0 1 IE identifier
  206. * 1 1 Treatment bit mask
  207. *
  208. * ACXBeaconFilterEntry (221)
  209. * Byte Offset Size (Bytes) Definition
  210. * =========== ============ ==========
  211. * 0 1 IE identifier
  212. * 1 1 Treatment bit mask
  213. * 2 3 OUI
  214. * 5 1 Type
  215. * 6 2 Version
  216. *
  217. *
  218. * Treatment bit mask - The information element handling:
  219. * bit 0 - The information element is compared and transferred
  220. * in case of change.
  221. * bit 1 - The information element is transferred to the host
  222. * with each appearance or disappearance.
  223. * Note that both bits can be set at the same time.
  224. */
  225. #define BEACON_FILTER_TABLE_MAX_IE_NUM (32)
  226. #define BEACON_FILTER_TABLE_MAX_VENDOR_SPECIFIC_IE_NUM (6)
  227. #define BEACON_FILTER_TABLE_IE_ENTRY_SIZE (2)
  228. #define BEACON_FILTER_TABLE_EXTRA_VENDOR_SPECIFIC_IE_SIZE (6)
  229. #define BEACON_FILTER_TABLE_MAX_SIZE ((BEACON_FILTER_TABLE_MAX_IE_NUM * \
  230. BEACON_FILTER_TABLE_IE_ENTRY_SIZE) + \
  231. (BEACON_FILTER_TABLE_MAX_VENDOR_SPECIFIC_IE_NUM * \
  232. BEACON_FILTER_TABLE_EXTRA_VENDOR_SPECIFIC_IE_SIZE))
  233. struct acx_beacon_filter_ie_table {
  234. struct acx_header header;
  235. u8 role_id;
  236. u8 num_ie;
  237. u8 pad[2];
  238. u8 table[BEACON_FILTER_TABLE_MAX_SIZE];
  239. } __packed;
  240. struct acx_conn_monit_params {
  241. struct acx_header header;
  242. u8 role_id;
  243. u8 padding[3];
  244. __le32 synch_fail_thold; /* number of beacons missed */
  245. __le32 bss_lose_timeout; /* number of TU's from synch fail */
  246. } __packed;
  247. struct acx_bt_wlan_coex {
  248. struct acx_header header;
  249. u8 enable;
  250. u8 pad[3];
  251. } __packed;
  252. struct acx_bt_wlan_coex_param {
  253. struct acx_header header;
  254. __le32 params[CONF_SG_PARAMS_MAX];
  255. u8 param_idx;
  256. u8 padding[3];
  257. } __packed;
  258. struct acx_dco_itrim_params {
  259. struct acx_header header;
  260. u8 enable;
  261. u8 padding[3];
  262. __le32 timeout;
  263. } __packed;
  264. struct acx_energy_detection {
  265. struct acx_header header;
  266. /* The RX Clear Channel Assessment threshold in the PHY */
  267. __le16 rx_cca_threshold;
  268. u8 tx_energy_detection;
  269. u8 pad;
  270. } __packed;
  271. struct acx_beacon_broadcast {
  272. struct acx_header header;
  273. u8 role_id;
  274. /* Enables receiving of broadcast packets in PS mode */
  275. u8 rx_broadcast_in_ps;
  276. __le16 beacon_rx_timeout;
  277. __le16 broadcast_timeout;
  278. /* Consecutive PS Poll failures before updating the host */
  279. u8 ps_poll_threshold;
  280. u8 pad[1];
  281. } __packed;
  282. struct acx_event_mask {
  283. struct acx_header header;
  284. __le32 event_mask;
  285. __le32 high_event_mask; /* Unused */
  286. } __packed;
  287. #define SCAN_PASSIVE BIT(0)
  288. #define SCAN_5GHZ_BAND BIT(1)
  289. #define SCAN_TRIGGERED BIT(2)
  290. #define SCAN_PRIORITY_HIGH BIT(3)
  291. /* When set, disable HW encryption */
  292. #define DF_ENCRYPTION_DISABLE 0x01
  293. #define DF_SNIFF_MODE_ENABLE 0x80
  294. struct acx_feature_config {
  295. struct acx_header header;
  296. u8 role_id;
  297. u8 padding[3];
  298. __le32 options;
  299. __le32 data_flow_options;
  300. } __packed;
  301. struct acx_current_tx_power {
  302. struct acx_header header;
  303. u8 role_id;
  304. u8 current_tx_power;
  305. u8 padding[2];
  306. } __packed;
  307. struct acx_wake_up_condition {
  308. struct acx_header header;
  309. u8 role_id;
  310. u8 wake_up_event; /* Only one bit can be set */
  311. u8 listen_interval;
  312. u8 pad[1];
  313. } __packed;
  314. struct acx_aid {
  315. struct acx_header header;
  316. /*
  317. * To be set when associated with an AP.
  318. */
  319. u8 role_id;
  320. u8 reserved;
  321. __le16 aid;
  322. } __packed;
  323. enum acx_preamble_type {
  324. ACX_PREAMBLE_LONG = 0,
  325. ACX_PREAMBLE_SHORT = 1
  326. };
  327. struct acx_preamble {
  328. struct acx_header header;
  329. /*
  330. * When set, the WiLink transmits the frames with a short preamble and
  331. * when cleared, the WiLink transmits the frames with a long preamble.
  332. */
  333. u8 role_id;
  334. u8 preamble;
  335. u8 padding[2];
  336. } __packed;
  337. enum acx_ctsprotect_type {
  338. CTSPROTECT_DISABLE = 0,
  339. CTSPROTECT_ENABLE = 1
  340. };
  341. struct acx_ctsprotect {
  342. struct acx_header header;
  343. u8 role_id;
  344. u8 ctsprotect;
  345. u8 padding[2];
  346. } __packed;
  347. struct acx_tx_statistics {
  348. __le32 internal_desc_overflow;
  349. } __packed;
  350. struct acx_rx_statistics {
  351. __le32 out_of_mem;
  352. __le32 hdr_overflow;
  353. __le32 hw_stuck;
  354. __le32 dropped;
  355. __le32 fcs_err;
  356. __le32 xfr_hint_trig;
  357. __le32 path_reset;
  358. __le32 reset_counter;
  359. } __packed;
  360. struct acx_dma_statistics {
  361. __le32 rx_requested;
  362. __le32 rx_errors;
  363. __le32 tx_requested;
  364. __le32 tx_errors;
  365. } __packed;
  366. struct acx_isr_statistics {
  367. /* host command complete */
  368. __le32 cmd_cmplt;
  369. /* fiqisr() */
  370. __le32 fiqs;
  371. /* (INT_STS_ND & INT_TRIG_RX_HEADER) */
  372. __le32 rx_headers;
  373. /* (INT_STS_ND & INT_TRIG_RX_CMPLT) */
  374. __le32 rx_completes;
  375. /* (INT_STS_ND & INT_TRIG_NO_RX_BUF) */
  376. __le32 rx_mem_overflow;
  377. /* (INT_STS_ND & INT_TRIG_S_RX_RDY) */
  378. __le32 rx_rdys;
  379. /* irqisr() */
  380. __le32 irqs;
  381. /* (INT_STS_ND & INT_TRIG_TX_PROC) */
  382. __le32 tx_procs;
  383. /* (INT_STS_ND & INT_TRIG_DECRYPT_DONE) */
  384. __le32 decrypt_done;
  385. /* (INT_STS_ND & INT_TRIG_DMA0) */
  386. __le32 dma0_done;
  387. /* (INT_STS_ND & INT_TRIG_DMA1) */
  388. __le32 dma1_done;
  389. /* (INT_STS_ND & INT_TRIG_TX_EXC_CMPLT) */
  390. __le32 tx_exch_complete;
  391. /* (INT_STS_ND & INT_TRIG_COMMAND) */
  392. __le32 commands;
  393. /* (INT_STS_ND & INT_TRIG_RX_PROC) */
  394. __le32 rx_procs;
  395. /* (INT_STS_ND & INT_TRIG_PM_802) */
  396. __le32 hw_pm_mode_changes;
  397. /* (INT_STS_ND & INT_TRIG_ACKNOWLEDGE) */
  398. __le32 host_acknowledges;
  399. /* (INT_STS_ND & INT_TRIG_PM_PCI) */
  400. __le32 pci_pm;
  401. /* (INT_STS_ND & INT_TRIG_ACM_WAKEUP) */
  402. __le32 wakeups;
  403. /* (INT_STS_ND & INT_TRIG_LOW_RSSI) */
  404. __le32 low_rssi;
  405. } __packed;
  406. struct acx_wep_statistics {
  407. /* WEP address keys configured */
  408. __le32 addr_key_count;
  409. /* default keys configured */
  410. __le32 default_key_count;
  411. __le32 reserved;
  412. /* number of times that WEP key not found on lookup */
  413. __le32 key_not_found;
  414. /* number of times that WEP key decryption failed */
  415. __le32 decrypt_fail;
  416. /* WEP packets decrypted */
  417. __le32 packets;
  418. /* WEP decrypt interrupts */
  419. __le32 interrupt;
  420. } __packed;
  421. #define ACX_MISSED_BEACONS_SPREAD 10
  422. struct acx_pwr_statistics {
  423. /* the amount of enters into power save mode (both PD & ELP) */
  424. __le32 ps_enter;
  425. /* the amount of enters into ELP mode */
  426. __le32 elp_enter;
  427. /* the amount of missing beacon interrupts to the host */
  428. __le32 missing_bcns;
  429. /* the amount of wake on host-access times */
  430. __le32 wake_on_host;
  431. /* the amount of wake on timer-expire */
  432. __le32 wake_on_timer_exp;
  433. /* the number of packets that were transmitted with PS bit set */
  434. __le32 tx_with_ps;
  435. /* the number of packets that were transmitted with PS bit clear */
  436. __le32 tx_without_ps;
  437. /* the number of received beacons */
  438. __le32 rcvd_beacons;
  439. /* the number of entering into PowerOn (power save off) */
  440. __le32 power_save_off;
  441. /* the number of entries into power save mode */
  442. __le16 enable_ps;
  443. /*
  444. * the number of exits from power save, not including failed PS
  445. * transitions
  446. */
  447. __le16 disable_ps;
  448. /*
  449. * the number of times the TSF counter was adjusted because
  450. * of drift
  451. */
  452. __le32 fix_tsf_ps;
  453. /* Gives statistics about the spread continuous missed beacons.
  454. * The 16 LSB are dedicated for the PS mode.
  455. * The 16 MSB are dedicated for the PS mode.
  456. * cont_miss_bcns_spread[0] - single missed beacon.
  457. * cont_miss_bcns_spread[1] - two continuous missed beacons.
  458. * cont_miss_bcns_spread[2] - three continuous missed beacons.
  459. * ...
  460. * cont_miss_bcns_spread[9] - ten and more continuous missed beacons.
  461. */
  462. __le32 cont_miss_bcns_spread[ACX_MISSED_BEACONS_SPREAD];
  463. /* the number of beacons in awake mode */
  464. __le32 rcvd_awake_beacons;
  465. } __packed;
  466. struct acx_mic_statistics {
  467. __le32 rx_pkts;
  468. __le32 calc_failure;
  469. } __packed;
  470. struct acx_aes_statistics {
  471. __le32 encrypt_fail;
  472. __le32 decrypt_fail;
  473. __le32 encrypt_packets;
  474. __le32 decrypt_packets;
  475. __le32 encrypt_interrupt;
  476. __le32 decrypt_interrupt;
  477. } __packed;
  478. struct acx_event_statistics {
  479. __le32 heart_beat;
  480. __le32 calibration;
  481. __le32 rx_mismatch;
  482. __le32 rx_mem_empty;
  483. __le32 rx_pool;
  484. __le32 oom_late;
  485. __le32 phy_transmit_error;
  486. __le32 tx_stuck;
  487. } __packed;
  488. struct acx_ps_statistics {
  489. __le32 pspoll_timeouts;
  490. __le32 upsd_timeouts;
  491. __le32 upsd_max_sptime;
  492. __le32 upsd_max_apturn;
  493. __le32 pspoll_max_apturn;
  494. __le32 pspoll_utilization;
  495. __le32 upsd_utilization;
  496. } __packed;
  497. struct acx_rxpipe_statistics {
  498. __le32 rx_prep_beacon_drop;
  499. __le32 descr_host_int_trig_rx_data;
  500. __le32 beacon_buffer_thres_host_int_trig_rx_data;
  501. __le32 missed_beacon_host_int_trig_rx_data;
  502. __le32 tx_xfr_host_int_trig_rx_data;
  503. } __packed;
  504. struct acx_statistics {
  505. struct acx_header header;
  506. struct acx_tx_statistics tx;
  507. struct acx_rx_statistics rx;
  508. struct acx_dma_statistics dma;
  509. struct acx_isr_statistics isr;
  510. struct acx_wep_statistics wep;
  511. struct acx_pwr_statistics pwr;
  512. struct acx_aes_statistics aes;
  513. struct acx_mic_statistics mic;
  514. struct acx_event_statistics event;
  515. struct acx_ps_statistics ps;
  516. struct acx_rxpipe_statistics rxpipe;
  517. } __packed;
  518. struct acx_rate_class {
  519. __le32 enabled_rates;
  520. u8 short_retry_limit;
  521. u8 long_retry_limit;
  522. u8 aflags;
  523. u8 reserved;
  524. };
  525. struct acx_rate_policy {
  526. struct acx_header header;
  527. __le32 rate_policy_idx;
  528. struct acx_rate_class rate_policy;
  529. } __packed;
  530. struct acx_ac_cfg {
  531. struct acx_header header;
  532. u8 role_id;
  533. u8 ac;
  534. u8 aifsn;
  535. u8 cw_min;
  536. __le16 cw_max;
  537. __le16 tx_op_limit;
  538. } __packed;
  539. struct acx_tid_config {
  540. struct acx_header header;
  541. u8 role_id;
  542. u8 queue_id;
  543. u8 channel_type;
  544. u8 tsid;
  545. u8 ps_scheme;
  546. u8 ack_policy;
  547. u8 padding[2];
  548. __le32 apsd_conf[2];
  549. } __packed;
  550. struct acx_frag_threshold {
  551. struct acx_header header;
  552. __le16 frag_threshold;
  553. u8 padding[2];
  554. } __packed;
  555. struct acx_tx_config_options {
  556. struct acx_header header;
  557. __le16 tx_compl_timeout; /* msec */
  558. __le16 tx_compl_threshold; /* number of packets */
  559. } __packed;
  560. struct wl12xx_acx_config_memory {
  561. struct acx_header header;
  562. u8 rx_mem_block_num;
  563. u8 tx_min_mem_block_num;
  564. u8 num_stations;
  565. u8 num_ssid_profiles;
  566. __le32 total_tx_descriptors;
  567. u8 dyn_mem_enable;
  568. u8 tx_free_req;
  569. u8 rx_free_req;
  570. u8 tx_min;
  571. u8 fwlog_blocks;
  572. u8 padding[3];
  573. } __packed;
  574. struct wl1271_acx_mem_map {
  575. struct acx_header header;
  576. __le32 code_start;
  577. __le32 code_end;
  578. __le32 wep_defkey_start;
  579. __le32 wep_defkey_end;
  580. __le32 sta_table_start;
  581. __le32 sta_table_end;
  582. __le32 packet_template_start;
  583. __le32 packet_template_end;
  584. /* Address of the TX result interface (control block) */
  585. __le32 tx_result;
  586. __le32 tx_result_queue_start;
  587. __le32 queue_memory_start;
  588. __le32 queue_memory_end;
  589. __le32 packet_memory_pool_start;
  590. __le32 packet_memory_pool_end;
  591. __le32 debug_buffer1_start;
  592. __le32 debug_buffer1_end;
  593. __le32 debug_buffer2_start;
  594. __le32 debug_buffer2_end;
  595. /* Number of blocks FW allocated for TX packets */
  596. __le32 num_tx_mem_blocks;
  597. /* Number of blocks FW allocated for RX packets */
  598. __le32 num_rx_mem_blocks;
  599. /* the following 4 fields are valid in SLAVE mode only */
  600. u8 *tx_cbuf;
  601. u8 *rx_cbuf;
  602. __le32 rx_ctrl;
  603. __le32 tx_ctrl;
  604. } __packed;
  605. struct wl1271_acx_rx_config_opt {
  606. struct acx_header header;
  607. __le16 mblk_threshold;
  608. __le16 threshold;
  609. __le16 timeout;
  610. u8 queue_type;
  611. u8 reserved;
  612. } __packed;
  613. struct wl1271_acx_bet_enable {
  614. struct acx_header header;
  615. u8 role_id;
  616. u8 enable;
  617. u8 max_consecutive;
  618. u8 padding[1];
  619. } __packed;
  620. #define ACX_IPV4_VERSION 4
  621. #define ACX_IPV6_VERSION 6
  622. #define ACX_IPV4_ADDR_SIZE 4
  623. /* bitmap of enabled arp_filter features */
  624. #define ACX_ARP_FILTER_ARP_FILTERING BIT(0)
  625. #define ACX_ARP_FILTER_AUTO_ARP BIT(1)
  626. struct wl1271_acx_arp_filter {
  627. struct acx_header header;
  628. u8 role_id;
  629. u8 version; /* ACX_IPV4_VERSION, ACX_IPV6_VERSION */
  630. u8 enable; /* bitmap of enabled ARP filtering features */
  631. u8 padding[1];
  632. u8 address[16]; /* The configured device IP address - all ARP
  633. requests directed to this IP address will pass
  634. through. For IPv4, the first four bytes are
  635. used. */
  636. } __packed;
  637. struct wl1271_acx_pm_config {
  638. struct acx_header header;
  639. __le32 host_clk_settling_time;
  640. u8 host_fast_wakeup_support;
  641. u8 padding[3];
  642. } __packed;
  643. struct wl1271_acx_keep_alive_mode {
  644. struct acx_header header;
  645. u8 role_id;
  646. u8 enabled;
  647. u8 padding[2];
  648. } __packed;
  649. enum {
  650. ACX_KEEP_ALIVE_NO_TX = 0,
  651. ACX_KEEP_ALIVE_PERIOD_ONLY
  652. };
  653. enum {
  654. ACX_KEEP_ALIVE_TPL_INVALID = 0,
  655. ACX_KEEP_ALIVE_TPL_VALID
  656. };
  657. struct wl1271_acx_keep_alive_config {
  658. struct acx_header header;
  659. u8 role_id;
  660. u8 index;
  661. u8 tpl_validation;
  662. u8 trigger;
  663. __le32 period;
  664. } __packed;
  665. #define HOST_IF_CFG_RX_FIFO_ENABLE BIT(0)
  666. #define HOST_IF_CFG_TX_EXTRA_BLKS_SWAP BIT(1)
  667. #define HOST_IF_CFG_TX_PAD_TO_SDIO_BLK BIT(3)
  668. struct wl1271_acx_host_config_bitmap {
  669. struct acx_header header;
  670. __le32 host_cfg_bitmap;
  671. } __packed;
  672. enum {
  673. WL1271_ACX_TRIG_TYPE_LEVEL = 0,
  674. WL1271_ACX_TRIG_TYPE_EDGE,
  675. };
  676. enum {
  677. WL1271_ACX_TRIG_DIR_LOW = 0,
  678. WL1271_ACX_TRIG_DIR_HIGH,
  679. WL1271_ACX_TRIG_DIR_BIDIR,
  680. };
  681. enum {
  682. WL1271_ACX_TRIG_ENABLE = 1,
  683. WL1271_ACX_TRIG_DISABLE,
  684. };
  685. enum {
  686. WL1271_ACX_TRIG_METRIC_RSSI_BEACON = 0,
  687. WL1271_ACX_TRIG_METRIC_RSSI_DATA,
  688. WL1271_ACX_TRIG_METRIC_SNR_BEACON,
  689. WL1271_ACX_TRIG_METRIC_SNR_DATA,
  690. };
  691. enum {
  692. WL1271_ACX_TRIG_IDX_RSSI = 0,
  693. WL1271_ACX_TRIG_COUNT = 8,
  694. };
  695. struct wl1271_acx_rssi_snr_trigger {
  696. struct acx_header header;
  697. u8 role_id;
  698. u8 metric;
  699. u8 type;
  700. u8 dir;
  701. __le16 threshold;
  702. __le16 pacing; /* 0 - 60000 ms */
  703. u8 hysteresis;
  704. u8 index;
  705. u8 enable;
  706. u8 padding[1];
  707. };
  708. struct wl1271_acx_rssi_snr_avg_weights {
  709. struct acx_header header;
  710. u8 role_id;
  711. u8 padding[3];
  712. u8 rssi_beacon;
  713. u8 rssi_data;
  714. u8 snr_beacon;
  715. u8 snr_data;
  716. };
  717. /* special capability bit (not employed by the 802.11n spec) */
  718. #define WL12XX_HT_CAP_HT_OPERATION BIT(16)
  719. /*
  720. * ACX_PEER_HT_CAP
  721. * Configure HT capabilities - declare the capabilities of the peer
  722. * we are connected to.
  723. */
  724. struct wl1271_acx_ht_capabilities {
  725. struct acx_header header;
  726. /* bitmask of capability bits supported by the peer */
  727. __le32 ht_capabilites;
  728. /* Indicates to which link these capabilities apply. */
  729. u8 hlid;
  730. /*
  731. * This the maximum A-MPDU length supported by the AP. The FW may not
  732. * exceed this length when sending A-MPDUs
  733. */
  734. u8 ampdu_max_length;
  735. /* This is the minimal spacing required when sending A-MPDUs to the AP*/
  736. u8 ampdu_min_spacing;
  737. u8 padding;
  738. } __packed;
  739. /*
  740. * ACX_HT_BSS_OPERATION
  741. * Configure HT capabilities - AP rules for behavior in the BSS.
  742. */
  743. struct wl1271_acx_ht_information {
  744. struct acx_header header;
  745. u8 role_id;
  746. /* Values: 0 - RIFS not allowed, 1 - RIFS allowed */
  747. u8 rifs_mode;
  748. /* Values: 0 - 3 like in spec */
  749. u8 ht_protection;
  750. /* Values: 0 - GF protection not required, 1 - GF protection required */
  751. u8 gf_protection;
  752. /*Values: 0 - TX Burst limit not required, 1 - TX Burst Limit required*/
  753. u8 ht_tx_burst_limit;
  754. /*
  755. * Values: 0 - Dual CTS protection not required,
  756. * 1 - Dual CTS Protection required
  757. * Note: When this value is set to 1 FW will protect all TXOP with RTS
  758. * frame and will not use CTS-to-self regardless of the value of the
  759. * ACX_CTS_PROTECTION information element
  760. */
  761. u8 dual_cts_protection;
  762. u8 padding[2];
  763. } __packed;
  764. #define RX_BA_MAX_SESSIONS 2
  765. struct wl1271_acx_ba_initiator_policy {
  766. struct acx_header header;
  767. /* Specifies role Id, Range 0-7, 0xFF means ANY role. */
  768. u8 role_id;
  769. /*
  770. * Per TID setting for allowing TX BA. Set a bit to 1 to allow
  771. * TX BA sessions for the corresponding TID.
  772. */
  773. u8 tid_bitmap;
  774. /* Windows size in number of packets */
  775. u8 win_size;
  776. u8 padding1[1];
  777. /* As initiator inactivity timeout in time units(TU) of 1024us */
  778. u16 inactivity_timeout;
  779. u8 padding[2];
  780. } __packed;
  781. struct wl1271_acx_ba_receiver_setup {
  782. struct acx_header header;
  783. /* Specifies link id, range 0-31 */
  784. u8 hlid;
  785. u8 tid;
  786. u8 enable;
  787. /* Windows size in number of packets */
  788. u8 win_size;
  789. /* BA session starting sequence number. RANGE 0-FFF */
  790. u16 ssn;
  791. u8 padding[2];
  792. } __packed;
  793. struct wl1271_acx_fw_tsf_information {
  794. struct acx_header header;
  795. __le32 current_tsf_high;
  796. __le32 current_tsf_low;
  797. __le32 last_bttt_high;
  798. __le32 last_tbtt_low;
  799. u8 last_dtim_count;
  800. u8 padding[3];
  801. } __packed;
  802. struct wl1271_acx_ps_rx_streaming {
  803. struct acx_header header;
  804. u8 role_id;
  805. u8 tid;
  806. u8 enable;
  807. /* interval between triggers (10-100 msec) */
  808. u8 period;
  809. /* timeout before first trigger (0-200 msec) */
  810. u8 timeout;
  811. u8 padding[3];
  812. } __packed;
  813. struct wl1271_acx_ap_max_tx_retry {
  814. struct acx_header header;
  815. u8 role_id;
  816. u8 padding_1;
  817. /*
  818. * the number of frames transmission failures before
  819. * issuing the aging event.
  820. */
  821. __le16 max_tx_retry;
  822. } __packed;
  823. struct wl1271_acx_config_ps {
  824. struct acx_header header;
  825. u8 exit_retries;
  826. u8 enter_retries;
  827. u8 padding[2];
  828. __le32 null_data_rate;
  829. } __packed;
  830. struct wl1271_acx_inconnection_sta {
  831. struct acx_header header;
  832. u8 addr[ETH_ALEN];
  833. u8 padding1[2];
  834. } __packed;
  835. /*
  836. * ACX_FM_COEX_CFG
  837. * set the FM co-existence parameters.
  838. */
  839. struct wl1271_acx_fm_coex {
  840. struct acx_header header;
  841. /* enable(1) / disable(0) the FM Coex feature */
  842. u8 enable;
  843. /*
  844. * Swallow period used in COEX PLL swallowing mechanism.
  845. * 0xFF = use FW default
  846. */
  847. u8 swallow_period;
  848. /*
  849. * The N divider used in COEX PLL swallowing mechanism for Fref of
  850. * 38.4/19.2 Mhz. 0xFF = use FW default
  851. */
  852. u8 n_divider_fref_set_1;
  853. /*
  854. * The N divider used in COEX PLL swallowing mechanism for Fref of
  855. * 26/52 Mhz. 0xFF = use FW default
  856. */
  857. u8 n_divider_fref_set_2;
  858. /*
  859. * The M divider used in COEX PLL swallowing mechanism for Fref of
  860. * 38.4/19.2 Mhz. 0xFFFF = use FW default
  861. */
  862. __le16 m_divider_fref_set_1;
  863. /*
  864. * The M divider used in COEX PLL swallowing mechanism for Fref of
  865. * 26/52 Mhz. 0xFFFF = use FW default
  866. */
  867. __le16 m_divider_fref_set_2;
  868. /*
  869. * The time duration in uSec required for COEX PLL to stabilize.
  870. * 0xFFFFFFFF = use FW default
  871. */
  872. __le32 coex_pll_stabilization_time;
  873. /*
  874. * The time duration in uSec required for LDO to stabilize.
  875. * 0xFFFFFFFF = use FW default
  876. */
  877. __le16 ldo_stabilization_time;
  878. /*
  879. * The disturbed frequency band margin around the disturbed frequency
  880. * center (single sided).
  881. * For example, if 2 is configured, the following channels will be
  882. * considered disturbed channel:
  883. * 80 +- 0.1 MHz, 91 +- 0.1 MHz, 98 +- 0.1 MHz, 102 +- 0.1 MH
  884. * 0xFF = use FW default
  885. */
  886. u8 fm_disturbed_band_margin;
  887. /*
  888. * The swallow clock difference of the swallowing mechanism.
  889. * 0xFF = use FW default
  890. */
  891. u8 swallow_clk_diff;
  892. } __packed;
  893. #define ACX_RATE_MGMT_ALL_PARAMS 0xff
  894. struct wl12xx_acx_set_rate_mgmt_params {
  895. struct acx_header header;
  896. u8 index; /* 0xff to configure all params */
  897. u8 padding1;
  898. __le16 rate_retry_score;
  899. __le16 per_add;
  900. __le16 per_th1;
  901. __le16 per_th2;
  902. __le16 max_per;
  903. u8 inverse_curiosity_factor;
  904. u8 tx_fail_low_th;
  905. u8 tx_fail_high_th;
  906. u8 per_alpha_shift;
  907. u8 per_add_shift;
  908. u8 per_beta1_shift;
  909. u8 per_beta2_shift;
  910. u8 rate_check_up;
  911. u8 rate_check_down;
  912. u8 rate_retry_policy[ACX_RATE_MGMT_NUM_OF_RATES];
  913. u8 padding2[2];
  914. } __packed;
  915. struct wl12xx_acx_config_hangover {
  916. struct acx_header header;
  917. __le32 recover_time;
  918. u8 hangover_period;
  919. u8 dynamic_mode;
  920. u8 early_termination_mode;
  921. u8 max_period;
  922. u8 min_period;
  923. u8 increase_delta;
  924. u8 decrease_delta;
  925. u8 quiet_time;
  926. u8 increase_time;
  927. u8 window_size;
  928. u8 padding[2];
  929. } __packed;
  930. enum {
  931. ACX_WAKE_UP_CONDITIONS = 0x0002,
  932. ACX_MEM_CFG = 0x0003,
  933. ACX_SLOT = 0x0004,
  934. ACX_AC_CFG = 0x0007,
  935. ACX_MEM_MAP = 0x0008,
  936. ACX_AID = 0x000A,
  937. ACX_MEDIUM_USAGE = 0x000F,
  938. ACX_TX_QUEUE_CFG = 0x0011, /* FIXME: only used by wl1251 */
  939. ACX_STATISTICS = 0x0013, /* Debug API */
  940. ACX_PWR_CONSUMPTION_STATISTICS = 0x0014,
  941. ACX_FEATURE_CFG = 0x0015,
  942. ACX_TID_CFG = 0x001A,
  943. ACX_PS_RX_STREAMING = 0x001B,
  944. ACX_BEACON_FILTER_OPT = 0x001F,
  945. ACX_NOISE_HIST = 0x0021,
  946. ACX_HDK_VERSION = 0x0022, /* ??? */
  947. ACX_PD_THRESHOLD = 0x0023,
  948. ACX_TX_CONFIG_OPT = 0x0024,
  949. ACX_CCA_THRESHOLD = 0x0025,
  950. ACX_EVENT_MBOX_MASK = 0x0026,
  951. ACX_CONN_MONIT_PARAMS = 0x002D,
  952. ACX_BCN_DTIM_OPTIONS = 0x0031,
  953. ACX_SG_ENABLE = 0x0032,
  954. ACX_SG_CFG = 0x0033,
  955. ACX_FM_COEX_CFG = 0x0034,
  956. ACX_BEACON_FILTER_TABLE = 0x0038,
  957. ACX_ARP_IP_FILTER = 0x0039,
  958. ACX_ROAMING_STATISTICS_TBL = 0x003B,
  959. ACX_RATE_POLICY = 0x003D,
  960. ACX_CTS_PROTECTION = 0x003E,
  961. ACX_SLEEP_AUTH = 0x003F,
  962. ACX_PREAMBLE_TYPE = 0x0040,
  963. ACX_ERROR_CNT = 0x0041,
  964. ACX_IBSS_FILTER = 0x0044,
  965. ACX_SERVICE_PERIOD_TIMEOUT = 0x0045,
  966. ACX_TSF_INFO = 0x0046,
  967. ACX_CONFIG_PS_WMM = 0x0049,
  968. ACX_ENABLE_RX_DATA_FILTER = 0x004A,
  969. ACX_SET_RX_DATA_FILTER = 0x004B,
  970. ACX_GET_DATA_FILTER_STATISTICS = 0x004C,
  971. ACX_RX_CONFIG_OPT = 0x004E,
  972. ACX_FRAG_CFG = 0x004F,
  973. ACX_BET_ENABLE = 0x0050,
  974. ACX_RSSI_SNR_TRIGGER = 0x0051,
  975. ACX_RSSI_SNR_WEIGHTS = 0x0052,
  976. ACX_KEEP_ALIVE_MODE = 0x0053,
  977. ACX_SET_KEEP_ALIVE_CONFIG = 0x0054,
  978. ACX_BA_SESSION_INIT_POLICY = 0x0055,
  979. ACX_BA_SESSION_RX_SETUP = 0x0056,
  980. ACX_PEER_HT_CAP = 0x0057,
  981. ACX_HT_BSS_OPERATION = 0x0058,
  982. ACX_COEX_ACTIVITY = 0x0059,
  983. ACX_BURST_MODE = 0x005C,
  984. ACX_SET_RATE_MGMT_PARAMS = 0x005D,
  985. ACX_SET_RATE_ADAPT_PARAMS = 0x0060,
  986. ACX_SET_DCO_ITRIM_PARAMS = 0x0061,
  987. ACX_GEN_FW_CMD = 0x0070,
  988. ACX_HOST_IF_CFG_BITMAP = 0x0071,
  989. ACX_MAX_TX_FAILURE = 0x0072,
  990. ACX_UPDATE_INCONNECTION_STA_LIST = 0x0073,
  991. DOT11_RX_MSDU_LIFE_TIME = 0x1004,
  992. DOT11_CUR_TX_PWR = 0x100D,
  993. DOT11_RX_DOT11_MODE = 0x1012,
  994. DOT11_RTS_THRESHOLD = 0x1013,
  995. DOT11_GROUP_ADDRESS_TBL = 0x1014,
  996. ACX_PM_CONFIG = 0x1016,
  997. ACX_CONFIG_PS = 0x1017,
  998. ACX_CONFIG_HANGOVER = 0x1018,
  999. };
  1000. int wl1271_acx_wake_up_conditions(struct wl1271 *wl,
  1001. struct wl12xx_vif *wlvif);
  1002. int wl1271_acx_sleep_auth(struct wl1271 *wl, u8 sleep_auth);
  1003. int wl1271_acx_tx_power(struct wl1271 *wl, struct wl12xx_vif *wlvif,
  1004. int power);
  1005. int wl1271_acx_feature_cfg(struct wl1271 *wl, struct wl12xx_vif *wlvif);
  1006. int wl1271_acx_mem_map(struct wl1271 *wl,
  1007. struct acx_header *mem_map, size_t len);
  1008. int wl1271_acx_rx_msdu_life_time(struct wl1271 *wl);
  1009. int wl1271_acx_pd_threshold(struct wl1271 *wl);
  1010. int wl1271_acx_slot(struct wl1271 *wl, struct wl12xx_vif *wlvif,
  1011. enum acx_slot_type slot_time);
  1012. int wl1271_acx_group_address_tbl(struct wl1271 *wl, struct wl12xx_vif *wlvif,
  1013. bool enable, void *mc_list, u32 mc_list_len);
  1014. int wl1271_acx_service_period_timeout(struct wl1271 *wl,
  1015. struct wl12xx_vif *wlvif);
  1016. int wl1271_acx_rts_threshold(struct wl1271 *wl, struct wl12xx_vif *wlvif,
  1017. u32 rts_threshold);
  1018. int wl1271_acx_dco_itrim_params(struct wl1271 *wl);
  1019. int wl1271_acx_beacon_filter_opt(struct wl1271 *wl, struct wl12xx_vif *wlvif,
  1020. bool enable_filter);
  1021. int wl1271_acx_beacon_filter_table(struct wl1271 *wl,
  1022. struct wl12xx_vif *wlvif);
  1023. int wl1271_acx_conn_monit_params(struct wl1271 *wl, struct wl12xx_vif *wlvif,
  1024. bool enable);
  1025. int wl1271_acx_sg_enable(struct wl1271 *wl, bool enable);
  1026. int wl12xx_acx_sg_cfg(struct wl1271 *wl);
  1027. int wl1271_acx_cca_threshold(struct wl1271 *wl);
  1028. int wl1271_acx_bcn_dtim_options(struct wl1271 *wl, struct wl12xx_vif *wlvif);
  1029. int wl1271_acx_aid(struct wl1271 *wl, struct wl12xx_vif *wlvif, u16 aid);
  1030. int wl1271_acx_event_mbox_mask(struct wl1271 *wl, u32 event_mask);
  1031. int wl1271_acx_set_preamble(struct wl1271 *wl, struct wl12xx_vif *wlvif,
  1032. enum acx_preamble_type preamble);
  1033. int wl1271_acx_cts_protect(struct wl1271 *wl, struct wl12xx_vif *wlvif,
  1034. enum acx_ctsprotect_type ctsprotect);
  1035. int wl1271_acx_statistics(struct wl1271 *wl, struct acx_statistics *stats);
  1036. int wl1271_acx_sta_rate_policies(struct wl1271 *wl, struct wl12xx_vif *wlvif);
  1037. int wl1271_acx_ap_rate_policy(struct wl1271 *wl, struct conf_tx_rate_class *c,
  1038. u8 idx);
  1039. int wl1271_acx_ac_cfg(struct wl1271 *wl, struct wl12xx_vif *wlvif,
  1040. u8 ac, u8 cw_min, u16 cw_max, u8 aifsn, u16 txop);
  1041. int wl1271_acx_tid_cfg(struct wl1271 *wl, struct wl12xx_vif *wlvif,
  1042. u8 queue_id, u8 channel_type,
  1043. u8 tsid, u8 ps_scheme, u8 ack_policy,
  1044. u32 apsd_conf0, u32 apsd_conf1);
  1045. int wl1271_acx_frag_threshold(struct wl1271 *wl, u32 frag_threshold);
  1046. int wl1271_acx_tx_config_options(struct wl1271 *wl);
  1047. int wl12xx_acx_mem_cfg(struct wl1271 *wl);
  1048. int wl1271_acx_init_mem_config(struct wl1271 *wl);
  1049. int wl1271_acx_host_if_cfg_bitmap(struct wl1271 *wl, u32 host_cfg_bitmap);
  1050. int wl1271_acx_init_rx_interrupt(struct wl1271 *wl);
  1051. int wl1271_acx_smart_reflex(struct wl1271 *wl);
  1052. int wl1271_acx_bet_enable(struct wl1271 *wl, struct wl12xx_vif *wlvif,
  1053. bool enable);
  1054. int wl1271_acx_arp_ip_filter(struct wl1271 *wl, struct wl12xx_vif *wlvif,
  1055. u8 enable, __be32 address);
  1056. int wl1271_acx_pm_config(struct wl1271 *wl);
  1057. int wl1271_acx_keep_alive_mode(struct wl1271 *wl, struct wl12xx_vif *vif,
  1058. bool enable);
  1059. int wl1271_acx_keep_alive_config(struct wl1271 *wl, struct wl12xx_vif *wlvif,
  1060. u8 index, u8 tpl_valid);
  1061. int wl1271_acx_rssi_snr_trigger(struct wl1271 *wl, struct wl12xx_vif *wlvif,
  1062. bool enable, s16 thold, u8 hyst);
  1063. int wl1271_acx_rssi_snr_avg_weights(struct wl1271 *wl,
  1064. struct wl12xx_vif *wlvif);
  1065. int wl1271_acx_set_ht_capabilities(struct wl1271 *wl,
  1066. struct ieee80211_sta_ht_cap *ht_cap,
  1067. bool allow_ht_operation, u8 hlid);
  1068. int wl1271_acx_set_ht_information(struct wl1271 *wl,
  1069. struct wl12xx_vif *wlvif,
  1070. u16 ht_operation_mode);
  1071. int wl12xx_acx_set_ba_initiator_policy(struct wl1271 *wl,
  1072. struct wl12xx_vif *wlvif);
  1073. int wl12xx_acx_set_ba_receiver_session(struct wl1271 *wl, u8 tid_index,
  1074. u16 ssn, bool enable, u8 peer_hlid);
  1075. int wl1271_acx_tsf_info(struct wl1271 *wl, u64 *mactime);
  1076. int wl1271_acx_ps_rx_streaming(struct wl1271 *wl, struct wl12xx_vif *wlvif,
  1077. bool enable);
  1078. int wl1271_acx_ap_max_tx_retry(struct wl1271 *wl, struct wl12xx_vif *wlvif);
  1079. int wl12xx_acx_config_ps(struct wl1271 *wl, struct wl12xx_vif *wlvif);
  1080. int wl1271_acx_set_inconnection_sta(struct wl1271 *wl, u8 *addr);
  1081. int wl1271_acx_fm_coex(struct wl1271 *wl);
  1082. int wl12xx_acx_set_rate_mgmt_params(struct wl1271 *wl);
  1083. int wl12xx_acx_config_hangover(struct wl1271 *wl);
  1084. #endif /* __WL1271_ACX_H__ */