blob: a0afc20f5bad9c857e63950d773a2d207c40689a [file] [log] [blame]
Tim Wawrzynczak950305d2020-10-07 13:47:33 -06001/* 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
7static 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
13static 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
21static 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};