Merge tag 'sound-5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai...
[linux-2.6-microblaze.git] / drivers / staging / rtl8712 / rtl8712_event.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /******************************************************************************
3  *
4  * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved.
5  *
6  * Modifications for inclusion into the Linux staging tree are
7  * Copyright(c) 2010 Larry Finger. All rights reserved.
8  *
9  * Contact information:
10  * WLAN FAE <wlanfae@realtek.com>
11  * Larry Finger <Larry.Finger@lwfinger.net>
12  *
13  ******************************************************************************/
14 #ifndef _RTL8712_EVENT_H_
15 #define _RTL8712_EVENT_H_
16
17 void r8712_event_handle(struct _adapter *padapter, __le32 *peventbuf);
18 void r8712_got_addbareq_event_callback(struct _adapter *adapter, u8 *pbuf);
19
20 enum rtl8712_c2h_event {
21         GEN_EVT_CODE(_Read_MACREG) = 0,         /*0*/
22         GEN_EVT_CODE(_Read_BBREG),
23         GEN_EVT_CODE(_Read_RFREG),
24         GEN_EVT_CODE(_Read_EEPROM),
25         GEN_EVT_CODE(_Read_EFUSE),
26         GEN_EVT_CODE(_Read_CAM),                /*5*/
27         GEN_EVT_CODE(_Get_BasicRate),
28         GEN_EVT_CODE(_Get_DataRate),
29         GEN_EVT_CODE(_Survey),                  /*8*/
30         GEN_EVT_CODE(_SurveyDone),              /*9*/
31
32         GEN_EVT_CODE(_JoinBss),                 /*10*/
33         GEN_EVT_CODE(_AddSTA),
34         GEN_EVT_CODE(_DelSTA),
35         GEN_EVT_CODE(_AtimDone),
36         GEN_EVT_CODE(_TX_Report),
37         GEN_EVT_CODE(_CCX_Report),              /*15*/
38         GEN_EVT_CODE(_DTM_Report),
39         GEN_EVT_CODE(_TX_Rate_Statistics),
40         GEN_EVT_CODE(_C2HLBK),
41         GEN_EVT_CODE(_FWDBG),
42         GEN_EVT_CODE(_C2HFEEDBACK),             /*20*/
43         GEN_EVT_CODE(_ADDBA),
44         GEN_EVT_CODE(_C2HBCN),
45         GEN_EVT_CODE(_ReportPwrState),          /*filen: only for PCIE, USB*/
46         GEN_EVT_CODE(_WPS_PBC),                 /*24*/
47         GEN_EVT_CODE(_ADDBAReq_Report),         /*25*/
48         MAX_C2HEVT
49 };
50
51 #ifdef _RTL8712_CMD_C_
52
53 static struct fwevent wlanevents[] = {
54         {0, NULL},      /*0*/
55         {0, NULL},
56         {0, NULL},
57         {0, NULL},
58         {0, NULL},
59         {0, NULL},
60         {0, NULL},
61         {0, NULL},
62         {0, &r8712_survey_event_callback},              /*8*/
63         {sizeof(struct surveydone_event),
64                 &r8712_surveydone_event_callback},      /*9*/
65
66         {0, &r8712_joinbss_event_callback},             /*10*/
67         {sizeof(struct stassoc_event), &r8712_stassoc_event_callback},
68         {sizeof(struct stadel_event), &r8712_stadel_event_callback},
69         {0, &r8712_atimdone_event_callback},
70         {0, NULL},
71         {0, NULL},      /*15*/
72         {0, NULL},
73         {0, NULL},
74         {0, NULL},
75         {0, NULL},      /*fwdbg_event_callback},*/
76         {0, NULL},      /*20*/
77         {0, NULL},
78         {0, NULL},
79         {0, &r8712_cpwm_event_callback},
80         {0, &r8712_wpspbc_event_callback},
81         {0, &r8712_got_addbareq_event_callback},
82 };
83
84 #endif/*_RTL8712_CMD_C_*/
85
86 #endif