X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=coreboot.git;a=blobdiff_plain;f=src%2Fdevices%2Fpci_device.c;h=cc15f3bffeb84687138ff3bb199d7f91499dcdb7;hp=f54e2620bf78c6e6564cf14523bb4a54d587881b;hb=5419d8b6bc32273faa65caf03e6771c7f4fc57fe;hpb=0a2ce8cfc1ff606c60ad8431afd662b1b5beb0e5 diff --git a/src/devices/pci_device.c b/src/devices/pci_device.c index f54e2620b..cc15f3bff 100644 --- a/src/devices/pci_device.c +++ b/src/devices/pci_device.c @@ -949,6 +949,7 @@ device_t pci_probe_dev(device_t dev, struct bus *bus, unsigned devfn) } dev = alloc_dev(bus, &dummy.path); } else { + printk(BIOS_INFO, "%s: ohai, non-dummy stuff!\n", __func__); /* * Enable/disable the device. Once we have found the device- * specific operations this operations we will disable the @@ -961,11 +962,16 @@ device_t pci_probe_dev(device_t dev, struct bus *bus, unsigned devfn) * it may be absent and enable_dev() must cope. */ /* Run the magic enable sequence for the device. */ - if (dev->chip_ops && dev->chip_ops->enable_dev) + printk(BIOS_INFO, "%s: before enable! 0x%08x\n", __func__, (unsigned int) dev->chip_ops->enable_dev); + if (dev->chip_ops && dev->chip_ops->enable_dev) { + printk(BIOS_INFO, "%s: we're going to call enable stuff?\n", __func__); dev->chip_ops->enable_dev(dev); + } + printk(BIOS_INFO, "%s: before read!\n", __func__); /* Now read the vendor and device ID. */ id = pci_read_config32(dev, PCI_VENDOR_ID); + printk(BIOS_INFO, "%s: after read: 0x%08x\n", __func__, id); /* * If the device does not have a PCI ID disable it. Possibly @@ -981,6 +987,7 @@ device_t pci_probe_dev(device_t dev, struct bus *bus, unsigned devfn) "found, disabling it.\n", dev_path(dev)); dev->enabled = 0; } + printk(BIOS_INFO, "%s: non-static stuff!\n", __func__); return dev; } } @@ -1055,7 +1062,7 @@ unsigned int pci_scan_bus(struct bus *bus, unsigned min_devfn, "devfn %x\n", min_devfn, max_devfn); printk(BIOS_ERR, "PCI: pci_scan_bus upper limit too big. " "Using 0xff.\n"); - max_devfn=0x08; + max_devfn=0xff; } old_devices = bus->children; @@ -1088,7 +1095,9 @@ unsigned int pci_scan_bus(struct bus *bus, unsigned min_devfn, if ((PCI_FUNC(devfn) == 0x00) && (!dev || (dev->enabled && ((dev->hdr_type & 0x80) != 0x80)))) { devfn += 0x07; + printk(BIOS_INFO, "%s: ohai, +7\n", __func__); } + printk(BIOS_INFO, "\n"); } post_code(0x25);