b44: fix workarround for wap54g10
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / drivers / staging / rtl8712 / rtl871x_event.h
blobd45229356bf6aa2f4953bc65140d4de0d08b3761
1 #ifndef _RTL871x_EVENT_H_
2 #define _RTL871x_EVENT_H_
4 #include "osdep_service.h"
6 #include "wlan_bssdef.h"
7 #include <linux/semaphore.h>
8 #include <linux/sem.h>
11 * Used to report a bss has been scanned
13 struct survey_event {
14 struct ndis_wlan_bssid_ex bss;
18 * Used to report that the requested site survey has been done.
19 * bss_cnt indicates the number of bss that has been reported.
21 struct surveydone_event {
22 unsigned int bss_cnt;
27 * Used to report the link result of joinning the given bss
28 * join_res:
29 * -1: authentication fail
30 * -2: association fail
31 * > 0: TID
33 struct joinbss_event {
34 struct wlan_network network;
38 * Used to report a given STA has joinned the created BSS.
39 * It is used in AP/Ad-HoC(M) mode.
41 struct stassoc_event {
42 unsigned char macaddr[6];
43 unsigned char rsvd[2];
44 int cam_id;
47 struct stadel_event {
48 unsigned char macaddr[6];
49 unsigned char rsvd[2];
52 struct addba_event {
53 unsigned int tid;
56 #define GEN_EVT_CODE(event) event ## _EVT_
58 struct fwevent {
59 u32 parmsize;
60 void (*event_callback)(struct _adapter *dev, u8 *pbuf);
63 #define C2HEVENT_SZ 32
64 struct event_node{
65 unsigned char *node;
66 unsigned char evt_code;
67 unsigned short evt_sz;
68 /*volatile*/ int *caller_ff_tail;
69 int caller_ff_sz;
72 struct c2hevent_queue {
73 /*volatile*/ int head;
74 /*volatile*/ int tail;
75 struct event_node nodes[C2HEVENT_SZ];
76 unsigned char seq;
79 #define NETWORK_QUEUE_SZ 4
81 struct network_queue {
82 /*volatile*/ int head;
83 /*volatile*/ int tail;
84 struct wlan_bssid_ex networks[NETWORK_QUEUE_SZ];
87 struct ADDBA_Req_Report_parm {
88 unsigned char MacAddress[ETH_ALEN];
89 unsigned short StartSeqNum;
90 unsigned char tid;
92 #include "rtl8712_event.h"
94 #endif /* _WLANEVENT_H_ */