search for: map_func

Displaying 12 results from an estimated 12 matches for "map_func".

Did you mean: mapi_func
2009 Jun 18
1
[PATCHv5 08/13] qemu: add support for resizing regions
...IO_MEM_UNASSIGNED); - qemu_unregister_coalesced_mmio(r->addr, r->size); - } - } + pci_unmap_region(d, r); r->addr = new_addr; if (r->addr != -1) { r->map_func(d, i, r->addr, r->size, r->type); diff --git a/hw/pci.h b/hw/pci.h index 25865d7..67e4b4d 100644 --- a/hw/pci.h +++ b/hw/pci.h @@ -217,6 +217,8 @@ void pci_register_bar(PCIDevice *pci_dev, int region_num, uint32_t size, int type, PC...
2009 Jun 18
1
[PATCHv5 08/13] qemu: add support for resizing regions
...IO_MEM_UNASSIGNED); - qemu_unregister_coalesced_mmio(r->addr, r->size); - } - } + pci_unmap_region(d, r); r->addr = new_addr; if (r->addr != -1) { r->map_func(d, i, r->addr, r->size, r->type); diff --git a/hw/pci.h b/hw/pci.h index 25865d7..67e4b4d 100644 --- a/hw/pci.h +++ b/hw/pci.h @@ -217,6 +217,8 @@ void pci_register_bar(PCIDevice *pci_dev, int region_num, uint32_t size, int type, PC...
2009 Jun 05
1
[PATCHv3 03/13] qemu: add routines to manage PCI capabilities
...used[PCI_CONFIG_SPACE_SIZE]; + /* the following fields are read only */ PCIBus *bus; int devfn; @@ -194,6 +201,15 @@ void pci_register_io_region(PCIDevice *pci_dev, int region_num, uint32_t size, int type, PCIMapIORegionFunc *map_func); +int pci_add_capability(PCIDevice *pci_dev, uint8_t cap_id, uint8_t cap_size); + +void pci_del_capability(PCIDevice *pci_dev, uint8_t cap_id, uint8_t cap_size); + +void pci_reserve_capability(PCIDevice *pci_dev, uint8_t offset, uint8_t size); + +uint8_t pci_find_capability(PCIDevice *pci_dev, u...
2009 Jun 05
1
[PATCHv3 03/13] qemu: add routines to manage PCI capabilities
...used[PCI_CONFIG_SPACE_SIZE]; + /* the following fields are read only */ PCIBus *bus; int devfn; @@ -194,6 +201,15 @@ void pci_register_io_region(PCIDevice *pci_dev, int region_num, uint32_t size, int type, PCIMapIORegionFunc *map_func); +int pci_add_capability(PCIDevice *pci_dev, uint8_t cap_id, uint8_t cap_size); + +void pci_del_capability(PCIDevice *pci_dev, uint8_t cap_id, uint8_t cap_size); + +void pci_reserve_capability(PCIDevice *pci_dev, uint8_t offset, uint8_t size); + +uint8_t pci_find_capability(PCIDevice *pci_dev, u...
2009 May 25
2
[PATCH 03/11] qemu: add routines to manage PCI capabilities
...used[PCI_CONFIG_SPACE_SIZE]; + /* the following fields are read only */ PCIBus *bus; int devfn; @@ -194,6 +201,15 @@ void pci_register_io_region(PCIDevice *pci_dev, int region_num, uint32_t size, int type, PCIMapIORegionFunc *map_func); +int pci_add_capability(PCIDevice *pci_dev, uint8_t cap_id, uint8_t cap_size); + +void pci_del_capability(PCIDevice *pci_dev, uint8_t cap_id, uint8_t cap_size); + +void pci_reserve_capability(PCIDevice *pci_dev, uint8_t offset, uint8_t size); + +uint8_t pci_find_capability(PCIDevice *pci_dev, u...
2009 May 25
2
[PATCH 03/11] qemu: add routines to manage PCI capabilities
...used[PCI_CONFIG_SPACE_SIZE]; + /* the following fields are read only */ PCIBus *bus; int devfn; @@ -194,6 +201,15 @@ void pci_register_io_region(PCIDevice *pci_dev, int region_num, uint32_t size, int type, PCIMapIORegionFunc *map_func); +int pci_add_capability(PCIDevice *pci_dev, uint8_t cap_id, uint8_t cap_size); + +void pci_del_capability(PCIDevice *pci_dev, uint8_t cap_id, uint8_t cap_size); + +void pci_reserve_capability(PCIDevice *pci_dev, uint8_t offset, uint8_t size); + +uint8_t pci_find_capability(PCIDevice *pci_dev, u...
2009 May 20
0
[PATCHv2-RFC 1/2] qemu-kvm: add MSI-X support
...IO_MEM_UNASSIGNED); - qemu_unregister_coalesced_mmio(r->addr, r->size); - } - } + pci_unmap_region(d, r); r->addr = new_addr; if (r->addr != -1) { r->map_func(d, i, r->addr, r->size, r->type); @@ -1006,8 +1021,61 @@ 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->ca...
2009 May 20
0
[PATCHv2-RFC 1/2] qemu-kvm: add MSI-X support
...IO_MEM_UNASSIGNED); - qemu_unregister_coalesced_mmio(r->addr, r->size); - } - } + pci_unmap_region(d, r); r->addr = new_addr; if (r->addr != -1) { r->map_func(d, i, r->addr, r->size, r->type); @@ -1006,8 +1021,61 @@ 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->ca...
2009 May 11
0
[PATCH 1/2] qemu-kvm: add MSI-X support
...river. */ + unsigned *msix_entry_used; }; PCIDevice *pci_register_device(PCIBus *bus, const char *name, @@ -198,12 +213,16 @@ void pci_register_io_region(PCIDevice *pci_dev, int region_num, uint32_t size, int type, PCIMapIORegionFunc *map_func); +/* Reserve space and add capability to the linked list in pci config space */ +void pci_add_capability(PCIDevice *pci_dev, uint8_t cap_id, uint8_t cap_size); + int pci_enable_capability_support(PCIDevice *pci_dev, - uint32_t config_start,...
2009 May 11
0
[PATCH 1/2] qemu-kvm: add MSI-X support
...river. */ + unsigned *msix_entry_used; }; PCIDevice *pci_register_device(PCIBus *bus, const char *name, @@ -198,12 +213,16 @@ void pci_register_io_region(PCIDevice *pci_dev, int region_num, uint32_t size, int type, PCIMapIORegionFunc *map_func); +/* Reserve space and add capability to the linked list in pci config space */ +void pci_add_capability(PCIDevice *pci_dev, uint8_t cap_id, uint8_t cap_size); + int pci_enable_capability_support(PCIDevice *pci_dev, - uint32_t config_start,...
2008 Jun 27
2
PCI device assignment to guests (userspace)
Userspace patches for the pci-passthrough functionality. The major updates since the last post are: - Loop to add passthrough devices in pc_init1 - Handle errors in read/write calls - Allow invocation without irq number for in-kernel irqchip Other than this, several small things were fixed according to review comments received last time.
2008 Jun 27
2
PCI device assignment to guests (userspace)
Userspace patches for the pci-passthrough functionality. The major updates since the last post are: - Loop to add passthrough devices in pc_init1 - Handle errors in read/write calls - Allow invocation without irq number for in-kernel irqchip Other than this, several small things were fixed according to review comments received last time.