aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2015-02-10 23:31:14 -0500
committerRusty Russell <rusty@rustcorp.com.au>2015-02-10 23:33:15 -0500
commite6a02746e0a9cdda5114db912fe2aadfed289aae (patch)
tree74a5d68568761e4dfad5e11cd1504d73c5b90a11
parent5e05bf5833eb3dd97b6b6a52301d81e033714cb3 (diff)
virtio: define VIRTIO_PCI_CAP_PCI_CFG in header.
This provides backdoor access to the device MMIOs, and every device should have one. From the virtio 1.0 spec (CS03): 4.1.4.7.1 Device Requirements: PCI configuration access capability The device MUST present at least one VIRTIO_PCI_CAP_PCI_CFG capability. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Acked-by: Michael S. Tsirkin <mst@redhat.com>
-rw-r--r--include/uapi/linux/virtio_pci.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/uapi/linux/virtio_pci.h b/include/uapi/linux/virtio_pci.h
index 3b7e4d2765fb..75301468359f 100644
--- a/include/uapi/linux/virtio_pci.h
+++ b/include/uapi/linux/virtio_pci.h
@@ -109,8 +109,10 @@
109#define VIRTIO_PCI_CAP_NOTIFY_CFG 2 109#define VIRTIO_PCI_CAP_NOTIFY_CFG 2
110/* ISR access */ 110/* ISR access */
111#define VIRTIO_PCI_CAP_ISR_CFG 3 111#define VIRTIO_PCI_CAP_ISR_CFG 3
112/* Device specific confiuration */ 112/* Device specific configuration */
113#define VIRTIO_PCI_CAP_DEVICE_CFG 4 113#define VIRTIO_PCI_CAP_DEVICE_CFG 4
114/* PCI configuration access */
115#define VIRTIO_PCI_CAP_PCI_CFG 5
114 116
115/* This is the PCI capability header: */ 117/* This is the PCI capability header: */
116struct virtio_pci_cap { 118struct virtio_pci_cap {