search for: limit_up32

Displaying 1 result from an estimated 1 matches for "limit_up32".

2008 Oct 08
8
[PATCH] dom0 linux: Reassign memory resources to device for pci passthrough.
...++ b/drivers/pci/setup-res.c Wed Oct 08 12:12:27 2008 +0900 @@ -117,19 +117,96 @@ } EXPORT_SYMBOL_GPL(pci_claim_resource); +void +pci_update_bridge(struct pci_dev *dev, int resno) +{ + struct resource *res = &dev->resource[resno]; + struct pci_bus_region region; + u32 l, dw, base_up32, limit_up32; + + if (dev->hdr_type != PCI_HEADER_TYPE_BRIDGE || + (dev->class >> 8) != PCI_CLASS_BRIDGE_PCI) { + return; + } + + if (!res->flags) + return; + + switch (resno) { + case 8 : /* MMIO Base/Limit */ + pcibios_resource_to_bus(dev, &region, res); + if (res->flags & IO...