2 * Copyright 2004 Tyan Computer
6 #include <console/console.h>
7 #include <device/device.h>
8 #include <device/pci.h>
9 #include <device/pci_ids.h>
10 #include <device/pci_ops.h>
13 static void lpci_set_subsystem(device_t dev, unsigned vendor, unsigned device)
15 pci_write_config32(dev, 0x40,
16 ((device & 0xffff) << 16) | (vendor & 0xffff));
19 static struct pci_operations lops_pci = {
20 .set_subsystem = lpci_set_subsystem,
23 static struct device_operations ht_ops = {
24 .read_resources = pci_dev_read_resources,
25 .set_resources = pci_dev_set_resources,
26 .enable_resources = pci_dev_enable_resources,
32 static const struct pci_driver ht_driver __pci_driver = {
34 .vendor = PCI_VENDOR_ID_NVIDIA,
35 .device = PCI_DEVICE_ID_NVIDIA_CK804_HT,