search for: virtio_pci_cap_del

Displaying 3 results from an estimated 3 matches for "virtio_pci_cap_del".

2013 May 28
3
[PATCH RFC] virtio-pci: new config layout: using memory BAR
..., cap_length); + assert(c > 0); + cap = (void *)proxy->pci_dev.config + c; + cap->cap_length = cap_length; + cap->cfg_type = cap_type; + cap->bar = VIRTIO_PCI_CONFIG_BAR_NUM; + cap->offset = offset; + cap->length = size; + + return cap; +} + +static void virtio_pci_cap_del(VirtIOPCIProxy *proxy, MemoryRegion *reg) +{ + memory_region_del_subregion(&proxy->config_bar, reg); + memory_region_destroy(reg); +} + /* This is called by virtio-bus just after the device is plugged. */ static void virtio_pci_device_plugged(DeviceState *d) { VirtIOPCIProxy *p...
2013 May 28
3
[PATCH RFC] virtio-pci: new config layout: using memory BAR
..., cap_length); + assert(c > 0); + cap = (void *)proxy->pci_dev.config + c; + cap->cap_length = cap_length; + cap->cfg_type = cap_type; + cap->bar = VIRTIO_PCI_CONFIG_BAR_NUM; + cap->offset = offset; + cap->length = size; + + return cap; +} + +static void virtio_pci_cap_del(VirtIOPCIProxy *proxy, MemoryRegion *reg) +{ + memory_region_del_subregion(&proxy->config_bar, reg); + memory_region_destroy(reg); +} + /* This is called by virtio-bus just after the device is plugged. */ static void virtio_pci_device_plugged(DeviceState *d) { VirtIOPCIProxy *p...
2013 May 28
0
[PATCH RFC] virtio-pci: new config layout: using memory BAR
...void *)proxy->pci_dev.config + c; > + cap->cap_length = cap_length; > + cap->cfg_type = cap_type; > + cap->bar = VIRTIO_PCI_CONFIG_BAR_NUM; > + cap->offset = offset; > + cap->length = size; > + > + return cap; > +} > + > +static void virtio_pci_cap_del(VirtIOPCIProxy *proxy, MemoryRegion *reg) > +{ > + memory_region_del_subregion(&proxy->config_bar, reg); > + memory_region_destroy(reg); > +} > + > /* This is called by virtio-bus just after the device is plugged. */ > static void virtio_pci_device_plugged(Device...