Patrick Georgi | ac95903 | 2020-05-05 22:49:26 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Karthikeyan Ramasubramanian | fd5d788 | 2019-05-29 15:09:42 -0600 | [diff] [blame] | 2 | |
Furquan Shaikh | 76cedd2 | 2020-05-02 10:24:23 -0700 | [diff] [blame] | 3 | #include <acpi/acpi_device.h> |
| 4 | #include <acpi/acpigen.h> |
Karthikeyan Ramasubramanian | fd5d788 | 2019-05-29 15:09:42 -0600 | [diff] [blame] | 5 | #include <console/console.h> |
| 6 | #include <device/device.h> |
Furquan Shaikh | 7cb1034 | 2020-10-03 14:49:09 -0700 | [diff] [blame] | 7 | #include <device/pci.h> |
Karthikeyan Ramasubramanian | fd5d788 | 2019-05-29 15:09:42 -0600 | [diff] [blame] | 8 | #include <device/pci_def.h> |
Furquan Shaikh | a1ddd2a | 2020-10-04 12:42:09 -0700 | [diff] [blame] | 9 | #include <device/pci_ids.h> |
Furquan Shaikh | 54b2716 | 2020-10-03 16:33:07 -0700 | [diff] [blame] | 10 | #include <elog.h> |
Karthikeyan Ramasubramanian | fd5d788 | 2019-05-29 15:09:42 -0600 | [diff] [blame] | 11 | #include <sar.h> |
Furquan Shaikh | a1ddd2a | 2020-10-04 12:42:09 -0700 | [diff] [blame] | 12 | #include <smbios.h> |
Karthikeyan Ramasubramanian | fd5d788 | 2019-05-29 15:09:42 -0600 | [diff] [blame] | 13 | #include <string.h> |
| 14 | #include <wrdd.h> |
Karthikeyan Ramasubramanian | afeb7b3 | 2020-07-23 00:25:25 -0600 | [diff] [blame] | 15 | #include "chip.h" |
Karthikeyan Ramasubramanian | fd5d788 | 2019-05-29 15:09:42 -0600 | [diff] [blame] | 16 | |
| 17 | /* WRDS Spec Revision */ |
| 18 | #define WRDS_REVISION 0x0 |
| 19 | |
| 20 | /* EWRD Spec Revision */ |
| 21 | #define EWRD_REVISION 0x0 |
| 22 | |
| 23 | /* WRDS Domain type */ |
| 24 | #define WRDS_DOMAIN_TYPE_WIFI 0x7 |
| 25 | |
| 26 | /* EWRD Domain type */ |
| 27 | #define EWRD_DOMAIN_TYPE_WIFI 0x7 |
| 28 | |
| 29 | /* WGDS Domain type */ |
| 30 | #define WGDS_DOMAIN_TYPE_WIFI 0x7 |
| 31 | |
| 32 | /* |
| 33 | * WIFI ACPI NAME = "WF" + hex value of last 8 bits of dev_path_encode + '\0' |
| 34 | * The above representation returns unique and consistent name every time |
| 35 | * generate_wifi_acpi_name is invoked. The last 8 bits of dev_path_encode is |
| 36 | * chosen since it contains the bus address of the device. |
| 37 | */ |
| 38 | #define WIFI_ACPI_NAME_MAX_LEN 5 |
| 39 | |
Furquan Shaikh | 5e00339 | 2020-10-04 17:34:04 -0700 | [diff] [blame] | 40 | #if CONFIG(HAVE_ACPI_TABLES) |
Karthikeyan Ramasubramanian | fd5d788 | 2019-05-29 15:09:42 -0600 | [diff] [blame] | 41 | __weak |
| 42 | int get_wifi_sar_limits(struct wifi_sar_limits *sar_limits) |
| 43 | { |
| 44 | return -1; |
| 45 | } |
| 46 | |
Furquan Shaikh | e31506c | 2020-10-04 17:48:48 -0700 | [diff] [blame] | 47 | static void emit_sar_acpi_structures(const struct device *dev) |
Karthikeyan Ramasubramanian | fd5d788 | 2019-05-29 15:09:42 -0600 | [diff] [blame] | 48 | { |
| 49 | int i, j, package_size; |
| 50 | struct wifi_sar_limits sar_limits; |
| 51 | struct wifi_sar_delta_table *wgds; |
| 52 | |
Furquan Shaikh | e31506c | 2020-10-04 17:48:48 -0700 | [diff] [blame] | 53 | /* CBFS SAR and SAR ACPI tables are currently used only by Intel WiFi devices. */ |
| 54 | if (dev->vendor != PCI_VENDOR_ID_INTEL) |
| 55 | return; |
| 56 | |
Karthikeyan Ramasubramanian | fd5d788 | 2019-05-29 15:09:42 -0600 | [diff] [blame] | 57 | /* Retrieve the sar limits data */ |
| 58 | if (get_wifi_sar_limits(&sar_limits) < 0) { |
| 59 | printk(BIOS_ERR, "Error: failed from getting SAR limits!\n"); |
| 60 | return; |
| 61 | } |
| 62 | |
| 63 | /* |
| 64 | * Name ("WRDS", Package () { |
| 65 | * Revision, |
| 66 | * Package () { |
| 67 | * Domain Type, // 0x7:WiFi |
| 68 | * WiFi SAR BIOS, // BIOS SAR Enable/disable |
| 69 | * SAR Table Set // Set#1 of SAR Table (10 bytes) |
| 70 | * } |
| 71 | * }) |
| 72 | */ |
| 73 | acpigen_write_name("WRDS"); |
| 74 | acpigen_write_package(2); |
| 75 | acpigen_write_dword(WRDS_REVISION); |
| 76 | /* Emit 'Domain Type' + 'WiFi SAR BIOS' + 10 bytes for Set#1 */ |
| 77 | package_size = 1 + 1 + BYTES_PER_SAR_LIMIT; |
| 78 | acpigen_write_package(package_size); |
| 79 | acpigen_write_dword(WRDS_DOMAIN_TYPE_WIFI); |
| 80 | acpigen_write_dword(CONFIG(SAR_ENABLE)); |
| 81 | for (i = 0; i < BYTES_PER_SAR_LIMIT; i++) |
| 82 | acpigen_write_byte(sar_limits.sar_limit[0][i]); |
| 83 | acpigen_pop_len(); |
| 84 | acpigen_pop_len(); |
| 85 | |
| 86 | /* |
| 87 | * Name ("EWRD", Package () { |
| 88 | * Revision, |
| 89 | * Package () { |
| 90 | * Domain Type, // 0x7:WiFi |
| 91 | * Dynamic SAR Enable, // Dynamic SAR Enable/disable |
| 92 | * Extended SAR sets, // Number of optional SAR table sets |
| 93 | * SAR Table Set, // Set#2 of SAR Table (10 bytes) |
| 94 | * SAR Table Set, // Set#3 of SAR Table (10 bytes) |
| 95 | * SAR Table Set // Set#4 of SAR Table (10 bytes) |
| 96 | * } |
| 97 | * }) |
| 98 | */ |
| 99 | acpigen_write_name("EWRD"); |
| 100 | acpigen_write_package(2); |
| 101 | acpigen_write_dword(EWRD_REVISION); |
| 102 | /* |
| 103 | * Emit 'Domain Type' + "Dynamic SAR Enable' + 'Extended SAR sets' |
| 104 | * + number of bytes for Set#2 & 3 & 4 |
| 105 | */ |
| 106 | package_size = 1 + 1 + 1 + (NUM_SAR_LIMITS - 1) * BYTES_PER_SAR_LIMIT; |
| 107 | acpigen_write_package(package_size); |
| 108 | acpigen_write_dword(EWRD_DOMAIN_TYPE_WIFI); |
| 109 | acpigen_write_dword(CONFIG(DSAR_ENABLE)); |
| 110 | acpigen_write_dword(CONFIG_DSAR_SET_NUM); |
| 111 | for (i = 1; i < NUM_SAR_LIMITS; i++) |
| 112 | for (j = 0; j < BYTES_PER_SAR_LIMIT; j++) |
| 113 | acpigen_write_byte(sar_limits.sar_limit[i][j]); |
| 114 | acpigen_pop_len(); |
| 115 | acpigen_pop_len(); |
| 116 | |
Karthikeyan Ramasubramanian | fd5d788 | 2019-05-29 15:09:42 -0600 | [diff] [blame] | 117 | if (!CONFIG(GEO_SAR_ENABLE)) |
| 118 | return; |
| 119 | |
| 120 | /* |
| 121 | * Name ("WGDS", Package() { |
| 122 | * Revision, |
| 123 | * Package() { |
| 124 | * DomainType, // 0x7:WiFi |
| 125 | * WgdsWiFiSarDeltaGroup1PowerMax1, // Group 1 FCC 2400 Max |
| 126 | * WgdsWiFiSarDeltaGroup1PowerChainA1, // Group 1 FCC 2400 A Offset |
| 127 | * WgdsWiFiSarDeltaGroup1PowerChainB1, // Group 1 FCC 2400 B Offset |
| 128 | * WgdsWiFiSarDeltaGroup1PowerMax2, // Group 1 FCC 5200 Max |
| 129 | * WgdsWiFiSarDeltaGroup1PowerChainA2, // Group 1 FCC 5200 A Offset |
| 130 | * WgdsWiFiSarDeltaGroup1PowerChainB2, // Group 1 FCC 5200 B Offset |
| 131 | * WgdsWiFiSarDeltaGroup2PowerMax1, // Group 2 EC Jap 2400 Max |
| 132 | * WgdsWiFiSarDeltaGroup2PowerChainA1, // Group 2 EC Jap 2400 A Offset |
| 133 | * WgdsWiFiSarDeltaGroup2PowerChainB1, // Group 2 EC Jap 2400 B Offset |
| 134 | * WgdsWiFiSarDeltaGroup2PowerMax2, // Group 2 EC Jap 5200 Max |
| 135 | * WgdsWiFiSarDeltaGroup2PowerChainA2, // Group 2 EC Jap 5200 A Offset |
| 136 | * WgdsWiFiSarDeltaGroup2PowerChainB2, // Group 2 EC Jap 5200 B Offset |
| 137 | * WgdsWiFiSarDeltaGroup3PowerMax1, // Group 3 ROW 2400 Max |
| 138 | * WgdsWiFiSarDeltaGroup3PowerChainA1, // Group 3 ROW 2400 A Offset |
| 139 | * WgdsWiFiSarDeltaGroup3PowerChainB1, // Group 3 ROW 2400 B Offset |
| 140 | * WgdsWiFiSarDeltaGroup3PowerMax2, // Group 3 ROW 5200 Max |
| 141 | * WgdsWiFiSarDeltaGroup3PowerChainA2, // Group 3 ROW 5200 A Offset |
| 142 | * WgdsWiFiSarDeltaGroup3PowerChainB2, // Group 3 ROW 5200 B Offset |
| 143 | * } |
| 144 | * }) |
| 145 | */ |
| 146 | |
| 147 | wgds = &sar_limits.wgds; |
| 148 | acpigen_write_name("WGDS"); |
| 149 | acpigen_write_package(2); |
| 150 | acpigen_write_dword(wgds->version); |
| 151 | /* Emit 'Domain Type' + |
| 152 | * Group specific delta of power (6 bytes * NUM_WGDS_SAR_GROUPS) |
| 153 | */ |
| 154 | package_size = sizeof(sar_limits.wgds.group) + 1; |
| 155 | acpigen_write_package(package_size); |
| 156 | acpigen_write_dword(WGDS_DOMAIN_TYPE_WIFI); |
| 157 | for (i = 0; i < SAR_NUM_WGDS_GROUPS; i++) { |
| 158 | acpigen_write_byte(wgds->group[i].power_max_2400mhz); |
| 159 | acpigen_write_byte(wgds->group[i].power_chain_a_2400mhz); |
| 160 | acpigen_write_byte(wgds->group[i].power_chain_b_2400mhz); |
| 161 | acpigen_write_byte(wgds->group[i].power_max_5200mhz); |
| 162 | acpigen_write_byte(wgds->group[i].power_chain_a_5200mhz); |
| 163 | acpigen_write_byte(wgds->group[i].power_chain_b_5200mhz); |
| 164 | } |
| 165 | |
| 166 | acpigen_pop_len(); |
| 167 | acpigen_pop_len(); |
| 168 | } |
| 169 | |
Furquan Shaikh | 44f1450 | 2020-10-04 18:05:28 -0700 | [diff] [blame] | 170 | static void wifi_generic_fill_ssdt(const struct device *dev) |
Karthikeyan Ramasubramanian | fd5d788 | 2019-05-29 15:09:42 -0600 | [diff] [blame] | 171 | { |
| 172 | const char *path; |
Furquan Shaikh | 44f1450 | 2020-10-04 18:05:28 -0700 | [diff] [blame] | 173 | const struct drivers_wifi_generic_config *config = dev->chip_info; |
Karthikeyan Ramasubramanian | fd5d788 | 2019-05-29 15:09:42 -0600 | [diff] [blame] | 174 | |
| 175 | if (!dev->enabled) |
| 176 | return; |
| 177 | |
| 178 | path = acpi_device_path(dev->bus->dev); |
| 179 | if (!path) |
| 180 | return; |
| 181 | |
| 182 | /* Device */ |
| 183 | acpigen_write_scope(path); |
| 184 | acpigen_write_device(acpi_device_name(dev)); |
Patrick Rudolph | c83bab6 | 2019-12-13 12:16:06 +0100 | [diff] [blame] | 185 | acpi_device_write_uid(dev); |
| 186 | |
Karthikeyan Ramasubramanian | fd5d788 | 2019-05-29 15:09:42 -0600 | [diff] [blame] | 187 | if (dev->chip_ops) |
| 188 | acpigen_write_name_string("_DDN", dev->chip_ops->name); |
| 189 | |
| 190 | /* Address */ |
Furquan Shaikh | 2b5be88 | 2020-10-08 22:37:48 -0700 | [diff] [blame^] | 191 | acpigen_write_ADR_pci_device(dev); |
Karthikeyan Ramasubramanian | fd5d788 | 2019-05-29 15:09:42 -0600 | [diff] [blame] | 192 | |
| 193 | /* Wake capabilities */ |
| 194 | if (config) |
Furquan Shaikh | 0af1926 | 2020-10-04 12:13:07 -0700 | [diff] [blame] | 195 | acpigen_write_PRW(config->wake, ACPI_S3); |
Karthikeyan Ramasubramanian | fd5d788 | 2019-05-29 15:09:42 -0600 | [diff] [blame] | 196 | |
| 197 | /* Fill regulatory domain structure */ |
| 198 | if (CONFIG(HAVE_REGULATORY_DOMAIN)) { |
| 199 | /* |
| 200 | * Name ("WRDD", Package () { |
| 201 | * WRDD_REVISION, // Revision |
| 202 | * Package () { |
| 203 | * WRDD_DOMAIN_TYPE_WIFI, // Domain Type, 7:WiFi |
| 204 | * wifi_regulatory_domain() // Country Identifier |
| 205 | * } |
| 206 | * }) |
| 207 | */ |
| 208 | acpigen_write_name("WRDD"); |
| 209 | acpigen_write_package(2); |
| 210 | acpigen_write_integer(WRDD_REVISION); |
| 211 | acpigen_write_package(2); |
| 212 | acpigen_write_dword(WRDD_DOMAIN_TYPE_WIFI); |
| 213 | acpigen_write_dword(wifi_regulatory_domain()); |
| 214 | acpigen_pop_len(); |
| 215 | acpigen_pop_len(); |
| 216 | } |
| 217 | |
| 218 | /* Fill Wifi sar related ACPI structures */ |
| 219 | if (CONFIG(USE_SAR)) |
Furquan Shaikh | e31506c | 2020-10-04 17:48:48 -0700 | [diff] [blame] | 220 | emit_sar_acpi_structures(dev); |
Karthikeyan Ramasubramanian | fd5d788 | 2019-05-29 15:09:42 -0600 | [diff] [blame] | 221 | |
| 222 | acpigen_pop_len(); /* Device */ |
| 223 | acpigen_pop_len(); /* Scope */ |
| 224 | |
| 225 | printk(BIOS_INFO, "%s.%s: %s %s\n", path, acpi_device_name(dev), |
| 226 | dev->chip_ops ? dev->chip_ops->name : "", dev_path(dev)); |
| 227 | } |
| 228 | |
Furquan Shaikh | 44f1450 | 2020-10-04 18:05:28 -0700 | [diff] [blame] | 229 | static const char *wifi_generic_acpi_name(const struct device *dev) |
Karthikeyan Ramasubramanian | fd5d788 | 2019-05-29 15:09:42 -0600 | [diff] [blame] | 230 | { |
| 231 | static char wifi_acpi_name[WIFI_ACPI_NAME_MAX_LEN]; |
| 232 | |
Andrew McRae | 524bcbb | 2019-09-19 16:55:52 +1000 | [diff] [blame] | 233 | /* ACPI 6.3, ASL 20.2.2: (Name Objects Encoding). */ |
| 234 | snprintf(wifi_acpi_name, sizeof(wifi_acpi_name), "WF%02X", |
Karthikeyan Ramasubramanian | fd5d788 | 2019-05-29 15:09:42 -0600 | [diff] [blame] | 235 | (dev_path_encode(dev) & 0xff)); |
| 236 | return wifi_acpi_name; |
| 237 | } |
Furquan Shaikh | 5e00339 | 2020-10-04 17:34:04 -0700 | [diff] [blame] | 238 | #endif |
Karthikeyan Ramasubramanian | afeb7b3 | 2020-07-23 00:25:25 -0600 | [diff] [blame] | 239 | |
Furquan Shaikh | 54b2716 | 2020-10-03 16:33:07 -0700 | [diff] [blame] | 240 | static void wifi_pci_dev_init(struct device *dev) |
| 241 | { |
| 242 | if (pci_dev_is_wake_source(dev)) |
| 243 | elog_add_event_wake(ELOG_WAKE_SOURCE_PME_WIFI, 0); |
| 244 | } |
| 245 | |
Furquan Shaikh | a1ddd2a | 2020-10-04 12:42:09 -0700 | [diff] [blame] | 246 | #if CONFIG(GENERATE_SMBIOS_TABLES) |
| 247 | static int smbios_write_intel_wifi(struct device *dev, int *handle, unsigned long *current) |
| 248 | { |
| 249 | struct smbios_type_intel_wifi { |
| 250 | u8 type; |
| 251 | u8 length; |
| 252 | u16 handle; |
| 253 | u8 str; |
| 254 | u8 eos[2]; |
| 255 | } __packed; |
| 256 | |
| 257 | struct smbios_type_intel_wifi *t = (struct smbios_type_intel_wifi *)*current; |
| 258 | int len = sizeof(struct smbios_type_intel_wifi); |
| 259 | |
| 260 | memset(t, 0, sizeof(struct smbios_type_intel_wifi)); |
| 261 | t->type = 0x85; |
| 262 | t->length = len - 2; |
| 263 | t->handle = *handle; |
| 264 | /* Intel wifi driver expects this string to be in the table 0x85. */ |
| 265 | t->str = smbios_add_string(t->eos, "KHOIHGIUCCHHII"); |
| 266 | |
| 267 | len = t->length + smbios_string_table_len(t->eos); |
| 268 | *current += len; |
| 269 | *handle += 1; |
| 270 | return len; |
| 271 | } |
| 272 | |
| 273 | static int smbios_write_wifi(struct device *dev, int *handle, unsigned long *current) |
| 274 | { |
| 275 | if (dev->vendor == PCI_VENDOR_ID_INTEL) |
| 276 | return smbios_write_intel_wifi(dev, handle, current); |
| 277 | |
| 278 | return 0; |
| 279 | } |
| 280 | #endif |
| 281 | |
Furquan Shaikh | 7cb1034 | 2020-10-03 14:49:09 -0700 | [diff] [blame] | 282 | struct device_operations wifi_generic_ops = { |
| 283 | .read_resources = pci_dev_read_resources, |
| 284 | .set_resources = pci_dev_set_resources, |
| 285 | .enable_resources = pci_dev_enable_resources, |
Furquan Shaikh | 54b2716 | 2020-10-03 16:33:07 -0700 | [diff] [blame] | 286 | .init = wifi_pci_dev_init, |
Furquan Shaikh | 7cb1034 | 2020-10-03 14:49:09 -0700 | [diff] [blame] | 287 | .ops_pci = &pci_dev_ops_pci, |
Furquan Shaikh | 5e00339 | 2020-10-04 17:34:04 -0700 | [diff] [blame] | 288 | #if CONFIG(HAVE_ACPI_TABLES) |
Karthikeyan Ramasubramanian | afeb7b3 | 2020-07-23 00:25:25 -0600 | [diff] [blame] | 289 | .acpi_name = wifi_generic_acpi_name, |
Furquan Shaikh | 44f1450 | 2020-10-04 18:05:28 -0700 | [diff] [blame] | 290 | .acpi_fill_ssdt = wifi_generic_fill_ssdt, |
Furquan Shaikh | 5e00339 | 2020-10-04 17:34:04 -0700 | [diff] [blame] | 291 | #endif |
Furquan Shaikh | a1ddd2a | 2020-10-04 12:42:09 -0700 | [diff] [blame] | 292 | #if CONFIG(GENERATE_SMBIOS_TABLES) |
| 293 | .get_smbios_data = smbios_write_wifi, |
| 294 | #endif |
Karthikeyan Ramasubramanian | afeb7b3 | 2020-07-23 00:25:25 -0600 | [diff] [blame] | 295 | }; |
| 296 | |
| 297 | static void wifi_generic_enable(struct device *dev) |
| 298 | { |
| 299 | struct drivers_wifi_generic_config *config = dev ? dev->chip_info : NULL; |
| 300 | |
| 301 | if (!config) |
| 302 | return; |
| 303 | |
| 304 | dev->ops = &wifi_generic_ops; |
| 305 | } |
| 306 | |
| 307 | struct chip_operations drivers_wifi_generic_ops = { |
| 308 | CHIP_NAME("WIFI Device") |
| 309 | .enable_dev = wifi_generic_enable |
| 310 | }; |
Furquan Shaikh | 8262a2c | 2020-10-10 19:53:00 -0700 | [diff] [blame] | 311 | |
| 312 | static const unsigned short intel_pci_device_ids[] = { |
| 313 | PCI_DEVICE_ID_1000_SERIES_WIFI, |
| 314 | PCI_DEVICE_ID_6005_SERIES_WIFI, |
| 315 | PCI_DEVICE_ID_6005_I_SERIES_WIFI, |
| 316 | PCI_DEVICE_ID_1030_SERIES_WIFI, |
| 317 | PCI_DEVICE_ID_6030_I_SERIES_WIFI, |
| 318 | PCI_DEVICE_ID_6030_SERIES_WIFI, |
| 319 | PCI_DEVICE_ID_6150_SERIES_WIFI, |
| 320 | PCI_DEVICE_ID_2030_SERIES_WIFI, |
| 321 | PCI_DEVICE_ID_2000_SERIES_WIFI, |
| 322 | PCI_DEVICE_ID_0135_SERIES_WIFI, |
| 323 | PCI_DEVICE_ID_0105_SERIES_WIFI, |
| 324 | PCI_DEVICE_ID_6035_SERIES_WIFI, |
| 325 | PCI_DEVICE_ID_5300_SERIES_WIFI, |
| 326 | PCI_DEVICE_ID_5100_SERIES_WIFI, |
| 327 | PCI_DEVICE_ID_6000_SERIES_WIFI, |
| 328 | PCI_DEVICE_ID_6000_I_SERIES_WIFI, |
| 329 | PCI_DEVICE_ID_5350_SERIES_WIFI, |
| 330 | PCI_DEVICE_ID_5150_SERIES_WIFI, |
| 331 | /* Wilkins Peak 2 */ |
| 332 | PCI_DEVICE_ID_WP_7260_SERIES_1_WIFI, |
| 333 | PCI_DEVICE_ID_WP_7260_SERIES_2_WIFI, |
| 334 | /* Stone Peak 2 */ |
| 335 | PCI_DEVICE_ID_SP_7265_SERIES_1_WIFI, |
| 336 | PCI_DEVICE_ID_SP_7265_SERIES_2_WIFI, |
| 337 | /* Stone Field Peak */ |
| 338 | PCI_DEVICE_ID_SFP_8260_SERIES_1_WIFI, |
| 339 | PCI_DEVICE_ID_SFP_8260_SERIES_2_WIFI, |
| 340 | /* Windstorm Peak */ |
| 341 | PCI_DEVICE_ID_WSP_8275_SERIES_1_WIFI, |
| 342 | /* Jefferson Peak */ |
| 343 | PCI_DEVICE_ID_JP_9000_SERIES_1_WIFI, |
| 344 | PCI_DEVICE_ID_JP_9000_SERIES_2_WIFI, |
| 345 | PCI_DEVICE_ID_JP_9000_SERIES_3_WIFI, |
| 346 | /* Thunder Peak 2 */ |
| 347 | PCI_DEVICE_ID_TP_9260_SERIES_WIFI, |
| 348 | /* Harrison Peak */ |
| 349 | PCI_DEVICE_ID_HrP_9560_SERIES_1_WIFI, |
| 350 | PCI_DEVICE_ID_HrP_9560_SERIES_2_WIFI, |
| 351 | PCI_DEVICE_ID_HrP_9560_SERIES_3_WIFI, |
| 352 | PCI_DEVICE_ID_HrP_9560_SERIES_4_WIFI, |
| 353 | PCI_DEVICE_ID_HrP_6SERIES_WIFI, |
| 354 | /* Cyclone Peak */ |
| 355 | PCI_DEVICE_ID_CyP_6SERIES_WIFI, |
| 356 | /* Typhoon Peak */ |
| 357 | PCI_DEVICE_ID_TyP_6SERIES_WIFI, |
| 358 | /* Garfield Peak */ |
| 359 | PCI_DEVICE_ID_GrP_6SERIES_1_WIFI, |
| 360 | PCI_DEVICE_ID_GrP_6SERIES_2_WIFI, |
| 361 | 0 |
| 362 | }; |
| 363 | |
| 364 | /* |
| 365 | * The PCI driver is retained for backward compatibility with boards that never utilized the |
| 366 | * chip driver to support Intel WiFi device. For these devices, the PCI driver helps perform the |
| 367 | * same operations as above (except exposing the wake property) by utilizing the same |
| 368 | * `wifi_generic_ops`. |
| 369 | */ |
| 370 | static const struct pci_driver intel_wifi_pci_driver __pci_driver = { |
| 371 | .ops = &wifi_generic_ops, |
| 372 | .vendor = PCI_VENDOR_ID_INTEL, |
| 373 | .devices = intel_pci_device_ids, |
| 374 | }; |