From 9ca8dbcc65cfc63d6f5ef3312a33184e1d726e00 Mon Sep 17 00:00:00 2001 From: Yunhong Jiang Date: Tue, 4 Aug 2015 12:17:53 -0700 Subject: Add the rt linux 4.1.3-rt3 as base Import the rt linux 4.1.3-rt3 as OPNFV kvm base. It's from git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-4.1.y-rt and the base is: commit 0917f823c59692d751951bf5ea699a2d1e2f26a2 Author: Sebastian Andrzej Siewior Date: Sat Jul 25 12:13:34 2015 +0200 Prepare v4.1.3-rt3 Signed-off-by: Sebastian Andrzej Siewior We lose all the git history this way and it's not good. We should apply another opnfv project repo in future. Change-Id: I87543d81c9df70d99c5001fbdf646b202c19f423 Signed-off-by: Yunhong Jiang --- kernel/drivers/staging/rtl8712/rtl8712_event.h | 99 ++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 kernel/drivers/staging/rtl8712/rtl8712_event.h (limited to 'kernel/drivers/staging/rtl8712/rtl8712_event.h') diff --git a/kernel/drivers/staging/rtl8712/rtl8712_event.h b/kernel/drivers/staging/rtl8712/rtl8712_event.h new file mode 100644 index 000000000..29a4c23a0 --- /dev/null +++ b/kernel/drivers/staging/rtl8712/rtl8712_event.h @@ -0,0 +1,99 @@ +/****************************************************************************** + * + * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA + * + * Modifications for inclusion into the Linux staging tree are + * Copyright(c) 2010 Larry Finger. All rights reserved. + * + * Contact information: + * WLAN FAE + * Larry Finger + * + ******************************************************************************/ +#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 -- cgit 1.2.3-korg