blob: a9d2bc093bedbc281f64b3270a3902b33736798e [file] [log] [blame]
Tim Wawrzynczakc0199912020-06-25 10:01:46 -06001/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3#include <device/pci.h>
4#include <device/pci_ids.h>
5
6struct device_operations ipu_pci_ops = {
7 .read_resources = pci_bus_read_resources,
8 .set_resources = pci_dev_set_resources,
9 .enable_resources = pci_bus_enable_resources,
10 .scan_bus = scan_generic_bus,
11 .ops_pci = &pci_dev_ops_pci,
12};
13
14static const uint16_t pci_device_ids[] = {
15 PCI_DEVICE_ID_INTEL_TGL_IPU,
Jeremy Soller191a8d72021-08-10 14:06:51 -060016 PCI_DEVICE_ID_INTEL_TGL_H_IPU,
Tim Wawrzynczakc0199912020-06-25 10:01:46 -060017 PCI_DEVICE_ID_INTEL_JSL_IPU,
Subrata Banik62737172020-09-07 16:15:19 +053018 PCI_DEVICE_ID_INTEL_ADL_IPU,
Usha P8f2df282022-01-17 20:06:38 +053019 PCI_DEVICE_ID_INTEL_ADL_N_IPU,
Subrata Banik62737172020-09-07 16:15:19 +053020 0
Tim Wawrzynczakc0199912020-06-25 10:01:46 -060021};
22
23static const struct pci_driver intel_ipu __pci_driver = {
24 .ops = &ipu_pci_ops,
25 .vendor = PCI_VENDOR_ID_INTEL,
26 .devices = pci_device_ids,
27};