blob: 04827a44df664b3a76c00f702e380225b79355c9 [file] [log] [blame]
Angel Pons182dbde2020-04-02 23:49:05 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +03002
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +03003#include <device/device.h>
4#include <device/pci.h>
5#include <device/pci_ids.h>
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +03006#include "hudson.h"
7
8static void pcie_init(struct device *dev)
9{
10}
11
12static struct pci_operations lops_pci = {
13 .set_subsystem = 0,
14};
15
16static struct device_operations pci_ops = {
17 .read_resources = pci_bus_read_resources,
18 .set_resources = pci_dev_set_resources,
19 .enable_resources = pci_bus_enable_resources,
20 .init = pcie_init,
21 .scan_bus = pci_scan_bridge,
22 .reset_bus = pci_bus_reset,
23 .ops_pci = &lops_pci,
24};
25
26static const struct pci_driver pciea_driver __pci_driver = {
27 .ops = &pci_ops,
Felix Singer43b7f412022-03-07 04:34:52 +010028 .vendor = PCI_VID_AMD,
29 .device = PCI_DID_AMD_SB900_PCIEA,
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030030};
31
32static const struct pci_driver pcieb_driver __pci_driver = {
33 .ops = &pci_ops,
Felix Singer43b7f412022-03-07 04:34:52 +010034 .vendor = PCI_VID_AMD,
35 .device = PCI_DID_AMD_SB900_PCIEB,
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030036};
37static const struct pci_driver pciec_driver __pci_driver = {
38 .ops = &pci_ops,
Felix Singer43b7f412022-03-07 04:34:52 +010039 .vendor = PCI_VID_AMD,
40 .device = PCI_DID_AMD_SB900_PCIEC,
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030041};
42static const struct pci_driver pcied_driver __pci_driver = {
43 .ops = &pci_ops,
Felix Singer43b7f412022-03-07 04:34:52 +010044 .vendor = PCI_VID_AMD,
45 .device = PCI_DID_AMD_SB900_PCIED,
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030046};