diff options
author | Minghuan Lian <Minghuan.Lian@freescale.com> | 2013-10-17 07:15:17 (GMT) |
---|---|---|
committer | Jose Rivera <German.Rivera@freescale.com> | 2014-03-17 19:37:23 (GMT) |
commit | 28dc7598ca17f87ade7cb525be245153284af66d (patch) | |
tree | 2e9a27ff1f8a0cf332089f3a60cd6e338b96ec58 /include | |
parent | be8ff354c6bad34c73512ed9f60fea6529b848d7 (diff) | |
download | linux-fsl-qoriq-28dc7598ca17f87ade7cb525be245153284af66d.tar.xz |
fsl_pci_ep: add VF ATMU access support
All VFs of a PF share the common inbound/outbound windows
except translation registers of outbound windows. A VF can
only change translation registers of outbound windows. A PF
can change all ATMU of VF.
The patch provides VF ATMU register definition and provides
interfaces to access inbound/outbound windows. It also adds
PCI_EP_REGION_MEM type to return PF's memory resource. The
application can get and reassign the memory resource to VF.
Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com>
Change-Id: Iec877a8054ac47b64d9d94abb9bc32dc0450211e
Reviewed-on: http://git.am.freescale.net:8181/9604
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Tiefei Zang <tie-fei.zang@freescale.com>
Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/fsl_pci_ep_vfio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/fsl_pci_ep_vfio.h b/include/uapi/linux/fsl_pci_ep_vfio.h index 7cccf85..1cf259f 100644 --- a/include/uapi/linux/fsl_pci_ep_vfio.h +++ b/include/uapi/linux/fsl_pci_ep_vfio.h @@ -35,6 +35,7 @@ enum PCI_EP_REGION_TYPE { PCI_EP_REGION_VF_OBWIN, PCI_EP_REGION_REGS, PCI_EP_REGION_CONFIG, + PCI_EP_REGION_MEM, }; enum PCI_EP_REGION_INDEX { |