1 /* 2 * Copyright (c) 2015 South Silicon Valley Microelectronics Inc. 3 * Copyright (c) 2015 iComm Corporation 4 * 5 * This program is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * This program is distributed in the hope that it will be useful, but 10 * WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 * See the GNU General Public License for more details. 13 * You should have received a copy of the GNU General Public License 14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 15 */ 16 17 #ifndef _SSV_CFG_H_ 18 #define _SSV_CFG_H_ 19 #define SSV6200_HW_CAP_HT 0x00000001 20 #define SSV6200_HW_CAP_GF 0x00000002 21 #define SSV6200_HW_CAP_2GHZ 0x00000004 22 #define SSV6200_HW_CAP_5GHZ 0x00000008 23 #define SSV6200_HW_CAP_SECURITY 0x00000010 24 #define SSV6200_HT_CAP_SGI_20 0x00000020 25 #define SSV6200_HT_CAP_SGI_40 0x00000040 26 #define SSV6200_HW_CAP_AP 0x00000080 27 #define SSV6200_HW_CAP_P2P 0x00000100 28 #define SSV6200_HW_CAP_AMPDU_RX 0x00000200 29 #define SSV6200_HW_CAP_AMPDU_TX 0x00000400 30 #define SSV6200_HW_CAP_TDLS 0x00000800 31 #define EXTERNEL_CONFIG_SUPPORT 64 32 struct ssv6xxx_cfg { 33 u32 hw_caps; 34 u32 def_chan; 35 u32 crystal_type; 36 u32 volt_regulator; 37 u32 force_chip_identity; 38 u8 maddr[2][6]; 39 u32 n_maddr; 40 u32 use_wpa2_only; 41 u32 ignore_reset_in_ap; 42 u32 r_calbration_result; 43 u32 sar_result; 44 u32 crystal_frequency_offset; 45 u32 tx_power_index_1; 46 u32 tx_power_index_2; 47 u32 chip_identity; 48 u32 wifi_tx_gain_level_gn; 49 u32 wifi_tx_gain_level_b; 50 u32 rssi_ctl; 51 u32 sr_bhvr; 52 u32 configuration[EXTERNEL_CONFIG_SUPPORT+1][2]; 53 u8 firmware_path[128]; 54 u8 flash_bin_path[128]; 55 u8 mac_address_path[128]; 56 u8 mac_output_path[128]; 57 u32 ignore_efuse_mac; 58 u32 mac_address_mode; 59 }; 60 #endif 61