net: wireless: rockchip: add rtl8822be pcie wifi driver
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8822be / hal / hal_com_c2h.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2012 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 __COMMON_C2H_H__
21 #define __COMMON_C2H_H__
22
23 typedef enum _C2H_EVT {
24         C2H_DBG = 0x00,
25         C2H_LB = 0x01,
26         C2H_TXBF = 0x02,
27         C2H_CCX_TX_RPT = 0x03,
28         C2H_AP_REQ_TXRPT = 0x04,
29         C2H_FW_SCAN_COMPLETE = 0x7,
30         C2H_BT_INFO = 0x09,
31         C2H_BT_MP_INFO = 0x0B,
32         C2H_RA_RPT = 0x0C,
33         C2H_SPC_STAT = 0x0D,
34         C2H_RA_PARA_RPT = 0x0E,
35         C2H_FW_CHNL_SWITCH_COMPLETE = 0x10,
36         C2H_IQK_FINISH = 0x11,
37         C2H_MAILBOX_STATUS = 0x15,
38         C2H_P2P_RPORT = 0x16,
39 #ifdef CONFIG_MCC_MODE
40         C2H_MCC = 0x17,
41 #endif /* CONFIG_MCC_MODE */
42         C2H_MAC_HIDDEN_RPT = 0x19,
43         C2H_BCN_EARLY_RPT = 0x1E,
44         C2H_BT_SCOREBOARD_STATUS = 0x20,
45         C2H_EXTEND = 0xff,
46 } C2H_EVT;
47
48 typedef enum _EXTEND_C2H_EVT {
49         EXTEND_C2H_DBG_PRINT = 0
50 } EXTEND_C2H_EVT;
51
52 #define MAC_HIDDEN_RPT_LEN 8
53 int c2h_mac_hidden_rpt_hdl(_adapter *adapter, u8 *data, u8 len);
54 int hal_read_mac_hidden_rpt(_adapter *adapter);
55
56 #endif /* __COMMON_C2H_H__ */