mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2024-12-26 22:11:43 +00:00
100 lines
2.9 KiB
C
100 lines
2.9 KiB
C
|
/******************************************************************************
|
||
|
*
|
||
|
* Copyright(c) 2007 - 2011 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
|
||
|
*
|
||
|
*
|
||
|
******************************************************************************/
|
||
|
#ifndef __RTL8192C_CMD_H_
|
||
|
#define __RTL8192C_CMD_H_
|
||
|
|
||
|
|
||
|
enum cmd_msg_element_id
|
||
|
{
|
||
|
NONE_CMDMSG_EID,
|
||
|
AP_OFFLOAD_EID=0,
|
||
|
SET_PWRMODE_EID=1,
|
||
|
JOINBSS_RPT_EID=2,
|
||
|
RSVD_PAGE_EID=3,
|
||
|
RSSI_4_EID = 4,
|
||
|
RSSI_SETTING_EID=5,
|
||
|
MACID_CONFIG_EID=6,
|
||
|
MACID_PS_MODE_EID=7,
|
||
|
P2P_PS_OFFLOAD_EID=8,
|
||
|
SELECTIVE_SUSPEND_ROF_CMD=9,
|
||
|
P2P_PS_CTW_CMD_EID=32,
|
||
|
H2C_92C_IO_OFFLOAD=44,
|
||
|
H2C_92C_TSF_SYNC=67,
|
||
|
H2C_92C_DISABLE_BCN_FUNC=68,
|
||
|
H2C_92C_RESET_TSF = 75,
|
||
|
H2C_92C_CMD_MAX
|
||
|
};
|
||
|
|
||
|
struct cmd_msg_parm {
|
||
|
u8 eid; //element id
|
||
|
u8 sz; // sz
|
||
|
u8 buf[6];
|
||
|
};
|
||
|
|
||
|
typedef struct _SETPWRMODE_PARM{
|
||
|
u8 Mode;
|
||
|
u8 SmartPS;
|
||
|
u8 BcnPassTime; // unit: 100ms
|
||
|
}SETPWRMODE_PARM, *PSETPWRMODE_PARM;
|
||
|
|
||
|
struct H2C_SS_RFOFF_PARAM{
|
||
|
u8 ROFOn; // 1: on, 0:off
|
||
|
u16 gpio_period; // unit: 1024 us
|
||
|
}__attribute__ ((packed));
|
||
|
|
||
|
|
||
|
typedef struct JOINBSSRPT_PARM_92C{
|
||
|
u8 OpMode; // RT_MEDIA_STATUS
|
||
|
}JOINBSSRPT_PARM_92C, *PJOINBSSRPT_PARM_92C;
|
||
|
|
||
|
typedef struct _RSVDPAGE_LOC_92C{
|
||
|
u8 LocProbeRsp;
|
||
|
u8 LocPsPoll;
|
||
|
u8 LocNullData;
|
||
|
}RSVDPAGE_LOC_92C, *PRSVDPAGE_LOC_92C;
|
||
|
|
||
|
|
||
|
// host message to firmware cmd
|
||
|
void rtl8192c_set_FwPwrMode_cmd(_adapter*padapter, u8 Mode);
|
||
|
void rtl8192c_set_FwJoinBssReport_cmd(_adapter* padapter, u8 mstatus);
|
||
|
u8 rtl8192c_set_rssi_cmd(_adapter*padapter, u8 *param);
|
||
|
void rtl8192c_set_raid_cmd(_adapter*padapter, u32 mask, u8* arg);
|
||
|
void rtl8192c_Add_RateATid(PADAPTER pAdapter, u32 bitmap, u8* arg, u8 rssi_level);
|
||
|
u8 rtl8192c_set_FwSelectSuspend_cmd(_adapter*padapter,u8 bfwpoll, u16 period);
|
||
|
#ifdef CONFIG_P2P
|
||
|
void rtl8192c_set_p2p_ps_offload_cmd(_adapter* padapter, u8 p2p_ps_state);
|
||
|
#endif //CONFIG_P2P
|
||
|
|
||
|
#ifdef CONFIG_IOL
|
||
|
int rtl8192c_IOL_exec_cmds_sync(ADAPTER *adapter, struct xmit_frame *xmit_frame, u32 max_wating_ms, u32 bndy_cnt);
|
||
|
#endif //CONFIG_IOL
|
||
|
|
||
|
#ifdef CONFIG_BEACON_DISABLE_OFFLOAD
|
||
|
u8 rtl8192c_dis_beacon_fun_cmd(_adapter* padapter);
|
||
|
#endif // CONFIG_BEACON_DISABLE_OFFLOAD
|
||
|
|
||
|
|
||
|
#ifdef CONFIG_TSF_RESET_OFFLOAD
|
||
|
int reset_tsf(PADAPTER Adapter, u8 reset_port );
|
||
|
#endif // CONFIG_TSF_RESET_OFFLOAD
|
||
|
|
||
|
#endif // __RTL8192C_CMD_H_
|
||
|
|