xref: /freebsd/sys/dev/iwm/if_iwm_8000.c (revision 685dc743dc3b5645e34836464128e1c0558b404b)
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) 2014 Intel Corporation. All rights reserved.
136c2c3bd8SAdrian Chadd  * Copyright(c) 2014 - 2015 Intel Mobile Communications GmbH
146c2c3bd8SAdrian Chadd  * Copyright(c) 2016 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) 2014 Intel Corporation. All rights reserved.
406c2c3bd8SAdrian Chadd  * Copyright(c) 2014 - 2015 Intel Mobile Communications GmbH
416c2c3bd8SAdrian Chadd  * All rights reserved.
426c2c3bd8SAdrian Chadd  *
436c2c3bd8SAdrian Chadd  * Redistribution and use in source and binary forms, with or without
446c2c3bd8SAdrian Chadd  * modification, are permitted provided that the following conditions
456c2c3bd8SAdrian Chadd  * are met:
466c2c3bd8SAdrian Chadd  *
476c2c3bd8SAdrian Chadd  *  * Redistributions of source code must retain the above copyright
486c2c3bd8SAdrian Chadd  *    notice, this list of conditions and the following disclaimer.
496c2c3bd8SAdrian Chadd  *  * Redistributions in binary form must reproduce the above copyright
506c2c3bd8SAdrian Chadd  *    notice, this list of conditions and the following disclaimer in
516c2c3bd8SAdrian Chadd  *    the documentation and/or other materials provided with the
526c2c3bd8SAdrian Chadd  *    distribution.
536c2c3bd8SAdrian Chadd  *  * Neither the name Intel Corporation nor the names of its
546c2c3bd8SAdrian Chadd  *    contributors may be used to endorse or promote products derived
556c2c3bd8SAdrian Chadd  *    from this software without specific prior written permission.
566c2c3bd8SAdrian Chadd  *
576c2c3bd8SAdrian Chadd  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
586c2c3bd8SAdrian Chadd  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
596c2c3bd8SAdrian Chadd  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
606c2c3bd8SAdrian Chadd  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
616c2c3bd8SAdrian Chadd  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
626c2c3bd8SAdrian Chadd  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
636c2c3bd8SAdrian Chadd  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
646c2c3bd8SAdrian Chadd  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
656c2c3bd8SAdrian Chadd  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
666c2c3bd8SAdrian Chadd  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
676c2c3bd8SAdrian Chadd  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
686c2c3bd8SAdrian Chadd  *
696c2c3bd8SAdrian Chadd  *****************************************************************************/
706c2c3bd8SAdrian Chadd 
716c2c3bd8SAdrian Chadd #include <sys/cdefs.h>
72616201d1SAdrian Chadd #include "opt_wlan.h"
73616201d1SAdrian Chadd #include "opt_iwm.h"
74616201d1SAdrian Chadd 
756c2c3bd8SAdrian Chadd #include <sys/param.h>
766c2c3bd8SAdrian Chadd 
776c2c3bd8SAdrian Chadd #include "if_iwm_config.h"
786c2c3bd8SAdrian Chadd 
796c2c3bd8SAdrian Chadd #define IWM8000_FW	"iwm8000Cfw"
80*851ca706SGeorge V. Neville-Neil #define IWM8265_FW	"iwm8265fw"
816c2c3bd8SAdrian Chadd 
826c2c3bd8SAdrian Chadd #define IWM_NVM_HW_SECTION_NUM_FAMILY_8000	10
836c2c3bd8SAdrian Chadd 
846c2c3bd8SAdrian Chadd #define IWM_DEVICE_8000_COMMON						\
856c2c3bd8SAdrian Chadd 	.device_family = IWM_DEVICE_FAMILY_8000,			\
866c2c3bd8SAdrian Chadd 	.eeprom_size = IWM_OTP_LOW_IMAGE_SIZE_FAMILY_8000,		\
876c2c3bd8SAdrian Chadd 	.nvm_hw_section_num = IWM_NVM_HW_SECTION_NUM_FAMILY_8000
886c2c3bd8SAdrian Chadd 
896c2c3bd8SAdrian Chadd const struct iwm_cfg iwm8260_cfg = {
906c2c3bd8SAdrian Chadd 	.name = "Intel(R) Dual Band Wireless AC 8260",
916c2c3bd8SAdrian Chadd 	.fw_name = IWM8000_FW,
926c2c3bd8SAdrian Chadd 	IWM_DEVICE_8000_COMMON,
936c2c3bd8SAdrian Chadd 	.host_interrupt_operation_mode = 0,
946c2c3bd8SAdrian Chadd };
95*851ca706SGeorge V. Neville-Neil 
96*851ca706SGeorge V. Neville-Neil const struct iwm_cfg iwm8265_cfg = {
97*851ca706SGeorge V. Neville-Neil 	.name = "Intel(R) Dual Band Wireless AC 8265",
98*851ca706SGeorge V. Neville-Neil 	.fw_name = IWM8265_FW,
99*851ca706SGeorge V. Neville-Neil 	IWM_DEVICE_8000_COMMON,
100*851ca706SGeorge V. Neville-Neil 	.host_interrupt_operation_mode = 0,
101*851ca706SGeorge V. Neville-Neil };
102