blob: 2d60e8f9c49ab3527ad1e006990c502b64e0490b [file] [log] [blame]
Yinghai Luc65bd562007-02-01 00:10:05 +00001/*
Stefan Reinauer7e61e452008-01-18 10:35:56 +00002 * This file is part of the coreboot project.
Yinghai Luc65bd562007-02-01 00:10:05 +00003 *
4 * Copyright (C) 2004 Tyan Computer
5 * Written by Yinghai Lu <yhlu@tyan.com> for Tyan Computer.
6 * Copyright (C) 2006,2007 AMD
7 * Written by Yinghai Lu <yinghai.lu@amd.com> for AMD.
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
Yinghai Luc65bd562007-02-01 00:10:05 +000018 */
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>
Vladimir Serbinenko6985d4e2014-09-21 14:31:19 +020025#include <arch/acpi.h>
Yinghai Luc65bd562007-02-01 00:10:05 +000026#include "mcp55.h"
27
Vladimir Serbinenkof21271e2014-10-16 18:00:27 +020028#if IS_ENABLED(CONFIG_HAVE_ACPI_TABLES)
Vladimir Serbinenko6985d4e2014-09-21 14:31:19 +020029unsigned long acpi_fill_mcfg(unsigned long current)
30{
31 /* Not implemented */
32 return current;
33}
34#endif
35
Uwe Hermannc7f0c8f2011-01-04 19:51:33 +000036static struct device_operations ht_ops = {
37 .read_resources = pci_dev_read_resources,
38 .set_resources = pci_dev_set_resources,
39 .enable_resources = pci_dev_enable_resources,
40 .init = 0,
41 .scan_bus = 0,
42 .ops_pci = &mcp55_pci_ops,
Yinghai Luc65bd562007-02-01 00:10:05 +000043};
44
Stefan Reinauerf1cf1f72007-10-24 09:08:58 +000045static const struct pci_driver ht_driver __pci_driver = {
Yinghai Luc65bd562007-02-01 00:10:05 +000046 .ops = &ht_ops,
47 .vendor = PCI_VENDOR_ID_NVIDIA,
48 .device = PCI_DEVICE_ID_NVIDIA_MCP55_HT,
49};