]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pci: Add an ioctl to perform I/O to BARs
authorMark Johnston <markj@FreeBSD.org>
Sat, 14 Aug 2021 14:41:43 +0000 (10:41 -0400)
committerMark Johnston <markj@FreeBSD.org>
Sun, 29 Aug 2021 16:39:42 +0000 (12:39 -0400)
commit9d3454e1e111e8d3d5809085391db71c03d5dc24
tree45da9f6240090d480378257bd6551f5769bee373
parentab18f56db464707c8e1c4136e960edddb56cb925
pci: Add an ioctl to perform I/O to BARs

This is useful for bhyve, which otherwise has to use /dev/io to handle
accesses to I/O port BARs when PCI passthrough is in use.

Reviewed by: imp, kib
Discussed with: jhb
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 7e14be0b0717105f4b3b8c62df82a1e883d8ebb6)
share/man/man4/pci.4
sys/dev/pci/pci_user.c
sys/sys/pciio.h