xref: /dflybsd-src/sys/dev/netif/iwm/if_iwm_7000.c (revision 6acbba79fd1a245dc4f49a6e542db4c015d39b8e)
127d11320SImre Vadász /*-
227d11320SImre Vadász  * Based on BSD-licensed source modules in the Linux iwlwifi driver,
327d11320SImre Vadász  * which were used as the reference documentation for this implementation.
427d11320SImre Vadász  *
527d11320SImre Vadász  ******************************************************************************
627d11320SImre Vadász  *
727d11320SImre Vadász  * This file is provided under a dual BSD/GPLv2 license.  When using or
827d11320SImre Vadász  * redistributing this file, you may do so under either license.
927d11320SImre Vadász  *
1027d11320SImre Vadász  * GPL LICENSE SUMMARY
1127d11320SImre Vadász  *
1227d11320SImre Vadász  * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved.
1327d11320SImre Vadász  * Copyright(c) 2013 - 2014 Intel Mobile Communications GmbH
1427d11320SImre Vadász  * Copyright(c) 2015 Intel Deutschland GmbH
1527d11320SImre Vadász  *
1627d11320SImre Vadász  * This program is free software; you can redistribute it and/or modify
1727d11320SImre Vadász  * it under the terms of version 2 of the GNU General Public License as
1827d11320SImre Vadász  * published by the Free Software Foundation.
1927d11320SImre Vadász  *
2027d11320SImre Vadász  * This program is distributed in the hope that it will be useful, but
2127d11320SImre Vadász  * WITHOUT ANY WARRANTY; without even the implied warranty of
2227d11320SImre Vadász  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
2327d11320SImre Vadász  * General Public License for more details.
2427d11320SImre Vadász  *
2527d11320SImre Vadász  * You should have received a copy of the GNU General Public License
2627d11320SImre Vadász  * along with this program; if not, write to the Free Software
2727d11320SImre Vadász  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110,
2827d11320SImre Vadász  * USA
2927d11320SImre Vadász  *
3027d11320SImre Vadász  * The full GNU General Public License is included in this distribution
3127d11320SImre Vadász  * in the file called COPYING.
3227d11320SImre Vadász  *
3327d11320SImre Vadász  * Contact Information:
3427d11320SImre Vadász  *  Intel Linux Wireless <linuxwifi@intel.com>
3527d11320SImre Vadász  * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
3627d11320SImre Vadász  *
3727d11320SImre Vadász  * BSD LICENSE
3827d11320SImre Vadász  *
3927d11320SImre Vadász  * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved.
4027d11320SImre Vadász  * Copyright(c) 2013 - 2014 Intel Mobile Communications GmbH
4127d11320SImre Vadász  * Copyright(c) 2015 Intel Deutschland GmbH
4227d11320SImre Vadász  * All rights reserved.
4327d11320SImre Vadász  *
4427d11320SImre Vadász  * Redistribution and use in source and binary forms, with or without
4527d11320SImre Vadász  * modification, are permitted provided that the following conditions
4627d11320SImre Vadász  * are met:
4727d11320SImre Vadász  *
4827d11320SImre Vadász  *  * Redistributions of source code must retain the above copyright
4927d11320SImre Vadász  *    notice, this list of conditions and the following disclaimer.
5027d11320SImre Vadász  *  * Redistributions in binary form must reproduce the above copyright
5127d11320SImre Vadász  *    notice, this list of conditions and the following disclaimer in
5227d11320SImre Vadász  *    the documentation and/or other materials provided with the
5327d11320SImre Vadász  *    distribution.
5427d11320SImre Vadász  *  * Neither the name Intel Corporation nor the names of its
5527d11320SImre Vadász  *    contributors may be used to endorse or promote products derived
5627d11320SImre Vadász  *    from this software without specific prior written permission.
5727d11320SImre Vadász  *
5827d11320SImre Vadász  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
5927d11320SImre Vadász  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
6027d11320SImre Vadász  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
6127d11320SImre Vadász  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
6227d11320SImre Vadász  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
6327d11320SImre Vadász  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
6427d11320SImre Vadász  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
6527d11320SImre Vadász  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
6627d11320SImre Vadász  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
6727d11320SImre Vadász  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
6827d11320SImre Vadász  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6927d11320SImre Vadász  *
7027d11320SImre Vadász  *****************************************************************************/
7127d11320SImre Vadász 
7227d11320SImre Vadász #include <sys/param.h>
7327d11320SImre Vadász 
7427d11320SImre Vadász #include "if_iwm_config.h"
7527d11320SImre Vadász 
7627d11320SImre Vadász #define IWM7260_FW	"iwm7260fw"
7727d11320SImre Vadász #define IWM3160_FW	"iwm3160fw"
780ce37bc4SImre Vadász #define IWM3168_FW	"iwm3168fw"
7927d11320SImre Vadász #define IWM7265_FW	"iwm7265fw"
8027d11320SImre Vadász #define IWM7265D_FW	"iwm7265Dfw"
8127d11320SImre Vadász 
8227d11320SImre Vadász #define IWM_NVM_HW_SECTION_NUM_FAMILY_7000	0
8327d11320SImre Vadász 
8427d11320SImre Vadász #define IWM_DEVICE_7000_COMMON						\
8527d11320SImre Vadász 	.device_family = IWM_DEVICE_FAMILY_7000,			\
8627d11320SImre Vadász 	.eeprom_size = IWM_OTP_LOW_IMAGE_SIZE_FAMILY_7000,		\
8727d11320SImre Vadász 	.nvm_hw_section_num = IWM_NVM_HW_SECTION_NUM_FAMILY_7000,	\
8827d11320SImre Vadász 	.apmg_wake_up_wa = 1
8927d11320SImre Vadász 
9027d11320SImre Vadász const struct iwm_cfg iwm7260_cfg = {
9127d11320SImre Vadász 	.name = "Intel(R) Dual Band Wireless AC 7260",
9227d11320SImre Vadász 	.fw_name = IWM7260_FW,
9327d11320SImre Vadász 	IWM_DEVICE_7000_COMMON,
9427d11320SImre Vadász 	.host_interrupt_operation_mode = 1,
9527d11320SImre Vadász };
9627d11320SImre Vadász 
9727d11320SImre Vadász const struct iwm_cfg iwm3160_cfg = {
9827d11320SImre Vadász 	.name = "Intel(R) Dual Band Wireless AC 3160",
9927d11320SImre Vadász 	.fw_name = IWM3160_FW,
10027d11320SImre Vadász 	IWM_DEVICE_7000_COMMON,
10127d11320SImre Vadász 	.host_interrupt_operation_mode = 1,
10227d11320SImre Vadász };
10327d11320SImre Vadász 
10427d11320SImre Vadász const struct iwm_cfg iwm3165_cfg = {
10527d11320SImre Vadász 	.name = "Intel(R) Dual Band Wireless AC 3165",
1060cb0a810SImre Vadász 	.fw_name = IWM7265D_FW,
10727d11320SImre Vadász 	IWM_DEVICE_7000_COMMON,
10827d11320SImre Vadász 	.host_interrupt_operation_mode = 0,
10927d11320SImre Vadász };
11027d11320SImre Vadász 
1110ce37bc4SImre Vadász const struct iwm_cfg iwm3168_cfg = {
1120ce37bc4SImre Vadász 	.name = "Intel(R) Dual Band Wireless AC 3168",
1130ce37bc4SImre Vadász 	.fw_name = IWM3168_FW,
1140ce37bc4SImre Vadász 	IWM_DEVICE_7000_COMMON,
1150ce37bc4SImre Vadász 	.host_interrupt_operation_mode = 0,
116*6acbba79SMatthew Dillon 	.nvm_type = IWM_NVM_SDP,
1170ce37bc4SImre Vadász };
1180ce37bc4SImre Vadász 
11927d11320SImre Vadász const struct iwm_cfg iwm7265_cfg = {
12027d11320SImre Vadász 	.name = "Intel(R) Dual Band Wireless AC 7265",
12127d11320SImre Vadász 	.fw_name = IWM7265_FW,
12227d11320SImre Vadász 	IWM_DEVICE_7000_COMMON,
12327d11320SImre Vadász 	.host_interrupt_operation_mode = 0,
12427d11320SImre Vadász };
12527d11320SImre Vadász 
12627d11320SImre Vadász const struct iwm_cfg iwm7265d_cfg = {
12727d11320SImre Vadász 	.name = "Intel(R) Dual Band Wireless AC 7265",
1280cb0a810SImre Vadász 	.fw_name = IWM7265D_FW,
12927d11320SImre Vadász 	IWM_DEVICE_7000_COMMON,
13027d11320SImre Vadász 	.host_interrupt_operation_mode = 0,
13127d11320SImre Vadász };
13227d11320SImre Vadász 
133