Tim Wawrzynczak | c019991 | 2020-06-25 10:01:46 -0600 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | |
| 3 | #include <device/pci.h> |
| 4 | #include <device/pci_ids.h> |
| 5 | |
| 6 | struct 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 | |
| 14 | static const uint16_t pci_device_ids[] = { |
Felix Singer | 43b7f41 | 2022-03-07 04:34:52 +0100 | [diff] [blame^] | 15 | PCI_DID_INTEL_TGL_IPU, |
| 16 | PCI_DID_INTEL_TGL_H_IPU, |
| 17 | PCI_DID_INTEL_JSL_IPU, |
| 18 | PCI_DID_INTEL_ADL_IPU, |
| 19 | PCI_DID_INTEL_ADL_N_IPU, |
Subrata Banik | 6273717 | 2020-09-07 16:15:19 +0530 | [diff] [blame] | 20 | 0 |
Tim Wawrzynczak | c019991 | 2020-06-25 10:01:46 -0600 | [diff] [blame] | 21 | }; |
| 22 | |
| 23 | static const struct pci_driver intel_ipu __pci_driver = { |
| 24 | .ops = &ipu_pci_ops, |
Felix Singer | 43b7f41 | 2022-03-07 04:34:52 +0100 | [diff] [blame^] | 25 | .vendor = PCI_VID_INTEL, |
Tim Wawrzynczak | c019991 | 2020-06-25 10:01:46 -0600 | [diff] [blame] | 26 | .devices = pci_device_ids, |
| 27 | }; |