OSDN Git Service

Add rtl8821ce driver version 5.5.2
[android-x86/external-kernel-drivers.git] / rtl8821ce / hal / halmac / halmac_88xx / halmac_88xx_cfg.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2016 - 2018 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  ******************************************************************************/
15
16 #ifndef _HALMAC_88XX_CFG_H_
17 #define _HALMAC_88XX_CFG_H_
18
19 #include "../halmac_api.h"
20
21 #if HALMAC_88XX_SUPPORT
22
23 #define TX_PAGE_SIZE_88XX               128
24 #define TX_PAGE_SIZE_SHIFT_88XX         7 /* 128 = 2^7 */
25 #define TX_ALIGN_SIZE_88XX              8
26 #define SDIO_TX_MAX_SIZE_88XX           31744
27 #define RX_BUF_FW_88XX                  12288
28
29 #define TX_DESC_SIZE_88XX               48
30 #define RX_DESC_SIZE_88XX               24
31
32 #define H2C_PKT_SIZE_88XX               32 /* Only support 32 byte packet now */
33 #define H2C_PKT_HDR_SIZE_88XX           8
34 #define C2H_DATA_OFFSET_88XX            10
35 #define C2H_PKT_BUF_88XX                256
36
37 /* HW memory address */
38 #define OCPBASE_TXBUF_88XX              0x18780000
39 #define OCPBASE_DMEM_88XX               0x00200000
40 #define OCPBASE_EMEM_88XX               0x00100000
41
42 #endif /* HALMAC_88XX_SUPPORT */
43
44 #endif