History

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.

Michael S. Tsirkin committed 11 years ago

Commit 3121bb01 parent d768f321 file · +6 −0Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/virtio_pci.h+6−0
@@ -157,6 +157,12 @@ struct virtio_pci_common_cfg { · 156 unmodified lines
157157 __le32 queue_used_hi; /* read-write */
158158 };
159159
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+
160166 /* Macro versions of offsets for the Old Timers! */
161167 #define VIRTIO_PCI_CAP_VNDR 0
162168 #define VIRTIO_PCI_CAP_NEXT 1