1 /****************************************************************************** 2 * 3 * Copyright(c) 2019 Realtek Corporation. 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 #ifndef _HAL_CONFIG_H_ 16 #define _HAL_CONFIG_H_ 17 18 #ifdef CONFIG_PHL_TEST_MP 19 #define CONFIG_HAL_TEST_MP 20 #endif 21 22 #define MAX_PATH_LEN 256 23 24 #define MAX_LINES_HWCONFIG_TXT 2000 25 #define MAX_BYTES_LINE_HWCONFIG_TXT 256 26 #define MAX_HWCONFIG_FILE_CONTENT MAX_LINES_HWCONFIG_TXT * MAX_BYTES_LINE_HWCONFIG_TXT 27 28 /* Disable HALBB Features */ 29 #ifndef CONFIG_PHL_DFS 30 #define DRV_BB_DFS_DISABLE 31 #endif 32 33 #ifdef CONFIG_BB_TIMER_SUPPORT_DISABLE 34 #define DRV_BB_TIMER_SUPPORT_DISABLE 35 #endif 36 37 /* Compile flag for fw for different cut versions. 38 * This should be wrapped with the compile flags from core, and need to be discussed 39 */ 40 #ifdef CONFIG_RTL8852A 41 #define MAC_FW_8852A_U1 1 42 #define MAC_FW_8852A_U2 1 43 #define MAC_FW_8852A_U3 1 44 #endif 45 46 #ifdef CONFIG_RTL8852B 47 #define MAC_FW_8852B_U1 1 48 #define MAC_FW_8852B_U2 1 49 #endif 50 51 52 #ifdef CONFIG_WPP 53 #define DRV_BB_DBG_TRACE_DISABLE 54 #endif 55 /* HALRF Features */ 56 57 #ifdef RTW_WKARD_PHL_LPS_IQK_TWICE 58 #define RTW_WKARD_HAL_LPS_IQK_TWICE 59 #endif 60 61 #endif /*_HAL_CONFIG_H_*/ 62