acx.h 33 KB

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