net: wireless: rockchip_wlan: add rtl8723cs support
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8723cs / include / rtl8822bu_hal.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2015 - 2016 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 _RTL8822BU_HAL_H_
21 #define _RTL8822BU_HAL_H_
22
23 #ifdef CONFIG_USB_HCI
24         #include <drv_types.h>          /* PADAPTER */
25
26         #ifdef CONFIG_USB_HCI
27                 #ifdef USB_PACKET_OFFSET_SZ
28                         #define PACKET_OFFSET_SZ (USB_PACKET_OFFSET_SZ)
29                 #else
30                         #define PACKET_OFFSET_SZ (8)
31                 #endif
32                 #define TXDESC_OFFSET (TXDESC_SIZE + PACKET_OFFSET_SZ)
33         #endif
34
35         /* undefine MAX_RECVBUF_SZ from rtl8822b_hal.h  */
36         #ifdef MAX_RECVBUF_SZ
37                 #undef MAX_RECVBUF_SZ
38         #endif
39
40         /* recv_buffer must be large than usb agg size */
41         #ifndef MAX_RECVBUF_SZ
42                 #ifdef PLATFORM_OS_CE
43                         #define MAX_RECVBUF_SZ (8192+1024)
44                 #else /* !PLATFORM_OS_CE */
45                         #ifndef CONFIG_MINIMAL_MEMORY_USAGE
46                                 #define MAX_RECVBUF_SZ (32768)
47                         #else
48                                 #define MAX_RECVBUF_SZ (4000)
49                         #endif
50                 #endif /* PLATFORM_OS_CE */
51         #endif /* !MAX_RECVBUF_SZ */
52
53         /* rtl8822bu_ops.c */
54         void rtl8822bu_set_hal_ops(PADAPTER padapter);
55         void rtl8822bu_set_hw_type(struct dvobj_priv *pdvobj);
56
57         /* rtl8822bu_io.c */
58         void rtl8822bu_set_intf_ops(struct _io_ops *pops);
59
60 #endif /* CONFIG_USB_HCI */
61
62
63 #endif /* _RTL8822BU_HAL_H_ */