virtio: define virtio_pci_cfg_cap in header.
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 2 Jul 2015 10:52:44 +0000 (12:52 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 8 Jul 2015 07:09:56 +0000 (10:09 +0300)
Update virtio pci header from linux-next virtio maintainer tree.
We already have VIRTIO_PCI_CAP_PCI_CFG, let's define the structure
that goes with it.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/standard-headers/linux/virtio_pci.h

index ecdc133d5903089056e2b96ddcc0eac57f11eec5..9262acd130c38b874eddf9254382bdda5dfdbd34 100644 (file)
@@ -157,6 +157,12 @@ struct virtio_pci_common_cfg {
        uint32_t queue_used_hi;         /* read-write */
 };
 
+/* Fields in VIRTIO_PCI_CAP_PCI_CFG: */
+struct virtio_pci_cfg_cap {
+       struct virtio_pci_cap cap;
+       uint8_t pci_cfg_data[4]; /* Data for BAR access. */
+};
+
 /* Macro versions of offsets for the Old Timers! */
 #define VIRTIO_PCI_CAP_VNDR            0
 #define VIRTIO_PCI_CAP_NEXT            1