wl1251_acx.h 34 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292
  1. /*
  2. * This file is part of wl1251
  3. *
  4. * Copyright (c) 1998-2007 Texas Instruments Incorporated
  5. * Copyright (C) 2008 Nokia Corporation
  6. *
  7. * Contact: Kalle Valo <kalle.valo@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 __WL1251_ACX_H__
  25. #define __WL1251_ACX_H__
  26. #include "wl1251.h"
  27. #include "wl1251_cmd.h"
  28. /* Target's information element */
  29. struct acx_header {
  30. struct wl1251_cmd_header cmd;
  31. /* acx (or information element) header */
  32. u16 id;
  33. /* payload length (not including headers */
  34. u16 len;
  35. };
  36. struct acx_error_counter {
  37. struct acx_header header;
  38. /* The number of PLCP errors since the last time this */
  39. /* information element was interrogated. This field is */
  40. /* automatically cleared when it is interrogated.*/
  41. u32 PLCP_error;
  42. /* The number of FCS errors since the last time this */
  43. /* information element was interrogated. This field is */
  44. /* automatically cleared when it is interrogated.*/
  45. u32 FCS_error;
  46. /* The number of MPDUs without PLCP header errors received*/
  47. /* since the last time this information element was interrogated. */
  48. /* This field is automatically cleared when it is interrogated.*/
  49. u32 valid_frame;
  50. /* the number of missed sequence numbers in the squentially */
  51. /* values of frames seq numbers */
  52. u32 seq_num_miss;
  53. } __attribute__ ((packed));
  54. struct acx_revision {
  55. struct acx_header header;
  56. /*
  57. * The WiLink firmware version, an ASCII string x.x.x.x,
  58. * that uniquely identifies the current firmware.
  59. * The left most digit is incremented each time a
  60. * significant change is made to the firmware, such as
  61. * code redesign or new platform support.
  62. * The second digit is incremented when major enhancements
  63. * are added or major fixes are made.
  64. * The third digit is incremented for each GA release.
  65. * The fourth digit is incremented for each build.
  66. * The first two digits identify a firmware release version,
  67. * in other words, a unique set of features.
  68. * The first three digits identify a GA release.
  69. */
  70. char fw_version[20];
  71. /*
  72. * This 4 byte field specifies the WiLink hardware version.
  73. * bits 0 - 15: Reserved.
  74. * bits 16 - 23: Version ID - The WiLink version ID
  75. * (1 = first spin, 2 = second spin, and so on).
  76. * bits 24 - 31: Chip ID - The WiLink chip ID.
  77. */
  78. u32 hw_version;
  79. } __attribute__ ((packed));
  80. enum wl1251_psm_mode {
  81. /* Active mode */
  82. WL1251_PSM_CAM = 0,
  83. /* Power save mode */
  84. WL1251_PSM_PS = 1,
  85. /* Extreme low power */
  86. WL1251_PSM_ELP = 2,
  87. };
  88. struct acx_sleep_auth {
  89. struct acx_header header;
  90. /* The sleep level authorization of the device. */
  91. /* 0 - Always active*/
  92. /* 1 - Power down mode: light / fast sleep*/
  93. /* 2 - ELP mode: Deep / Max sleep*/
  94. u8 sleep_auth;
  95. u8 padding[3];
  96. } __attribute__ ((packed));
  97. enum {
  98. HOSTIF_PCI_MASTER_HOST_INDIRECT,
  99. HOSTIF_PCI_MASTER_HOST_DIRECT,
  100. HOSTIF_SLAVE,
  101. HOSTIF_PKT_RING,
  102. HOSTIF_DONTCARE = 0xFF
  103. };
  104. #define DEFAULT_UCAST_PRIORITY 0
  105. #define DEFAULT_RX_Q_PRIORITY 0
  106. #define DEFAULT_NUM_STATIONS 1
  107. #define DEFAULT_RXQ_PRIORITY 0 /* low 0 .. 15 high */
  108. #define DEFAULT_RXQ_TYPE 0x07 /* All frames, Data/Ctrl/Mgmt */
  109. #define TRACE_BUFFER_MAX_SIZE 256
  110. #define DP_RX_PACKET_RING_CHUNK_SIZE 1600
  111. #define DP_TX_PACKET_RING_CHUNK_SIZE 1600
  112. #define DP_RX_PACKET_RING_CHUNK_NUM 2
  113. #define DP_TX_PACKET_RING_CHUNK_NUM 2
  114. #define DP_TX_COMPLETE_TIME_OUT 20
  115. #define FW_TX_CMPLT_BLOCK_SIZE 16
  116. struct acx_data_path_params {
  117. struct acx_header header;
  118. u16 rx_packet_ring_chunk_size;
  119. u16 tx_packet_ring_chunk_size;
  120. u8 rx_packet_ring_chunk_num;
  121. u8 tx_packet_ring_chunk_num;
  122. /*
  123. * Maximum number of packets that can be gathered
  124. * in the TX complete ring before an interrupt
  125. * is generated.
  126. */
  127. u8 tx_complete_threshold;
  128. /* Number of pending TX complete entries in cyclic ring.*/
  129. u8 tx_complete_ring_depth;
  130. /*
  131. * Max num microseconds since a packet enters the TX
  132. * complete ring until an interrupt is generated.
  133. */
  134. u32 tx_complete_timeout;
  135. } __attribute__ ((packed));
  136. struct acx_data_path_params_resp {
  137. struct acx_header header;
  138. u16 rx_packet_ring_chunk_size;
  139. u16 tx_packet_ring_chunk_size;
  140. u8 rx_packet_ring_chunk_num;
  141. u8 tx_packet_ring_chunk_num;
  142. u8 pad[2];
  143. u32 rx_packet_ring_addr;
  144. u32 tx_packet_ring_addr;
  145. u32 rx_control_addr;
  146. u32 tx_control_addr;
  147. u32 tx_complete_addr;
  148. } __attribute__ ((packed));
  149. #define TX_MSDU_LIFETIME_MIN 0
  150. #define TX_MSDU_LIFETIME_MAX 3000
  151. #define TX_MSDU_LIFETIME_DEF 512
  152. #define RX_MSDU_LIFETIME_MIN 0
  153. #define RX_MSDU_LIFETIME_MAX 0xFFFFFFFF
  154. #define RX_MSDU_LIFETIME_DEF 512000
  155. struct acx_rx_msdu_lifetime {
  156. struct acx_header header;
  157. /*
  158. * The maximum amount of time, in TU, before the
  159. * firmware discards the MSDU.
  160. */
  161. u32 lifetime;
  162. } __attribute__ ((packed));
  163. /*
  164. * RX Config Options Table
  165. * Bit Definition
  166. * === ==========
  167. * 31:14 Reserved
  168. * 13 Copy RX Status - when set, write three receive status words
  169. * to top of rx'd MPDUs.
  170. * When cleared, do not write three status words (added rev 1.5)
  171. * 12 Reserved
  172. * 11 RX Complete upon FCS error - when set, give rx complete
  173. * interrupt for FCS errors, after the rx filtering, e.g. unicast
  174. * frames not to us with FCS error will not generate an interrupt.
  175. * 10 SSID Filter Enable - When set, the WiLink discards all beacon,
  176. * probe request, and probe response frames with an SSID that does
  177. * not match the SSID specified by the host in the START/JOIN
  178. * command.
  179. * When clear, the WiLink receives frames with any SSID.
  180. * 9 Broadcast Filter Enable - When set, the WiLink discards all
  181. * broadcast frames. When clear, the WiLink receives all received
  182. * broadcast frames.
  183. * 8:6 Reserved
  184. * 5 BSSID Filter Enable - When set, the WiLink discards any frames
  185. * with a BSSID that does not match the BSSID specified by the
  186. * host.
  187. * When clear, the WiLink receives frames from any BSSID.
  188. * 4 MAC Addr Filter - When set, the WiLink discards any frames
  189. * with a destination address that does not match the MAC address
  190. * of the adaptor.
  191. * When clear, the WiLink receives frames destined to any MAC
  192. * address.
  193. * 3 Promiscuous - When set, the WiLink receives all valid frames
  194. * (i.e., all frames that pass the FCS check).
  195. * When clear, only frames that pass the other filters specified
  196. * are received.
  197. * 2 FCS - When set, the WiLink includes the FCS with the received
  198. * frame.
  199. * When cleared, the FCS is discarded.
  200. * 1 PLCP header - When set, write all data from baseband to frame
  201. * buffer including PHY header.
  202. * 0 Reserved - Always equal to 0.
  203. *
  204. * RX Filter Options Table
  205. * Bit Definition
  206. * === ==========
  207. * 31:12 Reserved - Always equal to 0.
  208. * 11 Association - When set, the WiLink receives all association
  209. * related frames (association request/response, reassocation
  210. * request/response, and disassociation). When clear, these frames
  211. * are discarded.
  212. * 10 Auth/De auth - When set, the WiLink receives all authentication
  213. * and de-authentication frames. When clear, these frames are
  214. * discarded.
  215. * 9 Beacon - When set, the WiLink receives all beacon frames.
  216. * When clear, these frames are discarded.
  217. * 8 Contention Free - When set, the WiLink receives all contention
  218. * free frames.
  219. * When clear, these frames are discarded.
  220. * 7 Control - When set, the WiLink receives all control frames.
  221. * When clear, these frames are discarded.
  222. * 6 Data - When set, the WiLink receives all data frames.
  223. * When clear, these frames are discarded.
  224. * 5 FCS Error - When set, the WiLink receives frames that have FCS
  225. * errors.
  226. * When clear, these frames are discarded.
  227. * 4 Management - When set, the WiLink receives all management
  228. * frames.
  229. * When clear, these frames are discarded.
  230. * 3 Probe Request - When set, the WiLink receives all probe request
  231. * frames.
  232. * When clear, these frames are discarded.
  233. * 2 Probe Response - When set, the WiLink receives all probe
  234. * response frames.
  235. * When clear, these frames are discarded.
  236. * 1 RTS/CTS/ACK - When set, the WiLink receives all RTS, CTS and ACK
  237. * frames.
  238. * When clear, these frames are discarded.
  239. * 0 Rsvd Type/Sub Type - When set, the WiLink receives all frames
  240. * that have reserved frame types and sub types as defined by the
  241. * 802.11 specification.
  242. * When clear, these frames are discarded.
  243. */
  244. struct acx_rx_config {
  245. struct acx_header header;
  246. u32 config_options;
  247. u32 filter_options;
  248. } __attribute__ ((packed));
  249. enum {
  250. QOS_AC_BE = 0,
  251. QOS_AC_BK,
  252. QOS_AC_VI,
  253. QOS_AC_VO,
  254. QOS_HIGHEST_AC_INDEX = QOS_AC_VO,
  255. };
  256. #define MAX_NUM_OF_AC (QOS_HIGHEST_AC_INDEX+1)
  257. #define FIRST_AC_INDEX QOS_AC_BE
  258. #define MAX_NUM_OF_802_1d_TAGS 8
  259. #define AC_PARAMS_MAX_TSID 15
  260. #define MAX_APSD_CONF 0xffff
  261. #define QOS_TX_HIGH_MIN (0)
  262. #define QOS_TX_HIGH_MAX (100)
  263. #define QOS_TX_HIGH_BK_DEF (25)
  264. #define QOS_TX_HIGH_BE_DEF (35)
  265. #define QOS_TX_HIGH_VI_DEF (35)
  266. #define QOS_TX_HIGH_VO_DEF (35)
  267. #define QOS_TX_LOW_BK_DEF (15)
  268. #define QOS_TX_LOW_BE_DEF (25)
  269. #define QOS_TX_LOW_VI_DEF (25)
  270. #define QOS_TX_LOW_VO_DEF (25)
  271. struct acx_tx_queue_qos_config {
  272. struct acx_header header;
  273. u8 qid;
  274. u8 pad[3];
  275. /* Max number of blocks allowd in the queue */
  276. u16 high_threshold;
  277. /* Lowest memory blocks guaranteed for this queue */
  278. u16 low_threshold;
  279. } __attribute__ ((packed));
  280. struct acx_packet_detection {
  281. struct acx_header header;
  282. u32 threshold;
  283. } __attribute__ ((packed));
  284. enum acx_slot_type {
  285. SLOT_TIME_LONG = 0,
  286. SLOT_TIME_SHORT = 1,
  287. DEFAULT_SLOT_TIME = SLOT_TIME_SHORT,
  288. MAX_SLOT_TIMES = 0xFF
  289. };
  290. #define STATION_WONE_INDEX 0
  291. struct acx_slot {
  292. struct acx_header header;
  293. u8 wone_index; /* Reserved */
  294. u8 slot_time;
  295. u8 reserved[6];
  296. } __attribute__ ((packed));
  297. #define ADDRESS_GROUP_MAX (8)
  298. #define ADDRESS_GROUP_MAX_LEN (ETH_ALEN * ADDRESS_GROUP_MAX)
  299. struct acx_dot11_grp_addr_tbl {
  300. struct acx_header header;
  301. u8 enabled;
  302. u8 num_groups;
  303. u8 pad[2];
  304. u8 mac_table[ADDRESS_GROUP_MAX_LEN];
  305. } __attribute__ ((packed));
  306. #define RX_TIMEOUT_PS_POLL_MIN 0
  307. #define RX_TIMEOUT_PS_POLL_MAX (200000)
  308. #define RX_TIMEOUT_PS_POLL_DEF (15)
  309. #define RX_TIMEOUT_UPSD_MIN 0
  310. #define RX_TIMEOUT_UPSD_MAX (200000)
  311. #define RX_TIMEOUT_UPSD_DEF (15)
  312. struct acx_rx_timeout {
  313. struct acx_header header;
  314. /*
  315. * The longest time the STA will wait to receive
  316. * traffic from the AP after a PS-poll has been
  317. * transmitted.
  318. */
  319. u16 ps_poll_timeout;
  320. /*
  321. * The longest time the STA will wait to receive
  322. * traffic from the AP after a frame has been sent
  323. * from an UPSD enabled queue.
  324. */
  325. u16 upsd_timeout;
  326. } __attribute__ ((packed));
  327. #define RTS_THRESHOLD_MIN 0
  328. #define RTS_THRESHOLD_MAX 4096
  329. #define RTS_THRESHOLD_DEF 2347
  330. struct acx_rts_threshold {
  331. struct acx_header header;
  332. u16 threshold;
  333. u8 pad[2];
  334. } __attribute__ ((packed));
  335. struct acx_beacon_filter_option {
  336. struct acx_header header;
  337. u8 enable;
  338. /*
  339. * The number of beacons without the unicast TIM
  340. * bit set that the firmware buffers before
  341. * signaling the host about ready frames.
  342. * When set to 0 and the filter is enabled, beacons
  343. * without the unicast TIM bit set are dropped.
  344. */
  345. u8 max_num_beacons;
  346. u8 pad[2];
  347. } __attribute__ ((packed));
  348. /*
  349. * ACXBeaconFilterEntry (not 221)
  350. * Byte Offset Size (Bytes) Definition
  351. * =========== ============ ==========
  352. * 0 1 IE identifier
  353. * 1 1 Treatment bit mask
  354. *
  355. * ACXBeaconFilterEntry (221)
  356. * Byte Offset Size (Bytes) Definition
  357. * =========== ============ ==========
  358. * 0 1 IE identifier
  359. * 1 1 Treatment bit mask
  360. * 2 3 OUI
  361. * 5 1 Type
  362. * 6 2 Version
  363. *
  364. *
  365. * Treatment bit mask - The information element handling:
  366. * bit 0 - The information element is compared and transferred
  367. * in case of change.
  368. * bit 1 - The information element is transferred to the host
  369. * with each appearance or disappearance.
  370. * Note that both bits can be set at the same time.
  371. */
  372. #define BEACON_FILTER_TABLE_MAX_IE_NUM (32)
  373. #define BEACON_FILTER_TABLE_MAX_VENDOR_SPECIFIC_IE_NUM (6)
  374. #define BEACON_FILTER_TABLE_IE_ENTRY_SIZE (2)
  375. #define BEACON_FILTER_TABLE_EXTRA_VENDOR_SPECIFIC_IE_SIZE (6)
  376. #define BEACON_FILTER_TABLE_MAX_SIZE ((BEACON_FILTER_TABLE_MAX_IE_NUM * \
  377. BEACON_FILTER_TABLE_IE_ENTRY_SIZE) + \
  378. (BEACON_FILTER_TABLE_MAX_VENDOR_SPECIFIC_IE_NUM * \
  379. BEACON_FILTER_TABLE_EXTRA_VENDOR_SPECIFIC_IE_SIZE))
  380. struct acx_beacon_filter_ie_table {
  381. struct acx_header header;
  382. u8 num_ie;
  383. u8 table[BEACON_FILTER_TABLE_MAX_SIZE];
  384. u8 pad[3];
  385. } __attribute__ ((packed));
  386. enum {
  387. SG_ENABLE = 0,
  388. SG_DISABLE,
  389. SG_SENSE_NO_ACTIVITY,
  390. SG_SENSE_ACTIVE
  391. };
  392. struct acx_bt_wlan_coex {
  393. struct acx_header header;
  394. /*
  395. * 0 -> PTA enabled
  396. * 1 -> PTA disabled
  397. * 2 -> sense no active mode, i.e.
  398. * an interrupt is sent upon
  399. * BT activity.
  400. * 3 -> PTA is switched on in response
  401. * to the interrupt sending.
  402. */
  403. u8 enable;
  404. u8 pad[3];
  405. } __attribute__ ((packed));
  406. #define PTA_ANTENNA_TYPE_DEF (0)
  407. #define PTA_BT_HP_MAXTIME_DEF (2000)
  408. #define PTA_WLAN_HP_MAX_TIME_DEF (5000)
  409. #define PTA_SENSE_DISABLE_TIMER_DEF (1350)
  410. #define PTA_PROTECTIVE_RX_TIME_DEF (1500)
  411. #define PTA_PROTECTIVE_TX_TIME_DEF (1500)
  412. #define PTA_TIMEOUT_NEXT_BT_LP_PACKET_DEF (3000)
  413. #define PTA_SIGNALING_TYPE_DEF (1)
  414. #define PTA_AFH_LEVERAGE_ON_DEF (0)
  415. #define PTA_NUMBER_QUIET_CYCLE_DEF (0)
  416. #define PTA_MAX_NUM_CTS_DEF (3)
  417. #define PTA_NUMBER_OF_WLAN_PACKETS_DEF (2)
  418. #define PTA_NUMBER_OF_BT_PACKETS_DEF (2)
  419. #define PTA_PROTECTIVE_RX_TIME_FAST_DEF (1500)
  420. #define PTA_PROTECTIVE_TX_TIME_FAST_DEF (3000)
  421. #define PTA_CYCLE_TIME_FAST_DEF (8700)
  422. #define PTA_RX_FOR_AVALANCHE_DEF (5)
  423. #define PTA_ELP_HP_DEF (0)
  424. #define PTA_ANTI_STARVE_PERIOD_DEF (500)
  425. #define PTA_ANTI_STARVE_NUM_CYCLE_DEF (4)
  426. #define PTA_ALLOW_PA_SD_DEF (1)
  427. #define PTA_TIME_BEFORE_BEACON_DEF (6300)
  428. #define PTA_HPDM_MAX_TIME_DEF (1600)
  429. #define PTA_TIME_OUT_NEXT_WLAN_DEF (2550)
  430. #define PTA_AUTO_MODE_NO_CTS_DEF (0)
  431. #define PTA_BT_HP_RESPECTED_DEF (3)
  432. #define PTA_WLAN_RX_MIN_RATE_DEF (24)
  433. #define PTA_ACK_MODE_DEF (1)
  434. struct acx_bt_wlan_coex_param {
  435. struct acx_header header;
  436. /*
  437. * The minimum rate of a received WLAN packet in the STA,
  438. * during protective mode, of which a new BT-HP request
  439. * during this Rx will always be respected and gain the antenna.
  440. */
  441. u32 min_rate;
  442. /* Max time the BT HP will be respected. */
  443. u16 bt_hp_max_time;
  444. /* Max time the WLAN HP will be respected. */
  445. u16 wlan_hp_max_time;
  446. /*
  447. * The time between the last BT activity
  448. * and the moment when the sense mode returns
  449. * to SENSE_INACTIVE.
  450. */
  451. u16 sense_disable_timer;
  452. /* Time before the next BT HP instance */
  453. u16 rx_time_bt_hp;
  454. u16 tx_time_bt_hp;
  455. /* range: 10-20000 default: 1500 */
  456. u16 rx_time_bt_hp_fast;
  457. u16 tx_time_bt_hp_fast;
  458. /* range: 2000-65535 default: 8700 */
  459. u16 wlan_cycle_fast;
  460. /* range: 0 - 15000 (Msec) default: 1000 */
  461. u16 bt_anti_starvation_period;
  462. /* range 400-10000(Usec) default: 3000 */
  463. u16 next_bt_lp_packet;
  464. /* Deafult: worst case for BT DH5 traffic */
  465. u16 wake_up_beacon;
  466. /* range: 0-50000(Usec) default: 1050 */
  467. u16 hp_dm_max_guard_time;
  468. /*
  469. * This is to prevent both BT & WLAN antenna
  470. * starvation.
  471. * Range: 100-50000(Usec) default:2550
  472. */
  473. u16 next_wlan_packet;
  474. /* 0 -> shared antenna */
  475. u8 antenna_type;
  476. /*
  477. * 0 -> TI legacy
  478. * 1 -> Palau
  479. */
  480. u8 signal_type;
  481. /*
  482. * BT AFH status
  483. * 0 -> no AFH
  484. * 1 -> from dedicated GPIO
  485. * 2 -> AFH on (from host)
  486. */
  487. u8 afh_leverage_on;
  488. /*
  489. * The number of cycles during which no
  490. * TX will be sent after 1 cycle of RX
  491. * transaction in protective mode
  492. */
  493. u8 quiet_cycle_num;
  494. /*
  495. * The maximum number of CTSs that will
  496. * be sent for receiving RX packet in
  497. * protective mode
  498. */
  499. u8 max_cts;
  500. /*
  501. * The number of WLAN packets
  502. * transferred in common mode before
  503. * switching to BT.
  504. */
  505. u8 wlan_packets_num;
  506. /*
  507. * The number of BT packets
  508. * transferred in common mode before
  509. * switching to WLAN.
  510. */
  511. u8 bt_packets_num;
  512. /* range: 1-255 default: 5 */
  513. u8 missed_rx_avalanche;
  514. /* range: 0-1 default: 1 */
  515. u8 wlan_elp_hp;
  516. /* range: 0 - 15 default: 4 */
  517. u8 bt_anti_starvation_cycles;
  518. u8 ack_mode_dual_ant;
  519. /*
  520. * Allow PA_SD assertion/de-assertion
  521. * during enabled BT activity.
  522. */
  523. u8 pa_sd_enable;
  524. /*
  525. * Enable/Disable PTA in auto mode:
  526. * Support Both Active & P.S modes
  527. */
  528. u8 pta_auto_mode_enable;
  529. /* range: 0 - 20 default: 1 */
  530. u8 bt_hp_respected_num;
  531. } __attribute__ ((packed));
  532. #define CCA_THRSH_ENABLE_ENERGY_D 0x140A
  533. #define CCA_THRSH_DISABLE_ENERGY_D 0xFFEF
  534. struct acx_energy_detection {
  535. struct acx_header header;
  536. /* The RX Clear Channel Assessment threshold in the PHY */
  537. u16 rx_cca_threshold;
  538. u8 tx_energy_detection;
  539. u8 pad;
  540. } __attribute__ ((packed));
  541. #define BCN_RX_TIMEOUT_DEF_VALUE 10000
  542. #define BROADCAST_RX_TIMEOUT_DEF_VALUE 20000
  543. #define RX_BROADCAST_IN_PS_DEF_VALUE 1
  544. #define CONSECUTIVE_PS_POLL_FAILURE_DEF 4
  545. struct acx_beacon_broadcast {
  546. struct acx_header header;
  547. u16 beacon_rx_timeout;
  548. u16 broadcast_timeout;
  549. /* Enables receiving of broadcast packets in PS mode */
  550. u8 rx_broadcast_in_ps;
  551. /* Consecutive PS Poll failures before updating the host */
  552. u8 ps_poll_threshold;
  553. u8 pad[2];
  554. } __attribute__ ((packed));
  555. struct acx_event_mask {
  556. struct acx_header header;
  557. u32 event_mask;
  558. u32 high_event_mask; /* Unused */
  559. } __attribute__ ((packed));
  560. #define CFG_RX_FCS BIT(2)
  561. #define CFG_RX_ALL_GOOD BIT(3)
  562. #define CFG_UNI_FILTER_EN BIT(4)
  563. #define CFG_BSSID_FILTER_EN BIT(5)
  564. #define CFG_MC_FILTER_EN BIT(6)
  565. #define CFG_MC_ADDR0_EN BIT(7)
  566. #define CFG_MC_ADDR1_EN BIT(8)
  567. #define CFG_BC_REJECT_EN BIT(9)
  568. #define CFG_SSID_FILTER_EN BIT(10)
  569. #define CFG_RX_INT_FCS_ERROR BIT(11)
  570. #define CFG_RX_INT_ENCRYPTED BIT(12)
  571. #define CFG_RX_WR_RX_STATUS BIT(13)
  572. #define CFG_RX_FILTER_NULTI BIT(14)
  573. #define CFG_RX_RESERVE BIT(15)
  574. #define CFG_RX_TIMESTAMP_TSF BIT(16)
  575. #define CFG_RX_RSV_EN BIT(0)
  576. #define CFG_RX_RCTS_ACK BIT(1)
  577. #define CFG_RX_PRSP_EN BIT(2)
  578. #define CFG_RX_PREQ_EN BIT(3)
  579. #define CFG_RX_MGMT_EN BIT(4)
  580. #define CFG_RX_FCS_ERROR BIT(5)
  581. #define CFG_RX_DATA_EN BIT(6)
  582. #define CFG_RX_CTL_EN BIT(7)
  583. #define CFG_RX_CF_EN BIT(8)
  584. #define CFG_RX_BCN_EN BIT(9)
  585. #define CFG_RX_AUTH_EN BIT(10)
  586. #define CFG_RX_ASSOC_EN BIT(11)
  587. #define SCAN_PASSIVE BIT(0)
  588. #define SCAN_5GHZ_BAND BIT(1)
  589. #define SCAN_TRIGGERED BIT(2)
  590. #define SCAN_PRIORITY_HIGH BIT(3)
  591. struct acx_fw_gen_frame_rates {
  592. struct acx_header header;
  593. u8 tx_ctrl_frame_rate; /* RATE_* */
  594. u8 tx_ctrl_frame_mod; /* CCK_* or PBCC_* */
  595. u8 tx_mgt_frame_rate;
  596. u8 tx_mgt_frame_mod;
  597. } __attribute__ ((packed));
  598. /* STA MAC */
  599. struct acx_dot11_station_id {
  600. struct acx_header header;
  601. u8 mac[ETH_ALEN];
  602. u8 pad[2];
  603. } __attribute__ ((packed));
  604. struct acx_feature_config {
  605. struct acx_header header;
  606. u32 options;
  607. u32 data_flow_options;
  608. } __attribute__ ((packed));
  609. struct acx_current_tx_power {
  610. struct acx_header header;
  611. u8 current_tx_power;
  612. u8 padding[3];
  613. } __attribute__ ((packed));
  614. struct acx_dot11_default_key {
  615. struct acx_header header;
  616. u8 id;
  617. u8 pad[3];
  618. } __attribute__ ((packed));
  619. struct acx_tsf_info {
  620. struct acx_header header;
  621. u32 current_tsf_msb;
  622. u32 current_tsf_lsb;
  623. u32 last_TBTT_msb;
  624. u32 last_TBTT_lsb;
  625. u8 last_dtim_count;
  626. u8 pad[3];
  627. } __attribute__ ((packed));
  628. enum acx_wake_up_event {
  629. WAKE_UP_EVENT_BEACON_BITMAP = 0x01, /* Wake on every Beacon*/
  630. WAKE_UP_EVENT_DTIM_BITMAP = 0x02, /* Wake on every DTIM*/
  631. WAKE_UP_EVENT_N_DTIM_BITMAP = 0x04, /* Wake on every Nth DTIM */
  632. WAKE_UP_EVENT_N_BEACONS_BITMAP = 0x08, /* Wake on every Nth Beacon */
  633. WAKE_UP_EVENT_BITS_MASK = 0x0F
  634. };
  635. struct acx_wake_up_condition {
  636. struct acx_header header;
  637. u8 wake_up_event; /* Only one bit can be set */
  638. u8 listen_interval;
  639. u8 pad[2];
  640. } __attribute__ ((packed));
  641. struct acx_aid {
  642. struct acx_header header;
  643. /*
  644. * To be set when associated with an AP.
  645. */
  646. u16 aid;
  647. u8 pad[2];
  648. } __attribute__ ((packed));
  649. enum acx_preamble_type {
  650. ACX_PREAMBLE_LONG = 0,
  651. ACX_PREAMBLE_SHORT = 1
  652. };
  653. struct acx_preamble {
  654. struct acx_header header;
  655. /*
  656. * When set, the WiLink transmits the frames with a short preamble and
  657. * when cleared, the WiLink transmits the frames with a long preamble.
  658. */
  659. u8 preamble;
  660. u8 padding[3];
  661. } __attribute__ ((packed));
  662. enum acx_ctsprotect_type {
  663. CTSPROTECT_DISABLE = 0,
  664. CTSPROTECT_ENABLE = 1
  665. };
  666. struct acx_ctsprotect {
  667. struct acx_header header;
  668. u8 ctsprotect;
  669. u8 padding[3];
  670. } __attribute__ ((packed));
  671. struct acx_tx_statistics {
  672. u32 internal_desc_overflow;
  673. } __attribute__ ((packed));
  674. struct acx_rx_statistics {
  675. u32 out_of_mem;
  676. u32 hdr_overflow;
  677. u32 hw_stuck;
  678. u32 dropped;
  679. u32 fcs_err;
  680. u32 xfr_hint_trig;
  681. u32 path_reset;
  682. u32 reset_counter;
  683. } __attribute__ ((packed));
  684. struct acx_dma_statistics {
  685. u32 rx_requested;
  686. u32 rx_errors;
  687. u32 tx_requested;
  688. u32 tx_errors;
  689. } __attribute__ ((packed));
  690. struct acx_isr_statistics {
  691. /* host command complete */
  692. u32 cmd_cmplt;
  693. /* fiqisr() */
  694. u32 fiqs;
  695. /* (INT_STS_ND & INT_TRIG_RX_HEADER) */
  696. u32 rx_headers;
  697. /* (INT_STS_ND & INT_TRIG_RX_CMPLT) */
  698. u32 rx_completes;
  699. /* (INT_STS_ND & INT_TRIG_NO_RX_BUF) */
  700. u32 rx_mem_overflow;
  701. /* (INT_STS_ND & INT_TRIG_S_RX_RDY) */
  702. u32 rx_rdys;
  703. /* irqisr() */
  704. u32 irqs;
  705. /* (INT_STS_ND & INT_TRIG_TX_PROC) */
  706. u32 tx_procs;
  707. /* (INT_STS_ND & INT_TRIG_DECRYPT_DONE) */
  708. u32 decrypt_done;
  709. /* (INT_STS_ND & INT_TRIG_DMA0) */
  710. u32 dma0_done;
  711. /* (INT_STS_ND & INT_TRIG_DMA1) */
  712. u32 dma1_done;
  713. /* (INT_STS_ND & INT_TRIG_TX_EXC_CMPLT) */
  714. u32 tx_exch_complete;
  715. /* (INT_STS_ND & INT_TRIG_COMMAND) */
  716. u32 commands;
  717. /* (INT_STS_ND & INT_TRIG_RX_PROC) */
  718. u32 rx_procs;
  719. /* (INT_STS_ND & INT_TRIG_PM_802) */
  720. u32 hw_pm_mode_changes;
  721. /* (INT_STS_ND & INT_TRIG_ACKNOWLEDGE) */
  722. u32 host_acknowledges;
  723. /* (INT_STS_ND & INT_TRIG_PM_PCI) */
  724. u32 pci_pm;
  725. /* (INT_STS_ND & INT_TRIG_ACM_WAKEUP) */
  726. u32 wakeups;
  727. /* (INT_STS_ND & INT_TRIG_LOW_RSSI) */
  728. u32 low_rssi;
  729. } __attribute__ ((packed));
  730. struct acx_wep_statistics {
  731. /* WEP address keys configured */
  732. u32 addr_key_count;
  733. /* default keys configured */
  734. u32 default_key_count;
  735. u32 reserved;
  736. /* number of times that WEP key not found on lookup */
  737. u32 key_not_found;
  738. /* number of times that WEP key decryption failed */
  739. u32 decrypt_fail;
  740. /* WEP packets decrypted */
  741. u32 packets;
  742. /* WEP decrypt interrupts */
  743. u32 interrupt;
  744. } __attribute__ ((packed));
  745. #define ACX_MISSED_BEACONS_SPREAD 10
  746. struct acx_pwr_statistics {
  747. /* the amount of enters into power save mode (both PD & ELP) */
  748. u32 ps_enter;
  749. /* the amount of enters into ELP mode */
  750. u32 elp_enter;
  751. /* the amount of missing beacon interrupts to the host */
  752. u32 missing_bcns;
  753. /* the amount of wake on host-access times */
  754. u32 wake_on_host;
  755. /* the amount of wake on timer-expire */
  756. u32 wake_on_timer_exp;
  757. /* the number of packets that were transmitted with PS bit set */
  758. u32 tx_with_ps;
  759. /* the number of packets that were transmitted with PS bit clear */
  760. u32 tx_without_ps;
  761. /* the number of received beacons */
  762. u32 rcvd_beacons;
  763. /* the number of entering into PowerOn (power save off) */
  764. u32 power_save_off;
  765. /* the number of entries into power save mode */
  766. u16 enable_ps;
  767. /*
  768. * the number of exits from power save, not including failed PS
  769. * transitions
  770. */
  771. u16 disable_ps;
  772. /*
  773. * the number of times the TSF counter was adjusted because
  774. * of drift
  775. */
  776. u32 fix_tsf_ps;
  777. /* Gives statistics about the spread continuous missed beacons.
  778. * The 16 LSB are dedicated for the PS mode.
  779. * The 16 MSB are dedicated for the PS mode.
  780. * cont_miss_bcns_spread[0] - single missed beacon.
  781. * cont_miss_bcns_spread[1] - two continuous missed beacons.
  782. * cont_miss_bcns_spread[2] - three continuous missed beacons.
  783. * ...
  784. * cont_miss_bcns_spread[9] - ten and more continuous missed beacons.
  785. */
  786. u32 cont_miss_bcns_spread[ACX_MISSED_BEACONS_SPREAD];
  787. /* the number of beacons in awake mode */
  788. u32 rcvd_awake_beacons;
  789. } __attribute__ ((packed));
  790. struct acx_mic_statistics {
  791. u32 rx_pkts;
  792. u32 calc_failure;
  793. } __attribute__ ((packed));
  794. struct acx_aes_statistics {
  795. u32 encrypt_fail;
  796. u32 decrypt_fail;
  797. u32 encrypt_packets;
  798. u32 decrypt_packets;
  799. u32 encrypt_interrupt;
  800. u32 decrypt_interrupt;
  801. } __attribute__ ((packed));
  802. struct acx_event_statistics {
  803. u32 heart_beat;
  804. u32 calibration;
  805. u32 rx_mismatch;
  806. u32 rx_mem_empty;
  807. u32 rx_pool;
  808. u32 oom_late;
  809. u32 phy_transmit_error;
  810. u32 tx_stuck;
  811. } __attribute__ ((packed));
  812. struct acx_ps_statistics {
  813. u32 pspoll_timeouts;
  814. u32 upsd_timeouts;
  815. u32 upsd_max_sptime;
  816. u32 upsd_max_apturn;
  817. u32 pspoll_max_apturn;
  818. u32 pspoll_utilization;
  819. u32 upsd_utilization;
  820. } __attribute__ ((packed));
  821. struct acx_rxpipe_statistics {
  822. u32 rx_prep_beacon_drop;
  823. u32 descr_host_int_trig_rx_data;
  824. u32 beacon_buffer_thres_host_int_trig_rx_data;
  825. u32 missed_beacon_host_int_trig_rx_data;
  826. u32 tx_xfr_host_int_trig_rx_data;
  827. } __attribute__ ((packed));
  828. struct acx_statistics {
  829. struct acx_header header;
  830. struct acx_tx_statistics tx;
  831. struct acx_rx_statistics rx;
  832. struct acx_dma_statistics dma;
  833. struct acx_isr_statistics isr;
  834. struct acx_wep_statistics wep;
  835. struct acx_pwr_statistics pwr;
  836. struct acx_aes_statistics aes;
  837. struct acx_mic_statistics mic;
  838. struct acx_event_statistics event;
  839. struct acx_ps_statistics ps;
  840. struct acx_rxpipe_statistics rxpipe;
  841. } __attribute__ ((packed));
  842. #define ACX_MAX_RATE_CLASSES 8
  843. #define ACX_RATE_MASK_UNSPECIFIED 0
  844. #define ACX_RATE_RETRY_LIMIT 10
  845. struct acx_rate_class {
  846. u32 enabled_rates;
  847. u8 short_retry_limit;
  848. u8 long_retry_limit;
  849. u8 aflags;
  850. u8 reserved;
  851. };
  852. struct acx_rate_policy {
  853. struct acx_header header;
  854. u32 rate_class_cnt;
  855. struct acx_rate_class rate_class[ACX_MAX_RATE_CLASSES];
  856. } __attribute__ ((packed));
  857. struct wl1251_acx_memory {
  858. __le16 num_stations; /* number of STAs to be supported. */
  859. u16 reserved_1;
  860. /*
  861. * Nmber of memory buffers for the RX mem pool.
  862. * The actual number may be less if there are
  863. * not enough blocks left for the minimum num
  864. * of TX ones.
  865. */
  866. u8 rx_mem_block_num;
  867. u8 reserved_2;
  868. u8 num_tx_queues; /* From 1 to 16 */
  869. u8 host_if_options; /* HOST_IF* */
  870. u8 tx_min_mem_block_num;
  871. u8 num_ssid_profiles;
  872. __le16 debug_buffer_size;
  873. } __attribute__ ((packed));
  874. #define ACX_RX_DESC_MIN 1
  875. #define ACX_RX_DESC_MAX 127
  876. #define ACX_RX_DESC_DEF 32
  877. struct wl1251_acx_rx_queue_config {
  878. u8 num_descs;
  879. u8 pad;
  880. u8 type;
  881. u8 priority;
  882. __le32 dma_address;
  883. } __attribute__ ((packed));
  884. #define ACX_TX_DESC_MIN 1
  885. #define ACX_TX_DESC_MAX 127
  886. #define ACX_TX_DESC_DEF 16
  887. struct wl1251_acx_tx_queue_config {
  888. u8 num_descs;
  889. u8 pad[2];
  890. u8 attributes;
  891. } __attribute__ ((packed));
  892. #define MAX_TX_QUEUE_CONFIGS 5
  893. #define MAX_TX_QUEUES 4
  894. struct wl1251_acx_config_memory {
  895. struct acx_header header;
  896. struct wl1251_acx_memory mem_config;
  897. struct wl1251_acx_rx_queue_config rx_queue_config;
  898. struct wl1251_acx_tx_queue_config tx_queue_config[MAX_TX_QUEUE_CONFIGS];
  899. } __attribute__ ((packed));
  900. struct wl1251_acx_mem_map {
  901. struct acx_header header;
  902. void *code_start;
  903. void *code_end;
  904. void *wep_defkey_start;
  905. void *wep_defkey_end;
  906. void *sta_table_start;
  907. void *sta_table_end;
  908. void *packet_template_start;
  909. void *packet_template_end;
  910. void *queue_memory_start;
  911. void *queue_memory_end;
  912. void *packet_memory_pool_start;
  913. void *packet_memory_pool_end;
  914. void *debug_buffer1_start;
  915. void *debug_buffer1_end;
  916. void *debug_buffer2_start;
  917. void *debug_buffer2_end;
  918. /* Number of blocks FW allocated for TX packets */
  919. u32 num_tx_mem_blocks;
  920. /* Number of blocks FW allocated for RX packets */
  921. u32 num_rx_mem_blocks;
  922. } __attribute__ ((packed));
  923. /*************************************************************************
  924. Host Interrupt Register (WiLink -> Host)
  925. **************************************************************************/
  926. /* RX packet is ready in Xfer buffer #0 */
  927. #define WL1251_ACX_INTR_RX0_DATA BIT(0)
  928. /* TX result(s) are in the TX complete buffer */
  929. #define WL1251_ACX_INTR_TX_RESULT BIT(1)
  930. /* OBSOLETE */
  931. #define WL1251_ACX_INTR_TX_XFR BIT(2)
  932. /* RX packet is ready in Xfer buffer #1 */
  933. #define WL1251_ACX_INTR_RX1_DATA BIT(3)
  934. /* Event was entered to Event MBOX #A */
  935. #define WL1251_ACX_INTR_EVENT_A BIT(4)
  936. /* Event was entered to Event MBOX #B */
  937. #define WL1251_ACX_INTR_EVENT_B BIT(5)
  938. /* OBSOLETE */
  939. #define WL1251_ACX_INTR_WAKE_ON_HOST BIT(6)
  940. /* Trace meassge on MBOX #A */
  941. #define WL1251_ACX_INTR_TRACE_A BIT(7)
  942. /* Trace meassge on MBOX #B */
  943. #define WL1251_ACX_INTR_TRACE_B BIT(8)
  944. /* Command processing completion */
  945. #define WL1251_ACX_INTR_CMD_COMPLETE BIT(9)
  946. /* Init sequence is done */
  947. #define WL1251_ACX_INTR_INIT_COMPLETE BIT(14)
  948. #define WL1251_ACX_INTR_ALL 0xFFFFFFFF
  949. enum {
  950. ACX_WAKE_UP_CONDITIONS = 0x0002,
  951. ACX_MEM_CFG = 0x0003,
  952. ACX_SLOT = 0x0004,
  953. ACX_QUEUE_HEAD = 0x0005, /* for MASTER mode only */
  954. ACX_AC_CFG = 0x0007,
  955. ACX_MEM_MAP = 0x0008,
  956. ACX_AID = 0x000A,
  957. ACX_RADIO_PARAM = 0x000B, /* Not used */
  958. ACX_CFG = 0x000C, /* Not used */
  959. ACX_FW_REV = 0x000D,
  960. ACX_MEDIUM_USAGE = 0x000F,
  961. ACX_RX_CFG = 0x0010,
  962. ACX_TX_QUEUE_CFG = 0x0011, /* FIXME: only used by wl1251 */
  963. ACX_BSS_IN_PS = 0x0012, /* for AP only */
  964. ACX_STATISTICS = 0x0013, /* Debug API */
  965. ACX_FEATURE_CFG = 0x0015,
  966. ACX_MISC_CFG = 0x0017, /* Not used */
  967. ACX_TID_CFG = 0x001A,
  968. ACX_BEACON_FILTER_OPT = 0x001F,
  969. ACX_LOW_RSSI = 0x0020,
  970. ACX_NOISE_HIST = 0x0021,
  971. ACX_HDK_VERSION = 0x0022, /* ??? */
  972. ACX_PD_THRESHOLD = 0x0023,
  973. ACX_DATA_PATH_PARAMS = 0x0024, /* WO */
  974. ACX_DATA_PATH_RESP_PARAMS = 0x0024, /* RO */
  975. ACX_CCA_THRESHOLD = 0x0025,
  976. ACX_EVENT_MBOX_MASK = 0x0026,
  977. #ifdef FW_RUNNING_AS_AP
  978. ACX_DTIM_PERIOD = 0x0027, /* for AP only */
  979. #else
  980. ACX_WR_TBTT_AND_DTIM = 0x0027, /* STA only */
  981. #endif
  982. ACX_ACI_OPTION_CFG = 0x0029, /* OBSOLETE (for 1251)*/
  983. ACX_GPIO_CFG = 0x002A, /* Not used */
  984. ACX_GPIO_SET = 0x002B, /* Not used */
  985. ACX_PM_CFG = 0x002C, /* To Be Documented */
  986. ACX_CONN_MONIT_PARAMS = 0x002D,
  987. ACX_AVERAGE_RSSI = 0x002E, /* Not used */
  988. ACX_CONS_TX_FAILURE = 0x002F,
  989. ACX_BCN_DTIM_OPTIONS = 0x0031,
  990. ACX_SG_ENABLE = 0x0032,
  991. ACX_SG_CFG = 0x0033,
  992. ACX_ANTENNA_DIVERSITY_CFG = 0x0035, /* To Be Documented */
  993. ACX_LOW_SNR = 0x0037, /* To Be Documented */
  994. ACX_BEACON_FILTER_TABLE = 0x0038,
  995. ACX_ARP_IP_FILTER = 0x0039,
  996. ACX_ROAMING_STATISTICS_TBL = 0x003B,
  997. ACX_RATE_POLICY = 0x003D,
  998. ACX_CTS_PROTECTION = 0x003E,
  999. ACX_SLEEP_AUTH = 0x003F,
  1000. ACX_PREAMBLE_TYPE = 0x0040,
  1001. ACX_ERROR_CNT = 0x0041,
  1002. ACX_FW_GEN_FRAME_RATES = 0x0042,
  1003. ACX_IBSS_FILTER = 0x0044,
  1004. ACX_SERVICE_PERIOD_TIMEOUT = 0x0045,
  1005. ACX_TSF_INFO = 0x0046,
  1006. ACX_CONFIG_PS_WMM = 0x0049,
  1007. ACX_ENABLE_RX_DATA_FILTER = 0x004A,
  1008. ACX_SET_RX_DATA_FILTER = 0x004B,
  1009. ACX_GET_DATA_FILTER_STATISTICS = 0x004C,
  1010. ACX_POWER_LEVEL_TABLE = 0x004D,
  1011. ACX_BET_ENABLE = 0x0050,
  1012. DOT11_STATION_ID = 0x1001,
  1013. DOT11_RX_MSDU_LIFE_TIME = 0x1004,
  1014. DOT11_CUR_TX_PWR = 0x100D,
  1015. DOT11_DEFAULT_KEY = 0x1010,
  1016. DOT11_RX_DOT11_MODE = 0x1012,
  1017. DOT11_RTS_THRESHOLD = 0x1013,
  1018. DOT11_GROUP_ADDRESS_TBL = 0x1014,
  1019. MAX_DOT11_IE = DOT11_GROUP_ADDRESS_TBL,
  1020. MAX_IE = 0xFFFF
  1021. };
  1022. int wl1251_acx_frame_rates(struct wl1251 *wl, u8 ctrl_rate, u8 ctrl_mod,
  1023. u8 mgt_rate, u8 mgt_mod);
  1024. int wl1251_acx_station_id(struct wl1251 *wl);
  1025. int wl1251_acx_default_key(struct wl1251 *wl, u8 key_id);
  1026. int wl1251_acx_wake_up_conditions(struct wl1251 *wl, u8 wake_up_event,
  1027. u8 listen_interval);
  1028. int wl1251_acx_sleep_auth(struct wl1251 *wl, u8 sleep_auth);
  1029. int wl1251_acx_fw_version(struct wl1251 *wl, char *buf, size_t len);
  1030. int wl1251_acx_tx_power(struct wl1251 *wl, int power);
  1031. int wl1251_acx_feature_cfg(struct wl1251 *wl);
  1032. int wl1251_acx_mem_map(struct wl1251 *wl,
  1033. struct acx_header *mem_map, size_t len);
  1034. int wl1251_acx_data_path_params(struct wl1251 *wl,
  1035. struct acx_data_path_params_resp *data_path);
  1036. int wl1251_acx_rx_msdu_life_time(struct wl1251 *wl, u32 life_time);
  1037. int wl1251_acx_rx_config(struct wl1251 *wl, u32 config, u32 filter);
  1038. int wl1251_acx_pd_threshold(struct wl1251 *wl);
  1039. int wl1251_acx_slot(struct wl1251 *wl, enum acx_slot_type slot_time);
  1040. int wl1251_acx_group_address_tbl(struct wl1251 *wl);
  1041. int wl1251_acx_service_period_timeout(struct wl1251 *wl);
  1042. int wl1251_acx_rts_threshold(struct wl1251 *wl, u16 rts_threshold);
  1043. int wl1251_acx_beacon_filter_opt(struct wl1251 *wl);
  1044. int wl1251_acx_beacon_filter_table(struct wl1251 *wl);
  1045. int wl1251_acx_sg_enable(struct wl1251 *wl);
  1046. int wl1251_acx_sg_cfg(struct wl1251 *wl);
  1047. int wl1251_acx_cca_threshold(struct wl1251 *wl);
  1048. int wl1251_acx_bcn_dtim_options(struct wl1251 *wl);
  1049. int wl1251_acx_aid(struct wl1251 *wl, u16 aid);
  1050. int wl1251_acx_event_mbox_mask(struct wl1251 *wl, u32 event_mask);
  1051. int wl1251_acx_set_preamble(struct wl1251 *wl, enum acx_preamble_type preamble);
  1052. int wl1251_acx_cts_protect(struct wl1251 *wl,
  1053. enum acx_ctsprotect_type ctsprotect);
  1054. int wl1251_acx_statistics(struct wl1251 *wl, struct acx_statistics *stats);
  1055. int wl1251_acx_tsf_info(struct wl1251 *wl, u64 *mactime);
  1056. int wl1251_acx_rate_policies(struct wl1251 *wl);
  1057. int wl1251_acx_mem_cfg(struct wl1251 *wl);
  1058. #endif /* __WL1251_ACX_H__ */