1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25#ifndef __EVENT_H__
26#define __EVENT_H__
27
28
29
30
31
32
33
34
35
36
37
38
39
40enum {
41 RSSI_SNR_TRIGGER_0_EVENT_ID = BIT(0),
42 RSSI_SNR_TRIGGER_1_EVENT_ID = BIT(1),
43 RSSI_SNR_TRIGGER_2_EVENT_ID = BIT(2),
44 RSSI_SNR_TRIGGER_3_EVENT_ID = BIT(3),
45 RSSI_SNR_TRIGGER_4_EVENT_ID = BIT(4),
46 RSSI_SNR_TRIGGER_5_EVENT_ID = BIT(5),
47 RSSI_SNR_TRIGGER_6_EVENT_ID = BIT(6),
48 RSSI_SNR_TRIGGER_7_EVENT_ID = BIT(7),
49
50 EVENT_MBOX_ALL_EVENT_ID = 0x7fffffff,
51};
52
53
54enum wlcore_wait_event {
55 WLCORE_EVENT_ROLE_STOP_COMPLETE,
56 WLCORE_EVENT_PEER_REMOVE_COMPLETE,
57 WLCORE_EVENT_DFS_CONFIG_COMPLETE
58};
59
60enum {
61 EVENT_ENTER_POWER_SAVE_FAIL = 0,
62 EVENT_ENTER_POWER_SAVE_SUCCESS,
63};
64
65#define NUM_OF_RSSI_SNR_TRIGGERS 8
66
67struct fw_logger_information {
68 __le32 max_buff_size;
69 __le32 actual_buff_size;
70 __le32 num_trace_drop;
71 __le32 buff_read_ptr;
72 __le32 buff_write_ptr;
73} __packed;
74
75struct wl1271;
76
77int wl1271_event_unmask(struct wl1271 *wl);
78int wl1271_event_handle(struct wl1271 *wl, u8 mbox);
79
80void wlcore_event_soft_gemini_sense(struct wl1271 *wl, u8 enable);
81void wlcore_event_sched_scan_completed(struct wl1271 *wl,
82 u8 status);
83void wlcore_event_ba_rx_constraint(struct wl1271 *wl,
84 unsigned long roles_bitmap,
85 unsigned long allowed_bitmap);
86void wlcore_event_channel_switch(struct wl1271 *wl,
87 unsigned long roles_bitmap,
88 bool success);
89void wlcore_event_beacon_loss(struct wl1271 *wl, unsigned long roles_bitmap);
90void wlcore_event_dummy_packet(struct wl1271 *wl);
91void wlcore_event_max_tx_failure(struct wl1271 *wl, unsigned long sta_bitmap);
92void wlcore_event_inactive_sta(struct wl1271 *wl, unsigned long sta_bitmap);
93void wlcore_event_roc_complete(struct wl1271 *wl);
94void wlcore_event_rssi_trigger(struct wl1271 *wl, s8 *metric_arr);
95int wlcore_event_fw_logger(struct wl1271 *wl);
96#endif
97