Displaying 3 results from an estimated 3 matches for "cap_length".
2013 May 28
3
[PATCH RFC] virtio-pci: new config layout: using memory BAR
...MemoryRegion *reg,
+ const MemoryRegionOps *ops,
+ unsigned offset,
+ unsigned size,
+ unsigned cap_type,
+ unsigned cap_length)
+{
+ struct virtio_pci_cap *cap;
+ int c;
+ memory_region_init_io(reg, ops, proxy, name, size);
+ memory_region_add_subregion(&proxy->config_bar, offset, reg);
+
+ if (!cap_length) {
+ cap_length = sizeof *cap;
+ }
+ c = pci_add_capability(&proxy->pci_dev,...
2013 May 28
3
[PATCH RFC] virtio-pci: new config layout: using memory BAR
...MemoryRegion *reg,
+ const MemoryRegionOps *ops,
+ unsigned offset,
+ unsigned size,
+ unsigned cap_type,
+ unsigned cap_length)
+{
+ struct virtio_pci_cap *cap;
+ int c;
+ memory_region_init_io(reg, ops, proxy, name, size);
+ memory_region_add_subregion(&proxy->config_bar, offset, reg);
+
+ if (!cap_length) {
+ cap_length = sizeof *cap;
+ }
+ c = pci_add_capability(&proxy->pci_dev,...
2013 May 28
0
[PATCH RFC] virtio-pci: new config layout: using memory BAR
...MemoryRegion *reg,
> + const MemoryRegionOps *ops,
> + unsigned offset,
> + unsigned size,
> + unsigned cap_type,
> + unsigned cap_length)
> +{
> + struct virtio_pci_cap *cap;
> + int c;
> + memory_region_init_io(reg, ops, proxy, name, size);
> + memory_region_add_subregion(&proxy->config_bar, offset, reg);
> +
> + if (!cap_length) {
> + cap_length = sizeof *cap;
> + }
> +...