xref: /dragonfly/sys/dev/netif/iwm/if_iwm_8000.c (revision ae24b5e0)
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) 2014 Intel Corporation. All rights reserved.
13  * Copyright(c) 2014 - 2015 Intel Mobile Communications GmbH
14  * Copyright(c) 2016 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) 2014 Intel Corporation. All rights reserved.
40  * Copyright(c) 2014 - 2015 Intel Mobile Communications GmbH
41  * All rights reserved.
42  *
43  * Redistribution and use in source and binary forms, with or without
44  * modification, are permitted provided that the following conditions
45  * are met:
46  *
47  *  * Redistributions of source code must retain the above copyright
48  *    notice, this list of conditions and the following disclaimer.
49  *  * Redistributions in binary form must reproduce the above copyright
50  *    notice, this list of conditions and the following disclaimer in
51  *    the documentation and/or other materials provided with the
52  *    distribution.
53  *  * Neither the name Intel Corporation nor the names of its
54  *    contributors may be used to endorse or promote products derived
55  *    from this software without specific prior written permission.
56  *
57  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
58  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
59  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
60  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
61  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
62  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
63  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
64  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
65  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
66  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
67  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
68  *
69  *****************************************************************************/
70 
71 #include <sys/param.h>
72 
73 #include "if_iwm_config.h"
74 
75 #define IWM8000_FW	"iwm8000Cfw"
76 #define IWM8265_FW	"iwm8265fw"
77 
78 #define IWM_NVM_HW_SECTION_NUM_FAMILY_8000	10
79 
80 #define IWM_DEVICE_8000_COMMON						\
81 	.device_family = IWM_DEVICE_FAMILY_8000,			\
82 	.eeprom_size = IWM_OTP_LOW_IMAGE_SIZE_FAMILY_8000,		\
83 	.nvm_hw_section_num = IWM_NVM_HW_SECTION_NUM_FAMILY_8000
84 
85 const struct iwm_cfg iwm8260_cfg = {
86 	.name = "Intel(R) Dual Band Wireless AC 8260",
87 	.fw_name = IWM8000_FW,
88 	IWM_DEVICE_8000_COMMON,
89 	.host_interrupt_operation_mode = 0,
90 };
91 
92 const struct iwm_cfg iwm8265_cfg = {
93 	.name = "Intel(R) Dual Band Wireless AC 8265",
94 	.fw_name = IWM8265_FW,
95 	IWM_DEVICE_8000_COMMON,
96 	.host_interrupt_operation_mode = 0,
97 };
98