acx.h 32 KB

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