search for: config_start

Displaying 4 results from an estimated 4 matches for "config_start".

Did you mean: __config_start
2009 May 11
0
[PATCH 1/2] qemu-kvm: add MSI-X support
...pci.c +++ b/hw/pci.c @@ -323,6 +323,7 @@ PCIDevice *pci_register_device(PCIBus *bus, const char *name, pci_dev->irq_index = pci_irq_index++; bus->devices[devfn] = pci_dev; pci_dev->irq = qemu_allocate_irqs(pci_set_irq, pci_dev, 4); + pci_dev->cap.start = PCI_CAPABILITY_CONFIG_START_ADDR; return pci_dev; } @@ -1004,8 +1005,30 @@ PCIBus *pci_bridge_init(PCIBus *bus, int devfn, uint16_t vid, uint16_t did, return s->bus; } +void pci_add_capability(PCIDevice *pdev, uint8_t cap_id, uint8_t size) +{ + uint8_t offset = pdev->cap.start + pdev->cap.length; +...
2009 May 11
0
[PATCH 1/2] qemu-kvm: add MSI-X support
...pci.c +++ b/hw/pci.c @@ -323,6 +323,7 @@ PCIDevice *pci_register_device(PCIBus *bus, const char *name, pci_dev->irq_index = pci_irq_index++; bus->devices[devfn] = pci_dev; pci_dev->irq = qemu_allocate_irqs(pci_set_irq, pci_dev, 4); + pci_dev->cap.start = PCI_CAPABILITY_CONFIG_START_ADDR; return pci_dev; } @@ -1004,8 +1005,30 @@ PCIBus *pci_bridge_init(PCIBus *bus, int devfn, uint16_t vid, uint16_t did, return s->bus; } +void pci_add_capability(PCIDevice *pdev, uint8_t cap_id, uint8_t size) +{ + uint8_t offset = pdev->cap.start + pdev->cap.length; +...
2009 May 20
0
[PATCHv2-RFC 1/2] qemu-kvm: add MSI-X support
...return 0; } @@ -324,6 +334,7 @@ PCIDevice *pci_register_device(PCIBus *bus, const char *name, pci_dev->irq_index = pci_irq_index++; bus->devices[devfn] = pci_dev; pci_dev->irq = qemu_allocate_irqs(pci_set_irq, pci_dev, 4); + pci_dev->cap.start = PCI_CAPABILITY_CONFIG_START_ADDR; return pci_dev; } @@ -397,6 +408,27 @@ void pci_register_io_region(PCIDevice *pci_dev, int region_num, } *(uint32_t *)(pci_dev->config + addr) = cpu_to_le32(type); } +static void pci_unmap_region(PCIDevice *d, PCIIORegion *r) +{ + if (r->addr == -1) + return...
2009 May 20
0
[PATCHv2-RFC 1/2] qemu-kvm: add MSI-X support
...return 0; } @@ -324,6 +334,7 @@ PCIDevice *pci_register_device(PCIBus *bus, const char *name, pci_dev->irq_index = pci_irq_index++; bus->devices[devfn] = pci_dev; pci_dev->irq = qemu_allocate_irqs(pci_set_irq, pci_dev, 4); + pci_dev->cap.start = PCI_CAPABILITY_CONFIG_START_ADDR; return pci_dev; } @@ -397,6 +408,27 @@ void pci_register_io_region(PCIDevice *pci_dev, int region_num, } *(uint32_t *)(pci_dev->config + addr) = cpu_to_le32(type); } +static void pci_unmap_region(PCIDevice *d, PCIIORegion *r) +{ + if (r->addr == -1) + return...