1 /******************************************************************************
3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of version 2 of the GNU General Public License as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
19 ******************************************************************************/
20 #ifndef __RTL8192C_CMD_H_
21 #define __RTL8192C_CMD_H_
24 enum cmd_msg_element_id
36 SELECTIVE_SUSPEND_ROF_CMD=9,
37 P2P_PS_CTW_CMD_EID=32,
38 H2C_92C_IO_OFFLOAD=44,
40 H2C_92C_DISABLE_BCN_FUNC=68,
41 H2C_92C_RESET_TSF = 75,
51 typedef struct _SETPWRMODE_PARM{
54 u8 BcnPassTime; // unit: 100ms
55 }SETPWRMODE_PARM, *PSETPWRMODE_PARM;
57 struct H2C_SS_RFOFF_PARAM{
58 u8 ROFOn; // 1: on, 0:off
59 u16 gpio_period; // unit: 1024 us
60 }__attribute__ ((packed));
63 typedef struct JOINBSSRPT_PARM_92C{
64 u8 OpMode; // RT_MEDIA_STATUS
65 }JOINBSSRPT_PARM_92C, *PJOINBSSRPT_PARM_92C;
67 typedef struct _RSVDPAGE_LOC_92C{
71 }RSVDPAGE_LOC_92C, *PRSVDPAGE_LOC_92C;
74 // host message to firmware cmd
75 void rtl8192c_set_FwPwrMode_cmd(_adapter*padapter, u8 Mode);
76 void rtl8192c_set_FwJoinBssReport_cmd(_adapter* padapter, u8 mstatus);
77 u8 rtl8192c_set_rssi_cmd(_adapter*padapter, u8 *param);
78 void rtl8192c_set_raid_cmd(_adapter*padapter, u32 mask, u8* arg);
79 void rtl8192c_Add_RateATid(PADAPTER pAdapter, u32 bitmap, u8* arg, u8 rssi_level);
80 u8 rtl8192c_set_FwSelectSuspend_cmd(_adapter*padapter,u8 bfwpoll, u16 period);
82 void rtl8192c_set_p2p_ps_offload_cmd(_adapter* padapter, u8 p2p_ps_state);
86 int rtl8192c_IOL_exec_cmds_sync(ADAPTER *adapter, struct xmit_frame *xmit_frame, u32 max_wating_ms, u32 bndy_cnt);
89 #ifdef CONFIG_BEACON_DISABLE_OFFLOAD
90 u8 rtl8192c_dis_beacon_fun_cmd(_adapter* padapter);
91 #endif // CONFIG_BEACON_DISABLE_OFFLOAD
94 #ifdef CONFIG_TSF_RESET_OFFLOAD
95 int reset_tsf(PADAPTER Adapter, u8 reset_port );
96 #endif // CONFIG_TSF_RESET_OFFLOAD
98 #endif // __RTL8192C_CMD_H_