blob: ccd687abea95734e2acbb3ed01b918f9b5ff1a2c [file] [log] [blame]
Angel Pons182dbde2020-04-02 23:49:05 +02001/* SPDX-License-Identifier: GPL-2.0-only */
2/* This file is part of the coreboot project. */
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +03003
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +03004#include <device/device.h>
5#include <device/pci.h>
6#include <device/pci_ids.h>
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +03007#include "hudson.h"
8
9static void pcie_init(struct device *dev)
10{
11}
12
13static struct pci_operations lops_pci = {
14 .set_subsystem = 0,
15};
16
17static struct device_operations pci_ops = {
18 .read_resources = pci_bus_read_resources,
19 .set_resources = pci_dev_set_resources,
20 .enable_resources = pci_bus_enable_resources,
21 .init = pcie_init,
22 .scan_bus = pci_scan_bridge,
23 .reset_bus = pci_bus_reset,
24 .ops_pci = &lops_pci,
25};
26
27static const struct pci_driver pciea_driver __pci_driver = {
28 .ops = &pci_ops,
29 .vendor = PCI_VENDOR_ID_AMD,
Kyösti Mälkki9d9a5522016-11-19 22:14:59 +020030 .device = PCI_DEVICE_ID_AMD_SB900_PCIEA,
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030031};
32
33static const struct pci_driver pcieb_driver __pci_driver = {
34 .ops = &pci_ops,
35 .vendor = PCI_VENDOR_ID_AMD,
Kyösti Mälkki9d9a5522016-11-19 22:14:59 +020036 .device = PCI_DEVICE_ID_AMD_SB900_PCIEB,
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030037};
38static const struct pci_driver pciec_driver __pci_driver = {
39 .ops = &pci_ops,
40 .vendor = PCI_VENDOR_ID_AMD,
Kyösti Mälkki9d9a5522016-11-19 22:14:59 +020041 .device = PCI_DEVICE_ID_AMD_SB900_PCIEC,
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030042};
43static const struct pci_driver pcied_driver __pci_driver = {
44 .ops = &pci_ops,
45 .vendor = PCI_VENDOR_ID_AMD,
Kyösti Mälkki9d9a5522016-11-19 22:14:59 +020046 .device = PCI_DEVICE_ID_AMD_SB900_PCIED,
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030047};