summaryrefslogtreecommitdiff
path: root/include/uapi/linux/virtio_pcidev.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2021-08-17 18:53:29 +0300
committerRichard Weinberger <richard@nod.at>2021-08-26 23:28:03 +0300
commit6a241d2923c2c0f6893c78c79421ceb3935691fd (patch)
tree6f89b77dae6534ad590aa9e7279a15f556fe4ad2 /include/uapi/linux/virtio_pcidev.h
parentbc5c49d79206b40ad16e055837a33b6dc6160bed (diff)
downloadlinux-6a241d2923c2c0f6893c78c79421ceb3935691fd.tar.xz
um: virt-pci: fix uapi documentation
The identifier names in the documentation here didn't match the real ones, and the reserved was missing. Fix that. Reported-by: Bjorn Helgaas <helgaas@kernel.org> Fixes: 68f5d3f3b654 ("um: add PCI over virtio emulation driver") Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'include/uapi/linux/virtio_pcidev.h')
-rw-r--r--include/uapi/linux/virtio_pcidev.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/uapi/linux/virtio_pcidev.h b/include/uapi/linux/virtio_pcidev.h
index 89daa88bcfef..668b07ce515b 100644
--- a/include/uapi/linux/virtio_pcidev.h
+++ b/include/uapi/linux/virtio_pcidev.h
@@ -9,13 +9,14 @@
/**
* enum virtio_pcidev_ops - virtual PCI device operations
+ * @VIRTIO_PCIDEV_OP_RESERVED: reserved to catch errors
* @VIRTIO_PCIDEV_OP_CFG_READ: read config space, size is 1, 2, 4 or 8;
* the @data field should be filled in by the device (in little endian).
* @VIRTIO_PCIDEV_OP_CFG_WRITE: write config space, size is 1, 2, 4 or 8;
* the @data field contains the data to write (in little endian).
- * @VIRTIO_PCIDEV_OP_BAR_READ: read BAR mem/pio, size can be variable;
+ * @VIRTIO_PCIDEV_OP_MMIO_READ: read BAR mem/pio, size can be variable;
* the @data field should be filled in by the device (in little endian).
- * @VIRTIO_PCIDEV_OP_BAR_WRITE: write BAR mem/pio, size can be variable;
+ * @VIRTIO_PCIDEV_OP_MMIO_WRITE: write BAR mem/pio, size can be variable;
* the @data field contains the data to write (in little endian).
* @VIRTIO_PCIDEV_OP_MMIO_MEMSET: memset MMIO, size is variable but
* the @data field only has one byte (unlike @VIRTIO_PCIDEV_OP_MMIO_WRITE)