acx.h 37 KB

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