1 /******************************************************************************
3 * Copyright(c) 2015 - 2016 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 _RTL8822BU_HAL_H_
21 #define _RTL8822BU_HAL_H_
24 #include <drv_types.h> /* PADAPTER */
27 #ifdef USB_PACKET_OFFSET_SZ
28 #define PACKET_OFFSET_SZ (USB_PACKET_OFFSET_SZ)
30 #define PACKET_OFFSET_SZ (8)
32 #define TXDESC_OFFSET (TXDESC_SIZE + PACKET_OFFSET_SZ)
35 /* undefine MAX_RECVBUF_SZ from rtl8822b_hal.h */
40 /* recv_buffer must be large than usb agg size */
41 #ifndef MAX_RECVBUF_SZ
43 #define MAX_RECVBUF_SZ (8192+1024)
44 #else /* !PLATFORM_OS_CE */
45 #ifndef CONFIG_MINIMAL_MEMORY_USAGE
46 #define MAX_RECVBUF_SZ (32768)
48 #define MAX_RECVBUF_SZ (4000)
50 #endif /* PLATFORM_OS_CE */
51 #endif /* !MAX_RECVBUF_SZ */
54 void rtl8822bu_set_hal_ops(PADAPTER padapter);
55 void rtl8822bu_set_hw_type(struct dvobj_priv *pdvobj);
58 void rtl8822bu_set_intf_ops(struct _io_ops *pops);
60 #endif /* CONFIG_USB_HCI */
63 #endif /* _RTL8822BU_HAL_H_ */