1
2
3
4
5
6
7 #ifndef __RTL8188E_CMD_H__
8 #define __RTL8188E_CMD_H__
9
10 enum RTL8188E_H2C_CMD_ID {
11
12 H2C_COM_RSVD_PAGE = 0x00,
13 H2C_COM_MEDIA_STATUS_RPT = 0x01,
14 H2C_COM_SCAN = 0x02,
15 H2C_COM_KEEP_ALIVE = 0x03,
16 H2C_COM_DISCNT_DECISION = 0x04,
17 H2C_COM_INIT_OFFLOAD = 0x06,
18 H2C_COM_REMOTE_WAKE_CTL = 0x07,
19 H2C_COM_AP_OFFLOAD = 0x08,
20 H2C_COM_BCN_RSVD_PAGE = 0x09,
21 H2C_COM_PROB_RSP_RSVD_PAGE = 0x0A,
22
23
24 H2C_PS_PWR_MODE = 0x20,
25 H2C_PS_TUNE_PARA = 0x21,
26 H2C_PS_TUNE_PARA_2 = 0x22,
27 H2C_PS_LPS_PARA = 0x23,
28 H2C_PS_P2P_OFFLOAD = 0x24,
29
30
31 H2C_DM_MACID_CFG = 0x40,
32 H2C_DM_TXBF = 0x41,
33
34
35 H2C_BT_COEX_MASK = 0x60,
36 H2C_BT_COEX_GPIO_MODE = 0x61,
37 H2C_BT_DAC_SWING_VAL = 0x62,
38 H2C_BT_PSD_RST = 0x63,
39
40
41 H2C_RESET_TSF = 0xc0,
42 };
43
44 enum {
45 PWRS
46 };
47
48 struct setpwrmode_parm {
49 u8 Mode;
50 u8 SmartPS_RLBM;
51 u8 AwakeInterval;
52 u8 bAllQueueUAPSD;
53 u8 PwrState;
54 };
55
56 struct rsvdpage_loc {
57 u8 LocProbeRsp;
58 u8 LocPsPoll;
59 u8 LocNullData;
60 u8 LocQosNull;
61 u8 LocBTQosNull;
62 };
63
64
65 void rtl8188e_set_FwPwrMode_cmd(struct adapter *padapter, u8 Mode);
66 void rtl8188e_set_FwJoinBssReport_cmd(struct adapter *padapter, u8 mstatus);
67
68 void rtl8188e_set_FwMediaStatus_cmd(struct adapter *adapt, __le16 mstatus_rpt);
69
70 #endif