1 #include <console/console.h>
2 #include <device/device.h>
3 #include <device/pci.h>
4 #include <device/pci_ids.h>
5 #include <device/pci_ops.h>
6 #include <pc80/mc146818rtc.h>
9 static void p64h2_pcix_init(device_t dev)
14 /* The purpose of changes to HCCR, ACNF, and MTT is to speed
15 * up the PCI bus for cards having high speed transfers.
18 pci_write_config32(dev, HCCR, dword);
20 pci_write_config32(dev, ACNF, dword);
22 pci_write_config8(dev, MTT, byte);
25 static struct device_operations pcix_ops = {
26 .read_resources = pci_bus_read_resources,
27 .set_resources = pci_dev_set_resources,
28 .enable_resources = pci_bus_enable_resources,
29 .init = p64h2_pcix_init,
30 .scan_bus = pci_scan_bridge,
31 .reset_bus = pci_bus_reset,
34 static const struct pci_driver pcix_driver __pci_driver = {
36 .vendor = PCI_VENDOR_ID_INTEL,
37 .device = PCI_DEVICE_ID_INTEL_82870_1F0,