This, ladies and gentlement, is commit #4000.
[coreboot.git] / src / northbridge / intel / i855pm / northbridge.c
index 3021397085184b8716bed71ce9addba03acd94ee..60648542aebe203e58fa8b2c4586fd5519a78d8d 100644 (file)
@@ -3,6 +3,8 @@
 #include <stdint.h>
 #include <device/device.h>
 #include <device/pci.h>
+#include <device/pci_ids.h>
+#include <cpu/cpu.h>
 #include <stdlib.h>
 #include <string.h>
 #include <bitops.h>
@@ -13,7 +15,6 @@
 static void pci_domain_read_resources(device_t dev)
 {
         struct resource *resource;
-        unsigned reg;
 
         /* Initialize the system wide io space constraints */
         resource = new_resource(dev, IOINDEX_SUBTRACTIVE(0, 0));
@@ -149,14 +150,14 @@ static void enable_dev(struct device *dev)
         /* Set the operations if it is a special bus type */
         if (dev->path.type == DEVICE_PATH_PCI_DOMAIN) {
                 dev->ops = &pci_domain_ops;
-               pci_set_method();
+               pci_set_method(dev);
         }
         else if (dev->path.type == DEVICE_PATH_APIC_CLUSTER) {
                 dev->ops = &cpu_bus_ops;
         }
 }
 
-struct chip_operations northbridge_intel_i855pm_control = {
-        CHIP_NAME("intel i855pm Northbridge")
+struct chip_operations northbridge_intel_i855pm_ops = {
+        CHIP_NAME("Intel 855PM Northbridge")
        .enable_dev = enable_dev,
 };