wl1251_acx.h 34 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303
  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. #define SYNCH_FAIL_DEFAULT_THRESHOLD 5 /* number of beacons */
  387. #define NO_BEACON_DEFAULT_TIMEOUT (100) /* TU */
  388. struct acx_conn_monit_params {
  389. struct acx_header header;
  390. u32 synch_fail_thold; /* number of beacons missed */
  391. u32 bss_lose_timeout; /* number of TU's from synch fail */
  392. };
  393. enum {
  394. SG_ENABLE = 0,
  395. SG_DISABLE,
  396. SG_SENSE_NO_ACTIVITY,
  397. SG_SENSE_ACTIVE
  398. };
  399. struct acx_bt_wlan_coex {
  400. struct acx_header header;
  401. /*
  402. * 0 -> PTA enabled
  403. * 1 -> PTA disabled
  404. * 2 -> sense no active mode, i.e.
  405. * an interrupt is sent upon
  406. * BT activity.
  407. * 3 -> PTA is switched on in response
  408. * to the interrupt sending.
  409. */
  410. u8 enable;
  411. u8 pad[3];
  412. } __attribute__ ((packed));
  413. #define PTA_ANTENNA_TYPE_DEF (0)
  414. #define PTA_BT_HP_MAXTIME_DEF (2000)
  415. #define PTA_WLAN_HP_MAX_TIME_DEF (5000)
  416. #define PTA_SENSE_DISABLE_TIMER_DEF (1350)
  417. #define PTA_PROTECTIVE_RX_TIME_DEF (1500)
  418. #define PTA_PROTECTIVE_TX_TIME_DEF (1500)
  419. #define PTA_TIMEOUT_NEXT_BT_LP_PACKET_DEF (3000)
  420. #define PTA_SIGNALING_TYPE_DEF (1)
  421. #define PTA_AFH_LEVERAGE_ON_DEF (0)
  422. #define PTA_NUMBER_QUIET_CYCLE_DEF (0)
  423. #define PTA_MAX_NUM_CTS_DEF (3)
  424. #define PTA_NUMBER_OF_WLAN_PACKETS_DEF (2)
  425. #define PTA_NUMBER_OF_BT_PACKETS_DEF (2)
  426. #define PTA_PROTECTIVE_RX_TIME_FAST_DEF (1500)
  427. #define PTA_PROTECTIVE_TX_TIME_FAST_DEF (3000)
  428. #define PTA_CYCLE_TIME_FAST_DEF (8700)
  429. #define PTA_RX_FOR_AVALANCHE_DEF (5)
  430. #define PTA_ELP_HP_DEF (0)
  431. #define PTA_ANTI_STARVE_PERIOD_DEF (500)
  432. #define PTA_ANTI_STARVE_NUM_CYCLE_DEF (4)
  433. #define PTA_ALLOW_PA_SD_DEF (1)
  434. #define PTA_TIME_BEFORE_BEACON_DEF (6300)
  435. #define PTA_HPDM_MAX_TIME_DEF (1600)
  436. #define PTA_TIME_OUT_NEXT_WLAN_DEF (2550)
  437. #define PTA_AUTO_MODE_NO_CTS_DEF (0)
  438. #define PTA_BT_HP_RESPECTED_DEF (3)
  439. #define PTA_WLAN_RX_MIN_RATE_DEF (24)
  440. #define PTA_ACK_MODE_DEF (1)
  441. struct acx_bt_wlan_coex_param {
  442. struct acx_header header;
  443. /*
  444. * The minimum rate of a received WLAN packet in the STA,
  445. * during protective mode, of which a new BT-HP request
  446. * during this Rx will always be respected and gain the antenna.
  447. */
  448. u32 min_rate;
  449. /* Max time the BT HP will be respected. */
  450. u16 bt_hp_max_time;
  451. /* Max time the WLAN HP will be respected. */
  452. u16 wlan_hp_max_time;
  453. /*
  454. * The time between the last BT activity
  455. * and the moment when the sense mode returns
  456. * to SENSE_INACTIVE.
  457. */
  458. u16 sense_disable_timer;
  459. /* Time before the next BT HP instance */
  460. u16 rx_time_bt_hp;
  461. u16 tx_time_bt_hp;
  462. /* range: 10-20000 default: 1500 */
  463. u16 rx_time_bt_hp_fast;
  464. u16 tx_time_bt_hp_fast;
  465. /* range: 2000-65535 default: 8700 */
  466. u16 wlan_cycle_fast;
  467. /* range: 0 - 15000 (Msec) default: 1000 */
  468. u16 bt_anti_starvation_period;
  469. /* range 400-10000(Usec) default: 3000 */
  470. u16 next_bt_lp_packet;
  471. /* Deafult: worst case for BT DH5 traffic */
  472. u16 wake_up_beacon;
  473. /* range: 0-50000(Usec) default: 1050 */
  474. u16 hp_dm_max_guard_time;
  475. /*
  476. * This is to prevent both BT & WLAN antenna
  477. * starvation.
  478. * Range: 100-50000(Usec) default:2550
  479. */
  480. u16 next_wlan_packet;
  481. /* 0 -> shared antenna */
  482. u8 antenna_type;
  483. /*
  484. * 0 -> TI legacy
  485. * 1 -> Palau
  486. */
  487. u8 signal_type;
  488. /*
  489. * BT AFH status
  490. * 0 -> no AFH
  491. * 1 -> from dedicated GPIO
  492. * 2 -> AFH on (from host)
  493. */
  494. u8 afh_leverage_on;
  495. /*
  496. * The number of cycles during which no
  497. * TX will be sent after 1 cycle of RX
  498. * transaction in protective mode
  499. */
  500. u8 quiet_cycle_num;
  501. /*
  502. * The maximum number of CTSs that will
  503. * be sent for receiving RX packet in
  504. * protective mode
  505. */
  506. u8 max_cts;
  507. /*
  508. * The number of WLAN packets
  509. * transferred in common mode before
  510. * switching to BT.
  511. */
  512. u8 wlan_packets_num;
  513. /*
  514. * The number of BT packets
  515. * transferred in common mode before
  516. * switching to WLAN.
  517. */
  518. u8 bt_packets_num;
  519. /* range: 1-255 default: 5 */
  520. u8 missed_rx_avalanche;
  521. /* range: 0-1 default: 1 */
  522. u8 wlan_elp_hp;
  523. /* range: 0 - 15 default: 4 */
  524. u8 bt_anti_starvation_cycles;
  525. u8 ack_mode_dual_ant;
  526. /*
  527. * Allow PA_SD assertion/de-assertion
  528. * during enabled BT activity.
  529. */
  530. u8 pa_sd_enable;
  531. /*
  532. * Enable/Disable PTA in auto mode:
  533. * Support Both Active & P.S modes
  534. */
  535. u8 pta_auto_mode_enable;
  536. /* range: 0 - 20 default: 1 */
  537. u8 bt_hp_respected_num;
  538. } __attribute__ ((packed));
  539. #define CCA_THRSH_ENABLE_ENERGY_D 0x140A
  540. #define CCA_THRSH_DISABLE_ENERGY_D 0xFFEF
  541. struct acx_energy_detection {
  542. struct acx_header header;
  543. /* The RX Clear Channel Assessment threshold in the PHY */
  544. u16 rx_cca_threshold;
  545. u8 tx_energy_detection;
  546. u8 pad;
  547. } __attribute__ ((packed));
  548. #define BCN_RX_TIMEOUT_DEF_VALUE 10000
  549. #define BROADCAST_RX_TIMEOUT_DEF_VALUE 20000
  550. #define RX_BROADCAST_IN_PS_DEF_VALUE 1
  551. #define CONSECUTIVE_PS_POLL_FAILURE_DEF 4
  552. struct acx_beacon_broadcast {
  553. struct acx_header header;
  554. u16 beacon_rx_timeout;
  555. u16 broadcast_timeout;
  556. /* Enables receiving of broadcast packets in PS mode */
  557. u8 rx_broadcast_in_ps;
  558. /* Consecutive PS Poll failures before updating the host */
  559. u8 ps_poll_threshold;
  560. u8 pad[2];
  561. } __attribute__ ((packed));
  562. struct acx_event_mask {
  563. struct acx_header header;
  564. u32 event_mask;
  565. u32 high_event_mask; /* Unused */
  566. } __attribute__ ((packed));
  567. #define CFG_RX_FCS BIT(2)
  568. #define CFG_RX_ALL_GOOD BIT(3)
  569. #define CFG_UNI_FILTER_EN BIT(4)
  570. #define CFG_BSSID_FILTER_EN BIT(5)
  571. #define CFG_MC_FILTER_EN BIT(6)
  572. #define CFG_MC_ADDR0_EN BIT(7)
  573. #define CFG_MC_ADDR1_EN BIT(8)
  574. #define CFG_BC_REJECT_EN BIT(9)
  575. #define CFG_SSID_FILTER_EN BIT(10)
  576. #define CFG_RX_INT_FCS_ERROR BIT(11)
  577. #define CFG_RX_INT_ENCRYPTED BIT(12)
  578. #define CFG_RX_WR_RX_STATUS BIT(13)
  579. #define CFG_RX_FILTER_NULTI BIT(14)
  580. #define CFG_RX_RESERVE BIT(15)
  581. #define CFG_RX_TIMESTAMP_TSF BIT(16)
  582. #define CFG_RX_RSV_EN BIT(0)
  583. #define CFG_RX_RCTS_ACK BIT(1)
  584. #define CFG_RX_PRSP_EN BIT(2)
  585. #define CFG_RX_PREQ_EN BIT(3)
  586. #define CFG_RX_MGMT_EN BIT(4)
  587. #define CFG_RX_FCS_ERROR BIT(5)
  588. #define CFG_RX_DATA_EN BIT(6)
  589. #define CFG_RX_CTL_EN BIT(7)
  590. #define CFG_RX_CF_EN BIT(8)
  591. #define CFG_RX_BCN_EN BIT(9)
  592. #define CFG_RX_AUTH_EN BIT(10)
  593. #define CFG_RX_ASSOC_EN BIT(11)
  594. #define SCAN_PASSIVE BIT(0)
  595. #define SCAN_5GHZ_BAND BIT(1)
  596. #define SCAN_TRIGGERED BIT(2)
  597. #define SCAN_PRIORITY_HIGH BIT(3)
  598. struct acx_fw_gen_frame_rates {
  599. struct acx_header header;
  600. u8 tx_ctrl_frame_rate; /* RATE_* */
  601. u8 tx_ctrl_frame_mod; /* CCK_* or PBCC_* */
  602. u8 tx_mgt_frame_rate;
  603. u8 tx_mgt_frame_mod;
  604. } __attribute__ ((packed));
  605. /* STA MAC */
  606. struct acx_dot11_station_id {
  607. struct acx_header header;
  608. u8 mac[ETH_ALEN];
  609. u8 pad[2];
  610. } __attribute__ ((packed));
  611. struct acx_feature_config {
  612. struct acx_header header;
  613. u32 options;
  614. u32 data_flow_options;
  615. } __attribute__ ((packed));
  616. struct acx_current_tx_power {
  617. struct acx_header header;
  618. u8 current_tx_power;
  619. u8 padding[3];
  620. } __attribute__ ((packed));
  621. struct acx_dot11_default_key {
  622. struct acx_header header;
  623. u8 id;
  624. u8 pad[3];
  625. } __attribute__ ((packed));
  626. struct acx_tsf_info {
  627. struct acx_header header;
  628. u32 current_tsf_msb;
  629. u32 current_tsf_lsb;
  630. u32 last_TBTT_msb;
  631. u32 last_TBTT_lsb;
  632. u8 last_dtim_count;
  633. u8 pad[3];
  634. } __attribute__ ((packed));
  635. enum acx_wake_up_event {
  636. WAKE_UP_EVENT_BEACON_BITMAP = 0x01, /* Wake on every Beacon*/
  637. WAKE_UP_EVENT_DTIM_BITMAP = 0x02, /* Wake on every DTIM*/
  638. WAKE_UP_EVENT_N_DTIM_BITMAP = 0x04, /* Wake on every Nth DTIM */
  639. WAKE_UP_EVENT_N_BEACONS_BITMAP = 0x08, /* Wake on every Nth Beacon */
  640. WAKE_UP_EVENT_BITS_MASK = 0x0F
  641. };
  642. struct acx_wake_up_condition {
  643. struct acx_header header;
  644. u8 wake_up_event; /* Only one bit can be set */
  645. u8 listen_interval;
  646. u8 pad[2];
  647. } __attribute__ ((packed));
  648. struct acx_aid {
  649. struct acx_header header;
  650. /*
  651. * To be set when associated with an AP.
  652. */
  653. u16 aid;
  654. u8 pad[2];
  655. } __attribute__ ((packed));
  656. enum acx_preamble_type {
  657. ACX_PREAMBLE_LONG = 0,
  658. ACX_PREAMBLE_SHORT = 1
  659. };
  660. struct acx_preamble {
  661. struct acx_header header;
  662. /*
  663. * When set, the WiLink transmits the frames with a short preamble and
  664. * when cleared, the WiLink transmits the frames with a long preamble.
  665. */
  666. u8 preamble;
  667. u8 padding[3];
  668. } __attribute__ ((packed));
  669. enum acx_ctsprotect_type {
  670. CTSPROTECT_DISABLE = 0,
  671. CTSPROTECT_ENABLE = 1
  672. };
  673. struct acx_ctsprotect {
  674. struct acx_header header;
  675. u8 ctsprotect;
  676. u8 padding[3];
  677. } __attribute__ ((packed));
  678. struct acx_tx_statistics {
  679. u32 internal_desc_overflow;
  680. } __attribute__ ((packed));
  681. struct acx_rx_statistics {
  682. u32 out_of_mem;
  683. u32 hdr_overflow;
  684. u32 hw_stuck;
  685. u32 dropped;
  686. u32 fcs_err;
  687. u32 xfr_hint_trig;
  688. u32 path_reset;
  689. u32 reset_counter;
  690. } __attribute__ ((packed));
  691. struct acx_dma_statistics {
  692. u32 rx_requested;
  693. u32 rx_errors;
  694. u32 tx_requested;
  695. u32 tx_errors;
  696. } __attribute__ ((packed));
  697. struct acx_isr_statistics {
  698. /* host command complete */
  699. u32 cmd_cmplt;
  700. /* fiqisr() */
  701. u32 fiqs;
  702. /* (INT_STS_ND & INT_TRIG_RX_HEADER) */
  703. u32 rx_headers;
  704. /* (INT_STS_ND & INT_TRIG_RX_CMPLT) */
  705. u32 rx_completes;
  706. /* (INT_STS_ND & INT_TRIG_NO_RX_BUF) */
  707. u32 rx_mem_overflow;
  708. /* (INT_STS_ND & INT_TRIG_S_RX_RDY) */
  709. u32 rx_rdys;
  710. /* irqisr() */
  711. u32 irqs;
  712. /* (INT_STS_ND & INT_TRIG_TX_PROC) */
  713. u32 tx_procs;
  714. /* (INT_STS_ND & INT_TRIG_DECRYPT_DONE) */
  715. u32 decrypt_done;
  716. /* (INT_STS_ND & INT_TRIG_DMA0) */
  717. u32 dma0_done;
  718. /* (INT_STS_ND & INT_TRIG_DMA1) */
  719. u32 dma1_done;
  720. /* (INT_STS_ND & INT_TRIG_TX_EXC_CMPLT) */
  721. u32 tx_exch_complete;
  722. /* (INT_STS_ND & INT_TRIG_COMMAND) */
  723. u32 commands;
  724. /* (INT_STS_ND & INT_TRIG_RX_PROC) */
  725. u32 rx_procs;
  726. /* (INT_STS_ND & INT_TRIG_PM_802) */
  727. u32 hw_pm_mode_changes;
  728. /* (INT_STS_ND & INT_TRIG_ACKNOWLEDGE) */
  729. u32 host_acknowledges;
  730. /* (INT_STS_ND & INT_TRIG_PM_PCI) */
  731. u32 pci_pm;
  732. /* (INT_STS_ND & INT_TRIG_ACM_WAKEUP) */
  733. u32 wakeups;
  734. /* (INT_STS_ND & INT_TRIG_LOW_RSSI) */
  735. u32 low_rssi;
  736. } __attribute__ ((packed));
  737. struct acx_wep_statistics {
  738. /* WEP address keys configured */
  739. u32 addr_key_count;
  740. /* default keys configured */
  741. u32 default_key_count;
  742. u32 reserved;
  743. /* number of times that WEP key not found on lookup */
  744. u32 key_not_found;
  745. /* number of times that WEP key decryption failed */
  746. u32 decrypt_fail;
  747. /* WEP packets decrypted */
  748. u32 packets;
  749. /* WEP decrypt interrupts */
  750. u32 interrupt;
  751. } __attribute__ ((packed));
  752. #define ACX_MISSED_BEACONS_SPREAD 10
  753. struct acx_pwr_statistics {
  754. /* the amount of enters into power save mode (both PD & ELP) */
  755. u32 ps_enter;
  756. /* the amount of enters into ELP mode */
  757. u32 elp_enter;
  758. /* the amount of missing beacon interrupts to the host */
  759. u32 missing_bcns;
  760. /* the amount of wake on host-access times */
  761. u32 wake_on_host;
  762. /* the amount of wake on timer-expire */
  763. u32 wake_on_timer_exp;
  764. /* the number of packets that were transmitted with PS bit set */
  765. u32 tx_with_ps;
  766. /* the number of packets that were transmitted with PS bit clear */
  767. u32 tx_without_ps;
  768. /* the number of received beacons */
  769. u32 rcvd_beacons;
  770. /* the number of entering into PowerOn (power save off) */
  771. u32 power_save_off;
  772. /* the number of entries into power save mode */
  773. u16 enable_ps;
  774. /*
  775. * the number of exits from power save, not including failed PS
  776. * transitions
  777. */
  778. u16 disable_ps;
  779. /*
  780. * the number of times the TSF counter was adjusted because
  781. * of drift
  782. */
  783. u32 fix_tsf_ps;
  784. /* Gives statistics about the spread continuous missed beacons.
  785. * The 16 LSB are dedicated for the PS mode.
  786. * The 16 MSB are dedicated for the PS mode.
  787. * cont_miss_bcns_spread[0] - single missed beacon.
  788. * cont_miss_bcns_spread[1] - two continuous missed beacons.
  789. * cont_miss_bcns_spread[2] - three continuous missed beacons.
  790. * ...
  791. * cont_miss_bcns_spread[9] - ten and more continuous missed beacons.
  792. */
  793. u32 cont_miss_bcns_spread[ACX_MISSED_BEACONS_SPREAD];
  794. /* the number of beacons in awake mode */
  795. u32 rcvd_awake_beacons;
  796. } __attribute__ ((packed));
  797. struct acx_mic_statistics {
  798. u32 rx_pkts;
  799. u32 calc_failure;
  800. } __attribute__ ((packed));
  801. struct acx_aes_statistics {
  802. u32 encrypt_fail;
  803. u32 decrypt_fail;
  804. u32 encrypt_packets;
  805. u32 decrypt_packets;
  806. u32 encrypt_interrupt;
  807. u32 decrypt_interrupt;
  808. } __attribute__ ((packed));
  809. struct acx_event_statistics {
  810. u32 heart_beat;
  811. u32 calibration;
  812. u32 rx_mismatch;
  813. u32 rx_mem_empty;
  814. u32 rx_pool;
  815. u32 oom_late;
  816. u32 phy_transmit_error;
  817. u32 tx_stuck;
  818. } __attribute__ ((packed));
  819. struct acx_ps_statistics {
  820. u32 pspoll_timeouts;
  821. u32 upsd_timeouts;
  822. u32 upsd_max_sptime;
  823. u32 upsd_max_apturn;
  824. u32 pspoll_max_apturn;
  825. u32 pspoll_utilization;
  826. u32 upsd_utilization;
  827. } __attribute__ ((packed));
  828. struct acx_rxpipe_statistics {
  829. u32 rx_prep_beacon_drop;
  830. u32 descr_host_int_trig_rx_data;
  831. u32 beacon_buffer_thres_host_int_trig_rx_data;
  832. u32 missed_beacon_host_int_trig_rx_data;
  833. u32 tx_xfr_host_int_trig_rx_data;
  834. } __attribute__ ((packed));
  835. struct acx_statistics {
  836. struct acx_header header;
  837. struct acx_tx_statistics tx;
  838. struct acx_rx_statistics rx;
  839. struct acx_dma_statistics dma;
  840. struct acx_isr_statistics isr;
  841. struct acx_wep_statistics wep;
  842. struct acx_pwr_statistics pwr;
  843. struct acx_aes_statistics aes;
  844. struct acx_mic_statistics mic;
  845. struct acx_event_statistics event;
  846. struct acx_ps_statistics ps;
  847. struct acx_rxpipe_statistics rxpipe;
  848. } __attribute__ ((packed));
  849. #define ACX_MAX_RATE_CLASSES 8
  850. #define ACX_RATE_MASK_UNSPECIFIED 0
  851. #define ACX_RATE_RETRY_LIMIT 10
  852. struct acx_rate_class {
  853. u32 enabled_rates;
  854. u8 short_retry_limit;
  855. u8 long_retry_limit;
  856. u8 aflags;
  857. u8 reserved;
  858. };
  859. struct acx_rate_policy {
  860. struct acx_header header;
  861. u32 rate_class_cnt;
  862. struct acx_rate_class rate_class[ACX_MAX_RATE_CLASSES];
  863. } __attribute__ ((packed));
  864. struct wl1251_acx_memory {
  865. __le16 num_stations; /* number of STAs to be supported. */
  866. u16 reserved_1;
  867. /*
  868. * Nmber of memory buffers for the RX mem pool.
  869. * The actual number may be less if there are
  870. * not enough blocks left for the minimum num
  871. * of TX ones.
  872. */
  873. u8 rx_mem_block_num;
  874. u8 reserved_2;
  875. u8 num_tx_queues; /* From 1 to 16 */
  876. u8 host_if_options; /* HOST_IF* */
  877. u8 tx_min_mem_block_num;
  878. u8 num_ssid_profiles;
  879. __le16 debug_buffer_size;
  880. } __attribute__ ((packed));
  881. #define ACX_RX_DESC_MIN 1
  882. #define ACX_RX_DESC_MAX 127
  883. #define ACX_RX_DESC_DEF 32
  884. struct wl1251_acx_rx_queue_config {
  885. u8 num_descs;
  886. u8 pad;
  887. u8 type;
  888. u8 priority;
  889. __le32 dma_address;
  890. } __attribute__ ((packed));
  891. #define ACX_TX_DESC_MIN 1
  892. #define ACX_TX_DESC_MAX 127
  893. #define ACX_TX_DESC_DEF 16
  894. struct wl1251_acx_tx_queue_config {
  895. u8 num_descs;
  896. u8 pad[2];
  897. u8 attributes;
  898. } __attribute__ ((packed));
  899. #define MAX_TX_QUEUE_CONFIGS 5
  900. #define MAX_TX_QUEUES 4
  901. struct wl1251_acx_config_memory {
  902. struct acx_header header;
  903. struct wl1251_acx_memory mem_config;
  904. struct wl1251_acx_rx_queue_config rx_queue_config;
  905. struct wl1251_acx_tx_queue_config tx_queue_config[MAX_TX_QUEUE_CONFIGS];
  906. } __attribute__ ((packed));
  907. struct wl1251_acx_mem_map {
  908. struct acx_header header;
  909. void *code_start;
  910. void *code_end;
  911. void *wep_defkey_start;
  912. void *wep_defkey_end;
  913. void *sta_table_start;
  914. void *sta_table_end;
  915. void *packet_template_start;
  916. void *packet_template_end;
  917. void *queue_memory_start;
  918. void *queue_memory_end;
  919. void *packet_memory_pool_start;
  920. void *packet_memory_pool_end;
  921. void *debug_buffer1_start;
  922. void *debug_buffer1_end;
  923. void *debug_buffer2_start;
  924. void *debug_buffer2_end;
  925. /* Number of blocks FW allocated for TX packets */
  926. u32 num_tx_mem_blocks;
  927. /* Number of blocks FW allocated for RX packets */
  928. u32 num_rx_mem_blocks;
  929. } __attribute__ ((packed));
  930. /*************************************************************************
  931. Host Interrupt Register (WiLink -> Host)
  932. **************************************************************************/
  933. /* RX packet is ready in Xfer buffer #0 */
  934. #define WL1251_ACX_INTR_RX0_DATA BIT(0)
  935. /* TX result(s) are in the TX complete buffer */
  936. #define WL1251_ACX_INTR_TX_RESULT BIT(1)
  937. /* OBSOLETE */
  938. #define WL1251_ACX_INTR_TX_XFR BIT(2)
  939. /* RX packet is ready in Xfer buffer #1 */
  940. #define WL1251_ACX_INTR_RX1_DATA BIT(3)
  941. /* Event was entered to Event MBOX #A */
  942. #define WL1251_ACX_INTR_EVENT_A BIT(4)
  943. /* Event was entered to Event MBOX #B */
  944. #define WL1251_ACX_INTR_EVENT_B BIT(5)
  945. /* OBSOLETE */
  946. #define WL1251_ACX_INTR_WAKE_ON_HOST BIT(6)
  947. /* Trace meassge on MBOX #A */
  948. #define WL1251_ACX_INTR_TRACE_A BIT(7)
  949. /* Trace meassge on MBOX #B */
  950. #define WL1251_ACX_INTR_TRACE_B BIT(8)
  951. /* Command processing completion */
  952. #define WL1251_ACX_INTR_CMD_COMPLETE BIT(9)
  953. /* Init sequence is done */
  954. #define WL1251_ACX_INTR_INIT_COMPLETE BIT(14)
  955. #define WL1251_ACX_INTR_ALL 0xFFFFFFFF
  956. enum {
  957. ACX_WAKE_UP_CONDITIONS = 0x0002,
  958. ACX_MEM_CFG = 0x0003,
  959. ACX_SLOT = 0x0004,
  960. ACX_QUEUE_HEAD = 0x0005, /* for MASTER mode only */
  961. ACX_AC_CFG = 0x0007,
  962. ACX_MEM_MAP = 0x0008,
  963. ACX_AID = 0x000A,
  964. ACX_RADIO_PARAM = 0x000B, /* Not used */
  965. ACX_CFG = 0x000C, /* Not used */
  966. ACX_FW_REV = 0x000D,
  967. ACX_MEDIUM_USAGE = 0x000F,
  968. ACX_RX_CFG = 0x0010,
  969. ACX_TX_QUEUE_CFG = 0x0011, /* FIXME: only used by wl1251 */
  970. ACX_BSS_IN_PS = 0x0012, /* for AP only */
  971. ACX_STATISTICS = 0x0013, /* Debug API */
  972. ACX_FEATURE_CFG = 0x0015,
  973. ACX_MISC_CFG = 0x0017, /* Not used */
  974. ACX_TID_CFG = 0x001A,
  975. ACX_BEACON_FILTER_OPT = 0x001F,
  976. ACX_LOW_RSSI = 0x0020,
  977. ACX_NOISE_HIST = 0x0021,
  978. ACX_HDK_VERSION = 0x0022, /* ??? */
  979. ACX_PD_THRESHOLD = 0x0023,
  980. ACX_DATA_PATH_PARAMS = 0x0024, /* WO */
  981. ACX_DATA_PATH_RESP_PARAMS = 0x0024, /* RO */
  982. ACX_CCA_THRESHOLD = 0x0025,
  983. ACX_EVENT_MBOX_MASK = 0x0026,
  984. #ifdef FW_RUNNING_AS_AP
  985. ACX_DTIM_PERIOD = 0x0027, /* for AP only */
  986. #else
  987. ACX_WR_TBTT_AND_DTIM = 0x0027, /* STA only */
  988. #endif
  989. ACX_ACI_OPTION_CFG = 0x0029, /* OBSOLETE (for 1251)*/
  990. ACX_GPIO_CFG = 0x002A, /* Not used */
  991. ACX_GPIO_SET = 0x002B, /* Not used */
  992. ACX_PM_CFG = 0x002C, /* To Be Documented */
  993. ACX_CONN_MONIT_PARAMS = 0x002D,
  994. ACX_AVERAGE_RSSI = 0x002E, /* Not used */
  995. ACX_CONS_TX_FAILURE = 0x002F,
  996. ACX_BCN_DTIM_OPTIONS = 0x0031,
  997. ACX_SG_ENABLE = 0x0032,
  998. ACX_SG_CFG = 0x0033,
  999. ACX_ANTENNA_DIVERSITY_CFG = 0x0035, /* To Be Documented */
  1000. ACX_LOW_SNR = 0x0037, /* To Be Documented */
  1001. ACX_BEACON_FILTER_TABLE = 0x0038,
  1002. ACX_ARP_IP_FILTER = 0x0039,
  1003. ACX_ROAMING_STATISTICS_TBL = 0x003B,
  1004. ACX_RATE_POLICY = 0x003D,
  1005. ACX_CTS_PROTECTION = 0x003E,
  1006. ACX_SLEEP_AUTH = 0x003F,
  1007. ACX_PREAMBLE_TYPE = 0x0040,
  1008. ACX_ERROR_CNT = 0x0041,
  1009. ACX_FW_GEN_FRAME_RATES = 0x0042,
  1010. ACX_IBSS_FILTER = 0x0044,
  1011. ACX_SERVICE_PERIOD_TIMEOUT = 0x0045,
  1012. ACX_TSF_INFO = 0x0046,
  1013. ACX_CONFIG_PS_WMM = 0x0049,
  1014. ACX_ENABLE_RX_DATA_FILTER = 0x004A,
  1015. ACX_SET_RX_DATA_FILTER = 0x004B,
  1016. ACX_GET_DATA_FILTER_STATISTICS = 0x004C,
  1017. ACX_POWER_LEVEL_TABLE = 0x004D,
  1018. ACX_BET_ENABLE = 0x0050,
  1019. DOT11_STATION_ID = 0x1001,
  1020. DOT11_RX_MSDU_LIFE_TIME = 0x1004,
  1021. DOT11_CUR_TX_PWR = 0x100D,
  1022. DOT11_DEFAULT_KEY = 0x1010,
  1023. DOT11_RX_DOT11_MODE = 0x1012,
  1024. DOT11_RTS_THRESHOLD = 0x1013,
  1025. DOT11_GROUP_ADDRESS_TBL = 0x1014,
  1026. MAX_DOT11_IE = DOT11_GROUP_ADDRESS_TBL,
  1027. MAX_IE = 0xFFFF
  1028. };
  1029. int wl1251_acx_frame_rates(struct wl1251 *wl, u8 ctrl_rate, u8 ctrl_mod,
  1030. u8 mgt_rate, u8 mgt_mod);
  1031. int wl1251_acx_station_id(struct wl1251 *wl);
  1032. int wl1251_acx_default_key(struct wl1251 *wl, u8 key_id);
  1033. int wl1251_acx_wake_up_conditions(struct wl1251 *wl, u8 wake_up_event,
  1034. u8 listen_interval);
  1035. int wl1251_acx_sleep_auth(struct wl1251 *wl, u8 sleep_auth);
  1036. int wl1251_acx_fw_version(struct wl1251 *wl, char *buf, size_t len);
  1037. int wl1251_acx_tx_power(struct wl1251 *wl, int power);
  1038. int wl1251_acx_feature_cfg(struct wl1251 *wl);
  1039. int wl1251_acx_mem_map(struct wl1251 *wl,
  1040. struct acx_header *mem_map, size_t len);
  1041. int wl1251_acx_data_path_params(struct wl1251 *wl,
  1042. struct acx_data_path_params_resp *data_path);
  1043. int wl1251_acx_rx_msdu_life_time(struct wl1251 *wl, u32 life_time);
  1044. int wl1251_acx_rx_config(struct wl1251 *wl, u32 config, u32 filter);
  1045. int wl1251_acx_pd_threshold(struct wl1251 *wl);
  1046. int wl1251_acx_slot(struct wl1251 *wl, enum acx_slot_type slot_time);
  1047. int wl1251_acx_group_address_tbl(struct wl1251 *wl);
  1048. int wl1251_acx_service_period_timeout(struct wl1251 *wl);
  1049. int wl1251_acx_rts_threshold(struct wl1251 *wl, u16 rts_threshold);
  1050. int wl1251_acx_beacon_filter_opt(struct wl1251 *wl);
  1051. int wl1251_acx_beacon_filter_table(struct wl1251 *wl);
  1052. int wl1251_acx_conn_monit_params(struct wl1251 *wl);
  1053. int wl1251_acx_sg_enable(struct wl1251 *wl);
  1054. int wl1251_acx_sg_cfg(struct wl1251 *wl);
  1055. int wl1251_acx_cca_threshold(struct wl1251 *wl);
  1056. int wl1251_acx_bcn_dtim_options(struct wl1251 *wl);
  1057. int wl1251_acx_aid(struct wl1251 *wl, u16 aid);
  1058. int wl1251_acx_event_mbox_mask(struct wl1251 *wl, u32 event_mask);
  1059. int wl1251_acx_set_preamble(struct wl1251 *wl, enum acx_preamble_type preamble);
  1060. int wl1251_acx_cts_protect(struct wl1251 *wl,
  1061. enum acx_ctsprotect_type ctsprotect);
  1062. int wl1251_acx_statistics(struct wl1251 *wl, struct acx_statistics *stats);
  1063. int wl1251_acx_tsf_info(struct wl1251 *wl, u64 *mactime);
  1064. int wl1251_acx_rate_policies(struct wl1251 *wl);
  1065. int wl1251_acx_mem_cfg(struct wl1251 *wl);
  1066. #endif /* __WL1251_ACX_H__ */