2 * This file is part of wl18xx
4 * Copyright (C) 2012 Texas Instruments. All rights reserved.
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * version 2 as published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
22 #ifndef __WL18XX_EVENT_H__
23 #define __WL18XX_EVENT_H__
25 #include "../wlcore/wlcore.h"
28 SCAN_COMPLETE_EVENT_ID
= BIT(8),
29 RADAR_DETECTED_EVENT_ID
= BIT(9),
30 CHANNEL_SWITCH_COMPLETE_EVENT_ID
= BIT(10),
31 BSS_LOSS_EVENT_ID
= BIT(11),
32 MAX_TX_FAILURE_EVENT_ID
= BIT(12),
33 DUMMY_PACKET_EVENT_ID
= BIT(13),
34 INACTIVE_STA_EVENT_ID
= BIT(14),
35 PEER_REMOVE_COMPLETE_EVENT_ID
= BIT(15),
36 PERIODIC_SCAN_COMPLETE_EVENT_ID
= BIT(16),
37 BA_SESSION_RX_CONSTRAINT_EVENT_ID
= BIT(17),
38 REMAIN_ON_CHANNEL_COMPLETE_EVENT_ID
= BIT(18),
39 DFS_CHANNELS_CONFIG_COMPLETE_EVENT
= BIT(19),
40 PERIODIC_SCAN_REPORT_EVENT_ID
= BIT(20),
41 SMART_CONFIG_SYNC_EVENT_ID
= BIT(22),
42 SMART_CONFIG_DECODE_EVENT_ID
= BIT(23),
43 TIME_SYNC_EVENT_ID
= BIT(24),
44 FW_LOGGER_INDICATION
= BIT(25),
47 enum wl18xx_radar_types
{
53 struct wl18xx_event_mailbox
{
56 u8 number_of_scan_results
;
57 u8 number_of_sched_scan_results
;
59 __le16 channel_switch_role_id_bitmap
;
61 s8 rssi_snr_trigger_metric
[NUM_OF_RSSI_SNR_TRIGGERS
];
63 /* bitmap of removed links */
64 __le32 hlid_removed_bitmap
;
66 /* rx ba constraint */
67 __le16 rx_ba_role_id_bitmap
; /* 0xfff means any role. */
68 __le16 rx_ba_allowed_bitmap
;
70 /* bitmap of roc completed (by role id) */
71 __le16 roc_completed_bitmap
;
73 /* bitmap of stations (by role id) with bss loss */
74 __le16 bss_loss_bitmap
;
76 /* bitmap of stations (by HLID) which exceeded max tx retries */
77 __le16 tx_retry_exceeded_bitmap
;
79 /* time sync high msb*/
80 __le16 time_sync_tsf_high_msb
;
82 /* bitmap of inactive stations (by HLID) */
83 __le16 inactive_sta_bitmap
;
85 /* time sync high lsb*/
86 __le16 time_sync_tsf_high_lsb
;
88 /* rx BA win size indicated by RX_BA_WIN_SIZE_CHANGE_EVENT_ID */
103 /* smart config sync channel */
107 /* time sync low msb*/
108 __le16 time_sync_tsf_low_msb
;
114 /* time sync low lsb*/
115 __le16 time_sync_tsf_low_lsb
;
119 int wl18xx_wait_for_event(struct wl1271
*wl
, enum wlcore_wait_event event
,
121 int wl18xx_process_mailbox_events(struct wl1271
*wl
);