]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
virtio: define VIRTIO_PCI_CAP_PCI_CFG in header.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 11 Feb 2015 04:31:14 +0000 (15:01 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 11 Feb 2015 04:33:15 +0000 (15:03 +1030)
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>
include/uapi/linux/virtio_pci.h

index 3b7e4d2765fb52b240109881b696c4d6e20852ca..75301468359f0c558ff8c3c12450301c80cff19a 100644 (file)
 #define VIRTIO_PCI_CAP_NOTIFY_CFG      2
 /* ISR access */
 #define VIRTIO_PCI_CAP_ISR_CFG         3
-/* Device specific confiuration */
+/* Device specific configuration */
 #define VIRTIO_PCI_CAP_DEVICE_CFG      4
+/* PCI configuration access */
+#define VIRTIO_PCI_CAP_PCI_CFG         5
 
 /* This is the PCI capability header: */
 struct virtio_pci_cap {