Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
event.h
Go to the documentation of this file.
1 /*
2  * This file is part of wl1271
3  *
4  * Copyright (C) 1998-2009 Texas Instruments. All rights reserved.
5  * Copyright (C) 2008-2009 Nokia Corporation
6  *
7  * Contact: Luciano Coelho <[email protected]>
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 
25 #ifndef __EVENT_H__
26 #define __EVENT_H__
27 
28 /*
29  * Mbox events
30  *
31  * The event mechanism is based on a pair of event buffers (buffers A and
32  * B) at fixed locations in the target's memory. The host processes one
33  * buffer while the other buffer continues to collect events. If the host
34  * is not processing events, an interrupt is issued to signal that a buffer
35  * is ready. Once the host is done with processing events from one buffer,
36  * it signals the target (with an ACK interrupt) that the event buffer is
37  * free.
38  */
39 
40 enum {
54  RESERVED1 = BIT(13),
74 };
75 
76 enum {
79 };
80 
81 #define NUM_OF_RSSI_SNR_TRIGGERS 8
82 
83 struct event_mailbox {
88 
93 
100  /* tuned channel (roc) */
102 
104 
105  /* bitmap of aged stations (by HLID) */
107 
108  /* bitmap of stations (by HLID) which exceeded max tx retries */
110 
111  /* discovery completed results */
116 
117  /* rx ba constraint */
118  u8 role_id; /* 0xFF means any role. */
121 
122  /* Channel switch results */
123 
127 
131 
133 } __packed;
134 
135 struct wl1271;
136 
137 int wl1271_event_unmask(struct wl1271 *wl);
138 int wl1271_event_handle(struct wl1271 *wl, u8 mbox);
139 
140 #endif