search for: show_vendor_caps

Displaying 2 results from an estimated 2 matches for "show_vendor_caps".

2015 Jan 21
2
[pciutils patch v2] add virtio vendor capability support
...Utilities -- Show Vendor-specific Capabilities + * + * Copyright (c) 2014 Gerd Hoffmann <kraxel at redhat.com> + * + * Can be freely distributed and used under the terms of the GNU GPL. + */ + +#include <stdio.h> +#include <string.h> + +#include "lspci.h" + +static void +show_vendor_caps_virtio(struct device *d, int where, int cap) +{ + int length = BITS(cap, 0, 8); + int type = BITS(cap, 8, 8); + char *tname; + + if (length < 16) + return; + if (!config_fetch(d, where, length)) + return; + + switch (type) + { + case 1: + tname = "CommonCfg"; +...
2015 Jan 21
2
[pciutils patch v2] add virtio vendor capability support
...Utilities -- Show Vendor-specific Capabilities + * + * Copyright (c) 2014 Gerd Hoffmann <kraxel at redhat.com> + * + * Can be freely distributed and used under the terms of the GNU GPL. + */ + +#include <stdio.h> +#include <string.h> + +#include "lspci.h" + +static void +show_vendor_caps_virtio(struct device *d, int where, int cap) +{ + int length = BITS(cap, 0, 8); + int type = BITS(cap, 8, 8); + char *tname; + + if (length < 16) + return; + if (!config_fetch(d, where, length)) + return; + + switch (type) + { + case 1: + tname = "CommonCfg"; +...