freebsd-dev/sys/dev/pci
Konstantin Belousov 2e62782dac Require write access when mmapping BAR.
This actually makes the rights requirements for accessing PCI config
space and BARs using /dev/pci same.  Since unchanged /dev/pci mode
only allows write open for root, default configuration de-facto limits
the BAR read to root only.  In particular, state-changing reads of the
registers are limited to root.

Discussed with:	se
Suggested and reviewed by:	jhb (kernel part)
Sponsored by:	The FreeBSD Foundation
MFC after:	12 days
Differential revision:	https://reviews.freebsd.org/D16580
2018-08-03 18:35:20 +00:00
..
fixup_pci.c
hostb_pci.c
ignore_pci.c
isa_pci.c
pci_host_generic_acpi.c ARM64: Add support for ThunderX2 PCIe 2018-07-09 08:55:07 +00:00
pci_host_generic_fdt.c
pci_host_generic_fdt.h
pci_host_generic.c Fix build broken by r336130 2018-07-10 09:49:27 +00:00
pci_host_generic.h
pci_if.m
pci_iov_if.m
pci_iov_private.h
pci_iov_schema.c
pci_iov.c
pci_iov.h
pci_pci.c
pci_private.h
pci_subr.c
pci_user.c Require write access when mmapping BAR. 2018-08-03 18:35:20 +00:00
pci.c Create PCI_MATCH and pci_match_device 2018-07-07 15:25:11 +00:00
pcib_if.m
pcib_private.h
pcib_support.c
pcireg.h
pcivar.h Create PCI_MATCH and pci_match_device 2018-07-07 15:25:11 +00:00
schema_private.h
vga_pci.c