Debian Codegraph @

src/soc/intel/common/block/systemagent/systemagent.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <acpi/acpigen.h>
4 #include <cbmem.h>
5 #include <console/console.h>
6 #include <cpu/cpu.h>
7 #include <device/device.h>
8 #include <device/pci.h>
9 #include <device/pci_ids.h>
10 #include <intelblocks/acpi.h>
11 #include <intelblocks/cfg.h>
12 #include <intelblocks/systemagent.h>
13 #include <smbios.h>
14 #include <soc/iomap.h>
15 #include <soc/nvs.h>
16 #include <soc/pci_devs.h>
17 #include <soc/systemagent.h>
18 #include <static.h>
19 #include <types.h>
20 #include "systemagent_def.h"
21
22 /* SoC override function */
23 __weak void soc_systemagent_init(struct device *dev)
24 {
25 /* no-op */
26 }
27
28 __weak void soc_add_fixed_mmio_resources(struct device *dev,
29 int *resource_cnt)
30 {
31 /* no-op */
32 }
33
34 __weak void soc_add_configurable_mmio_resources(struct device *dev,
35 int *resource_cnt)
36 {
37 /* no-op */
38 }
39
40 __weak int soc_get_uncore_prmmr_base_and_mask(uint64_t *base,
41 uint64_t *mask)
42 {
43 /* return failure for this dummy API */
44 return -1;
45 }
46
47 __weak unsigned long sa_write_acpi_tables(const struct device *dev,
48 unsigned long current,
49 struct acpi_rsdp *rsdp)
50 {
51 return current;
52 }
53
54 __weak uint32_t soc_systemagent_max_chan_capacity_mib(u8 capid0_a_ddrsz)
55 {
56 return 32768; /* 32 GiB per channel */
57 }
58
59 static uint8_t sa_get_ecc_type(const uint32_t capid0_a)
60 {
61 return capid0_a & CAPID_ECCDIS ? MEMORY_ARRAY_ECC_NONE : MEMORY_ARRAY_ECC_SINGLE_BIT;
62 }
63
64 static size_t sa_slots_per_channel(const uint32_t capid0_a)
65 {
66 return !(capid0_a & CAPID_DDPCD) + 1;
67 }
68
69 static size_t sa_number_of_channels(const uint32_t capid0_a)
70 {
71 return !(capid0_a & CAPID_PDCD) + 1;
72 }
73
74 static void sa_soc_systemagent_init(struct device *dev)
75 {
76 soc_systemagent_init(dev);
77
78 struct memory_info *m = cbmem_find(CBMEM_ID_MEMINFO);
79 if (m == NULL)
80 return;
81
82 if (!CONFIG(HAVE_CAPID_A_REGISTER))
83 return;
84
85 const uint32_t capid0_a = pci_read_config32(dev, CAPID0_A);
86
87 m->ecc_type = sa_get_ecc_type(capid0_a);
88 m->max_capacity_mib = soc_systemagent_max_chan_capacity_mib(CAPID_DDRSZ(capid0_a)) *
89 sa_number_of_channels(capid0_a);
90 m->number_of_devices = sa_slots_per_channel(capid0_a) *
91 sa_number_of_channels(capid0_a);
92 }
93
94 /*
95 * Add all known fixed MMIO ranges that hang off the host bridge/memory
96 * controller device.
97 */
98 void sa_add_fixed_mmio_resources(struct device *dev, int *resource_cnt,
99 const struct sa_mmio_descriptor *sa_fixed_resources, size_t count)
100 {
101 int i;
102 int index = *resource_cnt;
103
104 for (i = 0; i < count; i++) {
105 uintptr_t base;
106 size_t size;
107
108 size = sa_fixed_resources[i].size;
109 base = sa_fixed_resources[i].base;
110
111 printk(BIOS_DEBUG,
112 "SA MMIO resource: %-8s -> base = 0x%08llx, size = 0x%08llx\n",
113 sa_fixed_resources[i].description, sa_fixed_resources[i].base,
114 sa_fixed_resources[i].size);
115
116 mmio_range(dev, index++, base, size);
117 }
118
119 *resource_cnt = index;
120 }
121
122 /*
123 * DRAM memory mapped register
124 *
125 * TOUUD: This 64 bit register defines the Top of Upper Usable DRAM
126 * TOLUD: This 32 bit register defines the Top of Low Usable DRAM
127 * BGSM: This register contains the base address of stolen DRAM memory for GTT
128 * TSEG: This register contains the base address of TSEG DRAM memory
129 */
130 static const struct sa_mem_map_descriptor sa_memory_map[MAX_MAP_ENTRIES] = {
131 { TOUUD, true, "TOUUD" },
132 { TOLUD, false, "TOLUD" },
133 #if CONFIG(HAVE_BDSM_BGSM_REGISTER)
134 { BGSM, false, "BGSM" },
135 #endif
136 { TSEG, false, "TSEG" },
137 };
138
139 /* Read DRAM memory map register value through PCI configuration space */
140 static void sa_read_map_entry(const struct device *dev,
141 const struct sa_mem_map_descriptor *entry, uint64_t *result)
142 {
143 uint64_t value = 0;
144
145 if (entry->is_64_bit) {
146 value = pci_read_config32(dev, entry->reg + 4);
147 value <<= 32;
148 }
149
150 value |= pci_read_config32(dev, entry->reg);
151 /* All registers are on a 1MiB granularity. */
152 value = ALIGN_DOWN(value, 1 * MiB);
153
154 *result = value;
155 }
156
157 static void sa_get_mem_map(struct device *dev, uint64_t *values)
158 {
159 int i;
160 for (i = 0; i < MAX_MAP_ENTRIES; i++)
161 sa_read_map_entry(dev, &sa_memory_map[i], &values[i]);
162 }
163
164 /*
165 * These are the host memory ranges that should be added:
166 * - 0 -> 0xa0000: cacheable
167 * - 0xc0000 -> top_of_ram : cacheable
168 * - top_of_ram -> TOLUD: not cacheable with standard MTRRs and reserved
169 * - 4GiB -> TOUUD: cacheable
170 *
171 * The default SMRAM space is reserved so that the range doesn't
172 * have to be saved during S3 Resume. Once marked reserved the OS
173 * cannot use the memory. This is a bit of an odd place to reserve
174 * the region, but the CPU devices don't have dev_ops->read_resources()
175 * called on them.
176 *
177 * The range 0xa0000 -> 0xc0000 does not have any resources
178 * associated with it to handle legacy VGA memory. If this range
179 * is not omitted the mtrr code will setup the area as cacheable
180 * causing VGA access to not work.
181 *
182 * Don't need to mark the entire top_of_ram till TOLUD range (used
183 * for stolen memory like GFX and ME, PTT, DPR, PRMRR, TSEG etc) as
184 * cacheable for OS usage as coreboot already done with mpinit w/ smm
185 * relocation early.
186 *
187 * It should be noted that cacheable entry types need to be added in
188 * order. The reason is that the current MTRR code assumes this and
189 * falls over itself if it isn't.
190 *
191 * The resource index starts low and should not meet or exceed
192 * PCI_BASE_ADDRESS_0.
193 */
194 static void sa_add_dram_resources(struct device *dev, int *resource_count)
195 {
196 uint64_t sa_map_values[MAX_MAP_ENTRIES];
197 int index = *resource_count;
198
199 const uintptr_t top_of_ram = cbmem_top();
200
201 /* 0 - > 0xa0000 */
202 ram_from_to(dev, index++, 0, 0xa0000);
203
204 /* 0xc0000 -> top_of_ram */
205 ram_from_to(dev, index++, 0xc0000, top_of_ram);
206
207 sa_get_mem_map(dev, &sa_map_values[0]);
208
209 /*
210 * top_of_ram -> TOLUD: This contains TSEG which needs to be uncacheable
211 * for proper operation of the smihandler.
212 */
213 mmio_from_to(dev, index++, top_of_ram, sa_map_values[SA_TOLUD_REG]);
214
215 /* 4GiB -> TOUUD */
216 upper_ram_end(dev, index++, sa_map_values[SA_TOUUD_REG]);
217
218 /*
219 * Reserve everything between A segment and 1MB:
220 *
221 * 0xa0000 - 0xbffff: legacy VGA
222 * 0xc0000 - 0xfffff: RAM
223 */
224 mmio_from_to(dev, index++, 0xa0000, 0xc0000);
225 reserved_ram_from_to(dev, index++, 0xc0000, 1 * MiB);
226
227 *resource_count = index;
228 }
229
230 static bool is_imr_enabled(uint32_t imr_base_reg)
231 {
232 return !!(imr_base_reg & (1 << 31));
233 }
234
235 static void imr_resource(struct device *dev, int idx, uint32_t base,
236 uint32_t mask)
237 {
238 uint32_t base_k, size_k;
239 /* Bits 28:0 encode the base address bits 38:10, hence the KiB unit. */
240 base_k = (base & 0x0fffffff);
241 /* Bits 28:0 encode the AND mask used for comparison, in KiB. */
242 size_k = ((~mask & 0x0fffffff) + 1);
243 /*
244 * IMRs sit in lower DRAM. Mark them cacheable, otherwise we run
245 * out of MTRRs. Memory reserved by IMRs is not usable for host
246 * so mark it reserved.
247 */
248 reserved_ram_range(dev, idx, base_k * KiB, size_k * KiB);
249 }
250
251 /*
252 * Add IMR ranges that hang off the host bridge/memory
253 * controller device in case CONFIG(SA_ENABLE_IMR) is selected by SoC.
254 */
255 static void sa_add_imr_resources(struct device *dev, int *resource_cnt)
256 {
257 size_t i, imr_offset;
258 uint32_t base, mask;
259 int index = *resource_cnt;
260
261 for (i = 0; i < MCH_NUM_IMRS; i++) {
262 imr_offset = i * MCH_IMR_PITCH;
263 base = MCHBAR32(imr_offset + MCH_IMR0_BASE);
264 mask = MCHBAR32(imr_offset + MCH_IMR0_MASK);
265
266 if (is_imr_enabled(base))
267 imr_resource(dev, index++, base, mask);
268 }
269
270 *resource_cnt = index;
271 }
272
273 static void systemagent_read_resources(struct device *dev)
274 {
275 int index = 0;
276
277 /**
278 * If SoC has multiple PCIe domains, only read resources from the first one.
279 */
280 if (!is_dev_on_domain0(dev))
281 return;
282
283 /* Read standard PCI resources. */
284 pci_dev_read_resources(dev);
285
286 /* Add all fixed MMIO resources. */
287 soc_add_fixed_mmio_resources(dev, &index);
288
289 /* Add all configurable MMIO resources. */
290 soc_add_configurable_mmio_resources(dev, &index);
291
292 /* Calculate and add DRAM resources. */
293 sa_add_dram_resources(dev, &index);
294 if (CONFIG(SA_ENABLE_IMR))
295 /* Add the isolated memory ranges (IMRs). */
296 sa_add_imr_resources(dev, &index);
297 }
298
299 void enable_power_aware_intr(void)
300 {
301 uint8_t pair;
302
303 /* Enable Power Aware Interrupt Routing */
304 pair = MCHBAR8(MCH_PAIR);
305 pair &= ~0x7; /* Clear 2:0 */
306 pair |= 0x4; /* Fixed Priority */
307 MCHBAR8(MCH_PAIR) = pair;
308 }
309
310 void sa_lock_pam(void)
311 {
312 const struct device *dev = pcidev_path_on_root(SA_DEVFN_ROOT);
313 if (!CONFIG(HAVE_PAM0_REGISTER) || !dev)
314 return;
315
316 pci_or_config8(dev, PAM0, PAM_LOCK);
317 }
318
319 void ssdt_set_above_4g_pci(const struct device *dev)
320 {
321 if (dev->path.type != DEVICE_PATH_DOMAIN)
322 return;
323
324 uint64_t touud;
325 sa_read_map_entry(pcidev_path_on_root(SA_DEVFN_ROOT), &sa_memory_map[SA_TOUUD_REG],
326 &touud);
327 const uint64_t len = POWER_OF_2(soc_phys_address_size()) - touud;
328
329 const char *scope = acpi_device_path(dev);
330 acpigen_write_scope(scope);
331 acpigen_write_name_qword("A4GB", touud);
332 acpigen_write_name_qword("A4GS", len);
333 acpigen_pop_len();
334
335 printk(BIOS_DEBUG, "PCI space above 4GB MMIO is at 0x%llx, len = 0x%llx\n", touud, len);
336 }
337
338 uint64_t sa_get_mmcfg_size(void)
339 {
340 const uint32_t pciexbar_reg = pci_read_config32(__pci_0_00_0, PCIEXBAR);
341
342 if (!(pciexbar_reg & (1 << 0))) {
343 printk(BIOS_ERR, "%s : PCIEXBAR disabled\n", __func__);
344 return 0;
345 }
346
347 switch ((pciexbar_reg & PCIEXBAR_LENGTH_MASK) >> PCIEXBAR_LENGTH_MASK_LSB) {
348 case PCIEXBAR_LENGTH_4096MB:
349 return 4ULL * GiB;
350 case PCIEXBAR_LENGTH_2048MB:
351 return 2ULL * GiB;
352 case PCIEXBAR_LENGTH_1024MB:
353 return 1 * GiB;
354 case PCIEXBAR_LENGTH_512MB:
355 return 512 * MiB;
356 case PCIEXBAR_LENGTH_256MB:
357 return 256 * MiB;
358 case PCIEXBAR_LENGTH_128MB:
359 return 128 * MiB;
360 case PCIEXBAR_LENGTH_64MB:
361 return 64 * MiB;
362 default:
363 printk(BIOS_ERR, "%s : PCIEXBAR - invalid length (0x%x)\n", __func__,
364 (pciexbar_reg & PCIEXBAR_LENGTH_MASK) >> PCIEXBAR_LENGTH_MASK_LSB);
365 return 0x0;
366 }
367 }
368
369 uint64_t sa_get_dsm_size(void)
370 {
371 const uint32_t size_field = (pci_read_config32(__pci_0_00_0, GGC) & DSM_LENGTH_MASK)
372 >> DSM_LENGTH_MASK_LSB;
373 if (size_field <= 0x10) { /* 0x0 - 0x10 */
374 return size_field * 32 * MiB;
375 } else if ((size_field >= 0xF0) && (size_field >= 0xFE)) {
376 return ((uint64_t)size_field - 0xEF) * 4 * MiB;
377 } else {
378 switch (size_field) {
379 case 0x20:
380 return 1 * GiB;
381 case 0x30:
382 return 1536 * MiB;
383 case 0x40:
384 return 2 * (uint64_t)GiB;
385 default:
386 printk(BIOS_ERR, "%s : DSM - invalid length (0x%x)\n", __func__, size_field);
387 return 0x0;
388 }
389 }
390 }
391
392 uint64_t sa_get_gsm_size(void)
393 {
394 const uint32_t size_field = (pci_read_config32(__pci_0_00_0, GGC) & GSM_LENGTH_MASK)
395 >> GSM_LENGTH_MASK_LSB;
396 switch (size_field) {
397 case 0x0:
398 default:
399 return 0;
400 case 0x1:
401 return 2 * MiB;
402 case 0x2:
403 return 4 * MiB;
404 case 0x3:
405 return 8 * MiB;
406 }
407 }
408
409 uint64_t sa_get_dpr_size(void)
410 {
411 const uint32_t size_field = (pci_read_config32(__pci_0_00_0, DPR) & DPR_LENGTH_MASK)
412 >> DPR_LENGTH_MASK_LSB;
413 return (uint64_t)size_field * MiB;
414 }
415
416 struct device_operations systemagent_ops = {
417 .read_resources = systemagent_read_resources,
418 .set_resources = pci_dev_set_resources,
419 .enable_resources = pci_dev_enable_resources,
420 .init = sa_soc_systemagent_init,
421 .ops_pci = &pci_dev_ops_pci,
422 #if CONFIG(HAVE_ACPI_TABLES)
423 .write_acpi_tables = sa_write_acpi_tables,
424 #endif
425 };
426
427 static const unsigned short systemagent_ids[] = {
428 PCI_DID_INTEL_WCL_ID_1,
429 PCI_DID_INTEL_WCL_ID_2,
430 PCI_DID_INTEL_WCL_ID_3,
431 PCI_DID_INTEL_WCL_ID_4,
432 PCI_DID_INTEL_WCL_ID_5,
433 PCI_DID_INTEL_PTL_U_ID_1,
434 PCI_DID_INTEL_PTL_U_ID_2,
435 PCI_DID_INTEL_PTL_U_ID_3,
436 PCI_DID_INTEL_PTL_H_ID_1,
437 PCI_DID_INTEL_PTL_H_ID_2,
438 PCI_DID_INTEL_PTL_H_ID_3,
439 PCI_DID_INTEL_PTL_H_ID_4,
440 PCI_DID_INTEL_PTL_H_ID_5,
441 PCI_DID_INTEL_PTL_H_ID_6,
442 PCI_DID_INTEL_PTL_H_ID_7,
443 PCI_DID_INTEL_PTL_H_ID_8,
444 PCI_DID_INTEL_LNL_M_ID,
445 PCI_DID_INTEL_LNL_M_ID_1,
446 PCI_DID_INTEL_MTL_M_ID,
447 PCI_DID_INTEL_MTL_P_ID_1,
448 PCI_DID_INTEL_MTL_P_ID_2,
449 PCI_DID_INTEL_MTL_P_ID_3,
450 PCI_DID_INTEL_MTL_P_ID_4,
451 PCI_DID_INTEL_MTL_P_ID_5,
452 PCI_DID_INTEL_ARL_H_ID_1,
453 PCI_DID_INTEL_ARL_H_ID_2,
454 PCI_DID_INTEL_GLK_NB,
455 PCI_DID_INTEL_APL_NB,
456 PCI_DID_INTEL_CNL_ID_U,
457 PCI_DID_INTEL_CNL_ID_Y,
458 PCI_DID_INTEL_WHL_ID_W_2,
459 PCI_DID_INTEL_WHL_ID_W_4,
460 PCI_DID_INTEL_CFL_ID_U,
461 PCI_DID_INTEL_CFL_ID_U_2,
462 PCI_DID_INTEL_CFL_ID_H,
463 PCI_DID_INTEL_CFL_ID_H_4,
464 PCI_DID_INTEL_CFL_ID_H_8,
465 PCI_DID_INTEL_CFL_ID_S,
466 PCI_DID_INTEL_CFL_ID_S_DT_2,
467 PCI_DID_INTEL_CFL_ID_S_DT_4,
468 PCI_DID_INTEL_CFL_ID_S_DT_8,
469 PCI_DID_INTEL_CFL_ID_S_WS_4,
470 PCI_DID_INTEL_CFL_ID_S_WS_6,
471 PCI_DID_INTEL_CFL_ID_S_WS_8,
472 PCI_DID_INTEL_CFL_ID_S_S_4,
473 PCI_DID_INTEL_CFL_ID_S_S_6,
474 PCI_DID_INTEL_CFL_ID_S_S_8,
475 PCI_DID_INTEL_CML_ULT,
476 PCI_DID_INTEL_CML_ULT_2_2,
477 PCI_DID_INTEL_CML_ULT_6_2,
478 PCI_DID_INTEL_CML_ULX,
479 PCI_DID_INTEL_CML_S,
480 PCI_DID_INTEL_CML_S_G0G1_P0P1_6_2,
481 PCI_DID_INTEL_CML_S_P0P1_8_2,
482 PCI_DID_INTEL_CML_S_P0P1_10_2,
483 PCI_DID_INTEL_CML_S_G0G1_4,
484 PCI_DID_INTEL_CML_S_G0G1_2,
485 PCI_DID_INTEL_CML_H,
486 PCI_DID_INTEL_CML_H_4_2,
487 PCI_DID_INTEL_CML_H_8_2,
488 PCI_DID_INTEL_TGL_ID_U_2_2,
489 PCI_DID_INTEL_TGL_ID_U_4_2,
490 PCI_DID_INTEL_TGL_ID_Y_2_2,
491 PCI_DID_INTEL_TGL_ID_Y_4_2,
492 PCI_DID_INTEL_TGL_ID_H_6_1,
493 PCI_DID_INTEL_TGL_ID_H_8_1,
494 PCI_DID_INTEL_EHL_ID_0,
495 PCI_DID_INTEL_EHL_ID_1,
496 PCI_DID_INTEL_EHL_ID_1A,
497 PCI_DID_INTEL_EHL_ID_2,
498 PCI_DID_INTEL_EHL_ID_2_1,
499 PCI_DID_INTEL_EHL_ID_3,
500 PCI_DID_INTEL_EHL_ID_3A,
501 PCI_DID_INTEL_EHL_ID_4,
502 PCI_DID_INTEL_EHL_ID_5,
503 PCI_DID_INTEL_EHL_ID_6,
504 PCI_DID_INTEL_EHL_ID_7,
505 PCI_DID_INTEL_EHL_ID_8,
506 PCI_DID_INTEL_EHL_ID_9,
507 PCI_DID_INTEL_EHL_ID_10,
508 PCI_DID_INTEL_EHL_ID_11,
509 PCI_DID_INTEL_EHL_ID_12,
510 PCI_DID_INTEL_EHL_ID_13,
511 PCI_DID_INTEL_EHL_ID_14,
512 PCI_DID_INTEL_EHL_ID_15,
513 PCI_DID_INTEL_JSL_ID_1,
514 PCI_DID_INTEL_JSL_ID_2,
515 PCI_DID_INTEL_JSL_ID_3,
516 PCI_DID_INTEL_JSL_ID_4,
517 PCI_DID_INTEL_JSL_ID_5,
518 PCI_DID_INTEL_JSL_ID_6,
519 PCI_DID_INTEL_ADL_S_ID_1,
520 PCI_DID_INTEL_ADL_S_ID_2,
521 PCI_DID_INTEL_ADL_S_ID_3,
522 PCI_DID_INTEL_ADL_S_ID_4,
523 PCI_DID_INTEL_ADL_S_ID_5,
524 PCI_DID_INTEL_ADL_S_ID_6,
525 PCI_DID_INTEL_ADL_S_ID_7,
526 PCI_DID_INTEL_ADL_S_ID_8,
527 PCI_DID_INTEL_ADL_S_ID_9,
528 PCI_DID_INTEL_ADL_S_ID_10,
529 PCI_DID_INTEL_ADL_S_ID_11,
530 PCI_DID_INTEL_ADL_S_ID_12,
531 PCI_DID_INTEL_ADL_S_ID_13,
532 PCI_DID_INTEL_ADL_S_ID_14,
533 PCI_DID_INTEL_ADL_S_ID_15,
534 PCI_DID_INTEL_ADL_P_ID_1,
535 PCI_DID_INTEL_ADL_P_ID_3,
536 PCI_DID_INTEL_ADL_P_ID_4,
537 PCI_DID_INTEL_ADL_P_ID_5,
538 PCI_DID_INTEL_ADL_P_ID_6,
539 PCI_DID_INTEL_ADL_P_ID_7,
540 PCI_DID_INTEL_ADL_P_ID_8,
541 PCI_DID_INTEL_ADL_P_ID_9,
542 PCI_DID_INTEL_ADL_P_ID_10,
543 PCI_DID_INTEL_ADL_M_ID_1,
544 PCI_DID_INTEL_ADL_M_ID_2,
545 PCI_DID_INTEL_ADL_N_ID_1,
546 PCI_DID_INTEL_ADL_N_ID_2,
547 PCI_DID_INTEL_ADL_N_ID_3,
548 PCI_DID_INTEL_ADL_N_ID_4,
549 PCI_DID_INTEL_ADL_N_ID_5,
550 PCI_DID_INTEL_ADL_N_ID_6,
551 PCI_DID_INTEL_ADL_N_ID_7,
552 PCI_DID_INTEL_ADL_N_ID_8,
553 PCI_DID_INTEL_ADL_N_ID_9,
554 PCI_DID_INTEL_ASL_ID_1,
555 PCI_DID_INTEL_ASL_ID_2,
556 PCI_DID_INTEL_ASL_ID_3,
557 PCI_DID_INTEL_RPL_HX_ID_1,
558 PCI_DID_INTEL_RPL_HX_ID_2,
559 PCI_DID_INTEL_RPL_HX_ID_3,
560 PCI_DID_INTEL_RPL_HX_ID_4,
561 PCI_DID_INTEL_RPL_HX_ID_5,
562 PCI_DID_INTEL_RPL_HX_ID_6,
563 PCI_DID_INTEL_RPL_HX_ID_7,
564 PCI_DID_INTEL_RPL_HX_ID_8,
565 PCI_DID_INTEL_RPL_S_ID_1,
566 PCI_DID_INTEL_RPL_S_ID_2,
567 PCI_DID_INTEL_RPL_S_ID_3,
568 PCI_DID_INTEL_RPL_S_ID_4,
569 PCI_DID_INTEL_RPL_S_ID_5,
570 PCI_DID_INTEL_RPL_P_ID_1,
571 PCI_DID_INTEL_RPL_P_ID_2,
572 PCI_DID_INTEL_RPL_P_ID_3,
573 PCI_DID_INTEL_RPL_P_ID_4,
574 PCI_DID_INTEL_RPL_P_ID_5,
575 PCI_DID_INTEL_RPL_P_ID_6,
576 PCI_DID_INTEL_RPL_P_ID_7,
577 PCI_DID_INTEL_RPL_P_ID_8,
578 PCI_DID_INTEL_SNR_ID,
579 0
580 };
581
582 static const struct pci_driver systemagent_driver __pci_driver = {
583 .ops = &systemagent_ops,
584 .vendor = PCI_VID_INTEL,
585 .devices = systemagent_ids
586 };