16c2c3bd8SAdrian Chadd /*- 26c2c3bd8SAdrian Chadd * Based on BSD-licensed source modules in the Linux iwlwifi driver, 36c2c3bd8SAdrian Chadd * which were used as the reference documentation for this implementation. 46c2c3bd8SAdrian Chadd * 56c2c3bd8SAdrian Chadd ****************************************************************************** 66c2c3bd8SAdrian Chadd * 76c2c3bd8SAdrian Chadd * This file is provided under a dual BSD/GPLv2 license. When using or 86c2c3bd8SAdrian Chadd * redistributing this file, you may do so under either license. 96c2c3bd8SAdrian Chadd * 106c2c3bd8SAdrian Chadd * GPL LICENSE SUMMARY 116c2c3bd8SAdrian Chadd * 126c2c3bd8SAdrian Chadd * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved. 136c2c3bd8SAdrian Chadd * Copyright(c) 2013 - 2014 Intel Mobile Communications GmbH 146c2c3bd8SAdrian Chadd * Copyright(c) 2015 Intel Deutschland GmbH 156c2c3bd8SAdrian Chadd * 166c2c3bd8SAdrian Chadd * This program is free software; you can redistribute it and/or modify 176c2c3bd8SAdrian Chadd * it under the terms of version 2 of the GNU General Public License as 186c2c3bd8SAdrian Chadd * published by the Free Software Foundation. 196c2c3bd8SAdrian Chadd * 206c2c3bd8SAdrian Chadd * This program is distributed in the hope that it will be useful, but 216c2c3bd8SAdrian Chadd * WITHOUT ANY WARRANTY; without even the implied warranty of 226c2c3bd8SAdrian Chadd * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 236c2c3bd8SAdrian Chadd * General Public License for more details. 246c2c3bd8SAdrian Chadd * 256c2c3bd8SAdrian Chadd * You should have received a copy of the GNU General Public License 266c2c3bd8SAdrian Chadd * along with this program; if not, write to the Free Software 276c2c3bd8SAdrian Chadd * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, 286c2c3bd8SAdrian Chadd * USA 296c2c3bd8SAdrian Chadd * 306c2c3bd8SAdrian Chadd * The full GNU General Public License is included in this distribution 316c2c3bd8SAdrian Chadd * in the file called COPYING. 326c2c3bd8SAdrian Chadd * 336c2c3bd8SAdrian Chadd * Contact Information: 346c2c3bd8SAdrian Chadd * Intel Linux Wireless <linuxwifi@intel.com> 356c2c3bd8SAdrian Chadd * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 366c2c3bd8SAdrian Chadd * 376c2c3bd8SAdrian Chadd * BSD LICENSE 386c2c3bd8SAdrian Chadd * 396c2c3bd8SAdrian Chadd * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved. 406c2c3bd8SAdrian Chadd * Copyright(c) 2013 - 2014 Intel Mobile Communications GmbH 416c2c3bd8SAdrian Chadd * Copyright(c) 2015 Intel Deutschland GmbH 426c2c3bd8SAdrian Chadd * All rights reserved. 436c2c3bd8SAdrian Chadd * 446c2c3bd8SAdrian Chadd * Redistribution and use in source and binary forms, with or without 456c2c3bd8SAdrian Chadd * modification, are permitted provided that the following conditions 466c2c3bd8SAdrian Chadd * are met: 476c2c3bd8SAdrian Chadd * 486c2c3bd8SAdrian Chadd * * Redistributions of source code must retain the above copyright 496c2c3bd8SAdrian Chadd * notice, this list of conditions and the following disclaimer. 506c2c3bd8SAdrian Chadd * * Redistributions in binary form must reproduce the above copyright 516c2c3bd8SAdrian Chadd * notice, this list of conditions and the following disclaimer in 526c2c3bd8SAdrian Chadd * the documentation and/or other materials provided with the 536c2c3bd8SAdrian Chadd * distribution. 546c2c3bd8SAdrian Chadd * * Neither the name Intel Corporation nor the names of its 556c2c3bd8SAdrian Chadd * contributors may be used to endorse or promote products derived 566c2c3bd8SAdrian Chadd * from this software without specific prior written permission. 576c2c3bd8SAdrian Chadd * 586c2c3bd8SAdrian Chadd * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 596c2c3bd8SAdrian Chadd * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 606c2c3bd8SAdrian Chadd * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 616c2c3bd8SAdrian Chadd * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 626c2c3bd8SAdrian Chadd * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 636c2c3bd8SAdrian Chadd * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 646c2c3bd8SAdrian Chadd * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 656c2c3bd8SAdrian Chadd * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 666c2c3bd8SAdrian Chadd * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 676c2c3bd8SAdrian Chadd * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 686c2c3bd8SAdrian Chadd * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 696c2c3bd8SAdrian Chadd * 706c2c3bd8SAdrian Chadd *****************************************************************************/ 716c2c3bd8SAdrian Chadd 726c2c3bd8SAdrian Chadd #include <sys/cdefs.h> 73616201d1SAdrian Chadd #include "opt_wlan.h" 74616201d1SAdrian Chadd #include "opt_iwm.h" 75616201d1SAdrian Chadd 766c2c3bd8SAdrian Chadd #include <sys/param.h> 776c2c3bd8SAdrian Chadd 786c2c3bd8SAdrian Chadd #include "if_iwm_config.h" 796c2c3bd8SAdrian Chadd 806c2c3bd8SAdrian Chadd #define IWM7260_FW "iwm7260fw" 816c2c3bd8SAdrian Chadd #define IWM3160_FW "iwm3160fw" 826472fa9aSEitan Adler #define IWM3168_FW "iwm3168fw" 836c2c3bd8SAdrian Chadd #define IWM7265_FW "iwm7265fw" 846c2c3bd8SAdrian Chadd #define IWM7265D_FW "iwm7265Dfw" 856c2c3bd8SAdrian Chadd 866c2c3bd8SAdrian Chadd #define IWM_NVM_HW_SECTION_NUM_FAMILY_7000 0 876c2c3bd8SAdrian Chadd 886c2c3bd8SAdrian Chadd #define IWM_DEVICE_7000_COMMON \ 896c2c3bd8SAdrian Chadd .device_family = IWM_DEVICE_FAMILY_7000, \ 906c2c3bd8SAdrian Chadd .eeprom_size = IWM_OTP_LOW_IMAGE_SIZE_FAMILY_7000, \ 916c2c3bd8SAdrian Chadd .nvm_hw_section_num = IWM_NVM_HW_SECTION_NUM_FAMILY_7000, \ 926c2c3bd8SAdrian Chadd .apmg_wake_up_wa = 1 936c2c3bd8SAdrian Chadd 946c2c3bd8SAdrian Chadd const struct iwm_cfg iwm7260_cfg = { 956c2c3bd8SAdrian Chadd .name = "Intel(R) Dual Band Wireless AC 7260", 966c2c3bd8SAdrian Chadd .fw_name = IWM7260_FW, 976c2c3bd8SAdrian Chadd IWM_DEVICE_7000_COMMON, 986c2c3bd8SAdrian Chadd .host_interrupt_operation_mode = 1, 996c2c3bd8SAdrian Chadd }; 1006c2c3bd8SAdrian Chadd 1016c2c3bd8SAdrian Chadd const struct iwm_cfg iwm3160_cfg = { 1026c2c3bd8SAdrian Chadd .name = "Intel(R) Dual Band Wireless AC 3160", 1036c2c3bd8SAdrian Chadd .fw_name = IWM3160_FW, 1046c2c3bd8SAdrian Chadd IWM_DEVICE_7000_COMMON, 1056c2c3bd8SAdrian Chadd .host_interrupt_operation_mode = 1, 1066c2c3bd8SAdrian Chadd }; 1076c2c3bd8SAdrian Chadd 1086c2c3bd8SAdrian Chadd const struct iwm_cfg iwm3165_cfg = { 1096c2c3bd8SAdrian Chadd .name = "Intel(R) Dual Band Wireless AC 3165", 1102fd96379SAdrian Chadd .fw_name = IWM7265D_FW, 1116c2c3bd8SAdrian Chadd IWM_DEVICE_7000_COMMON, 1126c2c3bd8SAdrian Chadd .host_interrupt_operation_mode = 0, 1136c2c3bd8SAdrian Chadd }; 1146c2c3bd8SAdrian Chadd 1156472fa9aSEitan Adler const struct iwm_cfg iwm3168_cfg = { 1166472fa9aSEitan Adler .name = "Intel(R) Dual Band Wireless AC 3168", 1176472fa9aSEitan Adler .fw_name = IWM3168_FW, 1186472fa9aSEitan Adler IWM_DEVICE_7000_COMMON, 1196472fa9aSEitan Adler .host_interrupt_operation_mode = 0, 120*58952690SAndriy Voskoboinyk .nvm_type = IWM_NVM_SDP, 1216472fa9aSEitan Adler }; 1226472fa9aSEitan Adler 1236c2c3bd8SAdrian Chadd const struct iwm_cfg iwm7265_cfg = { 1246c2c3bd8SAdrian Chadd .name = "Intel(R) Dual Band Wireless AC 7265", 1256c2c3bd8SAdrian Chadd .fw_name = IWM7265_FW, 1266c2c3bd8SAdrian Chadd IWM_DEVICE_7000_COMMON, 1276c2c3bd8SAdrian Chadd .host_interrupt_operation_mode = 0, 1286c2c3bd8SAdrian Chadd }; 1296c2c3bd8SAdrian Chadd 1306c2c3bd8SAdrian Chadd const struct iwm_cfg iwm7265d_cfg = { 1316c2c3bd8SAdrian Chadd .name = "Intel(R) Dual Band Wireless AC 7265", 1322fd96379SAdrian Chadd .fw_name = IWM7265D_FW, 1336c2c3bd8SAdrian Chadd IWM_DEVICE_7000_COMMON, 1346c2c3bd8SAdrian Chadd .host_interrupt_operation_mode = 0, 1356c2c3bd8SAdrian Chadd }; 1366c2c3bd8SAdrian Chadd 137