Tim Wawrzynczak | 950305d | 2020-10-07 13:47:33 -0600 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | |
| 3 | #include <device/device.h> |
| 4 | #include <device/pci.h> |
| 5 | #include <device/pci_ids.h> |
| 6 | |
| 7 | static const unsigned short pci_device_ids[] = { |
| 8 | PCI_DEVICE_ID_INTEL_TGL_TBT_DMA0, |
| 9 | PCI_DEVICE_ID_INTEL_TGL_TBT_DMA1, |
| 10 | 0 |
| 11 | }; |
| 12 | |
| 13 | static struct device_operations usb4_dev_ops = { |
| 14 | .read_resources = pci_dev_read_resources, |
| 15 | .set_resources = pci_dev_set_resources, |
| 16 | .enable_resources = pci_dev_enable_resources, |
| 17 | .scan_bus = scan_generic_bus, |
| 18 | .ops_pci = &pci_dev_ops_pci, |
| 19 | }; |
| 20 | |
| 21 | static const struct pci_driver usb4_driver __pci_driver = { |
| 22 | .ops = &usb4_dev_ops, |
| 23 | .vendor = PCI_VENDOR_ID_INTEL, |
| 24 | .devices = pci_device_ids, |
| 25 | }; |