blob: a1c8a9aa6e7ccfbe921089be86881dbd9c375aca [file] [log] [blame]
Felix Held0ffebac2021-02-05 22:26:00 +01001/* 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 struct device_operations internal_pcie_gpp_ops = {
8 .read_resources = pci_bus_read_resources,
9 .set_resources = pci_dev_set_resources,
10 .enable_resources = pci_bus_enable_resources,
11 .scan_bus = pci_scan_bridge,
12 .reset_bus = pci_bus_reset,
13};
14
15static const unsigned short pci_device_ids[] = {
16 PCI_DEVICE_ID_AMD_FAM17H_MODEL60H_PCIE_GPP_BUSABC,
17 0
18};
19
20static const struct pci_driver internal_pcie_gpp_driver __pci_driver = {
21 .ops = &internal_pcie_gpp_ops,
22 .vendor = PCI_VENDOR_ID_AMD,
23 .devices = pci_device_ids,
24};