summaryrefslogtreecommitdiffstats
path: root/drivers/vfio/pci/vfio_pci_private.h
diff options
context:
space:
mode:
authorAlex Williamson2018-03-21 19:46:21 +0100
committerAlex Williamson2018-03-26 21:22:58 +0200
commit07fd7ef3a1c25a11015bb5821c9c5982f722d4a2 (patch)
tree4059277e92a709d14c2befaeff83007103f33ca1 /drivers/vfio/pci/vfio_pci_private.h
parentvfio/pci: Pull BAR mapping setup from read-write path (diff)
downloadkernel-qcow2-linux-07fd7ef3a1c25a11015bb5821c9c5982f722d4a2.tar.gz
kernel-qcow2-linux-07fd7ef3a1c25a11015bb5821c9c5982f722d4a2.tar.xz
kernel-qcow2-linux-07fd7ef3a1c25a11015bb5821c9c5982f722d4a2.zip
vfio/pci: Use endian neutral helpers
The iowriteXX/ioreadXX functions assume little endian hardware and convert to little endian on a write and from little endian on a read. We currently do our own explicit conversion to negate this. Instead, add some endian dependent defines to avoid all byte swaps. There should be no functional change other than big endian systems aren't penalized with wasted swaps. Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio/pci/vfio_pci_private.h')
0 files changed, 0 insertions, 0 deletions