1 /******************************************************************************
3 * Copyright(c) 2016 - 2018 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 ******************************************************************************/
16 #ifndef _HALMAC_88XX_CFG_H_
17 #define _HALMAC_88XX_CFG_H_
19 #include "../halmac_api.h"
21 #if HALMAC_88XX_SUPPORT
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
29 #define TX_DESC_SIZE_88XX 48
30 #define RX_DESC_SIZE_88XX 24
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
37 /* HW memory address */
38 #define OCPBASE_TXBUF_88XX 0x18780000
39 #define OCPBASE_DMEM_88XX 0x00200000
40 #define OCPBASE_EMEM_88XX 0x00100000
42 #endif /* HALMAC_88XX_SUPPORT */