xref: /dflybsd-src/sys/dev/netif/iwm/if_iwm_8000.c (revision 0ce37bc4c6e593a32c291a336cded0c296f4f50b)
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) 2014 Intel Corporation. All rights reserved.
1327d11320SImre Vadász  * Copyright(c) 2014 - 2015 Intel Mobile Communications GmbH
1427d11320SImre Vadász  * Copyright(c) 2016 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) 2014 Intel Corporation. All rights reserved.
4027d11320SImre Vadász  * Copyright(c) 2014 - 2015 Intel Mobile Communications GmbH
4127d11320SImre Vadász  * All rights reserved.
4227d11320SImre Vadász  *
4327d11320SImre Vadász  * Redistribution and use in source and binary forms, with or without
4427d11320SImre Vadász  * modification, are permitted provided that the following conditions
4527d11320SImre Vadász  * are met:
4627d11320SImre Vadász  *
4727d11320SImre Vadász  *  * Redistributions of source code must retain the above copyright
4827d11320SImre Vadász  *    notice, this list of conditions and the following disclaimer.
4927d11320SImre Vadász  *  * Redistributions in binary form must reproduce the above copyright
5027d11320SImre Vadász  *    notice, this list of conditions and the following disclaimer in
5127d11320SImre Vadász  *    the documentation and/or other materials provided with the
5227d11320SImre Vadász  *    distribution.
5327d11320SImre Vadász  *  * Neither the name Intel Corporation nor the names of its
5427d11320SImre Vadász  *    contributors may be used to endorse or promote products derived
5527d11320SImre Vadász  *    from this software without specific prior written permission.
5627d11320SImre Vadász  *
5727d11320SImre Vadász  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
5827d11320SImre Vadász  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
5927d11320SImre Vadász  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
6027d11320SImre Vadász  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
6127d11320SImre Vadász  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
6227d11320SImre Vadász  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
6327d11320SImre Vadász  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
6427d11320SImre Vadász  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
6527d11320SImre Vadász  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
6627d11320SImre Vadász  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
6727d11320SImre Vadász  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6827d11320SImre Vadász  *
6927d11320SImre Vadász  *****************************************************************************/
7027d11320SImre Vadász 
7127d11320SImre Vadász #include <sys/param.h>
7227d11320SImre Vadász 
7327d11320SImre Vadász #include "if_iwm_config.h"
7427d11320SImre Vadász 
7527d11320SImre Vadász #define IWM8000_FW	"iwm8000Cfw"
76*0ce37bc4SImre Vadász #define IWM8265_FW	"iwm8265fw"
7727d11320SImre Vadász 
7827d11320SImre Vadász #define IWM_NVM_HW_SECTION_NUM_FAMILY_8000	10
7927d11320SImre Vadász 
8027d11320SImre Vadász #define IWM_DEVICE_8000_COMMON						\
8127d11320SImre Vadász 	.device_family = IWM_DEVICE_FAMILY_8000,			\
8227d11320SImre Vadász 	.eeprom_size = IWM_OTP_LOW_IMAGE_SIZE_FAMILY_8000,		\
8327d11320SImre Vadász 	.nvm_hw_section_num = IWM_NVM_HW_SECTION_NUM_FAMILY_8000
8427d11320SImre Vadász 
8527d11320SImre Vadász const struct iwm_cfg iwm8260_cfg = {
8627d11320SImre Vadász 	.name = "Intel(R) Dual Band Wireless AC 8260",
8727d11320SImre Vadász 	.fw_name = IWM8000_FW,
8827d11320SImre Vadász 	IWM_DEVICE_8000_COMMON,
8927d11320SImre Vadász 	.host_interrupt_operation_mode = 0,
9027d11320SImre Vadász };
91*0ce37bc4SImre Vadász 
92*0ce37bc4SImre Vadász const struct iwm_cfg iwm8265_cfg = {
93*0ce37bc4SImre Vadász 	.name = "Intel(R) Dual Band Wireless AC 8265",
94*0ce37bc4SImre Vadász 	.fw_name = IWM8265_FW,
95*0ce37bc4SImre Vadász 	IWM_DEVICE_8000_COMMON,
96*0ce37bc4SImre Vadász 	.host_interrupt_operation_mode = 0,
97*0ce37bc4SImre Vadász };
98