blob: ec686fc2cfdf6c043431aff1ff0be9a4c6d9fb83 [file] [log] [blame]
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +03001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2010 Advanced Micro Devices, Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20#include <console/console.h>
21#include <device/device.h>
22#include <device/pci.h>
23#include <device/pci_ids.h>
24#include <device/pci_ops.h>
25#include "hudson.h"
26
27static void pcie_init(struct device *dev)
28{
29}
30
31static struct pci_operations lops_pci = {
32 .set_subsystem = 0,
33};
34
35static struct device_operations pci_ops = {
36 .read_resources = pci_bus_read_resources,
37 .set_resources = pci_dev_set_resources,
38 .enable_resources = pci_bus_enable_resources,
39 .init = pcie_init,
40 .scan_bus = pci_scan_bridge,
41 .reset_bus = pci_bus_reset,
42 .ops_pci = &lops_pci,
43};
44
45static const struct pci_driver pciea_driver __pci_driver = {
46 .ops = &pci_ops,
47 .vendor = PCI_VENDOR_ID_AMD,
48 .device = PCI_DEVICE_ID_ATI_SB900_PCIEA,
49};
50
51static const struct pci_driver pcieb_driver __pci_driver = {
52 .ops = &pci_ops,
53 .vendor = PCI_VENDOR_ID_AMD,
54 .device = PCI_DEVICE_ID_ATI_SB900_PCIEB,
55};
56static const struct pci_driver pciec_driver __pci_driver = {
57 .ops = &pci_ops,
58 .vendor = PCI_VENDOR_ID_AMD,
59 .device = PCI_DEVICE_ID_ATI_SB900_PCIEC,
60};
61static const struct pci_driver pcied_driver __pci_driver = {
62 .ops = &pci_ops,
63 .vendor = PCI_VENDOR_ID_AMD,
64 .device = PCI_DEVICE_ID_ATI_SB900_PCIED,
65};