wl1271_acx.h 33 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220
  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 TX_MSDU_LIFETIME_MIN 0
  148. #define TX_MSDU_LIFETIME_MAX 3000
  149. #define TX_MSDU_LIFETIME_DEF 512
  150. #define RX_MSDU_LIFETIME_MIN 0
  151. #define RX_MSDU_LIFETIME_MAX 0xFFFFFFFF
  152. #define RX_MSDU_LIFETIME_DEF 512000
  153. struct acx_rx_msdu_lifetime {
  154. struct acx_header header;
  155. /*
  156. * The maximum amount of time, in TU, before the
  157. * firmware discards the MSDU.
  158. */
  159. u32 lifetime;
  160. } __attribute__ ((packed));
  161. /*
  162. * RX Config Options Table
  163. * Bit Definition
  164. * === ==========
  165. * 31:14 Reserved
  166. * 13 Copy RX Status - when set, write three receive status words
  167. * to top of rx'd MPDUs.
  168. * When cleared, do not write three status words (added rev 1.5)
  169. * 12 Reserved
  170. * 11 RX Complete upon FCS error - when set, give rx complete
  171. * interrupt for FCS errors, after the rx filtering, e.g. unicast
  172. * frames not to us with FCS error will not generate an interrupt.
  173. * 10 SSID Filter Enable - When set, the WiLink discards all beacon,
  174. * probe request, and probe response frames with an SSID that does
  175. * not match the SSID specified by the host in the START/JOIN
  176. * command.
  177. * When clear, the WiLink receives frames with any SSID.
  178. * 9 Broadcast Filter Enable - When set, the WiLink discards all
  179. * broadcast frames. When clear, the WiLink receives all received
  180. * broadcast frames.
  181. * 8:6 Reserved
  182. * 5 BSSID Filter Enable - When set, the WiLink discards any frames
  183. * with a BSSID that does not match the BSSID specified by the
  184. * host.
  185. * When clear, the WiLink receives frames from any BSSID.
  186. * 4 MAC Addr Filter - When set, the WiLink discards any frames
  187. * with a destination address that does not match the MAC address
  188. * of the adaptor.
  189. * When clear, the WiLink receives frames destined to any MAC
  190. * address.
  191. * 3 Promiscuous - When set, the WiLink receives all valid frames
  192. * (i.e., all frames that pass the FCS check).
  193. * When clear, only frames that pass the other filters specified
  194. * are received.
  195. * 2 FCS - When set, the WiLink includes the FCS with the received
  196. * frame.
  197. * When cleared, the FCS is discarded.
  198. * 1 PLCP header - When set, write all data from baseband to frame
  199. * buffer including PHY header.
  200. * 0 Reserved - Always equal to 0.
  201. *
  202. * RX Filter Options Table
  203. * Bit Definition
  204. * === ==========
  205. * 31:12 Reserved - Always equal to 0.
  206. * 11 Association - When set, the WiLink receives all association
  207. * related frames (association request/response, reassocation
  208. * request/response, and disassociation). When clear, these frames
  209. * are discarded.
  210. * 10 Auth/De auth - When set, the WiLink receives all authentication
  211. * and de-authentication frames. When clear, these frames are
  212. * discarded.
  213. * 9 Beacon - When set, the WiLink receives all beacon frames.
  214. * When clear, these frames are discarded.
  215. * 8 Contention Free - When set, the WiLink receives all contention
  216. * free frames.
  217. * When clear, these frames are discarded.
  218. * 7 Control - When set, the WiLink receives all control frames.
  219. * When clear, these frames are discarded.
  220. * 6 Data - When set, the WiLink receives all data frames.
  221. * When clear, these frames are discarded.
  222. * 5 FCS Error - When set, the WiLink receives frames that have FCS
  223. * errors.
  224. * When clear, these frames are discarded.
  225. * 4 Management - When set, the WiLink receives all management
  226. * frames.
  227. * When clear, these frames are discarded.
  228. * 3 Probe Request - When set, the WiLink receives all probe request
  229. * frames.
  230. * When clear, these frames are discarded.
  231. * 2 Probe Response - When set, the WiLink receives all probe
  232. * response frames.
  233. * When clear, these frames are discarded.
  234. * 1 RTS/CTS/ACK - When set, the WiLink receives all RTS, CTS and ACK
  235. * frames.
  236. * When clear, these frames are discarded.
  237. * 0 Rsvd Type/Sub Type - When set, the WiLink receives all frames
  238. * that have reserved frame types and sub types as defined by the
  239. * 802.11 specification.
  240. * When clear, these frames are discarded.
  241. */
  242. struct acx_rx_config {
  243. struct acx_header header;
  244. u32 config_options;
  245. u32 filter_options;
  246. } __attribute__ ((packed));
  247. struct acx_packet_detection {
  248. struct acx_header header;
  249. u32 threshold;
  250. } __attribute__ ((packed));
  251. enum acx_slot_type {
  252. SLOT_TIME_LONG = 0,
  253. SLOT_TIME_SHORT = 1,
  254. DEFAULT_SLOT_TIME = SLOT_TIME_SHORT,
  255. MAX_SLOT_TIMES = 0xFF
  256. };
  257. #define STATION_WONE_INDEX 0
  258. struct acx_slot {
  259. struct acx_header header;
  260. u8 wone_index; /* Reserved */
  261. u8 slot_time;
  262. u8 reserved[6];
  263. } __attribute__ ((packed));
  264. #define ACX_MC_ADDRESS_GROUP_MAX (8)
  265. #define ADDRESS_GROUP_MAX_LEN (ETH_ALEN * ACX_MC_ADDRESS_GROUP_MAX)
  266. struct acx_dot11_grp_addr_tbl {
  267. struct acx_header header;
  268. u8 enabled;
  269. u8 num_groups;
  270. u8 pad[2];
  271. u8 mac_table[ADDRESS_GROUP_MAX_LEN];
  272. } __attribute__ ((packed));
  273. #define RX_TIMEOUT_PS_POLL_MIN 0
  274. #define RX_TIMEOUT_PS_POLL_MAX (200000)
  275. #define RX_TIMEOUT_PS_POLL_DEF (15)
  276. #define RX_TIMEOUT_UPSD_MIN 0
  277. #define RX_TIMEOUT_UPSD_MAX (200000)
  278. #define RX_TIMEOUT_UPSD_DEF (15)
  279. struct acx_rx_timeout {
  280. struct acx_header header;
  281. /*
  282. * The longest time the STA will wait to receive
  283. * traffic from the AP after a PS-poll has been
  284. * transmitted.
  285. */
  286. u16 ps_poll_timeout;
  287. /*
  288. * The longest time the STA will wait to receive
  289. * traffic from the AP after a frame has been sent
  290. * from an UPSD enabled queue.
  291. */
  292. u16 upsd_timeout;
  293. } __attribute__ ((packed));
  294. #define RTS_THRESHOLD_MIN 0
  295. #define RTS_THRESHOLD_MAX 4096
  296. #define RTS_THRESHOLD_DEF 2347
  297. struct acx_rts_threshold {
  298. struct acx_header header;
  299. u16 threshold;
  300. u8 pad[2];
  301. } __attribute__ ((packed));
  302. struct acx_beacon_filter_option {
  303. struct acx_header header;
  304. u8 enable;
  305. /*
  306. * The number of beacons without the unicast TIM
  307. * bit set that the firmware buffers before
  308. * signaling the host about ready frames.
  309. * When set to 0 and the filter is enabled, beacons
  310. * without the unicast TIM bit set are dropped.
  311. */
  312. u8 max_num_beacons;
  313. u8 pad[2];
  314. } __attribute__ ((packed));
  315. /*
  316. * ACXBeaconFilterEntry (not 221)
  317. * Byte Offset Size (Bytes) Definition
  318. * =========== ============ ==========
  319. * 0 1 IE identifier
  320. * 1 1 Treatment bit mask
  321. *
  322. * ACXBeaconFilterEntry (221)
  323. * Byte Offset Size (Bytes) Definition
  324. * =========== ============ ==========
  325. * 0 1 IE identifier
  326. * 1 1 Treatment bit mask
  327. * 2 3 OUI
  328. * 5 1 Type
  329. * 6 2 Version
  330. *
  331. *
  332. * Treatment bit mask - The information element handling:
  333. * bit 0 - The information element is compared and transferred
  334. * in case of change.
  335. * bit 1 - The information element is transferred to the host
  336. * with each appearance or disappearance.
  337. * Note that both bits can be set at the same time.
  338. */
  339. #define BEACON_FILTER_TABLE_MAX_IE_NUM (32)
  340. #define BEACON_FILTER_TABLE_MAX_VENDOR_SPECIFIC_IE_NUM (6)
  341. #define BEACON_FILTER_TABLE_IE_ENTRY_SIZE (2)
  342. #define BEACON_FILTER_TABLE_EXTRA_VENDOR_SPECIFIC_IE_SIZE (6)
  343. #define BEACON_FILTER_TABLE_MAX_SIZE ((BEACON_FILTER_TABLE_MAX_IE_NUM * \
  344. BEACON_FILTER_TABLE_IE_ENTRY_SIZE) + \
  345. (BEACON_FILTER_TABLE_MAX_VENDOR_SPECIFIC_IE_NUM * \
  346. BEACON_FILTER_TABLE_EXTRA_VENDOR_SPECIFIC_IE_SIZE))
  347. struct acx_beacon_filter_ie_table {
  348. struct acx_header header;
  349. u8 num_ie;
  350. u8 table[BEACON_FILTER_TABLE_MAX_SIZE];
  351. u8 pad[3];
  352. } __attribute__ ((packed));
  353. enum {
  354. SG_ENABLE = 0,
  355. SG_DISABLE,
  356. SG_SENSE_NO_ACTIVITY,
  357. SG_SENSE_ACTIVE
  358. };
  359. struct acx_bt_wlan_coex {
  360. struct acx_header header;
  361. /*
  362. * 0 -> PTA enabled
  363. * 1 -> PTA disabled
  364. * 2 -> sense no active mode, i.e.
  365. * an interrupt is sent upon
  366. * BT activity.
  367. * 3 -> PTA is switched on in response
  368. * to the interrupt sending.
  369. */
  370. u8 enable;
  371. u8 pad[3];
  372. } __attribute__ ((packed));
  373. #define PTA_ANTENNA_TYPE_DEF (0)
  374. #define PTA_BT_HP_MAXTIME_DEF (2000)
  375. #define PTA_WLAN_HP_MAX_TIME_DEF (5000)
  376. #define PTA_SENSE_DISABLE_TIMER_DEF (1350)
  377. #define PTA_PROTECTIVE_RX_TIME_DEF (1500)
  378. #define PTA_PROTECTIVE_TX_TIME_DEF (1500)
  379. #define PTA_TIMEOUT_NEXT_BT_LP_PACKET_DEF (3000)
  380. #define PTA_SIGNALING_TYPE_DEF (1)
  381. #define PTA_AFH_LEVERAGE_ON_DEF (0)
  382. #define PTA_NUMBER_QUIET_CYCLE_DEF (0)
  383. #define PTA_MAX_NUM_CTS_DEF (3)
  384. #define PTA_NUMBER_OF_WLAN_PACKETS_DEF (2)
  385. #define PTA_NUMBER_OF_BT_PACKETS_DEF (2)
  386. #define PTA_PROTECTIVE_RX_TIME_FAST_DEF (1500)
  387. #define PTA_PROTECTIVE_TX_TIME_FAST_DEF (3000)
  388. #define PTA_CYCLE_TIME_FAST_DEF (8700)
  389. #define PTA_RX_FOR_AVALANCHE_DEF (5)
  390. #define PTA_ELP_HP_DEF (0)
  391. #define PTA_ANTI_STARVE_PERIOD_DEF (500)
  392. #define PTA_ANTI_STARVE_NUM_CYCLE_DEF (4)
  393. #define PTA_ALLOW_PA_SD_DEF (1)
  394. #define PTA_TIME_BEFORE_BEACON_DEF (6300)
  395. #define PTA_HPDM_MAX_TIME_DEF (1600)
  396. #define PTA_TIME_OUT_NEXT_WLAN_DEF (2550)
  397. #define PTA_AUTO_MODE_NO_CTS_DEF (0)
  398. #define PTA_BT_HP_RESPECTED_DEF (3)
  399. #define PTA_WLAN_RX_MIN_RATE_DEF (24)
  400. #define PTA_ACK_MODE_DEF (1)
  401. struct acx_bt_wlan_coex_param {
  402. struct acx_header header;
  403. /*
  404. * The minimum rate of a received WLAN packet in the STA,
  405. * during protective mode, of which a new BT-HP request
  406. * during this Rx will always be respected and gain the antenna.
  407. */
  408. u32 min_rate;
  409. /* Max time the BT HP will be respected. */
  410. u16 bt_hp_max_time;
  411. /* Max time the WLAN HP will be respected. */
  412. u16 wlan_hp_max_time;
  413. /*
  414. * The time between the last BT activity
  415. * and the moment when the sense mode returns
  416. * to SENSE_INACTIVE.
  417. */
  418. u16 sense_disable_timer;
  419. /* Time before the next BT HP instance */
  420. u16 rx_time_bt_hp;
  421. u16 tx_time_bt_hp;
  422. /* range: 10-20000 default: 1500 */
  423. u16 rx_time_bt_hp_fast;
  424. u16 tx_time_bt_hp_fast;
  425. /* range: 2000-65535 default: 8700 */
  426. u16 wlan_cycle_fast;
  427. /* range: 0 - 15000 (Msec) default: 1000 */
  428. u16 bt_anti_starvation_period;
  429. /* range 400-10000(Usec) default: 3000 */
  430. u16 next_bt_lp_packet;
  431. /* Deafult: worst case for BT DH5 traffic */
  432. u16 wake_up_beacon;
  433. /* range: 0-50000(Usec) default: 1050 */
  434. u16 hp_dm_max_guard_time;
  435. /*
  436. * This is to prevent both BT & WLAN antenna
  437. * starvation.
  438. * Range: 100-50000(Usec) default:2550
  439. */
  440. u16 next_wlan_packet;
  441. /* 0 -> shared antenna */
  442. u8 antenna_type;
  443. /*
  444. * 0 -> TI legacy
  445. * 1 -> Palau
  446. */
  447. u8 signal_type;
  448. /*
  449. * BT AFH status
  450. * 0 -> no AFH
  451. * 1 -> from dedicated GPIO
  452. * 2 -> AFH on (from host)
  453. */
  454. u8 afh_leverage_on;
  455. /*
  456. * The number of cycles during which no
  457. * TX will be sent after 1 cycle of RX
  458. * transaction in protective mode
  459. */
  460. u8 quiet_cycle_num;
  461. /*
  462. * The maximum number of CTSs that will
  463. * be sent for receiving RX packet in
  464. * protective mode
  465. */
  466. u8 max_cts;
  467. /*
  468. * The number of WLAN packets
  469. * transferred in common mode before
  470. * switching to BT.
  471. */
  472. u8 wlan_packets_num;
  473. /*
  474. * The number of BT packets
  475. * transferred in common mode before
  476. * switching to WLAN.
  477. */
  478. u8 bt_packets_num;
  479. /* range: 1-255 default: 5 */
  480. u8 missed_rx_avalanche;
  481. /* range: 0-1 default: 1 */
  482. u8 wlan_elp_hp;
  483. /* range: 0 - 15 default: 4 */
  484. u8 bt_anti_starvation_cycles;
  485. u8 ack_mode_dual_ant;
  486. /*
  487. * Allow PA_SD assertion/de-assertion
  488. * during enabled BT activity.
  489. */
  490. u8 pa_sd_enable;
  491. /*
  492. * Enable/Disable PTA in auto mode:
  493. * Support Both Active & P.S modes
  494. */
  495. u8 pta_auto_mode_enable;
  496. /* range: 0 - 20 default: 1 */
  497. u8 bt_hp_respected_num;
  498. } __attribute__ ((packed));
  499. #define CCA_THRSH_ENABLE_ENERGY_D 0x140A
  500. #define CCA_THRSH_DISABLE_ENERGY_D 0xFFEF
  501. struct acx_energy_detection {
  502. struct acx_header header;
  503. /* The RX Clear Channel Assessment threshold in the PHY */
  504. u16 rx_cca_threshold;
  505. u8 tx_energy_detection;
  506. u8 pad;
  507. } __attribute__ ((packed));
  508. #define BCN_RX_TIMEOUT_DEF_VALUE 10000
  509. #define BROADCAST_RX_TIMEOUT_DEF_VALUE 20000
  510. #define RX_BROADCAST_IN_PS_DEF_VALUE 1
  511. #define CONSECUTIVE_PS_POLL_FAILURE_DEF 4
  512. struct acx_beacon_broadcast {
  513. struct acx_header header;
  514. u16 beacon_rx_timeout;
  515. u16 broadcast_timeout;
  516. /* Enables receiving of broadcast packets in PS mode */
  517. u8 rx_broadcast_in_ps;
  518. /* Consecutive PS Poll failures before updating the host */
  519. u8 ps_poll_threshold;
  520. u8 pad[2];
  521. } __attribute__ ((packed));
  522. struct acx_event_mask {
  523. struct acx_header header;
  524. u32 event_mask;
  525. u32 high_event_mask; /* Unused */
  526. } __attribute__ ((packed));
  527. #define CFG_RX_FCS BIT(2)
  528. #define CFG_RX_ALL_GOOD BIT(3)
  529. #define CFG_UNI_FILTER_EN BIT(4)
  530. #define CFG_BSSID_FILTER_EN BIT(5)
  531. #define CFG_MC_FILTER_EN BIT(6)
  532. #define CFG_MC_ADDR0_EN BIT(7)
  533. #define CFG_MC_ADDR1_EN BIT(8)
  534. #define CFG_BC_REJECT_EN BIT(9)
  535. #define CFG_SSID_FILTER_EN BIT(10)
  536. #define CFG_RX_INT_FCS_ERROR BIT(11)
  537. #define CFG_RX_INT_ENCRYPTED BIT(12)
  538. #define CFG_RX_WR_RX_STATUS BIT(13)
  539. #define CFG_RX_FILTER_NULTI BIT(14)
  540. #define CFG_RX_RESERVE BIT(15)
  541. #define CFG_RX_TIMESTAMP_TSF BIT(16)
  542. #define CFG_RX_RSV_EN BIT(0)
  543. #define CFG_RX_RCTS_ACK BIT(1)
  544. #define CFG_RX_PRSP_EN BIT(2)
  545. #define CFG_RX_PREQ_EN BIT(3)
  546. #define CFG_RX_MGMT_EN BIT(4)
  547. #define CFG_RX_FCS_ERROR BIT(5)
  548. #define CFG_RX_DATA_EN BIT(6)
  549. #define CFG_RX_CTL_EN BIT(7)
  550. #define CFG_RX_CF_EN BIT(8)
  551. #define CFG_RX_BCN_EN BIT(9)
  552. #define CFG_RX_AUTH_EN BIT(10)
  553. #define CFG_RX_ASSOC_EN BIT(11)
  554. #define SCAN_PASSIVE BIT(0)
  555. #define SCAN_5GHZ_BAND BIT(1)
  556. #define SCAN_TRIGGERED BIT(2)
  557. #define SCAN_PRIORITY_HIGH BIT(3)
  558. struct acx_feature_config {
  559. struct acx_header header;
  560. u32 options;
  561. u32 data_flow_options;
  562. } __attribute__ ((packed));
  563. struct acx_current_tx_power {
  564. struct acx_header header;
  565. u8 current_tx_power;
  566. u8 padding[3];
  567. } __attribute__ ((packed));
  568. enum acx_wake_up_event {
  569. WAKE_UP_EVENT_BEACON_BITMAP = 0x01, /* Wake on every Beacon*/
  570. WAKE_UP_EVENT_DTIM_BITMAP = 0x02, /* Wake on every DTIM*/
  571. WAKE_UP_EVENT_N_DTIM_BITMAP = 0x04, /* Wake on every Nth DTIM */
  572. WAKE_UP_EVENT_N_BEACONS_BITMAP = 0x08, /* Wake on every Nth Beacon */
  573. WAKE_UP_EVENT_BITS_MASK = 0x0F
  574. };
  575. struct acx_wake_up_condition {
  576. struct acx_header header;
  577. u8 wake_up_event; /* Only one bit can be set */
  578. u8 listen_interval;
  579. u8 pad[2];
  580. } __attribute__ ((packed));
  581. struct acx_aid {
  582. struct acx_header header;
  583. /*
  584. * To be set when associated with an AP.
  585. */
  586. u16 aid;
  587. u8 pad[2];
  588. } __attribute__ ((packed));
  589. enum acx_preamble_type {
  590. ACX_PREAMBLE_LONG = 0,
  591. ACX_PREAMBLE_SHORT = 1
  592. };
  593. struct acx_preamble {
  594. struct acx_header header;
  595. /*
  596. * When set, the WiLink transmits the frames with a short preamble and
  597. * when cleared, the WiLink transmits the frames with a long preamble.
  598. */
  599. u8 preamble;
  600. u8 padding[3];
  601. } __attribute__ ((packed));
  602. enum acx_ctsprotect_type {
  603. CTSPROTECT_DISABLE = 0,
  604. CTSPROTECT_ENABLE = 1
  605. };
  606. struct acx_ctsprotect {
  607. struct acx_header header;
  608. u8 ctsprotect;
  609. u8 padding[3];
  610. } __attribute__ ((packed));
  611. struct acx_tx_statistics {
  612. u32 internal_desc_overflow;
  613. } __attribute__ ((packed));
  614. struct acx_rx_statistics {
  615. u32 out_of_mem;
  616. u32 hdr_overflow;
  617. u32 hw_stuck;
  618. u32 dropped;
  619. u32 fcs_err;
  620. u32 xfr_hint_trig;
  621. u32 path_reset;
  622. u32 reset_counter;
  623. } __attribute__ ((packed));
  624. struct acx_dma_statistics {
  625. u32 rx_requested;
  626. u32 rx_errors;
  627. u32 tx_requested;
  628. u32 tx_errors;
  629. } __attribute__ ((packed));
  630. struct acx_isr_statistics {
  631. /* host command complete */
  632. u32 cmd_cmplt;
  633. /* fiqisr() */
  634. u32 fiqs;
  635. /* (INT_STS_ND & INT_TRIG_RX_HEADER) */
  636. u32 rx_headers;
  637. /* (INT_STS_ND & INT_TRIG_RX_CMPLT) */
  638. u32 rx_completes;
  639. /* (INT_STS_ND & INT_TRIG_NO_RX_BUF) */
  640. u32 rx_mem_overflow;
  641. /* (INT_STS_ND & INT_TRIG_S_RX_RDY) */
  642. u32 rx_rdys;
  643. /* irqisr() */
  644. u32 irqs;
  645. /* (INT_STS_ND & INT_TRIG_TX_PROC) */
  646. u32 tx_procs;
  647. /* (INT_STS_ND & INT_TRIG_DECRYPT_DONE) */
  648. u32 decrypt_done;
  649. /* (INT_STS_ND & INT_TRIG_DMA0) */
  650. u32 dma0_done;
  651. /* (INT_STS_ND & INT_TRIG_DMA1) */
  652. u32 dma1_done;
  653. /* (INT_STS_ND & INT_TRIG_TX_EXC_CMPLT) */
  654. u32 tx_exch_complete;
  655. /* (INT_STS_ND & INT_TRIG_COMMAND) */
  656. u32 commands;
  657. /* (INT_STS_ND & INT_TRIG_RX_PROC) */
  658. u32 rx_procs;
  659. /* (INT_STS_ND & INT_TRIG_PM_802) */
  660. u32 hw_pm_mode_changes;
  661. /* (INT_STS_ND & INT_TRIG_ACKNOWLEDGE) */
  662. u32 host_acknowledges;
  663. /* (INT_STS_ND & INT_TRIG_PM_PCI) */
  664. u32 pci_pm;
  665. /* (INT_STS_ND & INT_TRIG_ACM_WAKEUP) */
  666. u32 wakeups;
  667. /* (INT_STS_ND & INT_TRIG_LOW_RSSI) */
  668. u32 low_rssi;
  669. } __attribute__ ((packed));
  670. struct acx_wep_statistics {
  671. /* WEP address keys configured */
  672. u32 addr_key_count;
  673. /* default keys configured */
  674. u32 default_key_count;
  675. u32 reserved;
  676. /* number of times that WEP key not found on lookup */
  677. u32 key_not_found;
  678. /* number of times that WEP key decryption failed */
  679. u32 decrypt_fail;
  680. /* WEP packets decrypted */
  681. u32 packets;
  682. /* WEP decrypt interrupts */
  683. u32 interrupt;
  684. } __attribute__ ((packed));
  685. #define ACX_MISSED_BEACONS_SPREAD 10
  686. struct acx_pwr_statistics {
  687. /* the amount of enters into power save mode (both PD & ELP) */
  688. u32 ps_enter;
  689. /* the amount of enters into ELP mode */
  690. u32 elp_enter;
  691. /* the amount of missing beacon interrupts to the host */
  692. u32 missing_bcns;
  693. /* the amount of wake on host-access times */
  694. u32 wake_on_host;
  695. /* the amount of wake on timer-expire */
  696. u32 wake_on_timer_exp;
  697. /* the number of packets that were transmitted with PS bit set */
  698. u32 tx_with_ps;
  699. /* the number of packets that were transmitted with PS bit clear */
  700. u32 tx_without_ps;
  701. /* the number of received beacons */
  702. u32 rcvd_beacons;
  703. /* the number of entering into PowerOn (power save off) */
  704. u32 power_save_off;
  705. /* the number of entries into power save mode */
  706. u16 enable_ps;
  707. /*
  708. * the number of exits from power save, not including failed PS
  709. * transitions
  710. */
  711. u16 disable_ps;
  712. /*
  713. * the number of times the TSF counter was adjusted because
  714. * of drift
  715. */
  716. u32 fix_tsf_ps;
  717. /* Gives statistics about the spread continuous missed beacons.
  718. * The 16 LSB are dedicated for the PS mode.
  719. * The 16 MSB are dedicated for the PS mode.
  720. * cont_miss_bcns_spread[0] - single missed beacon.
  721. * cont_miss_bcns_spread[1] - two continuous missed beacons.
  722. * cont_miss_bcns_spread[2] - three continuous missed beacons.
  723. * ...
  724. * cont_miss_bcns_spread[9] - ten and more continuous missed beacons.
  725. */
  726. u32 cont_miss_bcns_spread[ACX_MISSED_BEACONS_SPREAD];
  727. /* the number of beacons in awake mode */
  728. u32 rcvd_awake_beacons;
  729. } __attribute__ ((packed));
  730. struct acx_mic_statistics {
  731. u32 rx_pkts;
  732. u32 calc_failure;
  733. } __attribute__ ((packed));
  734. struct acx_aes_statistics {
  735. u32 encrypt_fail;
  736. u32 decrypt_fail;
  737. u32 encrypt_packets;
  738. u32 decrypt_packets;
  739. u32 encrypt_interrupt;
  740. u32 decrypt_interrupt;
  741. } __attribute__ ((packed));
  742. struct acx_event_statistics {
  743. u32 heart_beat;
  744. u32 calibration;
  745. u32 rx_mismatch;
  746. u32 rx_mem_empty;
  747. u32 rx_pool;
  748. u32 oom_late;
  749. u32 phy_transmit_error;
  750. u32 tx_stuck;
  751. } __attribute__ ((packed));
  752. struct acx_ps_statistics {
  753. u32 pspoll_timeouts;
  754. u32 upsd_timeouts;
  755. u32 upsd_max_sptime;
  756. u32 upsd_max_apturn;
  757. u32 pspoll_max_apturn;
  758. u32 pspoll_utilization;
  759. u32 upsd_utilization;
  760. } __attribute__ ((packed));
  761. struct acx_rxpipe_statistics {
  762. u32 rx_prep_beacon_drop;
  763. u32 descr_host_int_trig_rx_data;
  764. u32 beacon_buffer_thres_host_int_trig_rx_data;
  765. u32 missed_beacon_host_int_trig_rx_data;
  766. u32 tx_xfr_host_int_trig_rx_data;
  767. } __attribute__ ((packed));
  768. struct acx_statistics {
  769. struct acx_header header;
  770. struct acx_tx_statistics tx;
  771. struct acx_rx_statistics rx;
  772. struct acx_dma_statistics dma;
  773. struct acx_isr_statistics isr;
  774. struct acx_wep_statistics wep;
  775. struct acx_pwr_statistics pwr;
  776. struct acx_aes_statistics aes;
  777. struct acx_mic_statistics mic;
  778. struct acx_event_statistics event;
  779. struct acx_ps_statistics ps;
  780. struct acx_rxpipe_statistics rxpipe;
  781. } __attribute__ ((packed));
  782. #define ACX_MAX_RATE_CLASSES 8
  783. #define ACX_RATE_MASK_UNSPECIFIED 0
  784. #define ACX_RATE_MASK_ALL 0x1eff
  785. #define ACX_RATE_RETRY_LIMIT 10
  786. struct acx_rate_class {
  787. u32 enabled_rates;
  788. u8 short_retry_limit;
  789. u8 long_retry_limit;
  790. u8 aflags;
  791. u8 reserved;
  792. };
  793. struct acx_rate_policy {
  794. struct acx_header header;
  795. u32 rate_class_cnt;
  796. struct acx_rate_class rate_class[ACX_MAX_RATE_CLASSES];
  797. } __attribute__ ((packed));
  798. #define WL1271_ACX_AC_COUNT 4
  799. struct acx_ac_cfg {
  800. struct acx_header header;
  801. u8 ac;
  802. u8 cw_min;
  803. u16 cw_max;
  804. u8 aifsn;
  805. u8 reserved;
  806. u16 tx_op_limit;
  807. } __attribute__ ((packed));
  808. enum wl1271_acx_ac {
  809. WL1271_ACX_AC_BE = 0,
  810. WL1271_ACX_AC_BK = 1,
  811. WL1271_ACX_AC_VI = 2,
  812. WL1271_ACX_AC_VO = 3,
  813. WL1271_ACX_AC_CTS2SELF = 4,
  814. WL1271_ACX_AC_ANY_TID = 0x1F,
  815. WL1271_ACX_AC_INVALID = 0xFF,
  816. };
  817. enum wl1271_acx_ps_scheme {
  818. WL1271_ACX_PS_SCHEME_LEGACY = 0,
  819. WL1271_ACX_PS_SCHEME_UPSD_TRIGGER = 1,
  820. WL1271_ACX_PS_SCHEME_LEGACY_PSPOLL = 2,
  821. WL1271_ACX_PS_SCHEME_SAPSD = 3,
  822. };
  823. enum wl1271_acx_ack_policy {
  824. WL1271_ACX_ACK_POLICY_LEGACY = 0,
  825. WL1271_ACX_ACK_POLICY_NO_ACK = 1,
  826. WL1271_ACX_ACK_POLICY_BLOCK = 2,
  827. };
  828. #define WL1271_ACX_TID_COUNT 7
  829. struct acx_tid_config {
  830. struct acx_header header;
  831. u8 queue_id;
  832. u8 channel_type;
  833. u8 tsid;
  834. u8 ps_scheme;
  835. u8 ack_policy;
  836. u8 padding[3];
  837. u32 apsd_conf[2];
  838. } __attribute__ ((packed));
  839. struct acx_frag_threshold {
  840. struct acx_header header;
  841. u16 frag_threshold;
  842. u8 padding[2];
  843. } __attribute__ ((packed));
  844. #define WL1271_ACX_TX_COMPL_TIMEOUT 5
  845. #define WL1271_ACX_TX_COMPL_THRESHOLD 5
  846. struct acx_tx_config_options {
  847. struct acx_header header;
  848. u16 tx_compl_timeout; /* msec */
  849. u16 tx_compl_threshold; /* number of packets */
  850. } __attribute__ ((packed));
  851. #define ACX_RX_MEM_BLOCKS 64
  852. #define ACX_TX_MIN_MEM_BLOCKS 64
  853. #define ACX_TX_DESCRIPTORS 32
  854. #define ACX_NUM_SSID_PROFILES 1
  855. struct wl1271_acx_config_memory {
  856. struct acx_header header;
  857. u8 rx_mem_block_num;
  858. u8 tx_min_mem_block_num;
  859. u8 num_stations;
  860. u8 num_ssid_profiles;
  861. u32 total_tx_descriptors;
  862. } __attribute__ ((packed));
  863. struct wl1271_acx_mem_map {
  864. struct acx_header header;
  865. void *code_start;
  866. void *code_end;
  867. void *wep_defkey_start;
  868. void *wep_defkey_end;
  869. void *sta_table_start;
  870. void *sta_table_end;
  871. void *packet_template_start;
  872. void *packet_template_end;
  873. /* Address of the TX result interface (control block) */
  874. u32 tx_result;
  875. u32 tx_result_queue_start;
  876. void *queue_memory_start;
  877. void *queue_memory_end;
  878. u32 packet_memory_pool_start;
  879. u32 packet_memory_pool_end;
  880. void *debug_buffer1_start;
  881. void *debug_buffer1_end;
  882. void *debug_buffer2_start;
  883. void *debug_buffer2_end;
  884. /* Number of blocks FW allocated for TX packets */
  885. u32 num_tx_mem_blocks;
  886. /* Number of blocks FW allocated for RX packets */
  887. u32 num_rx_mem_blocks;
  888. /* the following 4 fields are valid in SLAVE mode only */
  889. u8 *tx_cbuf;
  890. u8 *rx_cbuf;
  891. void *rx_ctrl;
  892. void *tx_ctrl;
  893. } __attribute__ ((packed));
  894. enum wl1271_acx_rx_queue_type {
  895. RX_QUEUE_TYPE_RX_LOW_PRIORITY, /* All except the high priority */
  896. RX_QUEUE_TYPE_RX_HIGH_PRIORITY, /* Management and voice packets */
  897. RX_QUEUE_TYPE_NUM,
  898. RX_QUEUE_TYPE_MAX = USHORT_MAX
  899. };
  900. #define WL1271_RX_INTR_THRESHOLD_DEF 0 /* no pacing, send interrupt on
  901. * every event */
  902. #define WL1271_RX_INTR_THRESHOLD_MIN 0
  903. #define WL1271_RX_INTR_THRESHOLD_MAX 15
  904. #define WL1271_RX_INTR_TIMEOUT_DEF 5
  905. #define WL1271_RX_INTR_TIMEOUT_MIN 1
  906. #define WL1271_RX_INTR_TIMEOUT_MAX 100
  907. struct wl1271_acx_rx_config_opt {
  908. struct acx_header header;
  909. u16 mblk_threshold;
  910. u16 threshold;
  911. u16 timeout;
  912. u8 queue_type;
  913. u8 reserved;
  914. } __attribute__ ((packed));
  915. enum {
  916. ACX_WAKE_UP_CONDITIONS = 0x0002,
  917. ACX_MEM_CFG = 0x0003,
  918. ACX_SLOT = 0x0004,
  919. ACX_AC_CFG = 0x0007,
  920. ACX_MEM_MAP = 0x0008,
  921. ACX_AID = 0x000A,
  922. /* ACX_FW_REV is missing in the ref driver, but seems to work */
  923. ACX_FW_REV = 0x000D,
  924. ACX_MEDIUM_USAGE = 0x000F,
  925. ACX_RX_CFG = 0x0010,
  926. ACX_TX_QUEUE_CFG = 0x0011, /* FIXME: only used by wl1251 */
  927. ACX_STATISTICS = 0x0013, /* Debug API */
  928. ACX_PWR_CONSUMPTION_STATISTICS = 0x0014,
  929. ACX_FEATURE_CFG = 0x0015,
  930. ACX_TID_CFG = 0x001A,
  931. ACX_PS_RX_STREAMING = 0x001B,
  932. ACX_BEACON_FILTER_OPT = 0x001F,
  933. ACX_NOISE_HIST = 0x0021,
  934. ACX_HDK_VERSION = 0x0022, /* ??? */
  935. ACX_PD_THRESHOLD = 0x0023,
  936. ACX_TX_CONFIG_OPT = 0x0024,
  937. ACX_CCA_THRESHOLD = 0x0025,
  938. ACX_EVENT_MBOX_MASK = 0x0026,
  939. ACX_CONN_MONIT_PARAMS = 0x002D,
  940. ACX_CONS_TX_FAILURE = 0x002F,
  941. ACX_BCN_DTIM_OPTIONS = 0x0031,
  942. ACX_SG_ENABLE = 0x0032,
  943. ACX_SG_CFG = 0x0033,
  944. ACX_BEACON_FILTER_TABLE = 0x0038,
  945. ACX_ARP_IP_FILTER = 0x0039,
  946. ACX_ROAMING_STATISTICS_TBL = 0x003B,
  947. ACX_RATE_POLICY = 0x003D,
  948. ACX_CTS_PROTECTION = 0x003E,
  949. ACX_SLEEP_AUTH = 0x003F,
  950. ACX_PREAMBLE_TYPE = 0x0040,
  951. ACX_ERROR_CNT = 0x0041,
  952. ACX_IBSS_FILTER = 0x0044,
  953. ACX_SERVICE_PERIOD_TIMEOUT = 0x0045,
  954. ACX_TSF_INFO = 0x0046,
  955. ACX_CONFIG_PS_WMM = 0x0049,
  956. ACX_ENABLE_RX_DATA_FILTER = 0x004A,
  957. ACX_SET_RX_DATA_FILTER = 0x004B,
  958. ACX_GET_DATA_FILTER_STATISTICS = 0x004C,
  959. ACX_RX_CONFIG_OPT = 0x004E,
  960. ACX_FRAG_CFG = 0x004F,
  961. ACX_BET_ENABLE = 0x0050,
  962. ACX_RSSI_SNR_TRIGGER = 0x0051,
  963. ACX_RSSI_SNR_WEIGHTS = 0x0051,
  964. ACX_KEEP_ALIVE_MODE = 0x0052,
  965. ACX_SET_KEEP_ALIVE_CONFIG = 0x0054,
  966. ACX_BA_SESSION_RESPONDER_POLICY = 0x0055,
  967. ACX_BA_SESSION_INITIATOR_POLICY = 0x0056,
  968. ACX_PEER_HT_CAP = 0x0057,
  969. ACX_HT_BSS_OPERATION = 0x0058,
  970. ACX_COEX_ACTIVITY = 0x0059,
  971. DOT11_RX_MSDU_LIFE_TIME = 0x1004,
  972. DOT11_CUR_TX_PWR = 0x100D,
  973. DOT11_RX_DOT11_MODE = 0x1012,
  974. DOT11_RTS_THRESHOLD = 0x1013,
  975. DOT11_GROUP_ADDRESS_TBL = 0x1014,
  976. MAX_DOT11_IE = DOT11_GROUP_ADDRESS_TBL,
  977. MAX_IE = 0xFFFF
  978. };
  979. int wl1271_acx_wake_up_conditions(struct wl1271 *wl, u8 wake_up_event,
  980. u8 listen_interval);
  981. int wl1271_acx_sleep_auth(struct wl1271 *wl, u8 sleep_auth);
  982. int wl1271_acx_fw_version(struct wl1271 *wl, char *buf, size_t len);
  983. int wl1271_acx_tx_power(struct wl1271 *wl, int power);
  984. int wl1271_acx_feature_cfg(struct wl1271 *wl);
  985. int wl1271_acx_mem_map(struct wl1271 *wl,
  986. struct acx_header *mem_map, size_t len);
  987. int wl1271_acx_rx_msdu_life_time(struct wl1271 *wl, u32 life_time);
  988. int wl1271_acx_rx_config(struct wl1271 *wl, u32 config, u32 filter);
  989. int wl1271_acx_pd_threshold(struct wl1271 *wl);
  990. int wl1271_acx_slot(struct wl1271 *wl, enum acx_slot_type slot_time);
  991. int wl1271_acx_group_address_tbl(struct wl1271 *wl, bool enable,
  992. void *mc_list, u32 mc_list_len);
  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, u32 enabled_rates);
  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__ */