dt-bindings: Document the Rockchip RGA bindings
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8723bs / include / rtl8192c_cmd.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
4  *                                        
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.
8  *
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
12  * more details.
13  *
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
17  *
18  *
19  ******************************************************************************/
20 #ifndef __RTL8192C_CMD_H_
21 #define __RTL8192C_CMD_H_
22
23
24 enum cmd_msg_element_id
25 {       
26         NONE_CMDMSG_EID,
27         AP_OFFLOAD_EID=0,
28         SET_PWRMODE_EID=1,
29         JOINBSS_RPT_EID=2,
30         RSVD_PAGE_EID=3,
31         RSSI_4_EID = 4,
32         RSSI_SETTING_EID=5,
33         MACID_CONFIG_EID=6,
34         MACID_PS_MODE_EID=7,
35         P2P_PS_OFFLOAD_EID=8,
36         SELECTIVE_SUSPEND_ROF_CMD=9,
37         P2P_PS_CTW_CMD_EID=32,
38         H2C_92C_IO_OFFLOAD=44,
39         H2C_92C_TSF_SYNC=67,
40         H2C_92C_DISABLE_BCN_FUNC=68,
41         H2C_92C_RESET_TSF = 75,
42         H2C_92C_CMD_MAX
43 };
44
45 struct cmd_msg_parm {
46         u8 eid; //element id
47         u8 sz; // sz
48         u8 buf[6];
49 };
50
51 typedef struct _SETPWRMODE_PARM{
52         u8      Mode;
53         u8      SmartPS;
54         u8      BcnPassTime;    // unit: 100ms
55 }SETPWRMODE_PARM, *PSETPWRMODE_PARM;
56
57 struct H2C_SS_RFOFF_PARAM{
58         u8      ROFOn; // 1: on, 0:off
59         u16     gpio_period; // unit: 1024 us
60 }__attribute__ ((packed));
61
62
63 typedef struct JOINBSSRPT_PARM_92C{
64         u8      OpMode; // RT_MEDIA_STATUS
65 }JOINBSSRPT_PARM_92C, *PJOINBSSRPT_PARM_92C;
66
67 typedef struct _RSVDPAGE_LOC_92C{
68         u8      LocProbeRsp;
69         u8      LocPsPoll;
70         u8      LocNullData;
71 }RSVDPAGE_LOC_92C, *PRSVDPAGE_LOC_92C;
72
73
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);
81 #ifdef CONFIG_P2P
82 void    rtl8192c_set_p2p_ps_offload_cmd(_adapter* padapter, u8 p2p_ps_state);
83 #endif //CONFIG_P2P
84
85 #ifdef CONFIG_IOL
86 int rtl8192c_IOL_exec_cmds_sync(ADAPTER *adapter, struct xmit_frame *xmit_frame, u32 max_wating_ms, u32 bndy_cnt);
87 #endif //CONFIG_IOL
88
89 #ifdef CONFIG_BEACON_DISABLE_OFFLOAD
90 u8 rtl8192c_dis_beacon_fun_cmd(_adapter* padapter);
91 #endif  // CONFIG_BEACON_DISABLE_OFFLOAD
92
93
94 #ifdef CONFIG_TSF_RESET_OFFLOAD
95 int reset_tsf(PADAPTER Adapter, u8 reset_port );
96 #endif  // CONFIG_TSF_RESET_OFFLOAD
97
98 #endif  // __RTL8192C_CMD_H_
99