blob: 1d88d6a4b26715da4e54f4f43453e96b4683e310 [file] [log] [blame]
Angel Pons0612b272020-04-05 15:46:56 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Subrata Banik01ae11b2017-03-04 23:32:41 +05302
Arthur Heymans08769c62022-05-09 14:33:15 +02003#include <acpi/acpigen.h>
Subrata Banik7609c652017-05-19 14:50:09 +05304#include <cbmem.h>
Subrata Banikb6df6b02020-01-03 15:29:02 +05305#include <console/console.h>
Furquan Shaikhcc35f722020-05-12 16:25:31 -07006#include <cpu/cpu.h>
Subrata Banik7609c652017-05-19 14:50:09 +05307#include <device/device.h>
8#include <device/pci.h>
9#include <device/pci_ids.h>
Werner Zehd12530c2018-12-14 13:09:12 +010010#include <intelblocks/acpi.h>
Subrata Banikb6df6b02020-01-03 15:29:02 +053011#include <intelblocks/cfg.h>
Subrata Banik01ae11b2017-03-04 23:32:41 +053012#include <intelblocks/systemagent.h>
Lijian Zhao357e5522019-04-11 13:07:00 -070013#include <smbios.h>
Subrata Banik7609c652017-05-19 14:50:09 +053014#include <soc/iomap.h>
Kyösti Mälkkid6c57142020-12-21 15:17:01 +020015#include <soc/nvs.h>
Subrata Banik01ae11b2017-03-04 23:32:41 +053016#include <soc/pci_devs.h>
Subrata Banik7609c652017-05-19 14:50:09 +053017#include <soc/systemagent.h>
Patrick Rudolph5e007802020-07-27 15:37:43 +020018#include <types.h>
Subrata Banik7609c652017-05-19 14:50:09 +053019#include "systemagent_def.h"
Subrata Banik01ae11b2017-03-04 23:32:41 +053020
Subrata Banik7609c652017-05-19 14:50:09 +053021/* SoC override function */
Aaron Durbin64031672018-04-21 14:45:32 -060022__weak void soc_systemagent_init(struct device *dev)
Subrata Banik01ae11b2017-03-04 23:32:41 +053023{
Subrata Banik7609c652017-05-19 14:50:09 +053024 /* no-op */
Subrata Banik01ae11b2017-03-04 23:32:41 +053025}
26
Aaron Durbin64031672018-04-21 14:45:32 -060027__weak void soc_add_fixed_mmio_resources(struct device *dev,
Subrata Banik7609c652017-05-19 14:50:09 +053028 int *resource_cnt)
29{
30 /* no-op */
31}
32
Eran Mitrani400c3002022-05-25 16:29:19 -070033__weak void soc_add_configurable_mmio_resources(struct device *dev,
34 int *resource_cnt)
35{
36 /* no-op */
37}
38
Aaron Durbin64031672018-04-21 14:45:32 -060039__weak int soc_get_uncore_prmmr_base_and_mask(uint64_t *base,
Pratik Prajapati82cdfa72017-08-28 14:48:55 -070040 uint64_t *mask)
41{
42 /* return failure for this dummy API */
43 return -1;
44}
45
Furquan Shaikh0f007d82020-04-24 06:41:18 -070046__weak unsigned long sa_write_acpi_tables(const struct device *dev,
Werner Zehd12530c2018-12-14 13:09:12 +010047 unsigned long current,
48 struct acpi_rsdp *rsdp)
49{
50 return current;
51}
52
Patrick Rudolphbf72dcb2020-05-12 16:04:47 +020053__weak uint32_t soc_systemagent_max_chan_capacity_mib(u8 capid0_a_ddrsz)
54{
55 return 32768; /* 32 GiB per channel */
56}
57
Angel Pons6724ba42021-01-31 15:06:59 +010058static uint8_t sa_get_ecc_type(const uint32_t capid0_a)
Patrick Rudolph5e007802020-07-27 15:37:43 +020059{
Angel Pons6724ba42021-01-31 15:06:59 +010060 return capid0_a & CAPID_ECCDIS ? MEMORY_ARRAY_ECC_NONE : MEMORY_ARRAY_ECC_SINGLE_BIT;
Patrick Rudolph5e007802020-07-27 15:37:43 +020061}
62
63static size_t sa_slots_per_channel(const uint32_t capid0_a)
64{
65 return !(capid0_a & CAPID_DDPCD) + 1;
66}
67
68static size_t sa_number_of_channels(const uint32_t capid0_a)
69{
70 return !(capid0_a & CAPID_PDCD) + 1;
71}
72
73static void sa_soc_systemagent_init(struct device *dev)
74{
75 soc_systemagent_init(dev);
76
77 struct memory_info *m = cbmem_find(CBMEM_ID_MEMINFO);
78 if (m == NULL)
79 return;
80
81 const uint32_t capid0_a = pci_read_config32(dev, CAPID0_A);
82
Angel Pons6724ba42021-01-31 15:06:59 +010083 m->ecc_type = sa_get_ecc_type(capid0_a);
Patrick Rudolph5e007802020-07-27 15:37:43 +020084 m->max_capacity_mib = soc_systemagent_max_chan_capacity_mib(CAPID_DDRSZ(capid0_a)) *
85 sa_number_of_channels(capid0_a);
86 m->number_of_devices = sa_slots_per_channel(capid0_a) *
87 sa_number_of_channels(capid0_a);
88}
89
Subrata Banik7609c652017-05-19 14:50:09 +053090/*
91 * Add all known fixed MMIO ranges that hang off the host bridge/memory
92 * controller device.
93 */
94void sa_add_fixed_mmio_resources(struct device *dev, int *resource_cnt,
95 const struct sa_mmio_descriptor *sa_fixed_resources, size_t count)
96{
97 int i;
98 int index = *resource_cnt;
99
100 for (i = 0; i < count; i++) {
101 uintptr_t base;
102 size_t size;
103
104 size = sa_fixed_resources[i].size;
105 base = sa_fixed_resources[i].base;
106
Eran Mitrani400c3002022-05-25 16:29:19 -0700107 printk(BIOS_DEBUG, "SA MMIO resource: %s -> base = 0x%llx, size = 0x%llx\n",
108 sa_fixed_resources[i].description, sa_fixed_resources[i].base,
109 sa_fixed_resources[i].size);
110
Kyösti Mälkki27d62992022-05-24 20:25:58 +0300111 mmio_resource_kb(dev, index++, base / KiB, size / KiB);
Subrata Banik7609c652017-05-19 14:50:09 +0530112 }
113
114 *resource_cnt = index;
115}
116
117/*
118 * DRAM memory mapped register
119 *
120 * TOUUD: This 64 bit register defines the Top of Upper Usable DRAM
121 * TOLUD: This 32 bit register defines the Top of Low Usable DRAM
122 * BGSM: This register contains the base address of stolen DRAM memory for GTT
123 * TSEG: This register contains the base address of TSEG DRAM memory
124 */
125static const struct sa_mem_map_descriptor sa_memory_map[MAX_MAP_ENTRIES] = {
126 { TOUUD, true, "TOUUD" },
127 { TOLUD, false, "TOLUD" },
128 { BGSM, false, "BGSM" },
129 { TSEG, false, "TSEG" },
130};
131
132/* Read DRAM memory map register value through PCI configuration space */
Arthur Heymans08769c62022-05-09 14:33:15 +0200133static void sa_read_map_entry(const struct device *dev,
Subrata Banik7609c652017-05-19 14:50:09 +0530134 const struct sa_mem_map_descriptor *entry, uint64_t *result)
135{
136 uint64_t value = 0;
137
138 if (entry->is_64_bit) {
139 value = pci_read_config32(dev, entry->reg + 4);
140 value <<= 32;
141 }
142
143 value |= pci_read_config32(dev, entry->reg);
144 /* All registers are on a 1MiB granularity. */
145 value = ALIGN_DOWN(value, 1 * MiB);
146
147 *result = value;
148}
149
150static void sa_get_mem_map(struct device *dev, uint64_t *values)
151{
152 int i;
153 for (i = 0; i < MAX_MAP_ENTRIES; i++)
154 sa_read_map_entry(dev, &sa_memory_map[i], &values[i]);
155}
156
157/*
Subrata Banik7609c652017-05-19 14:50:09 +0530158 * These are the host memory ranges that should be added:
159 * - 0 -> 0xa0000: cacheable
160 * - 0xc0000 -> top_of_ram : cacheable
Subrata Banik239272e2020-07-29 11:01:26 +0530161 * - top_of_ram -> TOLUD: not cacheable with standard MTRRs and reserved
Subrata Banik7609c652017-05-19 14:50:09 +0530162 * - 4GiB -> TOUUD: cacheable
163 *
164 * The default SMRAM space is reserved so that the range doesn't
165 * have to be saved during S3 Resume. Once marked reserved the OS
166 * cannot use the memory. This is a bit of an odd place to reserve
167 * the region, but the CPU devices don't have dev_ops->read_resources()
168 * called on them.
169 *
170 * The range 0xa0000 -> 0xc0000 does not have any resources
171 * associated with it to handle legacy VGA memory. If this range
172 * is not omitted the mtrr code will setup the area as cacheable
173 * causing VGA access to not work.
174 *
Subrata Banik239272e2020-07-29 11:01:26 +0530175 * Don't need to mark the entire top_of_ram till TOLUD range (used
176 * for stolen memory like GFX and ME, PTT, DPR, PRMRR, TSEG etc) as
177 * cacheable for OS usage as coreboot already done with mpinit w/ smm
178 * relocation early.
Subrata Banik7609c652017-05-19 14:50:09 +0530179 *
180 * It should be noted that cacheable entry types need to be added in
181 * order. The reason is that the current MTRR code assumes this and
182 * falls over itself if it isn't.
183 *
184 * The resource index starts low and should not meet or exceed
185 * PCI_BASE_ADDRESS_0.
186 */
187static void sa_add_dram_resources(struct device *dev, int *resource_count)
188{
189 uintptr_t base_k, touud_k;
Michael Niewöhner40f893e2019-10-21 18:58:04 +0200190 size_t size_k;
Subrata Banik7609c652017-05-19 14:50:09 +0530191 uint64_t sa_map_values[MAX_MAP_ENTRIES];
192 uintptr_t top_of_ram;
193 int index = *resource_count;
194
Subrata Banik7609c652017-05-19 14:50:09 +0530195 top_of_ram = (uintptr_t)cbmem_top();
196
197 /* 0 - > 0xa0000 */
198 base_k = 0;
199 size_k = (0xa0000 / KiB) - base_k;
Kyösti Mälkki27d62992022-05-24 20:25:58 +0300200 ram_resource_kb(dev, index++, base_k, size_k);
Subrata Banik7609c652017-05-19 14:50:09 +0530201
202 /* 0xc0000 -> top_of_ram */
203 base_k = 0xc0000 / KiB;
204 size_k = (top_of_ram / KiB) - base_k;
Kyösti Mälkki27d62992022-05-24 20:25:58 +0300205 ram_resource_kb(dev, index++, base_k, size_k);
Subrata Banik7609c652017-05-19 14:50:09 +0530206
207 sa_get_mem_map(dev, &sa_map_values[0]);
208
Subrata Banik239272e2020-07-29 11:01:26 +0530209 /* top_of_ram -> TOLUD */
Subrata Banik7609c652017-05-19 14:50:09 +0530210 base_k = top_of_ram;
Subrata Banik7609c652017-05-19 14:50:09 +0530211 size_k = sa_map_values[SA_TOLUD_REG] - base_k;
Kyösti Mälkki27d62992022-05-24 20:25:58 +0300212 mmio_resource_kb(dev, index++, base_k / KiB, size_k / KiB);
Subrata Banik7609c652017-05-19 14:50:09 +0530213
214 /* 4GiB -> TOUUD */
215 base_k = 4 * (GiB / KiB); /* 4GiB */
216 touud_k = sa_map_values[SA_TOUUD_REG] / KiB;
217 size_k = touud_k - base_k;
218 if (touud_k > base_k)
Kyösti Mälkki27d62992022-05-24 20:25:58 +0300219 ram_resource_kb(dev, index++, base_k, size_k);
Subrata Banik7609c652017-05-19 14:50:09 +0530220
221 /*
222 * Reserve everything between A segment and 1MB:
223 *
224 * 0xa0000 - 0xbffff: legacy VGA
225 * 0xc0000 - 0xfffff: RAM
226 */
Kyösti Mälkki27d62992022-05-24 20:25:58 +0300227 mmio_resource_kb(dev, index++, 0xa0000 / KiB, (0xc0000 - 0xa0000) / KiB);
228 reserved_ram_resource_kb(dev, index++, 0xc0000 / KiB,
Subrata Banik7609c652017-05-19 14:50:09 +0530229 (1*MiB - 0xc0000) / KiB);
230
231 *resource_count = index;
232}
233
234static bool is_imr_enabled(uint32_t imr_base_reg)
235{
236 return !!(imr_base_reg & (1 << 31));
237}
238
Elyes HAOUAS4a131262018-09-16 17:35:48 +0200239static void imr_resource(struct device *dev, int idx, uint32_t base,
240 uint32_t mask)
Subrata Banik7609c652017-05-19 14:50:09 +0530241{
242 uint32_t base_k, size_k;
243 /* Bits 28:0 encode the base address bits 38:10, hence the KiB unit. */
244 base_k = (base & 0x0fffffff);
245 /* Bits 28:0 encode the AND mask used for comparison, in KiB. */
246 size_k = ((~mask & 0x0fffffff) + 1);
247 /*
248 * IMRs sit in lower DRAM. Mark them cacheable, otherwise we run
249 * out of MTRRs. Memory reserved by IMRs is not usable for host
250 * so mark it reserved.
251 */
Kyösti Mälkki27d62992022-05-24 20:25:58 +0300252 reserved_ram_resource_kb(dev, idx, base_k, size_k);
Subrata Banik7609c652017-05-19 14:50:09 +0530253}
254
255/*
256 * Add IMR ranges that hang off the host bridge/memory
Martin Rothf48acbd2020-07-24 12:24:27 -0600257 * controller device in case CONFIG(SA_ENABLE_IMR) is selected by SoC.
Subrata Banik7609c652017-05-19 14:50:09 +0530258 */
259static void sa_add_imr_resources(struct device *dev, int *resource_cnt)
260{
261 size_t i, imr_offset;
262 uint32_t base, mask;
263 int index = *resource_cnt;
264
265 for (i = 0; i < MCH_NUM_IMRS; i++) {
266 imr_offset = i * MCH_IMR_PITCH;
267 base = MCHBAR32(imr_offset + MCH_IMR0_BASE);
268 mask = MCHBAR32(imr_offset + MCH_IMR0_MASK);
269
270 if (is_imr_enabled(base))
271 imr_resource(dev, index++, base, mask);
272 }
273
274 *resource_cnt = index;
275}
276
277static void systemagent_read_resources(struct device *dev)
278{
279 int index = 0;
280
281 /* Read standard PCI resources. */
282 pci_dev_read_resources(dev);
283
284 /* Add all fixed MMIO resources. */
285 soc_add_fixed_mmio_resources(dev, &index);
Eran Mitrani400c3002022-05-25 16:29:19 -0700286
287 /* Add all configurable MMIO resources. */
288 soc_add_configurable_mmio_resources(dev, &index);
289
Subrata Banik7609c652017-05-19 14:50:09 +0530290 /* Calculate and add DRAM resources. */
291 sa_add_dram_resources(dev, &index);
Julius Wernercd49cce2019-03-05 16:53:33 -0800292 if (CONFIG(SA_ENABLE_IMR))
Subrata Banik7609c652017-05-19 14:50:09 +0530293 /* Add the isolated memory ranges (IMRs). */
294 sa_add_imr_resources(dev, &index);
Furquan Shaikhb53280a2020-11-25 14:30:15 -0800295
296 /* Reserve the window used for extended BIOS decoding. */
297 if (CONFIG(FAST_SPI_SUPPORTS_EXT_BIOS_WINDOW))
Kyösti Mälkki27d62992022-05-24 20:25:58 +0300298 mmio_resource_kb(dev, index++, CONFIG_EXT_BIOS_WIN_BASE / KiB,
Furquan Shaikhb53280a2020-11-25 14:30:15 -0800299 CONFIG_EXT_BIOS_WIN_SIZE / KiB);
Subrata Banik7609c652017-05-19 14:50:09 +0530300}
301
302void enable_power_aware_intr(void)
303{
304 uint8_t pair;
305
306 /* Enable Power Aware Interrupt Routing */
307 pair = MCHBAR8(MCH_PAIR);
308 pair &= ~0x7; /* Clear 2:0 */
309 pair |= 0x4; /* Fixed Priority */
310 MCHBAR8(MCH_PAIR) = pair;
311}
312
Tim Wawrzynczakd87af792021-08-24 09:20:14 -0600313void sa_lock_pam(void)
314{
315 const struct device *dev = pcidev_path_on_root(SA_DEVFN_ROOT);
316 if (!dev)
317 return;
318
319 pci_or_config8(dev, PAM0, PAM_LOCK);
320}
321
Arthur Heymans08769c62022-05-09 14:33:15 +0200322void ssdt_set_above_4g_pci(const struct device *dev)
323{
324 if (dev->path.type != DEVICE_PATH_DOMAIN)
325 return;
326
327 uint64_t touud;
328 sa_read_map_entry(pcidev_path_on_root(SA_DEVFN_ROOT), &sa_memory_map[SA_TOUUD_REG],
329 &touud);
330 const uint64_t len = POWER_OF_2(cpu_phys_address_size()) - touud;
331
332 const char *scope = acpi_device_path(dev);
333 acpigen_write_scope(scope);
334 acpigen_write_name_qword("A4GB", touud);
335 acpigen_write_name_qword("A4GS", len);
336 acpigen_pop_len();
337
338 printk(BIOS_DEBUG, "PCI space above 4GB MMIO is at 0x%llx, len = 0x%llx\n", touud, len);
339}
340
Subrata Banik7609c652017-05-19 14:50:09 +0530341static struct device_operations systemagent_ops = {
Elyes HAOUAS1d191272018-11-27 12:23:48 +0100342 .read_resources = systemagent_read_resources,
343 .set_resources = pci_dev_set_resources,
344 .enable_resources = pci_dev_enable_resources,
Patrick Rudolph5e007802020-07-27 15:37:43 +0200345 .init = sa_soc_systemagent_init,
Subrata Banik6bbc91a2017-12-07 14:55:51 +0530346 .ops_pci = &pci_dev_ops_pci,
Julius Wernercd49cce2019-03-05 16:53:33 -0800347#if CONFIG(HAVE_ACPI_TABLES)
Werner Zehd12530c2018-12-14 13:09:12 +0100348 .write_acpi_tables = sa_write_acpi_tables,
349#endif
Subrata Banik7609c652017-05-19 14:50:09 +0530350};
351
352static const unsigned short systemagent_ids[] = {
Wonkyu Kim9f401072020-11-13 15:16:32 -0800353 PCI_DID_INTEL_MTL_M_ID,
354 PCI_DID_INTEL_MTL_P_ID_1,
355 PCI_DID_INTEL_MTL_P_ID_2,
Felix Singer43b7f412022-03-07 04:34:52 +0100356 PCI_DID_INTEL_GLK_NB,
357 PCI_DID_INTEL_APL_NB,
358 PCI_DID_INTEL_CNL_ID_U,
359 PCI_DID_INTEL_CNL_ID_Y,
360 PCI_DID_INTEL_SKL_ID_U,
361 PCI_DID_INTEL_SKL_ID_Y,
362 PCI_DID_INTEL_SKL_ID_ULX,
363 PCI_DID_INTEL_SKL_ID_H_4,
364 PCI_DID_INTEL_SKL_ID_H_2,
365 PCI_DID_INTEL_SKL_ID_S_2,
366 PCI_DID_INTEL_SKL_ID_S_4,
367 PCI_DID_INTEL_WHL_ID_W_2,
368 PCI_DID_INTEL_WHL_ID_W_4,
369 PCI_DID_INTEL_KBL_ID_S,
370 PCI_DID_INTEL_SKL_ID_H_EM,
371 PCI_DID_INTEL_KBL_ID_U,
372 PCI_DID_INTEL_KBL_ID_Y,
373 PCI_DID_INTEL_KBL_ID_H,
374 PCI_DID_INTEL_KBL_U_R,
375 PCI_DID_INTEL_KBL_ID_DT,
376 PCI_DID_INTEL_KBL_ID_DT_2,
377 PCI_DID_INTEL_CFL_ID_U,
378 PCI_DID_INTEL_CFL_ID_U_2,
379 PCI_DID_INTEL_CFL_ID_H,
380 PCI_DID_INTEL_CFL_ID_H_4,
381 PCI_DID_INTEL_CFL_ID_H_8,
382 PCI_DID_INTEL_CFL_ID_S,
383 PCI_DID_INTEL_CFL_ID_S_DT_2,
384 PCI_DID_INTEL_CFL_ID_S_DT_4,
385 PCI_DID_INTEL_CFL_ID_S_DT_8,
386 PCI_DID_INTEL_CFL_ID_S_WS_4,
387 PCI_DID_INTEL_CFL_ID_S_WS_6,
388 PCI_DID_INTEL_CFL_ID_S_WS_8,
389 PCI_DID_INTEL_CFL_ID_S_S_4,
390 PCI_DID_INTEL_CFL_ID_S_S_6,
391 PCI_DID_INTEL_CFL_ID_S_S_8,
392 PCI_DID_INTEL_ICL_ID_U,
393 PCI_DID_INTEL_ICL_ID_U_2_2,
394 PCI_DID_INTEL_ICL_ID_Y,
395 PCI_DID_INTEL_ICL_ID_Y_2,
396 PCI_DID_INTEL_CML_ULT,
397 PCI_DID_INTEL_CML_ULT_2_2,
398 PCI_DID_INTEL_CML_ULT_6_2,
399 PCI_DID_INTEL_CML_ULX,
400 PCI_DID_INTEL_CML_S,
401 PCI_DID_INTEL_CML_S_G0G1_P0P1_6_2,
402 PCI_DID_INTEL_CML_S_P0P1_8_2,
403 PCI_DID_INTEL_CML_S_P0P1_10_2,
404 PCI_DID_INTEL_CML_S_G0G1_4,
405 PCI_DID_INTEL_CML_S_G0G1_2,
406 PCI_DID_INTEL_CML_H,
407 PCI_DID_INTEL_CML_H_4_2,
408 PCI_DID_INTEL_CML_H_8_2,
409 PCI_DID_INTEL_TGL_ID_U_2_2,
410 PCI_DID_INTEL_TGL_ID_U_4_2,
411 PCI_DID_INTEL_TGL_ID_Y_2_2,
412 PCI_DID_INTEL_TGL_ID_Y_4_2,
413 PCI_DID_INTEL_TGL_ID_H_6_1,
414 PCI_DID_INTEL_TGL_ID_H_8_1,
415 PCI_DID_INTEL_EHL_ID_0,
416 PCI_DID_INTEL_EHL_ID_1,
417 PCI_DID_INTEL_EHL_ID_1A,
418 PCI_DID_INTEL_EHL_ID_2,
419 PCI_DID_INTEL_EHL_ID_2_1,
420 PCI_DID_INTEL_EHL_ID_3,
421 PCI_DID_INTEL_EHL_ID_3A,
422 PCI_DID_INTEL_EHL_ID_4,
423 PCI_DID_INTEL_EHL_ID_5,
424 PCI_DID_INTEL_EHL_ID_6,
425 PCI_DID_INTEL_EHL_ID_7,
426 PCI_DID_INTEL_EHL_ID_8,
427 PCI_DID_INTEL_EHL_ID_9,
428 PCI_DID_INTEL_EHL_ID_10,
429 PCI_DID_INTEL_EHL_ID_11,
430 PCI_DID_INTEL_EHL_ID_12,
431 PCI_DID_INTEL_EHL_ID_13,
432 PCI_DID_INTEL_EHL_ID_14,
433 PCI_DID_INTEL_EHL_ID_15,
434 PCI_DID_INTEL_JSL_ID_1,
435 PCI_DID_INTEL_JSL_ID_2,
436 PCI_DID_INTEL_JSL_ID_3,
437 PCI_DID_INTEL_JSL_ID_4,
438 PCI_DID_INTEL_JSL_ID_5,
439 PCI_DID_INTEL_ADL_S_ID_1,
440 PCI_DID_INTEL_ADL_S_ID_2,
441 PCI_DID_INTEL_ADL_S_ID_3,
442 PCI_DID_INTEL_ADL_S_ID_4,
443 PCI_DID_INTEL_ADL_S_ID_5,
444 PCI_DID_INTEL_ADL_S_ID_6,
445 PCI_DID_INTEL_ADL_S_ID_7,
446 PCI_DID_INTEL_ADL_S_ID_8,
447 PCI_DID_INTEL_ADL_S_ID_9,
448 PCI_DID_INTEL_ADL_S_ID_10,
449 PCI_DID_INTEL_ADL_S_ID_11,
450 PCI_DID_INTEL_ADL_S_ID_12,
451 PCI_DID_INTEL_ADL_S_ID_13,
452 PCI_DID_INTEL_ADL_S_ID_14,
453 PCI_DID_INTEL_ADL_S_ID_15,
454 PCI_DID_INTEL_ADL_P_ID_1,
455 PCI_DID_INTEL_ADL_P_ID_3,
456 PCI_DID_INTEL_ADL_P_ID_4,
457 PCI_DID_INTEL_ADL_P_ID_5,
458 PCI_DID_INTEL_ADL_P_ID_6,
459 PCI_DID_INTEL_ADL_P_ID_7,
460 PCI_DID_INTEL_ADL_P_ID_8,
461 PCI_DID_INTEL_ADL_P_ID_9,
462 PCI_DID_INTEL_ADL_P_ID_10,
463 PCI_DID_INTEL_ADL_M_ID_1,
464 PCI_DID_INTEL_ADL_M_ID_2,
465 PCI_DID_INTEL_ADL_N_ID_1,
466 PCI_DID_INTEL_ADL_N_ID_2,
467 PCI_DID_INTEL_ADL_N_ID_3,
468 PCI_DID_INTEL_ADL_N_ID_4,
Bora Guvendika15b25f2022-02-28 14:43:49 -0800469 PCI_DID_INTEL_RPL_P_ID_1,
470 PCI_DID_INTEL_RPL_P_ID_2,
Subrata Banik7609c652017-05-19 14:50:09 +0530471 0
472};
473
474static const struct pci_driver systemagent_driver __pci_driver = {
475 .ops = &systemagent_ops,
Felix Singer43b7f412022-03-07 04:34:52 +0100476 .vendor = PCI_VID_INTEL,
Subrata Banik7609c652017-05-19 14:50:09 +0530477 .devices = systemagent_ids
478};