diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2010-08-20 19:15:30 +0400 |
---|---|---|
committer | Larry Finger <Larry.Finger@lwfinger.net> | 2010-08-20 19:15:30 +0400 |
commit | 2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef (patch) | |
tree | 430b79f753b0e1cec6379b9a4208a716c914ac65 /drivers/staging/rtl8712/rtl8712_event.h | |
parent | 763008c4357b73c8d18396dfd8d79dc58fa3f99d (diff) | |
download | linux-2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef.tar.xz |
staging: r8712u: Add the new driver to the mainline kernel
This code is for a completely new version of the Realtek 8192 USB devices
such as the D-Link DWA-130. The Realtek code, which was originally for
Linux, Windows XP and Windows CE, has been stripped of all code not needed
for Linux. In addition, only one additional configuration variable, which
enables AP mode, remains.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Florian Schilhabel <florian.c.schilhabel@googlemail.com>
Tested-by: Frederic Leroy <fredo@starox.org>
Diffstat (limited to 'drivers/staging/rtl8712/rtl8712_event.h')
-rw-r--r-- | drivers/staging/rtl8712/rtl8712_event.h | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/drivers/staging/rtl8712/rtl8712_event.h b/drivers/staging/rtl8712/rtl8712_event.h new file mode 100644 index 000000000000..48408f72546c --- /dev/null +++ b/drivers/staging/rtl8712/rtl8712_event.h @@ -0,0 +1,73 @@ +#ifndef _RTL8712_EVENT_H_ +#define _RTL8712_EVENT_H_ + +void r8712_event_handle(struct _adapter *padapter, uint *peventbuf); +void r8712_got_addbareq_event_callback(struct _adapter *adapter , u8 *pbuf); + +enum rtl8712_c2h_event { + GEN_EVT_CODE(_Read_MACREG) = 0, /*0*/ + GEN_EVT_CODE(_Read_BBREG), + GEN_EVT_CODE(_Read_RFREG), + GEN_EVT_CODE(_Read_EEPROM), + GEN_EVT_CODE(_Read_EFUSE), + GEN_EVT_CODE(_Read_CAM), /*5*/ + GEN_EVT_CODE(_Get_BasicRate), + GEN_EVT_CODE(_Get_DataRate), + GEN_EVT_CODE(_Survey), /*8*/ + GEN_EVT_CODE(_SurveyDone), /*9*/ + + GEN_EVT_CODE(_JoinBss) , /*10*/ + GEN_EVT_CODE(_AddSTA), + GEN_EVT_CODE(_DelSTA), + GEN_EVT_CODE(_AtimDone) , + GEN_EVT_CODE(_TX_Report), + GEN_EVT_CODE(_CCX_Report), /*15*/ + GEN_EVT_CODE(_DTM_Report), + GEN_EVT_CODE(_TX_Rate_Statistics), + GEN_EVT_CODE(_C2HLBK), + GEN_EVT_CODE(_FWDBG), + GEN_EVT_CODE(_C2HFEEDBACK), /*20*/ + GEN_EVT_CODE(_ADDBA), + GEN_EVT_CODE(_C2HBCN), + GEN_EVT_CODE(_ReportPwrState), /*filen: only for PCIE, USB*/ + GEN_EVT_CODE(_WPS_PBC), /*24*/ + GEN_EVT_CODE(_ADDBAReq_Report), /*25*/ + MAX_C2HEVT +}; + + +#ifdef _RTL8712_CMD_C_ + +static struct fwevent wlanevents[] = { + {0, NULL}, /*0*/ + {0, NULL}, + {0, NULL}, + {0, NULL}, + {0, NULL}, + {0, NULL}, + {0, NULL}, + {0, NULL}, + {0, &r8712_survey_event_callback}, /*8*/ + {sizeof(struct surveydone_event), &r8712_surveydone_event_callback},/*9*/ + + {0, &r8712_joinbss_event_callback}, /*10*/ + {sizeof(struct stassoc_event), &r8712_stassoc_event_callback}, + {sizeof(struct stadel_event), &r8712_stadel_event_callback}, + {0, &r8712_atimdone_event_callback}, + {0, NULL}, + {0, NULL}, /*15*/ + {0, NULL}, + {0, NULL}, + {0, NULL}, + {0, NULL}, /*fwdbg_event_callback},*/ + {0, NULL}, /*20*/ + {0, NULL}, + {0, NULL}, + {0, &r8712_cpwm_event_callback}, + {0, &r8712_wpspbc_event_callback}, + {0, &r8712_got_addbareq_event_callback}, +}; + +#endif/*_RTL8712_CMD_C_*/ + +#endif |