Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/upstream-linus
[linux-btrfs-devel.git] / drivers / staging / rtl8712 / rtl8712_event.h
blob27316934b1a396e92dcfc5c6d4216b1e97ad7ee6
1 #ifndef _RTL8712_EVENT_H_
2 #define _RTL8712_EVENT_H_
4 void r8712_event_handle(struct _adapter *padapter, uint *peventbuf);
5 void r8712_got_addbareq_event_callback(struct _adapter *adapter , u8 *pbuf);
7 enum rtl8712_c2h_event {
8 GEN_EVT_CODE(_Read_MACREG) = 0, /*0*/
9 GEN_EVT_CODE(_Read_BBREG),
10 GEN_EVT_CODE(_Read_RFREG),
11 GEN_EVT_CODE(_Read_EEPROM),
12 GEN_EVT_CODE(_Read_EFUSE),
13 GEN_EVT_CODE(_Read_CAM), /*5*/
14 GEN_EVT_CODE(_Get_BasicRate),
15 GEN_EVT_CODE(_Get_DataRate),
16 GEN_EVT_CODE(_Survey), /*8*/
17 GEN_EVT_CODE(_SurveyDone), /*9*/
19 GEN_EVT_CODE(_JoinBss), /*10*/
20 GEN_EVT_CODE(_AddSTA),
21 GEN_EVT_CODE(_DelSTA),
22 GEN_EVT_CODE(_AtimDone),
23 GEN_EVT_CODE(_TX_Report),
24 GEN_EVT_CODE(_CCX_Report), /*15*/
25 GEN_EVT_CODE(_DTM_Report),
26 GEN_EVT_CODE(_TX_Rate_Statistics),
27 GEN_EVT_CODE(_C2HLBK),
28 GEN_EVT_CODE(_FWDBG),
29 GEN_EVT_CODE(_C2HFEEDBACK), /*20*/
30 GEN_EVT_CODE(_ADDBA),
31 GEN_EVT_CODE(_C2HBCN),
32 GEN_EVT_CODE(_ReportPwrState), /*filen: only for PCIE, USB*/
33 GEN_EVT_CODE(_WPS_PBC), /*24*/
34 GEN_EVT_CODE(_ADDBAReq_Report), /*25*/
35 MAX_C2HEVT
39 #ifdef _RTL8712_CMD_C_
41 static struct fwevent wlanevents[] = {
42 {0, NULL}, /*0*/
43 {0, NULL},
44 {0, NULL},
45 {0, NULL},
46 {0, NULL},
47 {0, NULL},
48 {0, NULL},
49 {0, NULL},
50 {0, &r8712_survey_event_callback}, /*8*/
51 {sizeof(struct surveydone_event),
52 &r8712_surveydone_event_callback}, /*9*/
54 {0, &r8712_joinbss_event_callback}, /*10*/
55 {sizeof(struct stassoc_event), &r8712_stassoc_event_callback},
56 {sizeof(struct stadel_event), &r8712_stadel_event_callback},
57 {0, &r8712_atimdone_event_callback},
58 {0, NULL},
59 {0, NULL}, /*15*/
60 {0, NULL},
61 {0, NULL},
62 {0, NULL},
63 {0, NULL}, /*fwdbg_event_callback},*/
64 {0, NULL}, /*20*/
65 {0, NULL},
66 {0, NULL},
67 {0, &r8712_cpwm_event_callback},
68 {0, &r8712_wpspbc_event_callback},
69 {0, &r8712_got_addbareq_event_callback},
72 #endif/*_RTL8712_CMD_C_*/
74 #endif