1 /*- 2 * Based on BSD-licensed source modules in the Linux iwlwifi driver, 3 * which were used as the reference documentation for this implementation. 4 * 5 ****************************************************************************** 6 * 7 * This file is provided under a dual BSD/GPLv2 license. When using or 8 * redistributing this file, you may do so under either license. 9 * 10 * GPL LICENSE SUMMARY 11 * 12 * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved. 13 * Copyright(c) 2013 - 2014 Intel Mobile Communications GmbH 14 * Copyright(c) 2015 Intel Deutschland GmbH 15 * 16 * This program is free software; you can redistribute it and/or modify 17 * it under the terms of version 2 of the GNU General Public License as 18 * published by the Free Software Foundation. 19 * 20 * This program is distributed in the hope that it will be useful, but 21 * WITHOUT ANY WARRANTY; without even the implied warranty of 22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 23 * General Public License for more details. 24 * 25 * You should have received a copy of the GNU General Public License 26 * along with this program; if not, write to the Free Software 27 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, 28 * USA 29 * 30 * The full GNU General Public License is included in this distribution 31 * in the file called COPYING. 32 * 33 * Contact Information: 34 * Intel Linux Wireless <linuxwifi@intel.com> 35 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 36 * 37 * BSD LICENSE 38 * 39 * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved. 40 * Copyright(c) 2013 - 2014 Intel Mobile Communications GmbH 41 * Copyright(c) 2015 Intel Deutschland GmbH 42 * All rights reserved. 43 * 44 * Redistribution and use in source and binary forms, with or without 45 * modification, are permitted provided that the following conditions 46 * are met: 47 * 48 * * Redistributions of source code must retain the above copyright 49 * notice, this list of conditions and the following disclaimer. 50 * * Redistributions in binary form must reproduce the above copyright 51 * notice, this list of conditions and the following disclaimer in 52 * the documentation and/or other materials provided with the 53 * distribution. 54 * * Neither the name Intel Corporation nor the names of its 55 * contributors may be used to endorse or promote products derived 56 * from this software without specific prior written permission. 57 * 58 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 59 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 60 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 61 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 62 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 63 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 64 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 65 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 66 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 67 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 68 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 69 * 70 *****************************************************************************/ 71 72 #include <sys/cdefs.h> 73 __FBSDID("$FreeBSD$"); 74 75 #include "opt_wlan.h" 76 #include "opt_iwm.h" 77 78 #include <sys/param.h> 79 80 #include "if_iwm_config.h" 81 82 #define IWM7260_FW "iwm7260fw" 83 #define IWM3160_FW "iwm3160fw" 84 #define IWM3168_FW "iwm3168fw" 85 #define IWM7265_FW "iwm7265fw" 86 #define IWM7265D_FW "iwm7265Dfw" 87 88 #define IWM_NVM_HW_SECTION_NUM_FAMILY_7000 0 89 90 #define IWM_DEVICE_7000_COMMON \ 91 .device_family = IWM_DEVICE_FAMILY_7000, \ 92 .eeprom_size = IWM_OTP_LOW_IMAGE_SIZE_FAMILY_7000, \ 93 .nvm_hw_section_num = IWM_NVM_HW_SECTION_NUM_FAMILY_7000, \ 94 .apmg_wake_up_wa = 1 95 96 const struct iwm_cfg iwm7260_cfg = { 97 .name = "Intel(R) Dual Band Wireless AC 7260", 98 .fw_name = IWM7260_FW, 99 IWM_DEVICE_7000_COMMON, 100 .host_interrupt_operation_mode = 1, 101 }; 102 103 const struct iwm_cfg iwm3160_cfg = { 104 .name = "Intel(R) Dual Band Wireless AC 3160", 105 .fw_name = IWM3160_FW, 106 IWM_DEVICE_7000_COMMON, 107 .host_interrupt_operation_mode = 1, 108 }; 109 110 const struct iwm_cfg iwm3165_cfg = { 111 .name = "Intel(R) Dual Band Wireless AC 3165", 112 .fw_name = IWM7265D_FW, 113 IWM_DEVICE_7000_COMMON, 114 .host_interrupt_operation_mode = 0, 115 }; 116 117 const struct iwm_cfg iwm3168_cfg = { 118 .name = "Intel(R) Dual Band Wireless AC 3168", 119 .fw_name = IWM3168_FW, 120 IWM_DEVICE_7000_COMMON, 121 .host_interrupt_operation_mode = 0, 122 }; 123 124 const struct iwm_cfg iwm7265_cfg = { 125 .name = "Intel(R) Dual Band Wireless AC 7265", 126 .fw_name = IWM7265_FW, 127 IWM_DEVICE_7000_COMMON, 128 .host_interrupt_operation_mode = 0, 129 }; 130 131 const struct iwm_cfg iwm7265d_cfg = { 132 .name = "Intel(R) Dual Band Wireless AC 7265", 133 .fw_name = IWM7265D_FW, 134 IWM_DEVICE_7000_COMMON, 135 .host_interrupt_operation_mode = 0, 136 }; 137 138