Displaying 6 results from an estimated 6 matches for "get_conf_long".
2015 Jan 21
2
[pciutils patch] add virtio vendor capability support
...+ tname = "DeviceCfg";
+ break;
+ default:
+ tname = "<unknown>";
+ break;
+ }
+
+ printf("VirtIO: %s\n", tname);
+
+ if (verbose < 2)
+ return;
+
+ printf("\t\tBAR=%d offset=%08x size=%08x\n",
+ get_conf_byte(d, where + 4),
+ get_conf_long(d, where + 8),
+ get_conf_long(d, where + 12));
+
+ if (type != 2 || length < 20)
+ return;
+
+ printf("\t\tmultiplier=%08x\n",
+ get_conf_long(d, where+16));
+}
diff --git a/ls-caps.c b/ls-caps.c
index 7de55ef..54a64a7 100644
--- a/ls-caps.c
+++ b/ls-caps.c
@@ -1315,7 +1315,14...
2015 Jan 21
2
[pciutils patch] add virtio vendor capability support
...+ tname = "DeviceCfg";
+ break;
+ default:
+ tname = "<unknown>";
+ break;
+ }
+
+ printf("VirtIO: %s\n", tname);
+
+ if (verbose < 2)
+ return;
+
+ printf("\t\tBAR=%d offset=%08x size=%08x\n",
+ get_conf_byte(d, where + 4),
+ get_conf_long(d, where + 8),
+ get_conf_long(d, where + 12));
+
+ if (type != 2 || length < 20)
+ return;
+
+ printf("\t\tmultiplier=%08x\n",
+ get_conf_long(d, where+16));
+}
diff --git a/ls-caps.c b/ls-caps.c
index 7de55ef..54a64a7 100644
--- a/ls-caps.c
+++ b/ls-caps.c
@@ -1315,7 +1315,14...
2015 Jan 21
2
[pciutils patch v2] add virtio vendor capability support
...e = "DeviceCfg";
+ break;
+ default:
+ tname = "<unknown>";
+ break;
+ }
+
+ printf("VirtIO: %s\n", tname);
+
+ if (verbose < 2)
+ return;
+
+ printf("\t\tBAR=%d offset=%08x size=%08x\n",
+ get_conf_byte(d, where + 4),
+ get_conf_long(d, where + 8),
+ get_conf_long(d, where + 12));
+
+ if (type != 2 || length < 20)
+ return;
+
+ printf("\t\tmultiplier=%08x\n",
+ get_conf_long(d, where+16));
+}
+
+void
+show_vendor_caps(struct device *d, int where, int cap)
+{
+ switch (get_conf_word(d, PCI_VENDOR_ID))
+...
2015 Jan 21
2
[pciutils patch v2] add virtio vendor capability support
...e = "DeviceCfg";
+ break;
+ default:
+ tname = "<unknown>";
+ break;
+ }
+
+ printf("VirtIO: %s\n", tname);
+
+ if (verbose < 2)
+ return;
+
+ printf("\t\tBAR=%d offset=%08x size=%08x\n",
+ get_conf_byte(d, where + 4),
+ get_conf_long(d, where + 8),
+ get_conf_long(d, where + 12));
+
+ if (type != 2 || length < 20)
+ return;
+
+ printf("\t\tmultiplier=%08x\n",
+ get_conf_long(d, where+16));
+}
+
+void
+show_vendor_caps(struct device *d, int where, int cap)
+{
+ switch (get_conf_word(d, PCI_VENDOR_ID))
+...
2015 Jan 19
3
[PATCH v3 00/16] virtio-pci: towards virtio 1.0 guest support
Hi,
> BTW: is there a tool (or pciutils patch) which can decode the virtio
> capabilities?
Searched for a patch today, and all google found me was this mail asking
for one :-o
So I went ahead and coded one up. Attached.
While hacking it up I've noticed spec doesn't match reality. The
"Virtio Structure PCI Capabilities" section here ...
2015 Jan 19
3
[PATCH v3 00/16] virtio-pci: towards virtio 1.0 guest support
Hi,
> BTW: is there a tool (or pciutils patch) which can decode the virtio
> capabilities?
Searched for a patch today, and all google found me was this mail asking
for one :-o
So I went ahead and coded one up. Attached.
While hacking it up I've noticed spec doesn't match reality. The
"Virtio Structure PCI Capabilities" section here ...