Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

virtio: define virtio_pci_cfg_cap in header.

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>

+6
+6
include/uapi/linux/virtio_pci.h
··· 157 157 __le32 queue_used_hi; /* read-write */ 158 158 }; 159 159 160 + /* Fields in VIRTIO_PCI_CAP_PCI_CFG: */ 161 + struct virtio_pci_cfg_cap { 162 + struct virtio_pci_cap cap; 163 + __u8 pci_cfg_data[4]; /* Data for BAR access. */ 164 + }; 165 + 160 166 /* Macro versions of offsets for the Old Timers! */ 161 167 #define VIRTIO_PCI_CAP_VNDR 0 162 168 #define VIRTIO_PCI_CAP_NEXT 1