1e705c121SKalle Valo /****************************************************************************** 2e705c121SKalle Valo * 3e705c121SKalle Valo * This file is provided under a dual BSD/GPLv2 license. When using or 4e705c121SKalle Valo * redistributing this file, you may do so under either license. 5e705c121SKalle Valo * 6e705c121SKalle Valo * GPL LICENSE SUMMARY 7e705c121SKalle Valo * 8e705c121SKalle Valo * Copyright(c) 2013 - 2015 Intel Mobile Communications GmbH 94e37b063STzipi Peres * Copyright(c) 2016-2017 Intel Deutschland GmbH 1053abad42SLuca Coelho * Copyright(c) 2007 - 2014, 2018 - 2020 Intel Corporation 11e705c121SKalle Valo * 12e705c121SKalle Valo * This program is free software; you can redistribute it and/or modify 13e705c121SKalle Valo * it under the terms of version 2 of the GNU General Public License as 14e705c121SKalle Valo * published by the Free Software Foundation. 15e705c121SKalle Valo * 16e705c121SKalle Valo * This program is distributed in the hope that it will be useful, but 17e705c121SKalle Valo * WITHOUT ANY WARRANTY; without even the implied warranty of 18e705c121SKalle Valo * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 19e705c121SKalle Valo * General Public License for more details. 20e705c121SKalle Valo * 21e705c121SKalle Valo * The full GNU General Public License is included in this distribution 22e705c121SKalle Valo * in the file called COPYING. 23e705c121SKalle Valo * 24e705c121SKalle Valo * Contact Information: 25cb2f8277SEmmanuel Grumbach * Intel Linux Wireless <linuxwifi@intel.com> 26e705c121SKalle Valo * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 27e705c121SKalle Valo * 28e705c121SKalle Valo * BSD LICENSE 29e705c121SKalle Valo * 30e705c121SKalle Valo * Copyright(c) 2013 - 2015 Intel Mobile Communications GmbH 31e705c121SKalle Valo * All rights reserved. 324e37b063STzipi Peres * Copyright(c) 2017 Intel Deutschland GmbH 3353abad42SLuca Coelho * Copyright(c) 2005 - 2014, 2018 - 2020 Intel Corporation 34e705c121SKalle Valo * 35e705c121SKalle Valo * Redistribution and use in source and binary forms, with or without 36e705c121SKalle Valo * modification, are permitted provided that the following conditions 37e705c121SKalle Valo * are met: 38e705c121SKalle Valo * 39e705c121SKalle Valo * * Redistributions of source code must retain the above copyright 40e705c121SKalle Valo * notice, this list of conditions and the following disclaimer. 41e705c121SKalle Valo * * Redistributions in binary form must reproduce the above copyright 42e705c121SKalle Valo * notice, this list of conditions and the following disclaimer in 43e705c121SKalle Valo * the documentation and/or other materials provided with the 44e705c121SKalle Valo * distribution. 45e705c121SKalle Valo * * Neither the name Intel Corporation nor the names of its 46e705c121SKalle Valo * contributors may be used to endorse or promote products derived 47e705c121SKalle Valo * from this software without specific prior written permission. 48e705c121SKalle Valo * 49e705c121SKalle Valo * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 50e705c121SKalle Valo * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 51e705c121SKalle Valo * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 52e705c121SKalle Valo * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 53e705c121SKalle Valo * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 54e705c121SKalle Valo * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 55e705c121SKalle Valo * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 56e705c121SKalle Valo * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 57e705c121SKalle Valo * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 58e705c121SKalle Valo * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 59e705c121SKalle Valo * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 60e705c121SKalle Valo * 61e705c121SKalle Valo *****************************************************************************/ 62e705c121SKalle Valo 63e705c121SKalle Valo #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 64e705c121SKalle Valo 65e705c121SKalle Valo #include <linux/module.h> 66e705c121SKalle Valo #include <linux/pci.h> 67e705c121SKalle Valo #include <linux/acpi.h> 68e705c121SKalle Valo 69813df5ceSLuca Coelho #include "fw/acpi.h" 70813df5ceSLuca Coelho 71e705c121SKalle Valo #include "iwl-trans.h" 72e705c121SKalle Valo #include "iwl-drv.h" 73809805a8SLuca Coelho #include "iwl-prph.h" 74e705c121SKalle Valo #include "internal.h" 75e705c121SKalle Valo 76e705c121SKalle Valo #define IWL_PCI_DEVICE(dev, subdev, cfg) \ 77e705c121SKalle Valo .vendor = PCI_VENDOR_ID_INTEL, .device = (dev), \ 78e705c121SKalle Valo .subvendor = PCI_ANY_ID, .subdevice = (subdev), \ 79e705c121SKalle Valo .driver_data = (kernel_ulong_t)&(cfg) 80e705c121SKalle Valo 81e705c121SKalle Valo /* Hardware specific file defines the PCI IDs table for that hardware module */ 82e705c121SKalle Valo static const struct pci_device_id iwl_hw_card_ids[] = { 83e705c121SKalle Valo #if IS_ENABLED(CONFIG_IWLDVM) 84e705c121SKalle Valo {IWL_PCI_DEVICE(0x4232, 0x1201, iwl5100_agn_cfg)}, /* Mini Card */ 85e705c121SKalle Valo {IWL_PCI_DEVICE(0x4232, 0x1301, iwl5100_agn_cfg)}, /* Half Mini Card */ 86e705c121SKalle Valo {IWL_PCI_DEVICE(0x4232, 0x1204, iwl5100_agn_cfg)}, /* Mini Card */ 87e705c121SKalle Valo {IWL_PCI_DEVICE(0x4232, 0x1304, iwl5100_agn_cfg)}, /* Half Mini Card */ 88e705c121SKalle Valo {IWL_PCI_DEVICE(0x4232, 0x1205, iwl5100_bgn_cfg)}, /* Mini Card */ 89e705c121SKalle Valo {IWL_PCI_DEVICE(0x4232, 0x1305, iwl5100_bgn_cfg)}, /* Half Mini Card */ 90e705c121SKalle Valo {IWL_PCI_DEVICE(0x4232, 0x1206, iwl5100_abg_cfg)}, /* Mini Card */ 91e705c121SKalle Valo {IWL_PCI_DEVICE(0x4232, 0x1306, iwl5100_abg_cfg)}, /* Half Mini Card */ 92e705c121SKalle Valo {IWL_PCI_DEVICE(0x4232, 0x1221, iwl5100_agn_cfg)}, /* Mini Card */ 93e705c121SKalle Valo {IWL_PCI_DEVICE(0x4232, 0x1321, iwl5100_agn_cfg)}, /* Half Mini Card */ 94e705c121SKalle Valo {IWL_PCI_DEVICE(0x4232, 0x1224, iwl5100_agn_cfg)}, /* Mini Card */ 95e705c121SKalle Valo {IWL_PCI_DEVICE(0x4232, 0x1324, iwl5100_agn_cfg)}, /* Half Mini Card */ 96e705c121SKalle Valo {IWL_PCI_DEVICE(0x4232, 0x1225, iwl5100_bgn_cfg)}, /* Mini Card */ 97e705c121SKalle Valo {IWL_PCI_DEVICE(0x4232, 0x1325, iwl5100_bgn_cfg)}, /* Half Mini Card */ 98e705c121SKalle Valo {IWL_PCI_DEVICE(0x4232, 0x1226, iwl5100_abg_cfg)}, /* Mini Card */ 99e705c121SKalle Valo {IWL_PCI_DEVICE(0x4232, 0x1326, iwl5100_abg_cfg)}, /* Half Mini Card */ 100e705c121SKalle Valo {IWL_PCI_DEVICE(0x4237, 0x1211, iwl5100_agn_cfg)}, /* Mini Card */ 101e705c121SKalle Valo {IWL_PCI_DEVICE(0x4237, 0x1311, iwl5100_agn_cfg)}, /* Half Mini Card */ 102e705c121SKalle Valo {IWL_PCI_DEVICE(0x4237, 0x1214, iwl5100_agn_cfg)}, /* Mini Card */ 103e705c121SKalle Valo {IWL_PCI_DEVICE(0x4237, 0x1314, iwl5100_agn_cfg)}, /* Half Mini Card */ 104e705c121SKalle Valo {IWL_PCI_DEVICE(0x4237, 0x1215, iwl5100_bgn_cfg)}, /* Mini Card */ 105e705c121SKalle Valo {IWL_PCI_DEVICE(0x4237, 0x1315, iwl5100_bgn_cfg)}, /* Half Mini Card */ 106e705c121SKalle Valo {IWL_PCI_DEVICE(0x4237, 0x1216, iwl5100_abg_cfg)}, /* Mini Card */ 107e705c121SKalle Valo {IWL_PCI_DEVICE(0x4237, 0x1316, iwl5100_abg_cfg)}, /* Half Mini Card */ 108e705c121SKalle Valo 109e705c121SKalle Valo /* 5300 Series WiFi */ 110e705c121SKalle Valo {IWL_PCI_DEVICE(0x4235, 0x1021, iwl5300_agn_cfg)}, /* Mini Card */ 111e705c121SKalle Valo {IWL_PCI_DEVICE(0x4235, 0x1121, iwl5300_agn_cfg)}, /* Half Mini Card */ 112e705c121SKalle Valo {IWL_PCI_DEVICE(0x4235, 0x1024, iwl5300_agn_cfg)}, /* Mini Card */ 113e705c121SKalle Valo {IWL_PCI_DEVICE(0x4235, 0x1124, iwl5300_agn_cfg)}, /* Half Mini Card */ 114e705c121SKalle Valo {IWL_PCI_DEVICE(0x4235, 0x1001, iwl5300_agn_cfg)}, /* Mini Card */ 115e705c121SKalle Valo {IWL_PCI_DEVICE(0x4235, 0x1101, iwl5300_agn_cfg)}, /* Half Mini Card */ 116e705c121SKalle Valo {IWL_PCI_DEVICE(0x4235, 0x1004, iwl5300_agn_cfg)}, /* Mini Card */ 117e705c121SKalle Valo {IWL_PCI_DEVICE(0x4235, 0x1104, iwl5300_agn_cfg)}, /* Half Mini Card */ 118e705c121SKalle Valo {IWL_PCI_DEVICE(0x4236, 0x1011, iwl5300_agn_cfg)}, /* Mini Card */ 119e705c121SKalle Valo {IWL_PCI_DEVICE(0x4236, 0x1111, iwl5300_agn_cfg)}, /* Half Mini Card */ 120e705c121SKalle Valo {IWL_PCI_DEVICE(0x4236, 0x1014, iwl5300_agn_cfg)}, /* Mini Card */ 121e705c121SKalle Valo {IWL_PCI_DEVICE(0x4236, 0x1114, iwl5300_agn_cfg)}, /* Half Mini Card */ 122e705c121SKalle Valo 123e705c121SKalle Valo /* 5350 Series WiFi/WiMax */ 124e705c121SKalle Valo {IWL_PCI_DEVICE(0x423A, 0x1001, iwl5350_agn_cfg)}, /* Mini Card */ 125e705c121SKalle Valo {IWL_PCI_DEVICE(0x423A, 0x1021, iwl5350_agn_cfg)}, /* Mini Card */ 126e705c121SKalle Valo {IWL_PCI_DEVICE(0x423B, 0x1011, iwl5350_agn_cfg)}, /* Mini Card */ 127e705c121SKalle Valo 128e705c121SKalle Valo /* 5150 Series Wifi/WiMax */ 129e705c121SKalle Valo {IWL_PCI_DEVICE(0x423C, 0x1201, iwl5150_agn_cfg)}, /* Mini Card */ 130e705c121SKalle Valo {IWL_PCI_DEVICE(0x423C, 0x1301, iwl5150_agn_cfg)}, /* Half Mini Card */ 131e705c121SKalle Valo {IWL_PCI_DEVICE(0x423C, 0x1206, iwl5150_abg_cfg)}, /* Mini Card */ 132e705c121SKalle Valo {IWL_PCI_DEVICE(0x423C, 0x1306, iwl5150_abg_cfg)}, /* Half Mini Card */ 133e705c121SKalle Valo {IWL_PCI_DEVICE(0x423C, 0x1221, iwl5150_agn_cfg)}, /* Mini Card */ 134e705c121SKalle Valo {IWL_PCI_DEVICE(0x423C, 0x1321, iwl5150_agn_cfg)}, /* Half Mini Card */ 135e705c121SKalle Valo {IWL_PCI_DEVICE(0x423C, 0x1326, iwl5150_abg_cfg)}, /* Half Mini Card */ 136e705c121SKalle Valo 137e705c121SKalle Valo {IWL_PCI_DEVICE(0x423D, 0x1211, iwl5150_agn_cfg)}, /* Mini Card */ 138e705c121SKalle Valo {IWL_PCI_DEVICE(0x423D, 0x1311, iwl5150_agn_cfg)}, /* Half Mini Card */ 139e705c121SKalle Valo {IWL_PCI_DEVICE(0x423D, 0x1216, iwl5150_abg_cfg)}, /* Mini Card */ 140e705c121SKalle Valo {IWL_PCI_DEVICE(0x423D, 0x1316, iwl5150_abg_cfg)}, /* Half Mini Card */ 141e705c121SKalle Valo 142e705c121SKalle Valo /* 6x00 Series */ 143e705c121SKalle Valo {IWL_PCI_DEVICE(0x422B, 0x1101, iwl6000_3agn_cfg)}, 144e705c121SKalle Valo {IWL_PCI_DEVICE(0x422B, 0x1108, iwl6000_3agn_cfg)}, 145e705c121SKalle Valo {IWL_PCI_DEVICE(0x422B, 0x1121, iwl6000_3agn_cfg)}, 146e705c121SKalle Valo {IWL_PCI_DEVICE(0x422B, 0x1128, iwl6000_3agn_cfg)}, 147e705c121SKalle Valo {IWL_PCI_DEVICE(0x422C, 0x1301, iwl6000i_2agn_cfg)}, 148e705c121SKalle Valo {IWL_PCI_DEVICE(0x422C, 0x1306, iwl6000i_2abg_cfg)}, 149e705c121SKalle Valo {IWL_PCI_DEVICE(0x422C, 0x1307, iwl6000i_2bg_cfg)}, 150e705c121SKalle Valo {IWL_PCI_DEVICE(0x422C, 0x1321, iwl6000i_2agn_cfg)}, 151e705c121SKalle Valo {IWL_PCI_DEVICE(0x422C, 0x1326, iwl6000i_2abg_cfg)}, 152e705c121SKalle Valo {IWL_PCI_DEVICE(0x4238, 0x1111, iwl6000_3agn_cfg)}, 153e705c121SKalle Valo {IWL_PCI_DEVICE(0x4238, 0x1118, iwl6000_3agn_cfg)}, 154e705c121SKalle Valo {IWL_PCI_DEVICE(0x4239, 0x1311, iwl6000i_2agn_cfg)}, 155e705c121SKalle Valo {IWL_PCI_DEVICE(0x4239, 0x1316, iwl6000i_2abg_cfg)}, 156e705c121SKalle Valo 157e705c121SKalle Valo /* 6x05 Series */ 158e705c121SKalle Valo {IWL_PCI_DEVICE(0x0082, 0x1301, iwl6005_2agn_cfg)}, 159e705c121SKalle Valo {IWL_PCI_DEVICE(0x0082, 0x1306, iwl6005_2abg_cfg)}, 160e705c121SKalle Valo {IWL_PCI_DEVICE(0x0082, 0x1307, iwl6005_2bg_cfg)}, 161e705c121SKalle Valo {IWL_PCI_DEVICE(0x0082, 0x1308, iwl6005_2agn_cfg)}, 162e705c121SKalle Valo {IWL_PCI_DEVICE(0x0082, 0x1321, iwl6005_2agn_cfg)}, 163e705c121SKalle Valo {IWL_PCI_DEVICE(0x0082, 0x1326, iwl6005_2abg_cfg)}, 164e705c121SKalle Valo {IWL_PCI_DEVICE(0x0082, 0x1328, iwl6005_2agn_cfg)}, 165e705c121SKalle Valo {IWL_PCI_DEVICE(0x0085, 0x1311, iwl6005_2agn_cfg)}, 166e705c121SKalle Valo {IWL_PCI_DEVICE(0x0085, 0x1318, iwl6005_2agn_cfg)}, 167e705c121SKalle Valo {IWL_PCI_DEVICE(0x0085, 0x1316, iwl6005_2abg_cfg)}, 168e705c121SKalle Valo {IWL_PCI_DEVICE(0x0082, 0xC020, iwl6005_2agn_sff_cfg)}, 169e705c121SKalle Valo {IWL_PCI_DEVICE(0x0085, 0xC220, iwl6005_2agn_sff_cfg)}, 170e705c121SKalle Valo {IWL_PCI_DEVICE(0x0085, 0xC228, iwl6005_2agn_sff_cfg)}, 171e705c121SKalle Valo {IWL_PCI_DEVICE(0x0082, 0x4820, iwl6005_2agn_d_cfg)}, 172e705c121SKalle Valo {IWL_PCI_DEVICE(0x0082, 0x1304, iwl6005_2agn_mow1_cfg)},/* low 5GHz active */ 173e705c121SKalle Valo {IWL_PCI_DEVICE(0x0082, 0x1305, iwl6005_2agn_mow2_cfg)},/* high 5GHz active */ 174e705c121SKalle Valo 175e705c121SKalle Valo /* 6x30 Series */ 176e705c121SKalle Valo {IWL_PCI_DEVICE(0x008A, 0x5305, iwl1030_bgn_cfg)}, 177e705c121SKalle Valo {IWL_PCI_DEVICE(0x008A, 0x5307, iwl1030_bg_cfg)}, 178e705c121SKalle Valo {IWL_PCI_DEVICE(0x008A, 0x5325, iwl1030_bgn_cfg)}, 179e705c121SKalle Valo {IWL_PCI_DEVICE(0x008A, 0x5327, iwl1030_bg_cfg)}, 180e705c121SKalle Valo {IWL_PCI_DEVICE(0x008B, 0x5315, iwl1030_bgn_cfg)}, 181e705c121SKalle Valo {IWL_PCI_DEVICE(0x008B, 0x5317, iwl1030_bg_cfg)}, 182e705c121SKalle Valo {IWL_PCI_DEVICE(0x0090, 0x5211, iwl6030_2agn_cfg)}, 183e705c121SKalle Valo {IWL_PCI_DEVICE(0x0090, 0x5215, iwl6030_2bgn_cfg)}, 184e705c121SKalle Valo {IWL_PCI_DEVICE(0x0090, 0x5216, iwl6030_2abg_cfg)}, 185e705c121SKalle Valo {IWL_PCI_DEVICE(0x0091, 0x5201, iwl6030_2agn_cfg)}, 186e705c121SKalle Valo {IWL_PCI_DEVICE(0x0091, 0x5205, iwl6030_2bgn_cfg)}, 187e705c121SKalle Valo {IWL_PCI_DEVICE(0x0091, 0x5206, iwl6030_2abg_cfg)}, 188e705c121SKalle Valo {IWL_PCI_DEVICE(0x0091, 0x5207, iwl6030_2bg_cfg)}, 189e705c121SKalle Valo {IWL_PCI_DEVICE(0x0091, 0x5221, iwl6030_2agn_cfg)}, 190e705c121SKalle Valo {IWL_PCI_DEVICE(0x0091, 0x5225, iwl6030_2bgn_cfg)}, 191e705c121SKalle Valo {IWL_PCI_DEVICE(0x0091, 0x5226, iwl6030_2abg_cfg)}, 192e705c121SKalle Valo 193e705c121SKalle Valo /* 6x50 WiFi/WiMax Series */ 194e705c121SKalle Valo {IWL_PCI_DEVICE(0x0087, 0x1301, iwl6050_2agn_cfg)}, 195e705c121SKalle Valo {IWL_PCI_DEVICE(0x0087, 0x1306, iwl6050_2abg_cfg)}, 196e705c121SKalle Valo {IWL_PCI_DEVICE(0x0087, 0x1321, iwl6050_2agn_cfg)}, 197e705c121SKalle Valo {IWL_PCI_DEVICE(0x0087, 0x1326, iwl6050_2abg_cfg)}, 198e705c121SKalle Valo {IWL_PCI_DEVICE(0x0089, 0x1311, iwl6050_2agn_cfg)}, 199e705c121SKalle Valo {IWL_PCI_DEVICE(0x0089, 0x1316, iwl6050_2abg_cfg)}, 200e705c121SKalle Valo 201e705c121SKalle Valo /* 6150 WiFi/WiMax Series */ 202e705c121SKalle Valo {IWL_PCI_DEVICE(0x0885, 0x1305, iwl6150_bgn_cfg)}, 203e705c121SKalle Valo {IWL_PCI_DEVICE(0x0885, 0x1307, iwl6150_bg_cfg)}, 204e705c121SKalle Valo {IWL_PCI_DEVICE(0x0885, 0x1325, iwl6150_bgn_cfg)}, 205e705c121SKalle Valo {IWL_PCI_DEVICE(0x0885, 0x1327, iwl6150_bg_cfg)}, 206e705c121SKalle Valo {IWL_PCI_DEVICE(0x0886, 0x1315, iwl6150_bgn_cfg)}, 207e705c121SKalle Valo {IWL_PCI_DEVICE(0x0886, 0x1317, iwl6150_bg_cfg)}, 208e705c121SKalle Valo 209e705c121SKalle Valo /* 1000 Series WiFi */ 210e705c121SKalle Valo {IWL_PCI_DEVICE(0x0083, 0x1205, iwl1000_bgn_cfg)}, 211e705c121SKalle Valo {IWL_PCI_DEVICE(0x0083, 0x1305, iwl1000_bgn_cfg)}, 212e705c121SKalle Valo {IWL_PCI_DEVICE(0x0083, 0x1225, iwl1000_bgn_cfg)}, 213e705c121SKalle Valo {IWL_PCI_DEVICE(0x0083, 0x1325, iwl1000_bgn_cfg)}, 214e705c121SKalle Valo {IWL_PCI_DEVICE(0x0084, 0x1215, iwl1000_bgn_cfg)}, 215e705c121SKalle Valo {IWL_PCI_DEVICE(0x0084, 0x1315, iwl1000_bgn_cfg)}, 216e705c121SKalle Valo {IWL_PCI_DEVICE(0x0083, 0x1206, iwl1000_bg_cfg)}, 217e705c121SKalle Valo {IWL_PCI_DEVICE(0x0083, 0x1306, iwl1000_bg_cfg)}, 218e705c121SKalle Valo {IWL_PCI_DEVICE(0x0083, 0x1226, iwl1000_bg_cfg)}, 219e705c121SKalle Valo {IWL_PCI_DEVICE(0x0083, 0x1326, iwl1000_bg_cfg)}, 220e705c121SKalle Valo {IWL_PCI_DEVICE(0x0084, 0x1216, iwl1000_bg_cfg)}, 221e705c121SKalle Valo {IWL_PCI_DEVICE(0x0084, 0x1316, iwl1000_bg_cfg)}, 222e705c121SKalle Valo 223e705c121SKalle Valo /* 100 Series WiFi */ 224e705c121SKalle Valo {IWL_PCI_DEVICE(0x08AE, 0x1005, iwl100_bgn_cfg)}, 225e705c121SKalle Valo {IWL_PCI_DEVICE(0x08AE, 0x1007, iwl100_bg_cfg)}, 226e705c121SKalle Valo {IWL_PCI_DEVICE(0x08AF, 0x1015, iwl100_bgn_cfg)}, 227e705c121SKalle Valo {IWL_PCI_DEVICE(0x08AF, 0x1017, iwl100_bg_cfg)}, 228e705c121SKalle Valo {IWL_PCI_DEVICE(0x08AE, 0x1025, iwl100_bgn_cfg)}, 229e705c121SKalle Valo {IWL_PCI_DEVICE(0x08AE, 0x1027, iwl100_bg_cfg)}, 230e705c121SKalle Valo 231e705c121SKalle Valo /* 130 Series WiFi */ 232e705c121SKalle Valo {IWL_PCI_DEVICE(0x0896, 0x5005, iwl130_bgn_cfg)}, 233e705c121SKalle Valo {IWL_PCI_DEVICE(0x0896, 0x5007, iwl130_bg_cfg)}, 234e705c121SKalle Valo {IWL_PCI_DEVICE(0x0897, 0x5015, iwl130_bgn_cfg)}, 235e705c121SKalle Valo {IWL_PCI_DEVICE(0x0897, 0x5017, iwl130_bg_cfg)}, 236e705c121SKalle Valo {IWL_PCI_DEVICE(0x0896, 0x5025, iwl130_bgn_cfg)}, 237e705c121SKalle Valo {IWL_PCI_DEVICE(0x0896, 0x5027, iwl130_bg_cfg)}, 238e705c121SKalle Valo 239e705c121SKalle Valo /* 2x00 Series */ 240e705c121SKalle Valo {IWL_PCI_DEVICE(0x0890, 0x4022, iwl2000_2bgn_cfg)}, 241e705c121SKalle Valo {IWL_PCI_DEVICE(0x0891, 0x4222, iwl2000_2bgn_cfg)}, 242e705c121SKalle Valo {IWL_PCI_DEVICE(0x0890, 0x4422, iwl2000_2bgn_cfg)}, 243e705c121SKalle Valo {IWL_PCI_DEVICE(0x0890, 0x4822, iwl2000_2bgn_d_cfg)}, 244e705c121SKalle Valo 245e705c121SKalle Valo /* 2x30 Series */ 246e705c121SKalle Valo {IWL_PCI_DEVICE(0x0887, 0x4062, iwl2030_2bgn_cfg)}, 247e705c121SKalle Valo {IWL_PCI_DEVICE(0x0888, 0x4262, iwl2030_2bgn_cfg)}, 248e705c121SKalle Valo {IWL_PCI_DEVICE(0x0887, 0x4462, iwl2030_2bgn_cfg)}, 249e705c121SKalle Valo 250e705c121SKalle Valo /* 6x35 Series */ 251e705c121SKalle Valo {IWL_PCI_DEVICE(0x088E, 0x4060, iwl6035_2agn_cfg)}, 252e705c121SKalle Valo {IWL_PCI_DEVICE(0x088E, 0x406A, iwl6035_2agn_sff_cfg)}, 253e705c121SKalle Valo {IWL_PCI_DEVICE(0x088F, 0x4260, iwl6035_2agn_cfg)}, 254e705c121SKalle Valo {IWL_PCI_DEVICE(0x088F, 0x426A, iwl6035_2agn_sff_cfg)}, 255e705c121SKalle Valo {IWL_PCI_DEVICE(0x088E, 0x4460, iwl6035_2agn_cfg)}, 256e705c121SKalle Valo {IWL_PCI_DEVICE(0x088E, 0x446A, iwl6035_2agn_sff_cfg)}, 257e705c121SKalle Valo {IWL_PCI_DEVICE(0x088E, 0x4860, iwl6035_2agn_cfg)}, 258e705c121SKalle Valo {IWL_PCI_DEVICE(0x088F, 0x5260, iwl6035_2agn_cfg)}, 259e705c121SKalle Valo 260e705c121SKalle Valo /* 105 Series */ 261e705c121SKalle Valo {IWL_PCI_DEVICE(0x0894, 0x0022, iwl105_bgn_cfg)}, 262e705c121SKalle Valo {IWL_PCI_DEVICE(0x0895, 0x0222, iwl105_bgn_cfg)}, 263e705c121SKalle Valo {IWL_PCI_DEVICE(0x0894, 0x0422, iwl105_bgn_cfg)}, 264e705c121SKalle Valo {IWL_PCI_DEVICE(0x0894, 0x0822, iwl105_bgn_d_cfg)}, 265e705c121SKalle Valo 266e705c121SKalle Valo /* 135 Series */ 267e705c121SKalle Valo {IWL_PCI_DEVICE(0x0892, 0x0062, iwl135_bgn_cfg)}, 268e705c121SKalle Valo {IWL_PCI_DEVICE(0x0893, 0x0262, iwl135_bgn_cfg)}, 269e705c121SKalle Valo {IWL_PCI_DEVICE(0x0892, 0x0462, iwl135_bgn_cfg)}, 270e705c121SKalle Valo #endif /* CONFIG_IWLDVM */ 271e705c121SKalle Valo 272e705c121SKalle Valo #if IS_ENABLED(CONFIG_IWLMVM) 273e705c121SKalle Valo /* 7260 Series */ 274e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x4070, iwl7260_2ac_cfg)}, 275e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x4072, iwl7260_2ac_cfg)}, 276e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x4170, iwl7260_2ac_cfg)}, 277e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x4C60, iwl7260_2ac_cfg)}, 278e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x4C70, iwl7260_2ac_cfg)}, 279e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x4060, iwl7260_2n_cfg)}, 280e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x406A, iwl7260_2n_cfg)}, 281e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x4160, iwl7260_2n_cfg)}, 282e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x4062, iwl7260_n_cfg)}, 283e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x4162, iwl7260_n_cfg)}, 284e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B2, 0x4270, iwl7260_2ac_cfg)}, 285e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B2, 0x4272, iwl7260_2ac_cfg)}, 286e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B2, 0x4260, iwl7260_2n_cfg)}, 287e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B2, 0x426A, iwl7260_2n_cfg)}, 288e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B2, 0x4262, iwl7260_n_cfg)}, 289e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x4470, iwl7260_2ac_cfg)}, 290e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x4472, iwl7260_2ac_cfg)}, 291e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x4460, iwl7260_2n_cfg)}, 292e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x446A, iwl7260_2n_cfg)}, 293e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x4462, iwl7260_n_cfg)}, 294e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x4870, iwl7260_2ac_cfg)}, 295e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x486E, iwl7260_2ac_cfg)}, 296e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x4A70, iwl7260_2ac_cfg_high_temp)}, 297e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x4A6E, iwl7260_2ac_cfg_high_temp)}, 298e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x4A6C, iwl7260_2ac_cfg_high_temp)}, 299e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x4570, iwl7260_2ac_cfg)}, 300e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x4560, iwl7260_2n_cfg)}, 301e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B2, 0x4370, iwl7260_2ac_cfg)}, 302e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B2, 0x4360, iwl7260_2n_cfg)}, 303e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x5070, iwl7260_2ac_cfg)}, 304e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x5072, iwl7260_2ac_cfg)}, 305e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x5170, iwl7260_2ac_cfg)}, 306e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x5770, iwl7260_2ac_cfg)}, 307e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x4020, iwl7260_2n_cfg)}, 308e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x402A, iwl7260_2n_cfg)}, 309e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B2, 0x4220, iwl7260_2n_cfg)}, 310e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0x4420, iwl7260_2n_cfg)}, 311e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0xC070, iwl7260_2ac_cfg)}, 312e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0xC072, iwl7260_2ac_cfg)}, 313e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0xC170, iwl7260_2ac_cfg)}, 314e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0xC060, iwl7260_2n_cfg)}, 315e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0xC06A, iwl7260_2n_cfg)}, 316e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0xC160, iwl7260_2n_cfg)}, 317e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0xC062, iwl7260_n_cfg)}, 318e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0xC162, iwl7260_n_cfg)}, 319e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0xC770, iwl7260_2ac_cfg)}, 320e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0xC760, iwl7260_2n_cfg)}, 321e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B2, 0xC270, iwl7260_2ac_cfg)}, 322e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0xCC70, iwl7260_2ac_cfg)}, 323e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0xCC60, iwl7260_2ac_cfg)}, 324e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B2, 0xC272, iwl7260_2ac_cfg)}, 325e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B2, 0xC260, iwl7260_2n_cfg)}, 326e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B2, 0xC26A, iwl7260_n_cfg)}, 327e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B2, 0xC262, iwl7260_n_cfg)}, 328e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0xC470, iwl7260_2ac_cfg)}, 329e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0xC472, iwl7260_2ac_cfg)}, 330e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0xC460, iwl7260_2n_cfg)}, 331e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0xC462, iwl7260_n_cfg)}, 332e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0xC570, iwl7260_2ac_cfg)}, 333e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0xC560, iwl7260_2n_cfg)}, 334e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B2, 0xC370, iwl7260_2ac_cfg)}, 335e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0xC360, iwl7260_2n_cfg)}, 336e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0xC020, iwl7260_2n_cfg)}, 337e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0xC02A, iwl7260_2n_cfg)}, 338e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B2, 0xC220, iwl7260_2n_cfg)}, 339e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B1, 0xC420, iwl7260_2n_cfg)}, 340e705c121SKalle Valo 341e705c121SKalle Valo /* 3160 Series */ 342e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B3, 0x0070, iwl3160_2ac_cfg)}, 343e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B3, 0x0072, iwl3160_2ac_cfg)}, 344e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B3, 0x0170, iwl3160_2ac_cfg)}, 345e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B3, 0x0172, iwl3160_2ac_cfg)}, 346e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B3, 0x0060, iwl3160_2n_cfg)}, 347e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B3, 0x0062, iwl3160_n_cfg)}, 348e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B4, 0x0270, iwl3160_2ac_cfg)}, 349e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B4, 0x0272, iwl3160_2ac_cfg)}, 350e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B3, 0x0470, iwl3160_2ac_cfg)}, 351e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B3, 0x0472, iwl3160_2ac_cfg)}, 352e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B4, 0x0370, iwl3160_2ac_cfg)}, 353e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B3, 0x8070, iwl3160_2ac_cfg)}, 354e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B3, 0x8072, iwl3160_2ac_cfg)}, 355e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B3, 0x8170, iwl3160_2ac_cfg)}, 356e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B3, 0x8172, iwl3160_2ac_cfg)}, 357e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B3, 0x8060, iwl3160_2n_cfg)}, 358e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B3, 0x8062, iwl3160_n_cfg)}, 359e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B4, 0x8270, iwl3160_2ac_cfg)}, 360e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B4, 0x8370, iwl3160_2ac_cfg)}, 361e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B4, 0x8272, iwl3160_2ac_cfg)}, 362e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B3, 0x8470, iwl3160_2ac_cfg)}, 363e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B3, 0x8570, iwl3160_2ac_cfg)}, 364e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B3, 0x1070, iwl3160_2ac_cfg)}, 365e705c121SKalle Valo {IWL_PCI_DEVICE(0x08B3, 0x1170, iwl3160_2ac_cfg)}, 366e705c121SKalle Valo 367e705c121SKalle Valo /* 3165 Series */ 368e705c121SKalle Valo {IWL_PCI_DEVICE(0x3165, 0x4010, iwl3165_2ac_cfg)}, 369e705c121SKalle Valo {IWL_PCI_DEVICE(0x3165, 0x4012, iwl3165_2ac_cfg)}, 370e705c121SKalle Valo {IWL_PCI_DEVICE(0x3166, 0x4212, iwl3165_2ac_cfg)}, 371e705c121SKalle Valo {IWL_PCI_DEVICE(0x3165, 0x4410, iwl3165_2ac_cfg)}, 372e705c121SKalle Valo {IWL_PCI_DEVICE(0x3165, 0x4510, iwl3165_2ac_cfg)}, 373e705c121SKalle Valo {IWL_PCI_DEVICE(0x3165, 0x4110, iwl3165_2ac_cfg)}, 374e705c121SKalle Valo {IWL_PCI_DEVICE(0x3166, 0x4310, iwl3165_2ac_cfg)}, 375e705c121SKalle Valo {IWL_PCI_DEVICE(0x3166, 0x4210, iwl3165_2ac_cfg)}, 376e705c121SKalle Valo {IWL_PCI_DEVICE(0x3165, 0x8010, iwl3165_2ac_cfg)}, 377e705c121SKalle Valo {IWL_PCI_DEVICE(0x3165, 0x8110, iwl3165_2ac_cfg)}, 378e705c121SKalle Valo 379c4836b05SOren Givon /* 3168 Series */ 3807b08c67fSOren Givon {IWL_PCI_DEVICE(0x24FB, 0x2010, iwl3168_2ac_cfg)}, 381c4836b05SOren Givon {IWL_PCI_DEVICE(0x24FB, 0x2110, iwl3168_2ac_cfg)}, 3827b08c67fSOren Givon {IWL_PCI_DEVICE(0x24FB, 0x2050, iwl3168_2ac_cfg)}, 3837b08c67fSOren Givon {IWL_PCI_DEVICE(0x24FB, 0x2150, iwl3168_2ac_cfg)}, 384c4836b05SOren Givon {IWL_PCI_DEVICE(0x24FB, 0x0000, iwl3168_2ac_cfg)}, 385c4836b05SOren Givon 386e705c121SKalle Valo /* 7265 Series */ 387e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x5010, iwl7265_2ac_cfg)}, 388e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x5110, iwl7265_2ac_cfg)}, 389e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x5100, iwl7265_2ac_cfg)}, 390e705c121SKalle Valo {IWL_PCI_DEVICE(0x095B, 0x5310, iwl7265_2ac_cfg)}, 391e705c121SKalle Valo {IWL_PCI_DEVICE(0x095B, 0x5302, iwl7265_n_cfg)}, 392e705c121SKalle Valo {IWL_PCI_DEVICE(0x095B, 0x5210, iwl7265_2ac_cfg)}, 393006bda75SOren Givon {IWL_PCI_DEVICE(0x095A, 0x5C10, iwl7265_2ac_cfg)}, 394e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x5012, iwl7265_2ac_cfg)}, 395e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x5412, iwl7265_2ac_cfg)}, 396e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x5410, iwl7265_2ac_cfg)}, 397e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x5510, iwl7265_2ac_cfg)}, 398e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x5400, iwl7265_2ac_cfg)}, 399e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x1010, iwl7265_2ac_cfg)}, 400e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x5000, iwl7265_2n_cfg)}, 401e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x500A, iwl7265_2n_cfg)}, 402e705c121SKalle Valo {IWL_PCI_DEVICE(0x095B, 0x5200, iwl7265_2n_cfg)}, 403e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x5002, iwl7265_n_cfg)}, 404e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x5102, iwl7265_n_cfg)}, 405e705c121SKalle Valo {IWL_PCI_DEVICE(0x095B, 0x5202, iwl7265_n_cfg)}, 406e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x9010, iwl7265_2ac_cfg)}, 407e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x9012, iwl7265_2ac_cfg)}, 408e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x900A, iwl7265_2ac_cfg)}, 409e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x9110, iwl7265_2ac_cfg)}, 410e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x9112, iwl7265_2ac_cfg)}, 411006bda75SOren Givon {IWL_PCI_DEVICE(0x095B, 0x9210, iwl7265_2ac_cfg)}, 412e705c121SKalle Valo {IWL_PCI_DEVICE(0x095B, 0x9200, iwl7265_2ac_cfg)}, 413e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x9510, iwl7265_2ac_cfg)}, 414006bda75SOren Givon {IWL_PCI_DEVICE(0x095B, 0x9310, iwl7265_2ac_cfg)}, 415e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x9410, iwl7265_2ac_cfg)}, 416e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x5020, iwl7265_2n_cfg)}, 417e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x502A, iwl7265_2n_cfg)}, 418e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x5420, iwl7265_2n_cfg)}, 419e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x5090, iwl7265_2ac_cfg)}, 420e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x5190, iwl7265_2ac_cfg)}, 421e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x5590, iwl7265_2ac_cfg)}, 422e705c121SKalle Valo {IWL_PCI_DEVICE(0x095B, 0x5290, iwl7265_2ac_cfg)}, 423e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x5490, iwl7265_2ac_cfg)}, 424e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x5F10, iwl7265_2ac_cfg)}, 425e705c121SKalle Valo {IWL_PCI_DEVICE(0x095B, 0x5212, iwl7265_2ac_cfg)}, 426e705c121SKalle Valo {IWL_PCI_DEVICE(0x095B, 0x520A, iwl7265_2ac_cfg)}, 427e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x9000, iwl7265_2ac_cfg)}, 428e705c121SKalle Valo {IWL_PCI_DEVICE(0x095A, 0x9400, iwl7265_2ac_cfg)}, 4293f7a5e13SLuca Coelho {IWL_PCI_DEVICE(0x095A, 0x9E10, iwl7265_2ac_cfg)}, 430e705c121SKalle Valo 431e705c121SKalle Valo /* 8000 Series */ 432e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F3, 0x0010, iwl8260_2ac_cfg)}, 433e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F3, 0x1010, iwl8260_2ac_cfg)}, 4344b79deecSOren Givon {IWL_PCI_DEVICE(0x24F3, 0x10B0, iwl8260_2ac_cfg)}, 4354615fd15SEmmanuel Grumbach {IWL_PCI_DEVICE(0x24F3, 0x0130, iwl8260_2ac_cfg)}, 4364615fd15SEmmanuel Grumbach {IWL_PCI_DEVICE(0x24F3, 0x1130, iwl8260_2ac_cfg)}, 4374615fd15SEmmanuel Grumbach {IWL_PCI_DEVICE(0x24F3, 0x0132, iwl8260_2ac_cfg)}, 4384615fd15SEmmanuel Grumbach {IWL_PCI_DEVICE(0x24F3, 0x1132, iwl8260_2ac_cfg)}, 439e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F3, 0x0110, iwl8260_2ac_cfg)}, 4404615fd15SEmmanuel Grumbach {IWL_PCI_DEVICE(0x24F3, 0x01F0, iwl8260_2ac_cfg)}, 4414615fd15SEmmanuel Grumbach {IWL_PCI_DEVICE(0x24F3, 0x0012, iwl8260_2ac_cfg)}, 4424615fd15SEmmanuel Grumbach {IWL_PCI_DEVICE(0x24F3, 0x1012, iwl8260_2ac_cfg)}, 443e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F3, 0x1110, iwl8260_2ac_cfg)}, 444e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F3, 0x0050, iwl8260_2ac_cfg)}, 445e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F3, 0x0250, iwl8260_2ac_cfg)}, 446e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F3, 0x1050, iwl8260_2ac_cfg)}, 447e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F3, 0x0150, iwl8260_2ac_cfg)}, 4484615fd15SEmmanuel Grumbach {IWL_PCI_DEVICE(0x24F3, 0x1150, iwl8260_2ac_cfg)}, 449e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F4, 0x0030, iwl8260_2ac_cfg)}, 450e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F4, 0x1030, iwl8260_2ac_cfg)}, 451e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F3, 0xC010, iwl8260_2ac_cfg)}, 452e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F3, 0xC110, iwl8260_2ac_cfg)}, 453e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F3, 0xD010, iwl8260_2ac_cfg)}, 454e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F3, 0xC050, iwl8260_2ac_cfg)}, 455e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F3, 0xD050, iwl8260_2ac_cfg)}, 4564b79deecSOren Givon {IWL_PCI_DEVICE(0x24F3, 0xD0B0, iwl8260_2ac_cfg)}, 4574b79deecSOren Givon {IWL_PCI_DEVICE(0x24F3, 0xB0B0, iwl8260_2ac_cfg)}, 458e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F3, 0x8010, iwl8260_2ac_cfg)}, 4594615fd15SEmmanuel Grumbach {IWL_PCI_DEVICE(0x24F3, 0x8110, iwl8260_2ac_cfg)}, 460e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F3, 0x9010, iwl8260_2ac_cfg)}, 4614615fd15SEmmanuel Grumbach {IWL_PCI_DEVICE(0x24F3, 0x9110, iwl8260_2ac_cfg)}, 462e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F4, 0x8030, iwl8260_2ac_cfg)}, 463e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F4, 0x9030, iwl8260_2ac_cfg)}, 464d669fc2dSIhab Zhaika {IWL_PCI_DEVICE(0x24F4, 0xC030, iwl8260_2ac_cfg)}, 465d669fc2dSIhab Zhaika {IWL_PCI_DEVICE(0x24F4, 0xD030, iwl8260_2ac_cfg)}, 4664615fd15SEmmanuel Grumbach {IWL_PCI_DEVICE(0x24F3, 0x8130, iwl8260_2ac_cfg)}, 4674615fd15SEmmanuel Grumbach {IWL_PCI_DEVICE(0x24F3, 0x9130, iwl8260_2ac_cfg)}, 4684615fd15SEmmanuel Grumbach {IWL_PCI_DEVICE(0x24F3, 0x8132, iwl8260_2ac_cfg)}, 4694615fd15SEmmanuel Grumbach {IWL_PCI_DEVICE(0x24F3, 0x9132, iwl8260_2ac_cfg)}, 470e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F3, 0x8050, iwl8260_2ac_cfg)}, 4714615fd15SEmmanuel Grumbach {IWL_PCI_DEVICE(0x24F3, 0x8150, iwl8260_2ac_cfg)}, 472e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F3, 0x9050, iwl8260_2ac_cfg)}, 4734615fd15SEmmanuel Grumbach {IWL_PCI_DEVICE(0x24F3, 0x9150, iwl8260_2ac_cfg)}, 474e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F3, 0x0004, iwl8260_2n_cfg)}, 4754615fd15SEmmanuel Grumbach {IWL_PCI_DEVICE(0x24F3, 0x0044, iwl8260_2n_cfg)}, 476e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F5, 0x0010, iwl4165_2ac_cfg)}, 477e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F6, 0x0030, iwl4165_2ac_cfg)}, 478e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F3, 0x0810, iwl8260_2ac_cfg)}, 479e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F3, 0x0910, iwl8260_2ac_cfg)}, 480e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F3, 0x0850, iwl8260_2ac_cfg)}, 481e705c121SKalle Valo {IWL_PCI_DEVICE(0x24F3, 0x0950, iwl8260_2ac_cfg)}, 4824615fd15SEmmanuel Grumbach {IWL_PCI_DEVICE(0x24F3, 0x0930, iwl8260_2ac_cfg)}, 4838d0e4f8fSOren Givon {IWL_PCI_DEVICE(0x24F3, 0x0000, iwl8265_2ac_cfg)}, 484d669fc2dSIhab Zhaika {IWL_PCI_DEVICE(0x24F3, 0x4010, iwl8260_2ac_cfg)}, 485abf10f86SOren Givon {IWL_PCI_DEVICE(0x24FD, 0x0010, iwl8265_2ac_cfg)}, 486d34475b9SOren Givon {IWL_PCI_DEVICE(0x24FD, 0x0110, iwl8265_2ac_cfg)}, 487d34475b9SOren Givon {IWL_PCI_DEVICE(0x24FD, 0x1110, iwl8265_2ac_cfg)}, 488f24bbae5SOren Givon {IWL_PCI_DEVICE(0x24FD, 0x1130, iwl8265_2ac_cfg)}, 489f24bbae5SOren Givon {IWL_PCI_DEVICE(0x24FD, 0x0130, iwl8265_2ac_cfg)}, 490d34475b9SOren Givon {IWL_PCI_DEVICE(0x24FD, 0x1010, iwl8265_2ac_cfg)}, 4918b6607ccSOren Givon {IWL_PCI_DEVICE(0x24FD, 0x10D0, iwl8265_2ac_cfg)}, 492d34475b9SOren Givon {IWL_PCI_DEVICE(0x24FD, 0x0050, iwl8265_2ac_cfg)}, 493d34475b9SOren Givon {IWL_PCI_DEVICE(0x24FD, 0x0150, iwl8265_2ac_cfg)}, 494d34475b9SOren Givon {IWL_PCI_DEVICE(0x24FD, 0x9010, iwl8265_2ac_cfg)}, 495d34475b9SOren Givon {IWL_PCI_DEVICE(0x24FD, 0x8110, iwl8265_2ac_cfg)}, 496d34475b9SOren Givon {IWL_PCI_DEVICE(0x24FD, 0x8050, iwl8265_2ac_cfg)}, 4978d0e4f8fSOren Givon {IWL_PCI_DEVICE(0x24FD, 0x8010, iwl8265_2ac_cfg)}, 4989baa0398SOren Givon {IWL_PCI_DEVICE(0x24FD, 0x0810, iwl8265_2ac_cfg)}, 499d34475b9SOren Givon {IWL_PCI_DEVICE(0x24FD, 0x9110, iwl8265_2ac_cfg)}, 500d34475b9SOren Givon {IWL_PCI_DEVICE(0x24FD, 0x8130, iwl8265_2ac_cfg)}, 501f24bbae5SOren Givon {IWL_PCI_DEVICE(0x24FD, 0x0910, iwl8265_2ac_cfg)}, 502f24bbae5SOren Givon {IWL_PCI_DEVICE(0x24FD, 0x0930, iwl8265_2ac_cfg)}, 503f24bbae5SOren Givon {IWL_PCI_DEVICE(0x24FD, 0x0950, iwl8265_2ac_cfg)}, 504f24bbae5SOren Givon {IWL_PCI_DEVICE(0x24FD, 0x0850, iwl8265_2ac_cfg)}, 505f2758893STzipi Peres {IWL_PCI_DEVICE(0x24FD, 0x1014, iwl8265_2ac_cfg)}, 506f2758893STzipi Peres {IWL_PCI_DEVICE(0x24FD, 0x3E02, iwl8275_2ac_cfg)}, 507f2758893STzipi Peres {IWL_PCI_DEVICE(0x24FD, 0x3E01, iwl8275_2ac_cfg)}, 508f2758893STzipi Peres {IWL_PCI_DEVICE(0x24FD, 0x1012, iwl8275_2ac_cfg)}, 509a3e939dfSOren Givon {IWL_PCI_DEVICE(0x24FD, 0x0012, iwl8275_2ac_cfg)}, 5107cddbef4SIhab Zhaika {IWL_PCI_DEVICE(0x24FD, 0x0014, iwl8265_2ac_cfg)}, 5117cddbef4SIhab Zhaika {IWL_PCI_DEVICE(0x24FD, 0x9074, iwl8265_2ac_cfg)}, 51289374fe6SDreyfuss, Haim 51389374fe6SDreyfuss, Haim /* 9000 Series */ 51432ed101aSLuca Coelho {IWL_PCI_DEVICE(0x2526, PCI_ANY_ID, iwl9000_trans_cfg)}, 51532ed101aSLuca Coelho {IWL_PCI_DEVICE(0x271B, PCI_ANY_ID, iwl9560_trans_cfg)}, 51632ed101aSLuca Coelho {IWL_PCI_DEVICE(0x271C, PCI_ANY_ID, iwl9560_trans_cfg)}, 51732ed101aSLuca Coelho {IWL_PCI_DEVICE(0x30DC, PCI_ANY_ID, iwl9560_trans_cfg)}, 51832ed101aSLuca Coelho {IWL_PCI_DEVICE(0x31DC, PCI_ANY_ID, iwl9560_shared_clk_trans_cfg)}, 51932ed101aSLuca Coelho {IWL_PCI_DEVICE(0x9DF0, PCI_ANY_ID, iwl9560_trans_cfg)}, 52032ed101aSLuca Coelho {IWL_PCI_DEVICE(0xA370, PCI_ANY_ID, iwl9560_trans_cfg)}, 521ab27926dSLuca Coelho 52232ed101aSLuca Coelho /* Qu devices */ 52332ed101aSLuca Coelho {IWL_PCI_DEVICE(0x02F0, PCI_ANY_ID, iwl_qu_trans_cfg)}, 52432ed101aSLuca Coelho {IWL_PCI_DEVICE(0x06F0, PCI_ANY_ID, iwl_qu_trans_cfg)}, 5259c9613f0SLuca Coelho 5269c9613f0SLuca Coelho {IWL_PCI_DEVICE(0x34F0, PCI_ANY_ID, iwl_qu_medium_latency_trans_cfg)}, 5279c9613f0SLuca Coelho {IWL_PCI_DEVICE(0x3DF0, PCI_ANY_ID, iwl_qu_medium_latency_trans_cfg)}, 5289c9613f0SLuca Coelho {IWL_PCI_DEVICE(0x4DF0, PCI_ANY_ID, iwl_qu_medium_latency_trans_cfg)}, 529a72abfcaSLuca Coelho 530a72abfcaSLuca Coelho {IWL_PCI_DEVICE(0x43F0, PCI_ANY_ID, iwl_qu_long_latency_trans_cfg)}, 531a72abfcaSLuca Coelho {IWL_PCI_DEVICE(0xA0F0, PCI_ANY_ID, iwl_qu_long_latency_trans_cfg)}, 532aa0cc7ddSLuca Coelho 533612509d6SLuca Coelho {IWL_PCI_DEVICE(0x2720, PCI_ANY_ID, iwl_qnj_trans_cfg)}, 534e34d975eSHaim Dreyfuss 5355e003982SLuca Coelho {IWL_PCI_DEVICE(0x2723, PCI_ANY_ID, iwl_ax200_trans_cfg)}, 5365e003982SLuca Coelho 537d151b0a2SIhab Zhaika {IWL_PCI_DEVICE(0x2725, 0x0090, iwlax211_2ax_cfg_so_gf_a0)}, 538d151b0a2SIhab Zhaika {IWL_PCI_DEVICE(0x2725, 0x0020, iwlax210_2ax_cfg_ty_gf_a0)}, 539d151b0a2SIhab Zhaika {IWL_PCI_DEVICE(0x2725, 0x0310, iwlax210_2ax_cfg_ty_gf_a0)}, 540d151b0a2SIhab Zhaika {IWL_PCI_DEVICE(0x2725, 0x0510, iwlax210_2ax_cfg_ty_gf_a0)}, 541d151b0a2SIhab Zhaika {IWL_PCI_DEVICE(0x2725, 0x0A10, iwlax210_2ax_cfg_ty_gf_a0)}, 542e819a80aSIhab Zhaika {IWL_PCI_DEVICE(0x2725, 0x00B0, iwlax411_2ax_cfg_sosnj_gf4_a0)}, 543e819a80aSIhab Zhaika {IWL_PCI_DEVICE(0x2726, 0x0090, iwlax211_cfg_snj_gf_a0)}, 544e819a80aSIhab Zhaika {IWL_PCI_DEVICE(0x2726, 0x00B0, iwlax411_2ax_cfg_sosnj_gf4_a0)}, 545e819a80aSIhab Zhaika {IWL_PCI_DEVICE(0x2726, 0x0510, iwlax211_cfg_snj_gf_a0)}, 54662bee486SLuca Coelho {IWL_PCI_DEVICE(0x7A70, 0x0090, iwlax211_2ax_cfg_so_gf_a0_long)}, 54762bee486SLuca Coelho {IWL_PCI_DEVICE(0x7A70, 0x00B0, iwlax411_2ax_cfg_so_gf4_a0_long)}, 54862bee486SLuca Coelho {IWL_PCI_DEVICE(0x7A70, 0x0310, iwlax211_2ax_cfg_so_gf_a0_long)}, 54962bee486SLuca Coelho {IWL_PCI_DEVICE(0x7A70, 0x0510, iwlax211_2ax_cfg_so_gf_a0_long)}, 55062bee486SLuca Coelho {IWL_PCI_DEVICE(0x7A70, 0x0A10, iwlax211_2ax_cfg_so_gf_a0_long)}, 551ffcb60a5SIhab Zhaika {IWL_PCI_DEVICE(0x7AF0, 0x0090, iwlax211_2ax_cfg_so_gf_a0)}, 552e819a80aSIhab Zhaika {IWL_PCI_DEVICE(0x7AF0, 0x00B0, iwlax411_2ax_cfg_so_gf4_a0)}, 553a976bfb4SIhab Zhaika {IWL_PCI_DEVICE(0x7AF0, 0x0310, iwlax211_2ax_cfg_so_gf_a0)}, 554a976bfb4SIhab Zhaika {IWL_PCI_DEVICE(0x7AF0, 0x0510, iwlax211_2ax_cfg_so_gf_a0)}, 555a976bfb4SIhab Zhaika {IWL_PCI_DEVICE(0x7AF0, 0x0A10, iwlax211_2ax_cfg_so_gf_a0)}, 556ff911dcaSShaul Triebitz 557e705c121SKalle Valo #endif /* CONFIG_IWLMVM */ 558e705c121SKalle Valo 559e705c121SKalle Valo {0} 560e705c121SKalle Valo }; 561e705c121SKalle Valo MODULE_DEVICE_TABLE(pci, iwl_hw_card_ids); 562e705c121SKalle Valo 563be2f6886SLuca Coelho #define _IWL_DEV_INFO(_device, _subdevice, _mac_type, _mac_step, _rf_type, \ 564be2f6886SLuca Coelho _rf_id, _no_160, _cores, _cfg, _name) \ 5650b295a1eSLuca Coelho { .device = (_device), .subdevice = (_subdevice), .cfg = &(_cfg), \ 566d6f2134aSLuca Coelho .name = _name, .mac_type = _mac_type, .rf_type = _rf_type, \ 567be2f6886SLuca Coelho .no_160 = _no_160, .cores = _cores, .rf_id = _rf_id, \ 568be2f6886SLuca Coelho .mac_step = _mac_step } 569d6f2134aSLuca Coelho 570d6f2134aSLuca Coelho #define IWL_DEV_INFO(_device, _subdevice, _cfg, _name) \ 571d6f2134aSLuca Coelho _IWL_DEV_INFO(_device, _subdevice, IWL_CFG_ANY, IWL_CFG_ANY, \ 572be2f6886SLuca Coelho IWL_CFG_ANY, IWL_CFG_ANY, IWL_CFG_ANY, IWL_CFG_ANY, \ 573be2f6886SLuca Coelho _cfg, _name) 5742a612a60SLuca Coelho 5752a612a60SLuca Coelho static const struct iwl_dev_info iwl_dev_info_table[] = { 5762a612a60SLuca Coelho #if IS_ENABLED(CONFIG_IWLMVM) 5775e003982SLuca Coelho /* 9000 */ 57867eb556dSLuca Coelho IWL_DEV_INFO(0x2526, 0x1550, iwl9260_2ac_cfg, iwl9260_killer_1550_name), 57967eb556dSLuca Coelho IWL_DEV_INFO(0x2526, 0x1551, iwl9560_2ac_cfg_soc, iwl9560_killer_1550s_name), 58067eb556dSLuca Coelho IWL_DEV_INFO(0x2526, 0x1552, iwl9560_2ac_cfg_soc, iwl9560_killer_1550i_name), 581c8685937SLuca Coelho IWL_DEV_INFO(0x30DC, 0x1551, iwl9560_2ac_cfg_soc, iwl9560_killer_1550s_name), 582c8685937SLuca Coelho IWL_DEV_INFO(0x30DC, 0x1552, iwl9560_2ac_cfg_soc, iwl9560_killer_1550i_name), 5837897dfa2SLuca Coelho IWL_DEV_INFO(0x31DC, 0x1551, iwl9560_2ac_cfg_soc, iwl9560_killer_1550s_name), 5847897dfa2SLuca Coelho IWL_DEV_INFO(0x31DC, 0x1552, iwl9560_2ac_cfg_soc, iwl9560_killer_1550i_name), 585*b5ba46b8SAlessio Bonfiglio IWL_DEV_INFO(0xA370, 0x1551, iwl9560_2ac_cfg_soc, iwl9560_killer_1550s_name), 586*b5ba46b8SAlessio Bonfiglio IWL_DEV_INFO(0xA370, 0x1552, iwl9560_2ac_cfg_soc, iwl9560_killer_1550i_name), 587d6f2134aSLuca Coelho 58855cf5fb9SLuca Coelho IWL_DEV_INFO(0x271C, 0x0214, iwl9260_2ac_cfg, iwl9260_1_name), 58955cf5fb9SLuca Coelho 59032ed101aSLuca Coelho /* AX200 */ 59132ed101aSLuca Coelho IWL_DEV_INFO(0x2723, 0x1653, iwl_ax200_cfg_cc, iwl_ax200_killer_1650w_name), 59232ed101aSLuca Coelho IWL_DEV_INFO(0x2723, 0x1654, iwl_ax200_cfg_cc, iwl_ax200_killer_1650x_name), 59332ed101aSLuca Coelho IWL_DEV_INFO(0x2723, IWL_CFG_ANY, iwl_ax200_cfg_cc, iwl_ax200_name), 59432ed101aSLuca Coelho 595d5727b60SLuca Coelho /* QnJ with Hr */ 596d5727b60SLuca Coelho IWL_DEV_INFO(0x2720, IWL_CFG_ANY, iwl_qnj_b0_hr_b0_cfg, iwl_ax201_name), 597d5727b60SLuca Coelho 59832ed101aSLuca Coelho /* Qu with Hr */ 59932ed101aSLuca Coelho IWL_DEV_INFO(0x43F0, 0x0070, iwl_ax201_cfg_qu_hr, NULL), 60032ed101aSLuca Coelho IWL_DEV_INFO(0x43F0, 0x0074, iwl_ax201_cfg_qu_hr, NULL), 60132ed101aSLuca Coelho IWL_DEV_INFO(0x43F0, 0x0078, iwl_ax201_cfg_qu_hr, NULL), 60232ed101aSLuca Coelho IWL_DEV_INFO(0x43F0, 0x007C, iwl_ax201_cfg_qu_hr, NULL), 60332ed101aSLuca Coelho IWL_DEV_INFO(0x43F0, 0x2074, iwl_ax201_cfg_qu_hr, NULL), 60432ed101aSLuca Coelho IWL_DEV_INFO(0x43F0, 0x4070, iwl_ax201_cfg_qu_hr, NULL), 60532ed101aSLuca Coelho IWL_DEV_INFO(0xA0F0, 0x0070, iwl_ax201_cfg_qu_hr, NULL), 60632ed101aSLuca Coelho IWL_DEV_INFO(0xA0F0, 0x0074, iwl_ax201_cfg_qu_hr, NULL), 60732ed101aSLuca Coelho IWL_DEV_INFO(0xA0F0, 0x0078, iwl_ax201_cfg_qu_hr, NULL), 60832ed101aSLuca Coelho IWL_DEV_INFO(0xA0F0, 0x007C, iwl_ax201_cfg_qu_hr, NULL), 60932ed101aSLuca Coelho IWL_DEV_INFO(0xA0F0, 0x0A10, iwl_ax201_cfg_qu_hr, NULL), 61032ed101aSLuca Coelho IWL_DEV_INFO(0xA0F0, 0x1651, killer1650s_2ax_cfg_qu_b0_hr_b0, NULL), 61132ed101aSLuca Coelho IWL_DEV_INFO(0xA0F0, 0x1652, killer1650i_2ax_cfg_qu_b0_hr_b0, NULL), 61232ed101aSLuca Coelho IWL_DEV_INFO(0xA0F0, 0x2074, iwl_ax201_cfg_qu_hr, NULL), 61332ed101aSLuca Coelho IWL_DEV_INFO(0xA0F0, 0x4070, iwl_ax201_cfg_qu_hr, NULL), 61432ed101aSLuca Coelho IWL_DEV_INFO(0x02F0, 0x0070, iwl_ax201_cfg_quz_hr, NULL), 61532ed101aSLuca Coelho IWL_DEV_INFO(0x02F0, 0x0074, iwl_ax201_cfg_quz_hr, NULL), 61632ed101aSLuca Coelho IWL_DEV_INFO(0x02F0, 0x0078, iwl_ax201_cfg_quz_hr, NULL), 61732ed101aSLuca Coelho IWL_DEV_INFO(0x02F0, 0x007C, iwl_ax201_cfg_quz_hr, NULL), 61832ed101aSLuca Coelho IWL_DEV_INFO(0x02F0, 0x0310, iwl_ax201_cfg_quz_hr, NULL), 61932ed101aSLuca Coelho IWL_DEV_INFO(0x02F0, 0x1651, iwl_ax1650s_cfg_quz_hr, NULL), 62032ed101aSLuca Coelho IWL_DEV_INFO(0x02F0, 0x1652, iwl_ax1650i_cfg_quz_hr, NULL), 62132ed101aSLuca Coelho IWL_DEV_INFO(0x02F0, 0x2074, iwl_ax201_cfg_quz_hr, NULL), 62232ed101aSLuca Coelho IWL_DEV_INFO(0x02F0, 0x4070, iwl_ax201_cfg_quz_hr, NULL), 62332ed101aSLuca Coelho IWL_DEV_INFO(0x06F0, 0x0070, iwl_ax201_cfg_quz_hr, NULL), 62432ed101aSLuca Coelho IWL_DEV_INFO(0x06F0, 0x0074, iwl_ax201_cfg_quz_hr, NULL), 62532ed101aSLuca Coelho IWL_DEV_INFO(0x06F0, 0x0078, iwl_ax201_cfg_quz_hr, NULL), 62632ed101aSLuca Coelho IWL_DEV_INFO(0x06F0, 0x007C, iwl_ax201_cfg_quz_hr, NULL), 62732ed101aSLuca Coelho IWL_DEV_INFO(0x06F0, 0x0310, iwl_ax201_cfg_quz_hr, NULL), 62832ed101aSLuca Coelho IWL_DEV_INFO(0x06F0, 0x1651, iwl_ax1650s_cfg_quz_hr, NULL), 62932ed101aSLuca Coelho IWL_DEV_INFO(0x06F0, 0x1652, iwl_ax1650i_cfg_quz_hr, NULL), 63032ed101aSLuca Coelho IWL_DEV_INFO(0x06F0, 0x2074, iwl_ax201_cfg_quz_hr, NULL), 63132ed101aSLuca Coelho IWL_DEV_INFO(0x06F0, 0x4070, iwl_ax201_cfg_quz_hr, NULL), 63232ed101aSLuca Coelho IWL_DEV_INFO(0x34F0, 0x0070, iwl_ax201_cfg_qu_hr, NULL), 63332ed101aSLuca Coelho IWL_DEV_INFO(0x34F0, 0x0074, iwl_ax201_cfg_qu_hr, NULL), 63432ed101aSLuca Coelho IWL_DEV_INFO(0x34F0, 0x0078, iwl_ax201_cfg_qu_hr, NULL), 63532ed101aSLuca Coelho IWL_DEV_INFO(0x34F0, 0x007C, iwl_ax201_cfg_qu_hr, NULL), 63632ed101aSLuca Coelho IWL_DEV_INFO(0x34F0, 0x0310, iwl_ax201_cfg_qu_hr, NULL), 63732ed101aSLuca Coelho IWL_DEV_INFO(0x34F0, 0x1651, killer1650s_2ax_cfg_qu_b0_hr_b0, NULL), 63832ed101aSLuca Coelho IWL_DEV_INFO(0x34F0, 0x1652, killer1650i_2ax_cfg_qu_b0_hr_b0, NULL), 63932ed101aSLuca Coelho IWL_DEV_INFO(0x34F0, 0x2074, iwl_ax201_cfg_qu_hr, NULL), 64032ed101aSLuca Coelho IWL_DEV_INFO(0x34F0, 0x4070, iwl_ax201_cfg_qu_hr, NULL), 64132ed101aSLuca Coelho 64232ed101aSLuca Coelho IWL_DEV_INFO(0x3DF0, 0x0070, iwl_ax201_cfg_qu_hr, NULL), 64332ed101aSLuca Coelho IWL_DEV_INFO(0x3DF0, 0x0074, iwl_ax201_cfg_qu_hr, NULL), 64432ed101aSLuca Coelho IWL_DEV_INFO(0x3DF0, 0x0078, iwl_ax201_cfg_qu_hr, NULL), 64532ed101aSLuca Coelho IWL_DEV_INFO(0x3DF0, 0x007C, iwl_ax201_cfg_qu_hr, NULL), 64632ed101aSLuca Coelho IWL_DEV_INFO(0x3DF0, 0x0310, iwl_ax201_cfg_qu_hr, NULL), 64732ed101aSLuca Coelho IWL_DEV_INFO(0x3DF0, 0x1651, killer1650s_2ax_cfg_qu_b0_hr_b0, NULL), 64832ed101aSLuca Coelho IWL_DEV_INFO(0x3DF0, 0x1652, killer1650i_2ax_cfg_qu_b0_hr_b0, NULL), 64932ed101aSLuca Coelho IWL_DEV_INFO(0x3DF0, 0x2074, iwl_ax201_cfg_qu_hr, NULL), 65032ed101aSLuca Coelho IWL_DEV_INFO(0x3DF0, 0x4070, iwl_ax201_cfg_qu_hr, NULL), 65132ed101aSLuca Coelho 6524ee27eddSLuca Coelho IWL_DEV_INFO(0x4DF0, 0x0070, iwl_ax201_cfg_qu_hr, NULL), 6534ee27eddSLuca Coelho IWL_DEV_INFO(0x4DF0, 0x0074, iwl_ax201_cfg_qu_hr, NULL), 6544ee27eddSLuca Coelho IWL_DEV_INFO(0x4DF0, 0x0078, iwl_ax201_cfg_qu_hr, NULL), 6554ee27eddSLuca Coelho IWL_DEV_INFO(0x4DF0, 0x007C, iwl_ax201_cfg_qu_hr, NULL), 6564ee27eddSLuca Coelho IWL_DEV_INFO(0x4DF0, 0x0310, iwl_ax201_cfg_qu_hr, NULL), 6574ee27eddSLuca Coelho IWL_DEV_INFO(0x4DF0, 0x1651, killer1650s_2ax_cfg_qu_b0_hr_b0, NULL), 6584ee27eddSLuca Coelho IWL_DEV_INFO(0x4DF0, 0x1652, killer1650i_2ax_cfg_qu_b0_hr_b0, NULL), 6594ee27eddSLuca Coelho IWL_DEV_INFO(0x4DF0, 0x2074, iwl_ax201_cfg_qu_hr, NULL), 6604ee27eddSLuca Coelho IWL_DEV_INFO(0x4DF0, 0x4070, iwl_ax201_cfg_qu_hr, NULL), 661612509d6SLuca Coelho 662c8685937SLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 663be2f6886SLuca Coelho IWL_CFG_MAC_TYPE_PU, IWL_CFG_ANY, 664be2f6886SLuca Coelho IWL_CFG_RF_TYPE_JF1, IWL_CFG_RF_ID_JF1, 665c8685937SLuca Coelho IWL_CFG_160, IWL_CFG_CORES_BT, 666c8685937SLuca Coelho iwl9560_2ac_cfg_soc, iwl9461_160_name), 667c8685937SLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 668be2f6886SLuca Coelho IWL_CFG_MAC_TYPE_PU, IWL_CFG_ANY, 669be2f6886SLuca Coelho IWL_CFG_RF_TYPE_JF1, IWL_CFG_RF_ID_JF1, 670c8685937SLuca Coelho IWL_CFG_NO_160, IWL_CFG_CORES_BT, 671c8685937SLuca Coelho iwl9560_2ac_cfg_soc, iwl9461_name), 672c8685937SLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 673be2f6886SLuca Coelho IWL_CFG_MAC_TYPE_PU, IWL_CFG_ANY, 674be2f6886SLuca Coelho IWL_CFG_RF_TYPE_JF1, IWL_CFG_RF_ID_JF1_DIV, 675c8685937SLuca Coelho IWL_CFG_160, IWL_CFG_CORES_BT, 676c8685937SLuca Coelho iwl9560_2ac_cfg_soc, iwl9462_160_name), 677c8685937SLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 678be2f6886SLuca Coelho IWL_CFG_MAC_TYPE_PU, IWL_CFG_ANY, 679be2f6886SLuca Coelho IWL_CFG_RF_TYPE_JF1, IWL_CFG_RF_ID_JF1_DIV, 680c8685937SLuca Coelho IWL_CFG_NO_160, IWL_CFG_CORES_BT, 681c8685937SLuca Coelho iwl9560_2ac_cfg_soc, iwl9462_name), 682c8685937SLuca Coelho 683c8685937SLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 684be2f6886SLuca Coelho IWL_CFG_MAC_TYPE_PU, IWL_CFG_ANY, 685be2f6886SLuca Coelho IWL_CFG_RF_TYPE_JF2, IWL_CFG_RF_ID_JF, 686c8685937SLuca Coelho IWL_CFG_160, IWL_CFG_CORES_BT, 687c8685937SLuca Coelho iwl9560_2ac_cfg_soc, iwl9560_160_name), 688c8685937SLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 689be2f6886SLuca Coelho IWL_CFG_MAC_TYPE_PU, IWL_CFG_ANY, 690be2f6886SLuca Coelho IWL_CFG_RF_TYPE_JF2, IWL_CFG_RF_ID_JF, 691c8685937SLuca Coelho IWL_CFG_NO_160, IWL_CFG_CORES_BT, 692c8685937SLuca Coelho iwl9560_2ac_cfg_soc, iwl9560_name), 693c8685937SLuca Coelho 694d6f2134aSLuca Coelho _IWL_DEV_INFO(0x2526, IWL_CFG_ANY, 695be2f6886SLuca Coelho IWL_CFG_MAC_TYPE_PNJ, IWL_CFG_ANY, 696be2f6886SLuca Coelho IWL_CFG_RF_TYPE_JF1, IWL_CFG_RF_ID_JF1, 697b200dba7SLuca Coelho IWL_CFG_160, IWL_CFG_CORES_BT, 6981454edcaSLuca Coelho iwl9260_2ac_cfg, iwl9461_160_name), 699b200dba7SLuca Coelho _IWL_DEV_INFO(0x2526, IWL_CFG_ANY, 700be2f6886SLuca Coelho IWL_CFG_MAC_TYPE_PNJ, IWL_CFG_ANY, 701be2f6886SLuca Coelho IWL_CFG_RF_TYPE_JF1, IWL_CFG_RF_ID_JF1, 702b200dba7SLuca Coelho IWL_CFG_NO_160, IWL_CFG_CORES_BT, 7031454edcaSLuca Coelho iwl9260_2ac_cfg, iwl9461_name), 704b200dba7SLuca Coelho _IWL_DEV_INFO(0x2526, IWL_CFG_ANY, 705be2f6886SLuca Coelho IWL_CFG_MAC_TYPE_PNJ, IWL_CFG_ANY, 706be2f6886SLuca Coelho IWL_CFG_RF_TYPE_JF1, IWL_CFG_RF_ID_JF1_DIV, 707b200dba7SLuca Coelho IWL_CFG_160, IWL_CFG_CORES_BT, 7081454edcaSLuca Coelho iwl9260_2ac_cfg, iwl9462_160_name), 709b200dba7SLuca Coelho _IWL_DEV_INFO(0x2526, IWL_CFG_ANY, 710be2f6886SLuca Coelho IWL_CFG_MAC_TYPE_PNJ, IWL_CFG_ANY, 711be2f6886SLuca Coelho IWL_CFG_RF_TYPE_JF1, IWL_CFG_RF_ID_JF1_DIV, 712b200dba7SLuca Coelho IWL_CFG_NO_160, IWL_CFG_CORES_BT, 7131454edcaSLuca Coelho iwl9260_2ac_cfg, iwl9462_name), 714b200dba7SLuca Coelho 715b200dba7SLuca Coelho _IWL_DEV_INFO(0x2526, IWL_CFG_ANY, 716be2f6886SLuca Coelho IWL_CFG_MAC_TYPE_PNJ, IWL_CFG_ANY, 717be2f6886SLuca Coelho IWL_CFG_RF_TYPE_JF2, IWL_CFG_RF_ID_JF, 718f673a193SLuca Coelho IWL_CFG_160, IWL_CFG_CORES_BT, 7191454edcaSLuca Coelho iwl9260_2ac_cfg, iwl9560_160_name), 720f673a193SLuca Coelho _IWL_DEV_INFO(0x2526, IWL_CFG_ANY, 721be2f6886SLuca Coelho IWL_CFG_MAC_TYPE_PNJ, IWL_CFG_ANY, 722be2f6886SLuca Coelho IWL_CFG_RF_TYPE_JF2, IWL_CFG_RF_ID_JF, 723f673a193SLuca Coelho IWL_CFG_NO_160, IWL_CFG_CORES_BT, 7241454edcaSLuca Coelho iwl9260_2ac_cfg, iwl9560_name), 725f673a193SLuca Coelho 726f673a193SLuca Coelho _IWL_DEV_INFO(0x2526, IWL_CFG_ANY, 727be2f6886SLuca Coelho IWL_CFG_MAC_TYPE_TH, IWL_CFG_ANY, 728be2f6886SLuca Coelho IWL_CFG_RF_TYPE_TH, IWL_CFG_ANY, 729f673a193SLuca Coelho IWL_CFG_160, IWL_CFG_CORES_BT_GNSS, 73095939551SLuca Coelho iwl9260_2ac_cfg, iwl9270_160_name), 73195939551SLuca Coelho _IWL_DEV_INFO(0x2526, IWL_CFG_ANY, 732be2f6886SLuca Coelho IWL_CFG_MAC_TYPE_TH, IWL_CFG_ANY, 733be2f6886SLuca Coelho IWL_CFG_RF_TYPE_TH, IWL_CFG_ANY, 734f673a193SLuca Coelho IWL_CFG_NO_160, IWL_CFG_CORES_BT_GNSS, 73595939551SLuca Coelho iwl9260_2ac_cfg, iwl9270_name), 73695939551SLuca Coelho 737fe25b151SLuca Coelho _IWL_DEV_INFO(0x271B, IWL_CFG_ANY, 738be2f6886SLuca Coelho IWL_CFG_MAC_TYPE_TH, IWL_CFG_ANY, 739be2f6886SLuca Coelho IWL_CFG_RF_TYPE_TH1, IWL_CFG_ANY, 740fe25b151SLuca Coelho IWL_CFG_160, IWL_CFG_CORES_BT, 741fe25b151SLuca Coelho iwl9260_2ac_cfg, iwl9162_160_name), 742fe25b151SLuca Coelho _IWL_DEV_INFO(0x271B, IWL_CFG_ANY, 743be2f6886SLuca Coelho IWL_CFG_MAC_TYPE_TH, IWL_CFG_ANY, 744be2f6886SLuca Coelho IWL_CFG_RF_TYPE_TH1, IWL_CFG_ANY, 745fe25b151SLuca Coelho IWL_CFG_NO_160, IWL_CFG_CORES_BT, 746fe25b151SLuca Coelho iwl9260_2ac_cfg, iwl9162_name), 747fe25b151SLuca Coelho 74895939551SLuca Coelho _IWL_DEV_INFO(0x2526, IWL_CFG_ANY, 749be2f6886SLuca Coelho IWL_CFG_MAC_TYPE_TH, IWL_CFG_ANY, 750be2f6886SLuca Coelho IWL_CFG_RF_TYPE_TH, IWL_CFG_ANY, 751f673a193SLuca Coelho IWL_CFG_160, IWL_CFG_CORES_BT, 752d6f2134aSLuca Coelho iwl9260_2ac_cfg, iwl9260_160_name), 753d6f2134aSLuca Coelho _IWL_DEV_INFO(0x2526, IWL_CFG_ANY, 754be2f6886SLuca Coelho IWL_CFG_MAC_TYPE_TH, IWL_CFG_ANY, 755be2f6886SLuca Coelho IWL_CFG_RF_TYPE_TH, IWL_CFG_ANY, 756f673a193SLuca Coelho IWL_CFG_NO_160, IWL_CFG_CORES_BT, 757d6f2134aSLuca Coelho iwl9260_2ac_cfg, iwl9260_name), 7585e003982SLuca Coelho 75932ed101aSLuca Coelho /* Qu with Jf */ 76032ed101aSLuca Coelho /* Qu B step */ 76132ed101aSLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 76232ed101aSLuca Coelho IWL_CFG_MAC_TYPE_QU, SILICON_B_STEP, 76332ed101aSLuca Coelho IWL_CFG_RF_TYPE_JF1, IWL_CFG_RF_ID_JF1, 76432ed101aSLuca Coelho IWL_CFG_160, IWL_CFG_CORES_BT, 76532ed101aSLuca Coelho iwl9560_qu_b0_jf_b0_cfg, iwl9461_160_name), 76632ed101aSLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 76732ed101aSLuca Coelho IWL_CFG_MAC_TYPE_QU, SILICON_B_STEP, 76832ed101aSLuca Coelho IWL_CFG_RF_TYPE_JF1, IWL_CFG_RF_ID_JF1, 76932ed101aSLuca Coelho IWL_CFG_NO_160, IWL_CFG_CORES_BT, 77032ed101aSLuca Coelho iwl9560_qu_b0_jf_b0_cfg, iwl9461_name), 77132ed101aSLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 77232ed101aSLuca Coelho IWL_CFG_MAC_TYPE_QU, SILICON_B_STEP, 77332ed101aSLuca Coelho IWL_CFG_RF_TYPE_JF1, IWL_CFG_RF_ID_JF1_DIV, 77432ed101aSLuca Coelho IWL_CFG_160, IWL_CFG_CORES_BT, 77532ed101aSLuca Coelho iwl9560_qu_b0_jf_b0_cfg, iwl9462_160_name), 77632ed101aSLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 77732ed101aSLuca Coelho IWL_CFG_MAC_TYPE_QU, SILICON_B_STEP, 77832ed101aSLuca Coelho IWL_CFG_RF_TYPE_JF1, IWL_CFG_RF_ID_JF1_DIV, 77932ed101aSLuca Coelho IWL_CFG_NO_160, IWL_CFG_CORES_BT, 78032ed101aSLuca Coelho iwl9560_qu_b0_jf_b0_cfg, iwl9462_name), 7815e003982SLuca Coelho 78232ed101aSLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 78332ed101aSLuca Coelho IWL_CFG_MAC_TYPE_QU, SILICON_B_STEP, 78432ed101aSLuca Coelho IWL_CFG_RF_TYPE_JF2, IWL_CFG_RF_ID_JF, 78532ed101aSLuca Coelho IWL_CFG_160, IWL_CFG_CORES_BT, 78632ed101aSLuca Coelho iwl9560_qu_b0_jf_b0_cfg, iwl9560_160_name), 78732ed101aSLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 78832ed101aSLuca Coelho IWL_CFG_MAC_TYPE_QU, SILICON_B_STEP, 78932ed101aSLuca Coelho IWL_CFG_RF_TYPE_JF2, IWL_CFG_RF_ID_JF, 79032ed101aSLuca Coelho IWL_CFG_NO_160, IWL_CFG_CORES_BT, 79132ed101aSLuca Coelho iwl9560_qu_b0_jf_b0_cfg, iwl9560_name), 79232ed101aSLuca Coelho 79332ed101aSLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, 0x1551, 79432ed101aSLuca Coelho IWL_CFG_MAC_TYPE_QU, SILICON_B_STEP, 79532ed101aSLuca Coelho IWL_CFG_RF_TYPE_JF2, IWL_CFG_RF_ID_JF, 79632ed101aSLuca Coelho IWL_CFG_NO_160, IWL_CFG_CORES_BT, 79732ed101aSLuca Coelho iwl9560_qu_b0_jf_b0_cfg, iwl9560_killer_1550s_name), 79832ed101aSLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, 0x1552, 79932ed101aSLuca Coelho IWL_CFG_MAC_TYPE_QU, SILICON_B_STEP, 80032ed101aSLuca Coelho IWL_CFG_RF_TYPE_JF2, IWL_CFG_RF_ID_JF, 80132ed101aSLuca Coelho IWL_CFG_NO_160, IWL_CFG_CORES_BT, 80232ed101aSLuca Coelho iwl9560_qu_b0_jf_b0_cfg, iwl9560_killer_1550i_name), 80332ed101aSLuca Coelho 80432ed101aSLuca Coelho /* Qu C step */ 80532ed101aSLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 80632ed101aSLuca Coelho IWL_CFG_MAC_TYPE_QU, SILICON_C_STEP, 80732ed101aSLuca Coelho IWL_CFG_RF_TYPE_JF1, IWL_CFG_RF_ID_JF1, 80832ed101aSLuca Coelho IWL_CFG_160, IWL_CFG_CORES_BT, 80932ed101aSLuca Coelho iwl9560_qu_c0_jf_b0_cfg, iwl9461_160_name), 81032ed101aSLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 81132ed101aSLuca Coelho IWL_CFG_MAC_TYPE_QU, SILICON_C_STEP, 81232ed101aSLuca Coelho IWL_CFG_RF_TYPE_JF1, IWL_CFG_RF_ID_JF1, 81332ed101aSLuca Coelho IWL_CFG_NO_160, IWL_CFG_CORES_BT, 81432ed101aSLuca Coelho iwl9560_qu_c0_jf_b0_cfg, iwl9461_name), 81532ed101aSLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 81632ed101aSLuca Coelho IWL_CFG_MAC_TYPE_QU, SILICON_C_STEP, 81732ed101aSLuca Coelho IWL_CFG_RF_TYPE_JF1, IWL_CFG_RF_ID_JF1_DIV, 81832ed101aSLuca Coelho IWL_CFG_160, IWL_CFG_CORES_BT, 81932ed101aSLuca Coelho iwl9560_qu_c0_jf_b0_cfg, iwl9462_160_name), 82032ed101aSLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 82132ed101aSLuca Coelho IWL_CFG_MAC_TYPE_QU, SILICON_C_STEP, 82232ed101aSLuca Coelho IWL_CFG_RF_TYPE_JF1, IWL_CFG_RF_ID_JF1_DIV, 82332ed101aSLuca Coelho IWL_CFG_NO_160, IWL_CFG_CORES_BT, 82432ed101aSLuca Coelho iwl9560_qu_c0_jf_b0_cfg, iwl9462_name), 82532ed101aSLuca Coelho 82632ed101aSLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 82732ed101aSLuca Coelho IWL_CFG_MAC_TYPE_QU, SILICON_C_STEP, 82832ed101aSLuca Coelho IWL_CFG_RF_TYPE_JF2, IWL_CFG_RF_ID_JF, 82932ed101aSLuca Coelho IWL_CFG_160, IWL_CFG_CORES_BT, 83032ed101aSLuca Coelho iwl9560_qu_c0_jf_b0_cfg, iwl9560_160_name), 83132ed101aSLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 83232ed101aSLuca Coelho IWL_CFG_MAC_TYPE_QU, SILICON_C_STEP, 83332ed101aSLuca Coelho IWL_CFG_RF_TYPE_JF2, IWL_CFG_RF_ID_JF, 83432ed101aSLuca Coelho IWL_CFG_NO_160, IWL_CFG_CORES_BT, 83532ed101aSLuca Coelho iwl9560_qu_c0_jf_b0_cfg, iwl9560_name), 83632ed101aSLuca Coelho 83732ed101aSLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, 0x1551, 83832ed101aSLuca Coelho IWL_CFG_MAC_TYPE_QU, SILICON_C_STEP, 83932ed101aSLuca Coelho IWL_CFG_RF_TYPE_JF2, IWL_CFG_RF_ID_JF, 84032ed101aSLuca Coelho IWL_CFG_160, IWL_CFG_CORES_BT, 84132ed101aSLuca Coelho iwl9560_qu_c0_jf_b0_cfg, iwl9560_killer_1550s_name), 84232ed101aSLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, 0x1552, 84332ed101aSLuca Coelho IWL_CFG_MAC_TYPE_QU, SILICON_C_STEP, 84432ed101aSLuca Coelho IWL_CFG_RF_TYPE_JF2, IWL_CFG_RF_ID_JF, 84532ed101aSLuca Coelho IWL_CFG_NO_160, IWL_CFG_CORES_BT, 84632ed101aSLuca Coelho iwl9560_qu_c0_jf_b0_cfg, iwl9560_killer_1550i_name), 84732ed101aSLuca Coelho 84832ed101aSLuca Coelho /* QuZ */ 84932ed101aSLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 85032ed101aSLuca Coelho IWL_CFG_MAC_TYPE_QUZ, IWL_CFG_ANY, 85132ed101aSLuca Coelho IWL_CFG_RF_TYPE_JF1, IWL_CFG_RF_ID_JF1, 85232ed101aSLuca Coelho IWL_CFG_160, IWL_CFG_CORES_BT, 85332ed101aSLuca Coelho iwl9560_quz_a0_jf_b0_cfg, iwl9461_160_name), 85432ed101aSLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 85532ed101aSLuca Coelho IWL_CFG_MAC_TYPE_QUZ, IWL_CFG_ANY, 85632ed101aSLuca Coelho IWL_CFG_RF_TYPE_JF1, IWL_CFG_RF_ID_JF1, 85732ed101aSLuca Coelho IWL_CFG_NO_160, IWL_CFG_CORES_BT, 85832ed101aSLuca Coelho iwl9560_quz_a0_jf_b0_cfg, iwl9461_name), 85932ed101aSLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 86032ed101aSLuca Coelho IWL_CFG_MAC_TYPE_QUZ, IWL_CFG_ANY, 86132ed101aSLuca Coelho IWL_CFG_RF_TYPE_JF1, IWL_CFG_RF_ID_JF1_DIV, 86232ed101aSLuca Coelho IWL_CFG_160, IWL_CFG_CORES_BT, 86332ed101aSLuca Coelho iwl9560_quz_a0_jf_b0_cfg, iwl9462_160_name), 86432ed101aSLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 86532ed101aSLuca Coelho IWL_CFG_MAC_TYPE_QUZ, IWL_CFG_ANY, 86632ed101aSLuca Coelho IWL_CFG_RF_TYPE_JF1, IWL_CFG_RF_ID_JF1_DIV, 86732ed101aSLuca Coelho IWL_CFG_NO_160, IWL_CFG_CORES_BT, 86832ed101aSLuca Coelho iwl9560_quz_a0_jf_b0_cfg, iwl9462_name), 86932ed101aSLuca Coelho 87032ed101aSLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 87132ed101aSLuca Coelho IWL_CFG_MAC_TYPE_QUZ, IWL_CFG_ANY, 87232ed101aSLuca Coelho IWL_CFG_RF_TYPE_JF2, IWL_CFG_RF_ID_JF, 87332ed101aSLuca Coelho IWL_CFG_160, IWL_CFG_CORES_BT, 87432ed101aSLuca Coelho iwl9560_quz_a0_jf_b0_cfg, iwl9560_160_name), 87532ed101aSLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 87632ed101aSLuca Coelho IWL_CFG_MAC_TYPE_QUZ, IWL_CFG_ANY, 87732ed101aSLuca Coelho IWL_CFG_RF_TYPE_JF2, IWL_CFG_RF_ID_JF, 87832ed101aSLuca Coelho IWL_CFG_NO_160, IWL_CFG_CORES_BT, 87932ed101aSLuca Coelho iwl9560_quz_a0_jf_b0_cfg, iwl9560_name), 88032ed101aSLuca Coelho 88132ed101aSLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, 0x1551, 88232ed101aSLuca Coelho IWL_CFG_MAC_TYPE_QUZ, IWL_CFG_ANY, 88332ed101aSLuca Coelho IWL_CFG_RF_TYPE_JF2, IWL_CFG_RF_ID_JF, 88432ed101aSLuca Coelho IWL_CFG_160, IWL_CFG_CORES_BT, 88532ed101aSLuca Coelho iwl9560_quz_a0_jf_b0_cfg, iwl9560_killer_1550s_name), 88632ed101aSLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, 0x1552, 88732ed101aSLuca Coelho IWL_CFG_MAC_TYPE_QUZ, IWL_CFG_ANY, 88832ed101aSLuca Coelho IWL_CFG_RF_TYPE_JF2, IWL_CFG_RF_ID_JF, 88932ed101aSLuca Coelho IWL_CFG_NO_160, IWL_CFG_CORES_BT, 89032ed101aSLuca Coelho iwl9560_quz_a0_jf_b0_cfg, iwl9560_killer_1550i_name), 891612509d6SLuca Coelho 892612509d6SLuca Coelho /* QnJ */ 893612509d6SLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 894612509d6SLuca Coelho IWL_CFG_MAC_TYPE_QNJ, IWL_CFG_ANY, 895612509d6SLuca Coelho IWL_CFG_RF_TYPE_JF1, IWL_CFG_RF_ID_JF1, 896612509d6SLuca Coelho IWL_CFG_160, IWL_CFG_CORES_BT, 897612509d6SLuca Coelho iwl9560_qnj_b0_jf_b0_cfg, iwl9461_160_name), 898612509d6SLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 899612509d6SLuca Coelho IWL_CFG_MAC_TYPE_QNJ, IWL_CFG_ANY, 900612509d6SLuca Coelho IWL_CFG_RF_TYPE_JF1, IWL_CFG_RF_ID_JF1, 901612509d6SLuca Coelho IWL_CFG_NO_160, IWL_CFG_CORES_BT, 902612509d6SLuca Coelho iwl9560_qnj_b0_jf_b0_cfg, iwl9461_name), 903612509d6SLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 904612509d6SLuca Coelho IWL_CFG_MAC_TYPE_QNJ, IWL_CFG_ANY, 905612509d6SLuca Coelho IWL_CFG_RF_TYPE_JF1, IWL_CFG_RF_ID_JF1_DIV, 906612509d6SLuca Coelho IWL_CFG_160, IWL_CFG_CORES_BT, 907612509d6SLuca Coelho iwl9560_qnj_b0_jf_b0_cfg, iwl9462_160_name), 908612509d6SLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 909612509d6SLuca Coelho IWL_CFG_MAC_TYPE_QNJ, IWL_CFG_ANY, 910612509d6SLuca Coelho IWL_CFG_RF_TYPE_JF1, IWL_CFG_RF_ID_JF1_DIV, 911612509d6SLuca Coelho IWL_CFG_NO_160, IWL_CFG_CORES_BT, 912612509d6SLuca Coelho iwl9560_qnj_b0_jf_b0_cfg, iwl9462_name), 913612509d6SLuca Coelho 914612509d6SLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 915612509d6SLuca Coelho IWL_CFG_MAC_TYPE_QNJ, IWL_CFG_ANY, 916612509d6SLuca Coelho IWL_CFG_RF_TYPE_JF2, IWL_CFG_RF_ID_JF, 917612509d6SLuca Coelho IWL_CFG_160, IWL_CFG_CORES_BT, 918612509d6SLuca Coelho iwl9560_qnj_b0_jf_b0_cfg, iwl9560_160_name), 919612509d6SLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 920612509d6SLuca Coelho IWL_CFG_MAC_TYPE_QNJ, IWL_CFG_ANY, 921612509d6SLuca Coelho IWL_CFG_RF_TYPE_JF2, IWL_CFG_RF_ID_JF, 922612509d6SLuca Coelho IWL_CFG_NO_160, IWL_CFG_CORES_BT, 923612509d6SLuca Coelho iwl9560_qnj_b0_jf_b0_cfg, iwl9560_name), 924612509d6SLuca Coelho 925612509d6SLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, 0x1551, 926612509d6SLuca Coelho IWL_CFG_MAC_TYPE_QNJ, IWL_CFG_ANY, 927612509d6SLuca Coelho IWL_CFG_RF_TYPE_JF2, IWL_CFG_RF_ID_JF, 928612509d6SLuca Coelho IWL_CFG_160, IWL_CFG_CORES_BT, 929612509d6SLuca Coelho iwl9560_qnj_b0_jf_b0_cfg, iwl9560_killer_1550s_name), 930612509d6SLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, 0x1552, 931612509d6SLuca Coelho IWL_CFG_MAC_TYPE_QNJ, IWL_CFG_ANY, 932612509d6SLuca Coelho IWL_CFG_RF_TYPE_JF2, IWL_CFG_RF_ID_JF, 933612509d6SLuca Coelho IWL_CFG_NO_160, IWL_CFG_CORES_BT, 934612509d6SLuca Coelho iwl9560_qnj_b0_jf_b0_cfg, iwl9560_killer_1550i_name), 9353f910a25SLuca Coelho 9363f910a25SLuca Coelho /* Qu with Hr */ 9373f910a25SLuca Coelho /* Qu B step */ 9383f910a25SLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 9393f910a25SLuca Coelho IWL_CFG_MAC_TYPE_QU, SILICON_B_STEP, 9403f910a25SLuca Coelho IWL_CFG_RF_TYPE_HR1, IWL_CFG_ANY, 9413f910a25SLuca Coelho IWL_CFG_ANY, IWL_CFG_ANY, 9423f910a25SLuca Coelho iwl_qu_b0_hr1_b0, iwl_ax101_name), 9433f910a25SLuca Coelho 9443f910a25SLuca Coelho /* Qu C step */ 9453f910a25SLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 9463f910a25SLuca Coelho IWL_CFG_MAC_TYPE_QU, SILICON_C_STEP, 9473f910a25SLuca Coelho IWL_CFG_RF_TYPE_HR1, IWL_CFG_ANY, 9483f910a25SLuca Coelho IWL_CFG_ANY, IWL_CFG_ANY, 9493f910a25SLuca Coelho iwl_qu_c0_hr1_b0, iwl_ax101_name), 9503f910a25SLuca Coelho 9513f910a25SLuca Coelho /* QuZ */ 9523f910a25SLuca Coelho _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, 9533f910a25SLuca Coelho IWL_CFG_MAC_TYPE_QUZ, IWL_CFG_ANY, 9543f910a25SLuca Coelho IWL_CFG_RF_TYPE_HR1, IWL_CFG_ANY, 9553f910a25SLuca Coelho IWL_CFG_ANY, IWL_CFG_ANY, 9563f910a25SLuca Coelho iwl_quz_a0_hr1_b0, iwl_ax101_name), 9573f910a25SLuca Coelho 9582a612a60SLuca Coelho #endif /* CONFIG_IWLMVM */ 9592a612a60SLuca Coelho }; 9602a612a60SLuca Coelho 961e705c121SKalle Valo /* PCI registers */ 962e705c121SKalle Valo #define PCI_CFG_RETRY_TIMEOUT 0x041 963e705c121SKalle Valo 964e705c121SKalle Valo static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 965e705c121SKalle Valo { 966b3bd6416SLuca Coelho const struct iwl_cfg_trans_params *trans = 967b3bd6416SLuca Coelho (struct iwl_cfg_trans_params *)(ent->driver_data); 968e705c121SKalle Valo const struct iwl_cfg *cfg_7265d __maybe_unused = NULL; 969e705c121SKalle Valo struct iwl_trans *iwl_trans; 970c042f0c7SJohannes Berg struct iwl_trans_pcie *trans_pcie; 9710c18714aSLuca Coelho unsigned long flags; 9722a612a60SLuca Coelho int i, ret; 973b3bd6416SLuca Coelho /* 974b3bd6416SLuca Coelho * This is needed for backwards compatibility with the old 975b3bd6416SLuca Coelho * tables, so we don't need to change all the config structs 976b3bd6416SLuca Coelho * at the same time. The cfg is used to compare with the old 977b3bd6416SLuca Coelho * full cfg structs. 978b3bd6416SLuca Coelho */ 979b3bd6416SLuca Coelho const struct iwl_cfg *cfg = (struct iwl_cfg *)(ent->driver_data); 980e705c121SKalle Valo 981b3bd6416SLuca Coelho /* make sure trans is the first element in iwl_cfg */ 982b3bd6416SLuca Coelho BUILD_BUG_ON(offsetof(struct iwl_cfg, trans)); 983b3bd6416SLuca Coelho 984b3bd6416SLuca Coelho iwl_trans = iwl_trans_pcie_alloc(pdev, ent, trans); 985e705c121SKalle Valo if (IS_ERR(iwl_trans)) 986e705c121SKalle Valo return PTR_ERR(iwl_trans); 987e705c121SKalle Valo 988c042f0c7SJohannes Berg trans_pcie = IWL_TRANS_GET_PCIE_TRANS(iwl_trans); 989286ca8ebSLuca Coelho 990e705c121SKalle Valo /* the trans_cfg should never change, so set it now */ 991b3bd6416SLuca Coelho iwl_trans->trans_cfg = trans; 992e705c121SKalle Valo 993d6f2134aSLuca Coelho iwl_trans->hw_rf_id = iwl_read32(iwl_trans, CSR_HW_RF_ID); 994d6f2134aSLuca Coelho 9952a612a60SLuca Coelho for (i = 0; i < ARRAY_SIZE(iwl_dev_info_table); i++) { 9962a612a60SLuca Coelho const struct iwl_dev_info *dev_info = &iwl_dev_info_table[i]; 997d6f2134aSLuca Coelho if ((dev_info->device == (u16)IWL_CFG_ANY || 9982a612a60SLuca Coelho dev_info->device == pdev->device) && 999d6f2134aSLuca Coelho (dev_info->subdevice == (u16)IWL_CFG_ANY || 1000d6f2134aSLuca Coelho dev_info->subdevice == pdev->subsystem_device) && 1001d6f2134aSLuca Coelho (dev_info->mac_type == (u16)IWL_CFG_ANY || 1002d6f2134aSLuca Coelho dev_info->mac_type == 1003d6f2134aSLuca Coelho CSR_HW_REV_TYPE(iwl_trans->hw_rev)) && 1004be2f6886SLuca Coelho (dev_info->mac_step == (u8)IWL_CFG_ANY || 1005be2f6886SLuca Coelho dev_info->mac_step == 1006be2f6886SLuca Coelho CSR_HW_REV_STEP(iwl_trans->hw_rev)) && 1007d6f2134aSLuca Coelho (dev_info->rf_type == (u16)IWL_CFG_ANY || 1008d6f2134aSLuca Coelho dev_info->rf_type == 1009d6f2134aSLuca Coelho CSR_HW_RFID_TYPE(iwl_trans->hw_rf_id)) && 1010f673a193SLuca Coelho (dev_info->rf_id == (u8)IWL_CFG_ANY || 1011f673a193SLuca Coelho dev_info->rf_id == 1012f673a193SLuca Coelho IWL_SUBDEVICE_RF_ID(pdev->subsystem_device)) && 1013d6f2134aSLuca Coelho (dev_info->no_160 == (u8)IWL_CFG_ANY || 1014d6f2134aSLuca Coelho dev_info->no_160 == 101595939551SLuca Coelho IWL_SUBDEVICE_NO_160(pdev->subsystem_device)) && 101695939551SLuca Coelho (dev_info->cores == (u8)IWL_CFG_ANY || 101795939551SLuca Coelho dev_info->cores == 101895939551SLuca Coelho IWL_SUBDEVICE_CORES(pdev->subsystem_device))) { 10192a612a60SLuca Coelho iwl_trans->cfg = dev_info->cfg; 10200b295a1eSLuca Coelho iwl_trans->name = dev_info->name; 10212a612a60SLuca Coelho } 10227d34a7d7SLuca Coelho } 10237d34a7d7SLuca Coelho 1024e705c121SKalle Valo #if IS_ENABLED(CONFIG_IWLMVM) 1025e705c121SKalle Valo /* 1026e705c121SKalle Valo * special-case 7265D, it has the same PCI IDs. 1027e705c121SKalle Valo * 1028e705c121SKalle Valo * Note that because we already pass the cfg to the transport above, 1029e705c121SKalle Valo * all the parameters that the transport uses must, until that is 1030e705c121SKalle Valo * changed, be identical to the ones in the 7265D configuration. 1031e705c121SKalle Valo */ 1032e705c121SKalle Valo if (cfg == &iwl7265_2ac_cfg) 1033e705c121SKalle Valo cfg_7265d = &iwl7265d_2ac_cfg; 1034e705c121SKalle Valo else if (cfg == &iwl7265_2n_cfg) 1035e705c121SKalle Valo cfg_7265d = &iwl7265d_2n_cfg; 1036e705c121SKalle Valo else if (cfg == &iwl7265_n_cfg) 1037e705c121SKalle Valo cfg_7265d = &iwl7265d_n_cfg; 1038e705c121SKalle Valo if (cfg_7265d && 1039809805a8SLuca Coelho (iwl_trans->hw_rev & CSR_HW_REV_TYPE_MSK) == CSR_HW_REV_TYPE_7265D) 1040b3bd6416SLuca Coelho iwl_trans->cfg = cfg_7265d; 1041809805a8SLuca Coelho 1042809805a8SLuca Coelho if (cfg == &iwlax210_2ax_cfg_so_hr_a0) { 1043809805a8SLuca Coelho if (iwl_trans->hw_rev == CSR_HW_REV_TYPE_TY) { 1044b3bd6416SLuca Coelho iwl_trans->cfg = &iwlax210_2ax_cfg_ty_gf_a0; 1045809805a8SLuca Coelho } else if (CSR_HW_RF_ID_TYPE_CHIP_ID(iwl_trans->hw_rf_id) == 1046809805a8SLuca Coelho CSR_HW_RF_ID_TYPE_CHIP_ID(CSR_HW_RF_ID_TYPE_JF)) { 1047b3bd6416SLuca Coelho iwl_trans->cfg = &iwlax210_2ax_cfg_so_jf_a0; 1048809805a8SLuca Coelho } else if (CSR_HW_RF_ID_TYPE_CHIP_ID(iwl_trans->hw_rf_id) == 1049809805a8SLuca Coelho CSR_HW_RF_ID_TYPE_CHIP_ID(CSR_HW_RF_ID_TYPE_GF)) { 1050b3bd6416SLuca Coelho iwl_trans->cfg = &iwlax211_2ax_cfg_so_gf_a0; 1051809805a8SLuca Coelho } else if (CSR_HW_RF_ID_TYPE_CHIP_ID(iwl_trans->hw_rf_id) == 1052809805a8SLuca Coelho CSR_HW_RF_ID_TYPE_CHIP_ID(CSR_HW_RF_ID_TYPE_GF4)) { 1053b3bd6416SLuca Coelho iwl_trans->cfg = &iwlax411_2ax_cfg_so_gf4_a0; 1054e705c121SKalle Valo } 10555594d80eSSara Sharon } 1056a7d544d6SLuca Coelho 1057a7d544d6SLuca Coelho /* 1058a7d544d6SLuca Coelho * This is a hack to switch from Qu B0 to Qu C0. We need to 105968ceba3fSLuca Coelho * do this for all cfgs that use Qu B0, except for those using 106068ceba3fSLuca Coelho * Jf, which have already been moved to the new table. The 106168ceba3fSLuca Coelho * rest must be removed once we convert Qu with Hr as well. 1062a7d544d6SLuca Coelho */ 1063a7d544d6SLuca Coelho if (iwl_trans->hw_rev == CSR_HW_REV_TYPE_QU_C0) { 10643f910a25SLuca Coelho if (iwl_trans->cfg == &iwl_ax201_cfg_qu_hr) 1065b3bd6416SLuca Coelho iwl_trans->cfg = &iwl_ax201_cfg_qu_c0_hr_b0; 106632ed101aSLuca Coelho else if (iwl_trans->cfg == &killer1650s_2ax_cfg_qu_b0_hr_b0) 1067b3bd6416SLuca Coelho iwl_trans->cfg = &killer1650s_2ax_cfg_qu_c0_hr_b0; 106832ed101aSLuca Coelho else if (iwl_trans->cfg == &killer1650i_2ax_cfg_qu_b0_hr_b0) 1069b3bd6416SLuca Coelho iwl_trans->cfg = &killer1650i_2ax_cfg_qu_c0_hr_b0; 1070a7d544d6SLuca Coelho } 10715a8c31aaSLuca Coelho 10725a8c31aaSLuca Coelho /* same thing for QuZ... */ 10735a8c31aaSLuca Coelho if (iwl_trans->hw_rev == CSR_HW_REV_TYPE_QUZ) { 10743f910a25SLuca Coelho if (iwl_trans->cfg == &iwl_ax201_cfg_qu_hr) 107532ed101aSLuca Coelho iwl_trans->cfg = &iwl_ax201_cfg_quz_hr; 1076f92f26f2SLuca Coelho else if (iwl_trans->cfg == &killer1650s_2ax_cfg_qu_b0_hr_b0) 1077f92f26f2SLuca Coelho iwl_trans->cfg = &iwl_ax1650s_cfg_quz_hr; 1078f92f26f2SLuca Coelho else if (iwl_trans->cfg == &killer1650i_2ax_cfg_qu_b0_hr_b0) 1079f92f26f2SLuca Coelho iwl_trans->cfg = &iwl_ax1650i_cfg_quz_hr; 10805a8c31aaSLuca Coelho } 10815a8c31aaSLuca Coelho 1082e705c121SKalle Valo #endif 1083b3bd6416SLuca Coelho /* 1084b3bd6416SLuca Coelho * If we didn't set the cfg yet, assume the trans is actually 1085b3bd6416SLuca Coelho * a full cfg from the old tables. 1086b3bd6416SLuca Coelho */ 1087b3bd6416SLuca Coelho if (!iwl_trans->cfg) 1088809805a8SLuca Coelho iwl_trans->cfg = cfg; 1089e705c121SKalle Valo 10900b295a1eSLuca Coelho /* if we don't have a name yet, copy name from the old cfg */ 10910b295a1eSLuca Coelho if (!iwl_trans->name) 10920b295a1eSLuca Coelho iwl_trans->name = iwl_trans->cfg->name; 10930b295a1eSLuca Coelho 1094b3bd6416SLuca Coelho if (iwl_trans->trans_cfg->mq_rx_supported) { 1095b3bd6416SLuca Coelho if (WARN_ON(!iwl_trans->cfg->num_rbds)) { 1096c042f0c7SJohannes Berg ret = -EINVAL; 1097c042f0c7SJohannes Berg goto out_free_trans; 1098c042f0c7SJohannes Berg } 1099b3bd6416SLuca Coelho trans_pcie->num_rx_bufs = iwl_trans->cfg->num_rbds; 1100c042f0c7SJohannes Berg } else { 1101c042f0c7SJohannes Berg trans_pcie->num_rx_bufs = RX_QUEUE_SIZE; 1102c042f0c7SJohannes Berg } 1103c042f0c7SJohannes Berg 11047d34a7d7SLuca Coelho if (iwl_trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_8000 && 11050c18714aSLuca Coelho iwl_trans_grab_nic_access(iwl_trans, &flags)) { 11060c18714aSLuca Coelho u32 hw_step; 11070c18714aSLuca Coelho 11080c18714aSLuca Coelho hw_step = iwl_read_umac_prph_no_grab(iwl_trans, WFPM_CTRL_REG); 11090c18714aSLuca Coelho hw_step |= ENABLE_WFPM; 11100c18714aSLuca Coelho iwl_write_umac_prph_no_grab(iwl_trans, WFPM_CTRL_REG, hw_step); 11110c18714aSLuca Coelho hw_step = iwl_read_prph_no_grab(iwl_trans, CNVI_AUX_MISC_CHIP); 11120c18714aSLuca Coelho hw_step = (hw_step >> HW_STEP_LOCATION_BITS) & 0xF; 11130c18714aSLuca Coelho if (hw_step == 0x3) 11140c18714aSLuca Coelho iwl_trans->hw_rev = (iwl_trans->hw_rev & 0xFFFFFFF3) | 11150c18714aSLuca Coelho (SILICON_C_STEP << 2); 11160c18714aSLuca Coelho iwl_trans_release_nic_access(iwl_trans, &flags); 11170c18714aSLuca Coelho } 11180c18714aSLuca Coelho 1119e705c121SKalle Valo pci_set_drvdata(pdev, iwl_trans); 112049060383SLuca Coelho iwl_trans->drv = iwl_drv_start(iwl_trans); 1121e705c121SKalle Valo 11226f482e37SSara Sharon if (IS_ERR(iwl_trans->drv)) { 11236f482e37SSara Sharon ret = PTR_ERR(iwl_trans->drv); 1124e705c121SKalle Valo goto out_free_trans; 1125e705c121SKalle Valo } 1126e705c121SKalle Valo 1127e705c121SKalle Valo /* register transport layer debugfs here */ 1128cf5d5663SGreg Kroah-Hartman iwl_trans_pcie_dbgfs_register(iwl_trans); 1129e705c121SKalle Valo 1130e705c121SKalle Valo return 0; 1131e705c121SKalle Valo 1132e705c121SKalle Valo out_free_trans: 1133e705c121SKalle Valo iwl_trans_pcie_free(iwl_trans); 1134e705c121SKalle Valo return ret; 1135e705c121SKalle Valo } 1136e705c121SKalle Valo 1137e705c121SKalle Valo static void iwl_pci_remove(struct pci_dev *pdev) 1138e705c121SKalle Valo { 1139e705c121SKalle Valo struct iwl_trans *trans = pci_get_drvdata(pdev); 1140e705c121SKalle Valo 11416f482e37SSara Sharon iwl_drv_stop(trans->drv); 11424479a899SLuca Coelho 1143e705c121SKalle Valo iwl_trans_pcie_free(trans); 1144e705c121SKalle Valo } 1145e705c121SKalle Valo 1146e705c121SKalle Valo #ifdef CONFIG_PM_SLEEP 1147e705c121SKalle Valo 1148e705c121SKalle Valo static int iwl_pci_suspend(struct device *device) 1149e705c121SKalle Valo { 1150e705c121SKalle Valo /* Before you put code here, think about WoWLAN. You cannot check here 1151e705c121SKalle Valo * whether WoWLAN is enabled or not, and your code will run even if 1152e705c121SKalle Valo * WoWLAN is enabled - don't kill the NIC, someone may need it in Sx. 1153e705c121SKalle Valo */ 1154e705c121SKalle Valo 1155e705c121SKalle Valo return 0; 1156e705c121SKalle Valo } 1157e705c121SKalle Valo 1158e705c121SKalle Valo static int iwl_pci_resume(struct device *device) 1159e705c121SKalle Valo { 1160e705c121SKalle Valo struct pci_dev *pdev = to_pci_dev(device); 1161e705c121SKalle Valo struct iwl_trans *trans = pci_get_drvdata(pdev); 1162e705c121SKalle Valo struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); 1163e705c121SKalle Valo 1164e705c121SKalle Valo /* Before you put code here, think about WoWLAN. You cannot check here 1165e705c121SKalle Valo * whether WoWLAN is enabled or not, and your code will run even if 1166e705c121SKalle Valo * WoWLAN is enabled - the NIC may be alive. 1167e705c121SKalle Valo */ 1168e705c121SKalle Valo 1169e705c121SKalle Valo /* 1170e705c121SKalle Valo * We disable the RETRY_TIMEOUT register (0x41) to keep 1171e705c121SKalle Valo * PCI Tx retries from interfering with C3 CPU state. 1172e705c121SKalle Valo */ 1173e705c121SKalle Valo pci_write_config_byte(pdev, PCI_CFG_RETRY_TIMEOUT, 0x00); 1174e705c121SKalle Valo 1175e705c121SKalle Valo if (!trans->op_mode) 1176e705c121SKalle Valo return 0; 1177e705c121SKalle Valo 1178f98ad635SEmmanuel Grumbach /* In WOWLAN, let iwl_trans_pcie_d3_resume do the rest of the work */ 1179f98ad635SEmmanuel Grumbach if (test_bit(STATUS_DEVICE_ENABLED, &trans->status)) 1180f98ad635SEmmanuel Grumbach return 0; 1181f98ad635SEmmanuel Grumbach 118252848a79SJohannes Berg /* reconfigure the MSI-X mapping to get the correct IRQ for rfkill */ 118352848a79SJohannes Berg iwl_pcie_conf_msix_hw(trans_pcie); 118452848a79SJohannes Berg 1185e705c121SKalle Valo /* 1186326477e4SJohannes Berg * Enable rfkill interrupt (in order to keep track of the rfkill 1187326477e4SJohannes Berg * status). Must be locked to avoid processing a possible rfkill 11889ad8fd0bSJohannes Berg * interrupt while in iwl_pcie_check_hw_rf_kill(). 1189e705c121SKalle Valo */ 119023aeea94SJohannes Berg mutex_lock(&trans_pcie->mutex); 1191e705c121SKalle Valo iwl_enable_rfkill_int(trans); 11929ad8fd0bSJohannes Berg iwl_pcie_check_hw_rf_kill(trans); 1193e705c121SKalle Valo mutex_unlock(&trans_pcie->mutex); 1194e705c121SKalle Valo 1195e705c121SKalle Valo return 0; 1196e705c121SKalle Valo } 1197e705c121SKalle Valo 1198b3ff1270SLuca Coelho static const struct dev_pm_ops iwl_dev_pm_ops = { 1199b3ff1270SLuca Coelho SET_SYSTEM_SLEEP_PM_OPS(iwl_pci_suspend, 1200b3ff1270SLuca Coelho iwl_pci_resume) 1201b3ff1270SLuca Coelho }; 1202e705c121SKalle Valo 1203e705c121SKalle Valo #define IWL_PM_OPS (&iwl_dev_pm_ops) 1204e705c121SKalle Valo 1205b3ff1270SLuca Coelho #else /* CONFIG_PM_SLEEP */ 1206e705c121SKalle Valo 1207e705c121SKalle Valo #define IWL_PM_OPS NULL 1208e705c121SKalle Valo 1209b3ff1270SLuca Coelho #endif /* CONFIG_PM_SLEEP */ 1210e705c121SKalle Valo 1211e705c121SKalle Valo static struct pci_driver iwl_pci_driver = { 1212e705c121SKalle Valo .name = DRV_NAME, 1213e705c121SKalle Valo .id_table = iwl_hw_card_ids, 1214e705c121SKalle Valo .probe = iwl_pci_probe, 1215e705c121SKalle Valo .remove = iwl_pci_remove, 1216e705c121SKalle Valo .driver.pm = IWL_PM_OPS, 1217e705c121SKalle Valo }; 1218e705c121SKalle Valo 1219e705c121SKalle Valo int __must_check iwl_pci_register_driver(void) 1220e705c121SKalle Valo { 1221e705c121SKalle Valo int ret; 1222e705c121SKalle Valo ret = pci_register_driver(&iwl_pci_driver); 1223e705c121SKalle Valo if (ret) 1224e705c121SKalle Valo pr_err("Unable to initialize PCI module\n"); 1225e705c121SKalle Valo 1226e705c121SKalle Valo return ret; 1227e705c121SKalle Valo } 1228e705c121SKalle Valo 1229e705c121SKalle Valo void iwl_pci_unregister_driver(void) 1230e705c121SKalle Valo { 1231e705c121SKalle Valo pci_unregister_driver(&iwl_pci_driver); 1232e705c121SKalle Valo } 1233