Skip to content

Commit 6a241d2

Browse files
jmberg-intelrichardweinberger
authored andcommitted
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: 68f5d3f ("um: add PCI over virtio emulation driver") Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Richard Weinberger <richard@nod.at>
1 parent bc5c49d commit 6a241d2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/uapi/linux/virtio_pcidev.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@
99

1010
/**
1111
* enum virtio_pcidev_ops - virtual PCI device operations
12+
* @VIRTIO_PCIDEV_OP_RESERVED: reserved to catch errors
1213
* @VIRTIO_PCIDEV_OP_CFG_READ: read config space, size is 1, 2, 4 or 8;
1314
* the @data field should be filled in by the device (in little endian).
1415
* @VIRTIO_PCIDEV_OP_CFG_WRITE: write config space, size is 1, 2, 4 or 8;
1516
* the @data field contains the data to write (in little endian).
16-
* @VIRTIO_PCIDEV_OP_BAR_READ: read BAR mem/pio, size can be variable;
17+
* @VIRTIO_PCIDEV_OP_MMIO_READ: read BAR mem/pio, size can be variable;
1718
* the @data field should be filled in by the device (in little endian).
18-
* @VIRTIO_PCIDEV_OP_BAR_WRITE: write BAR mem/pio, size can be variable;
19+
* @VIRTIO_PCIDEV_OP_MMIO_WRITE: write BAR mem/pio, size can be variable;
1920
* the @data field contains the data to write (in little endian).
2021
* @VIRTIO_PCIDEV_OP_MMIO_MEMSET: memset MMIO, size is variable but
2122
* the @data field only has one byte (unlike @VIRTIO_PCIDEV_OP_MMIO_WRITE)

0 commit comments

Comments
 (0)