freebsd-skq/sys/dev/pci
Ryan Stone e9309eac19 Allocate PCI I/O memory spaces for VFs
When creating VFs, we must size each SR-IOV BAR on the PF and
allocate a configuous I/O memory window large enough for every VF.
However, the window only needs to be aligned to a boundary equal
to the size of the window for a single VF.

When a VF attempts to allocate an I/O memory resource, we must
intercept the request in the pci driver and pass it off to the
SR-IOV code, which will allocate the correct window from the
pre-allocated memory space for the PF.

Inform the pci driver about the size and address of the BARs on
the VF when the VF is created.  This is required by pciconf -b and
bhyve.

Differential Revision:	https://reviews.freebsd.org/D78
Reviewed by:		jhb
MFC after: 		1 month
Sponsored by:		Sandvine Inc.
2015-03-01 00:40:26 +00:00
..
eisa_pci.c
fixup_pci.c Use device_printf(). 2013-08-11 06:57:57 +00:00
hostb_pci.c
ignore_pci.c
isa_pci.c
pci_if.m Implement interface to create SR-IOV Virtual Functions 2015-03-01 00:40:09 +00:00
pci_iov_private.h Allocate PCI I/O memory spaces for VFs 2015-03-01 00:40:26 +00:00
pci_iov.c Allocate PCI I/O memory spaces for VFs 2015-03-01 00:40:26 +00:00
pci_pci.c Add some pcib methods to get ARI-related information 2015-03-01 00:39:40 +00:00
pci_private.h Allocate PCI I/O memory spaces for VFs 2015-03-01 00:40:26 +00:00
pci_subr.c Add support for managing PCI bus numbers. As with BARs and PCI-PCI bridge 2014-02-12 04:30:37 +00:00
pci_user.c Emulate the Device ID and Vendor ID registers for VFs 2015-03-01 00:40:19 +00:00
pci.c Allocate PCI I/O memory spaces for VFs 2015-03-01 00:40:26 +00:00
pcib_if.m Add some pcib methods to get ARI-related information 2015-03-01 00:39:40 +00:00
pcib_private.h Add some pcib methods to get ARI-related information 2015-03-01 00:39:40 +00:00
pcib_support.c Add some pcib methods to get ARI-related information 2015-03-01 00:39:40 +00:00
pcireg.h Implement interface to create SR-IOV Virtual Functions 2015-03-01 00:40:09 +00:00
pcivar.h Allocate PCI I/O memory spaces for VFs 2015-03-01 00:40:26 +00:00
vga_pci.c Remove ia64. 2014-07-07 00:27:09 +00:00