blob: 4c5731f9cae512b4f88ae58bc18de3e24e7e2e48 [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
Subrata Banik7609c652017-05-19 14:50:09 +05303#include <cbmem.h>
Subrata Banikb6df6b02020-01-03 15:29:02 +05304#include <console/console.h>
Furquan Shaikhcc35f722020-05-12 16:25:31 -07005#include <cpu/cpu.h>
Subrata Banik7609c652017-05-19 14:50:09 +05306#include <device/device.h>
7#include <device/pci.h>
8#include <device/pci_ids.h>
Werner Zehd12530c2018-12-14 13:09:12 +01009#include <intelblocks/acpi.h>
Subrata Banikb6df6b02020-01-03 15:29:02 +053010#include <intelblocks/cfg.h>
Subrata Banik01ae11b2017-03-04 23:32:41 +053011#include <intelblocks/systemagent.h>
Lijian Zhao357e5522019-04-11 13:07:00 -070012#include <smbios.h>
Subrata Banik7609c652017-05-19 14:50:09 +053013#include <soc/iomap.h>
Subrata Banik01ae11b2017-03-04 23:32:41 +053014#include <soc/pci_devs.h>
Subrata Banik7609c652017-05-19 14:50:09 +053015#include <soc/systemagent.h>
Patrick Rudolph5e007802020-07-27 15:37:43 +020016#include <types.h>
Subrata Banik7609c652017-05-19 14:50:09 +053017#include "systemagent_def.h"
Subrata Banik01ae11b2017-03-04 23:32:41 +053018
Subrata Banik7609c652017-05-19 14:50:09 +053019/* SoC override function */
Aaron Durbin64031672018-04-21 14:45:32 -060020__weak void soc_systemagent_init(struct device *dev)
Subrata Banik01ae11b2017-03-04 23:32:41 +053021{
Subrata Banik7609c652017-05-19 14:50:09 +053022 /* no-op */
Subrata Banik01ae11b2017-03-04 23:32:41 +053023}
24
Aaron Durbin64031672018-04-21 14:45:32 -060025__weak void soc_add_fixed_mmio_resources(struct device *dev,
Subrata Banik7609c652017-05-19 14:50:09 +053026 int *resource_cnt)
27{
28 /* no-op */
29}
30
Aaron Durbin64031672018-04-21 14:45:32 -060031__weak int soc_get_uncore_prmmr_base_and_mask(uint64_t *base,
Pratik Prajapati82cdfa72017-08-28 14:48:55 -070032 uint64_t *mask)
33{
34 /* return failure for this dummy API */
35 return -1;
36}
37
Furquan Shaikh0f007d82020-04-24 06:41:18 -070038__weak unsigned long sa_write_acpi_tables(const struct device *dev,
Werner Zehd12530c2018-12-14 13:09:12 +010039 unsigned long current,
40 struct acpi_rsdp *rsdp)
41{
42 return current;
43}
44
Patrick Rudolphbf72dcb2020-05-12 16:04:47 +020045__weak uint32_t soc_systemagent_max_chan_capacity_mib(u8 capid0_a_ddrsz)
46{
47 return 32768; /* 32 GiB per channel */
48}
49
Patrick Rudolph5e007802020-07-27 15:37:43 +020050static bool sa_supports_ecc(const uint32_t capid0_a)
51{
52 return !(capid0_a & CAPID_ECCDIS);
53}
54
55static size_t sa_slots_per_channel(const uint32_t capid0_a)
56{
57 return !(capid0_a & CAPID_DDPCD) + 1;
58}
59
60static size_t sa_number_of_channels(const uint32_t capid0_a)
61{
62 return !(capid0_a & CAPID_PDCD) + 1;
63}
64
65static void sa_soc_systemagent_init(struct device *dev)
66{
67 soc_systemagent_init(dev);
68
69 struct memory_info *m = cbmem_find(CBMEM_ID_MEMINFO);
70 if (m == NULL)
71 return;
72
73 const uint32_t capid0_a = pci_read_config32(dev, CAPID0_A);
74
75 m->ecc_capable = sa_supports_ecc(capid0_a);
76 m->max_capacity_mib = soc_systemagent_max_chan_capacity_mib(CAPID_DDRSZ(capid0_a)) *
77 sa_number_of_channels(capid0_a);
78 m->number_of_devices = sa_slots_per_channel(capid0_a) *
79 sa_number_of_channels(capid0_a);
80}
81
Subrata Banik7609c652017-05-19 14:50:09 +053082/*
83 * Add all known fixed MMIO ranges that hang off the host bridge/memory
84 * controller device.
85 */
86void sa_add_fixed_mmio_resources(struct device *dev, int *resource_cnt,
87 const struct sa_mmio_descriptor *sa_fixed_resources, size_t count)
88{
89 int i;
90 int index = *resource_cnt;
91
92 for (i = 0; i < count; i++) {
93 uintptr_t base;
94 size_t size;
95
96 size = sa_fixed_resources[i].size;
97 base = sa_fixed_resources[i].base;
98
99 mmio_resource(dev, index++, base / KiB, size / KiB);
100 }
101
102 *resource_cnt = index;
103}
104
105/*
106 * DRAM memory mapped register
107 *
108 * TOUUD: This 64 bit register defines the Top of Upper Usable DRAM
109 * TOLUD: This 32 bit register defines the Top of Low Usable DRAM
110 * BGSM: This register contains the base address of stolen DRAM memory for GTT
111 * TSEG: This register contains the base address of TSEG DRAM memory
112 */
113static const struct sa_mem_map_descriptor sa_memory_map[MAX_MAP_ENTRIES] = {
114 { TOUUD, true, "TOUUD" },
115 { TOLUD, false, "TOLUD" },
116 { BGSM, false, "BGSM" },
117 { TSEG, false, "TSEG" },
118};
119
120/* Read DRAM memory map register value through PCI configuration space */
Elyes HAOUAS4a131262018-09-16 17:35:48 +0200121static void sa_read_map_entry(struct device *dev,
Subrata Banik7609c652017-05-19 14:50:09 +0530122 const struct sa_mem_map_descriptor *entry, uint64_t *result)
123{
124 uint64_t value = 0;
125
126 if (entry->is_64_bit) {
127 value = pci_read_config32(dev, entry->reg + 4);
128 value <<= 32;
129 }
130
131 value |= pci_read_config32(dev, entry->reg);
132 /* All registers are on a 1MiB granularity. */
133 value = ALIGN_DOWN(value, 1 * MiB);
134
135 *result = value;
136}
137
Furquan Shaikh1085fee2020-05-07 16:04:16 -0700138/* Fill MMIO resource above 4GB into GNVS */
Kyösti Mälkki0c1dd9c2020-06-17 23:37:49 +0300139void sa_fill_gnvs(struct global_nvs *gnvs)
Furquan Shaikh1085fee2020-05-07 16:04:16 -0700140{
Furquan Shaikh1085fee2020-05-07 16:04:16 -0700141 struct device *sa_dev = pcidev_path_on_root(SA_DEVFN_ROOT);
142
Furquan Shaikh1085fee2020-05-07 16:04:16 -0700143 sa_read_map_entry(sa_dev, &sa_memory_map[SA_TOUUD_REG], &gnvs->a4gb);
Furquan Shaikhcc35f722020-05-12 16:25:31 -0700144 gnvs->a4gs = POWER_OF_2(cpu_phys_address_size()) - gnvs->a4gb;
145 printk(BIOS_DEBUG, "PCI space above 4GB MMIO is at 0x%llx, len = 0x%llx\n",
Furquan Shaikh1085fee2020-05-07 16:04:16 -0700146 gnvs->a4gb, gnvs->a4gs);
147}
148
Subrata Banik7609c652017-05-19 14:50:09 +0530149static void sa_get_mem_map(struct device *dev, uint64_t *values)
150{
151 int i;
152 for (i = 0; i < MAX_MAP_ENTRIES; i++)
153 sa_read_map_entry(dev, &sa_memory_map[i], &values[i]);
154}
155
156/*
Subrata Banik7609c652017-05-19 14:50:09 +0530157 * These are the host memory ranges that should be added:
158 * - 0 -> 0xa0000: cacheable
159 * - 0xc0000 -> top_of_ram : cacheable
Subrata Banik239272e2020-07-29 11:01:26 +0530160 * - top_of_ram -> TOLUD: not cacheable with standard MTRRs and reserved
Subrata Banik7609c652017-05-19 14:50:09 +0530161 * - 4GiB -> TOUUD: cacheable
162 *
163 * The default SMRAM space is reserved so that the range doesn't
164 * have to be saved during S3 Resume. Once marked reserved the OS
165 * cannot use the memory. This is a bit of an odd place to reserve
166 * the region, but the CPU devices don't have dev_ops->read_resources()
167 * called on them.
168 *
169 * The range 0xa0000 -> 0xc0000 does not have any resources
170 * associated with it to handle legacy VGA memory. If this range
171 * is not omitted the mtrr code will setup the area as cacheable
172 * causing VGA access to not work.
173 *
Subrata Banik239272e2020-07-29 11:01:26 +0530174 * Don't need to mark the entire top_of_ram till TOLUD range (used
175 * for stolen memory like GFX and ME, PTT, DPR, PRMRR, TSEG etc) as
176 * cacheable for OS usage as coreboot already done with mpinit w/ smm
177 * relocation early.
Subrata Banik7609c652017-05-19 14:50:09 +0530178 *
179 * It should be noted that cacheable entry types need to be added in
180 * order. The reason is that the current MTRR code assumes this and
181 * falls over itself if it isn't.
182 *
183 * The resource index starts low and should not meet or exceed
184 * PCI_BASE_ADDRESS_0.
185 */
186static void sa_add_dram_resources(struct device *dev, int *resource_count)
187{
188 uintptr_t base_k, touud_k;
Michael Niewöhner40f893e2019-10-21 18:58:04 +0200189 size_t size_k;
Subrata Banik7609c652017-05-19 14:50:09 +0530190 uint64_t sa_map_values[MAX_MAP_ENTRIES];
191 uintptr_t top_of_ram;
192 int index = *resource_count;
193
Subrata Banik7609c652017-05-19 14:50:09 +0530194 top_of_ram = (uintptr_t)cbmem_top();
195
196 /* 0 - > 0xa0000 */
197 base_k = 0;
198 size_k = (0xa0000 / KiB) - base_k;
199 ram_resource(dev, index++, base_k, size_k);
200
201 /* 0xc0000 -> top_of_ram */
202 base_k = 0xc0000 / KiB;
203 size_k = (top_of_ram / KiB) - base_k;
204 ram_resource(dev, index++, base_k, size_k);
205
206 sa_get_mem_map(dev, &sa_map_values[0]);
207
Subrata Banik239272e2020-07-29 11:01:26 +0530208 /* top_of_ram -> TOLUD */
Subrata Banik7609c652017-05-19 14:50:09 +0530209 base_k = top_of_ram;
Subrata Banik7609c652017-05-19 14:50:09 +0530210 size_k = sa_map_values[SA_TOLUD_REG] - base_k;
211 mmio_resource(dev, index++, base_k / KiB, size_k / KiB);
212
213 /* 4GiB -> TOUUD */
214 base_k = 4 * (GiB / KiB); /* 4GiB */
215 touud_k = sa_map_values[SA_TOUUD_REG] / KiB;
216 size_k = touud_k - base_k;
217 if (touud_k > base_k)
218 ram_resource(dev, index++, base_k, size_k);
219
220 /*
221 * Reserve everything between A segment and 1MB:
222 *
223 * 0xa0000 - 0xbffff: legacy VGA
224 * 0xc0000 - 0xfffff: RAM
225 */
226 mmio_resource(dev, index++, 0xa0000 / KiB, (0xc0000 - 0xa0000) / KiB);
227 reserved_ram_resource(dev, index++, 0xc0000 / KiB,
228 (1*MiB - 0xc0000) / KiB);
229
230 *resource_count = index;
231}
232
233static bool is_imr_enabled(uint32_t imr_base_reg)
234{
235 return !!(imr_base_reg & (1 << 31));
236}
237
Elyes HAOUAS4a131262018-09-16 17:35:48 +0200238static void imr_resource(struct device *dev, int idx, uint32_t base,
239 uint32_t mask)
Subrata Banik7609c652017-05-19 14:50:09 +0530240{
241 uint32_t base_k, size_k;
242 /* Bits 28:0 encode the base address bits 38:10, hence the KiB unit. */
243 base_k = (base & 0x0fffffff);
244 /* Bits 28:0 encode the AND mask used for comparison, in KiB. */
245 size_k = ((~mask & 0x0fffffff) + 1);
246 /*
247 * IMRs sit in lower DRAM. Mark them cacheable, otherwise we run
248 * out of MTRRs. Memory reserved by IMRs is not usable for host
249 * so mark it reserved.
250 */
251 reserved_ram_resource(dev, idx, base_k, size_k);
252}
253
254/*
255 * Add IMR ranges that hang off the host bridge/memory
Martin Rothf48acbd2020-07-24 12:24:27 -0600256 * controller device in case CONFIG(SA_ENABLE_IMR) is selected by SoC.
Subrata Banik7609c652017-05-19 14:50:09 +0530257 */
258static void sa_add_imr_resources(struct device *dev, int *resource_cnt)
259{
260 size_t i, imr_offset;
261 uint32_t base, mask;
262 int index = *resource_cnt;
263
264 for (i = 0; i < MCH_NUM_IMRS; i++) {
265 imr_offset = i * MCH_IMR_PITCH;
266 base = MCHBAR32(imr_offset + MCH_IMR0_BASE);
267 mask = MCHBAR32(imr_offset + MCH_IMR0_MASK);
268
269 if (is_imr_enabled(base))
270 imr_resource(dev, index++, base, mask);
271 }
272
273 *resource_cnt = index;
274}
275
276static void systemagent_read_resources(struct device *dev)
277{
278 int index = 0;
279
280 /* Read standard PCI resources. */
281 pci_dev_read_resources(dev);
282
283 /* Add all fixed MMIO resources. */
284 soc_add_fixed_mmio_resources(dev, &index);
285 /* Calculate and add DRAM resources. */
286 sa_add_dram_resources(dev, &index);
Julius Wernercd49cce2019-03-05 16:53:33 -0800287 if (CONFIG(SA_ENABLE_IMR))
Subrata Banik7609c652017-05-19 14:50:09 +0530288 /* Add the isolated memory ranges (IMRs). */
289 sa_add_imr_resources(dev, &index);
290}
291
292void enable_power_aware_intr(void)
293{
294 uint8_t pair;
295
296 /* Enable Power Aware Interrupt Routing */
297 pair = MCHBAR8(MCH_PAIR);
298 pair &= ~0x7; /* Clear 2:0 */
299 pair |= 0x4; /* Fixed Priority */
300 MCHBAR8(MCH_PAIR) = pair;
301}
302
303static struct device_operations systemagent_ops = {
Elyes HAOUAS1d191272018-11-27 12:23:48 +0100304 .read_resources = systemagent_read_resources,
305 .set_resources = pci_dev_set_resources,
306 .enable_resources = pci_dev_enable_resources,
Patrick Rudolph5e007802020-07-27 15:37:43 +0200307 .init = sa_soc_systemagent_init,
Subrata Banik6bbc91a2017-12-07 14:55:51 +0530308 .ops_pci = &pci_dev_ops_pci,
Julius Wernercd49cce2019-03-05 16:53:33 -0800309#if CONFIG(HAVE_ACPI_TABLES)
Werner Zehd12530c2018-12-14 13:09:12 +0100310 .write_acpi_tables = sa_write_acpi_tables,
311#endif
Subrata Banik7609c652017-05-19 14:50:09 +0530312};
313
314static const unsigned short systemagent_ids[] = {
315 PCI_DEVICE_ID_INTEL_GLK_NB,
316 PCI_DEVICE_ID_INTEL_APL_NB,
Lijian Zhaobbedef92017-07-29 16:38:38 -0700317 PCI_DEVICE_ID_INTEL_CNL_ID_U,
318 PCI_DEVICE_ID_INTEL_CNL_ID_Y,
Subrata Banik7609c652017-05-19 14:50:09 +0530319 PCI_DEVICE_ID_INTEL_SKL_ID_U,
320 PCI_DEVICE_ID_INTEL_SKL_ID_Y,
321 PCI_DEVICE_ID_INTEL_SKL_ID_ULX,
Maxim Polyakovdde937c2019-09-09 15:50:03 +0300322 PCI_DEVICE_ID_INTEL_SKL_ID_H_4,
Keno Fischer1044eba2019-06-07 01:55:56 -0400323 PCI_DEVICE_ID_INTEL_SKL_ID_H_2,
324 PCI_DEVICE_ID_INTEL_SKL_ID_S_2,
325 PCI_DEVICE_ID_INTEL_SKL_ID_S_4,
Lean Sheng Tan38c3ff72019-05-27 13:06:35 +0800326 PCI_DEVICE_ID_INTEL_WHL_ID_W_2,
327 PCI_DEVICE_ID_INTEL_WHL_ID_W_4,
Gaggery Tsaie415a4c2018-03-21 22:36:18 +0800328 PCI_DEVICE_ID_INTEL_KBL_ID_S,
Subrata Banik7609c652017-05-19 14:50:09 +0530329 PCI_DEVICE_ID_INTEL_SKL_ID_H_EM,
330 PCI_DEVICE_ID_INTEL_KBL_ID_U,
331 PCI_DEVICE_ID_INTEL_KBL_ID_Y,
332 PCI_DEVICE_ID_INTEL_KBL_ID_H,
333 PCI_DEVICE_ID_INTEL_KBL_U_R,
V Sowmyaacc2a482018-01-23 15:27:23 +0530334 PCI_DEVICE_ID_INTEL_KBL_ID_DT,
Christian Walter3d840382019-05-17 19:37:16 +0200335 PCI_DEVICE_ID_INTEL_KBL_ID_DT_2,
Maulikfc19ab52018-01-05 22:40:35 +0530336 PCI_DEVICE_ID_INTEL_CFL_ID_U,
Christian Walterccac15a2019-08-13 09:55:37 +0200337 PCI_DEVICE_ID_INTEL_CFL_ID_U_2,
praveen hodagatta praneshe26c4a42018-09-20 03:49:45 +0800338 PCI_DEVICE_ID_INTEL_CFL_ID_H,
Christian Walterccac15a2019-08-13 09:55:37 +0200339 PCI_DEVICE_ID_INTEL_CFL_ID_H_4,
Lean Sheng Tan38c3ff72019-05-27 13:06:35 +0800340 PCI_DEVICE_ID_INTEL_CFL_ID_H_8,
praveen hodagatta praneshe26c4a42018-09-20 03:49:45 +0800341 PCI_DEVICE_ID_INTEL_CFL_ID_S,
Christian Walterccac15a2019-08-13 09:55:37 +0200342 PCI_DEVICE_ID_INTEL_CFL_ID_S_DT_2,
Felix Singerd298ffe2019-07-28 13:27:11 +0200343 PCI_DEVICE_ID_INTEL_CFL_ID_S_DT_4,
Lean Sheng Tan38c3ff72019-05-27 13:06:35 +0800344 PCI_DEVICE_ID_INTEL_CFL_ID_S_DT_8,
Christian Walterccac15a2019-08-13 09:55:37 +0200345 PCI_DEVICE_ID_INTEL_CFL_ID_S_WS_4,
346 PCI_DEVICE_ID_INTEL_CFL_ID_S_WS_6,
Lean Sheng Tan38c3ff72019-05-27 13:06:35 +0800347 PCI_DEVICE_ID_INTEL_CFL_ID_S_WS_8,
Christian Walterccac15a2019-08-13 09:55:37 +0200348 PCI_DEVICE_ID_INTEL_CFL_ID_S_S_4,
349 PCI_DEVICE_ID_INTEL_CFL_ID_S_S_6,
350 PCI_DEVICE_ID_INTEL_CFL_ID_S_S_8,
Aamir Bohra9eac0392018-06-30 12:07:04 +0530351 PCI_DEVICE_ID_INTEL_ICL_ID_U,
352 PCI_DEVICE_ID_INTEL_ICL_ID_U_2_2,
353 PCI_DEVICE_ID_INTEL_ICL_ID_Y,
354 PCI_DEVICE_ID_INTEL_ICL_ID_Y_2,
Ronak Kanabarf606a2f2019-02-04 16:06:50 +0530355 PCI_DEVICE_ID_INTEL_CML_ULT,
Subrata Banikba8af582019-02-27 15:00:55 +0530356 PCI_DEVICE_ID_INTEL_CML_ULT_2_2,
Ronak Kanabarf606a2f2019-02-04 16:06:50 +0530357 PCI_DEVICE_ID_INTEL_CML_ULT_6_2,
358 PCI_DEVICE_ID_INTEL_CML_ULX,
359 PCI_DEVICE_ID_INTEL_CML_S,
Gaggery Tsaifdcc9ab2019-11-04 20:49:10 -0800360 PCI_DEVICE_ID_INTEL_CML_S_G0G1_P0P1_6_2,
361 PCI_DEVICE_ID_INTEL_CML_S_P0P1_8_2,
362 PCI_DEVICE_ID_INTEL_CML_S_P0P1_10_2,
Gaggery Tsai39e1f442020-01-08 15:22:13 -0800363 PCI_DEVICE_ID_INTEL_CML_S_G0G1_4,
364 PCI_DEVICE_ID_INTEL_CML_S_G0G1_2,
Ronak Kanabarf606a2f2019-02-04 16:06:50 +0530365 PCI_DEVICE_ID_INTEL_CML_H,
Jamie Chen6bb9aaf2019-12-20 19:30:33 +0800366 PCI_DEVICE_ID_INTEL_CML_H_4_2,
Ronak Kanabarf606a2f2019-02-04 16:06:50 +0530367 PCI_DEVICE_ID_INTEL_CML_H_8_2,
Srinidhi N Kaushik1d812e82020-02-07 15:51:09 -0800368 PCI_DEVICE_ID_INTEL_TGL_ID_U_2_2,
Derek Huang60f178d2020-07-03 15:33:13 +0800369 PCI_DEVICE_ID_INTEL_TGL_ID_U_4_2,
370 PCI_DEVICE_ID_INTEL_TGL_ID_Y_2_2,
371 PCI_DEVICE_ID_INTEL_TGL_ID_Y_4_2,
Tan, Lean Sheng26136092020-01-20 19:13:56 -0800372 PCI_DEVICE_ID_INTEL_JSL_EHL,
373 PCI_DEVICE_ID_INTEL_EHL_ID_1,
Tan, Lean Sheng21910f002020-04-29 03:03:27 -0700374 PCI_DEVICE_ID_INTEL_EHL_ID_2,
375 PCI_DEVICE_ID_INTEL_EHL_ID_3,
376 PCI_DEVICE_ID_INTEL_EHL_ID_4,
377 PCI_DEVICE_ID_INTEL_EHL_ID_5,
378 PCI_DEVICE_ID_INTEL_EHL_ID_6,
379 PCI_DEVICE_ID_INTEL_EHL_ID_7,
380 PCI_DEVICE_ID_INTEL_EHL_ID_8,
381 PCI_DEVICE_ID_INTEL_EHL_ID_9,
382 PCI_DEVICE_ID_INTEL_EHL_ID_10,
383 PCI_DEVICE_ID_INTEL_EHL_ID_11,
384 PCI_DEVICE_ID_INTEL_EHL_ID_12,
Meera Ravindranath3f4af0d2020-02-12 16:01:22 +0530385 PCI_DEVICE_ID_INTEL_JSL_ID_1,
Maulik V Vaghela8745a272020-04-22 12:13:40 +0530386 PCI_DEVICE_ID_INTEL_JSL_ID_2,
387 PCI_DEVICE_ID_INTEL_JSL_ID_3,
388 PCI_DEVICE_ID_INTEL_JSL_ID_4,
Krishna Prasad Bhat20f580b2020-09-17 19:42:39 +0530389 PCI_DEVICE_ID_INTEL_JSL_ID_5,
Subrata Banikf672f7f2020-08-03 14:29:25 +0530390 PCI_DEVICE_ID_INTEL_ADL_S_ID_1,
391 PCI_DEVICE_ID_INTEL_ADL_S_ID_2,
392 PCI_DEVICE_ID_INTEL_ADL_S_ID_3,
393 PCI_DEVICE_ID_INTEL_ADL_S_ID_4,
394 PCI_DEVICE_ID_INTEL_ADL_S_ID_5,
395 PCI_DEVICE_ID_INTEL_ADL_S_ID_6,
396 PCI_DEVICE_ID_INTEL_ADL_S_ID_7,
397 PCI_DEVICE_ID_INTEL_ADL_S_ID_8,
398 PCI_DEVICE_ID_INTEL_ADL_S_ID_9,
399 PCI_DEVICE_ID_INTEL_ADL_S_ID_10,
400 PCI_DEVICE_ID_INTEL_ADL_S_ID_11,
401 PCI_DEVICE_ID_INTEL_ADL_S_ID_12,
402 PCI_DEVICE_ID_INTEL_ADL_S_ID_13,
403 PCI_DEVICE_ID_INTEL_ADL_S_ID_14,
404 PCI_DEVICE_ID_INTEL_ADL_S_ID_15,
405 PCI_DEVICE_ID_INTEL_ADL_P_ID_1,
406 PCI_DEVICE_ID_INTEL_ADL_P_ID_2,
407 PCI_DEVICE_ID_INTEL_ADL_P_ID_3,
408 PCI_DEVICE_ID_INTEL_ADL_P_ID_4,
409 PCI_DEVICE_ID_INTEL_ADL_P_ID_5,
410 PCI_DEVICE_ID_INTEL_ADL_P_ID_6,
411 PCI_DEVICE_ID_INTEL_ADL_P_ID_7,
412 PCI_DEVICE_ID_INTEL_ADL_P_ID_8,
413 PCI_DEVICE_ID_INTEL_ADL_P_ID_9,
Subrata Banik7609c652017-05-19 14:50:09 +0530414 0
415};
416
417static const struct pci_driver systemagent_driver __pci_driver = {
418 .ops = &systemagent_ops,
419 .vendor = PCI_VENDOR_ID_INTEL,
420 .devices = systemagent_ids
421};