1 #ifndef _RTL8712_EVENT_H_ 2 #define _RTL8712_EVENT_H_ 3 4 void r8712_event_handle(struct _adapter *padapter, uint *peventbuf); 5 void r8712_got_addbareq_event_callback(struct _adapter *adapter , u8 *pbuf); 6 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*/ 18 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 36 }; 37 38 39 #ifdef _RTL8712_CMD_C_ 40 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), &r8712_surveydone_event_callback},/*9*/ 52 53 {0, &r8712_joinbss_event_callback}, /*10*/ 54 {sizeof(struct stassoc_event), &r8712_stassoc_event_callback}, 55 {sizeof(struct stadel_event), &r8712_stadel_event_callback}, 56 {0, &r8712_atimdone_event_callback}, 57 {0, NULL}, 58 {0, NULL}, /*15*/ 59 {0, NULL}, 60 {0, NULL}, 61 {0, NULL}, 62 {0, NULL}, /*fwdbg_event_callback},*/ 63 {0, NULL}, /*20*/ 64 {0, NULL}, 65 {0, NULL}, 66 {0, &r8712_cpwm_event_callback}, 67 {0, &r8712_wpspbc_event_callback}, 68 {0, &r8712_got_addbareq_event_callback}, 69 }; 70 71 #endif/*_RTL8712_CMD_C_*/ 72 73 #endif 74