summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorMinghuan Lian <Minghuan.Lian@freescale.com>2013-11-28 10:36:00 (GMT)
committerJose Rivera <German.Rivera@freescale.com>2014-03-17 19:38:52 (GMT)
commit62f0a17ff5dfcba040175e9c1c90a39a08f26447 (patch)
treee66a50350f1a29576444e7e20387ad0b4af3886b /include/uapi
parent28dc7598ca17f87ade7cb525be245153284af66d (diff)
downloadlinux-fsl-qoriq-62f0a17ff5dfcba040175e9c1c90a39a08f26447.tar.xz
fsl_pci_ep: add MSIX support
1. The patch initializes MSIX trap outbound window, the application can map this window and trigger the MSIX interrupt. 2. The patch initializes MSIX inbound window which is used to store MSIX vector and PBA data. 3. Add sysfs node to display MSIX vector setting for example: # cat /sys/class/pci_ep/pci0-pf0/msix MSIX venctor 0: control:0x0 data:0x0000406c addr:0x00000000fee00000 MSIX venctor 1: control:0x0 data:0x0000407c addr:0x00000000fee00000 MSIX venctor 2: control:0x0 data:0x0000408c addr:0x00000000fee00000 MSIX venctor 3: control:0x0 data:0x0000409c addr:0x00000000fee00000 MSIX venctor 4: control:0x0 data:0x000040ac addr:0x00000000fee00000 MSIX venctor 5: control:0x0 data:0x00000000 addr:0x0000000000000000 MSIX venctor 6: control:0x0 data:0x00000000 addr:0x0000000000000000 MSIX venctor 7: control:0x0 data:0x00000000 addr:0x0000000000000000 Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com> Change-Id: I18a6f9056b3c630bba91f5f1dfef2eee01995926 Reviewed-on: http://git.am.freescale.net:8181/9605 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/fsl_pci_ep_vfio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/fsl_pci_ep_vfio.h b/include/uapi/linux/fsl_pci_ep_vfio.h
index 1cf259f..8960157 100644
--- a/include/uapi/linux/fsl_pci_ep_vfio.h
+++ b/include/uapi/linux/fsl_pci_ep_vfio.h
@@ -36,6 +36,7 @@ enum PCI_EP_REGION_TYPE {
PCI_EP_REGION_REGS,
PCI_EP_REGION_CONFIG,
PCI_EP_REGION_MEM,
+ PCI_EP_REGION_MSIX_OBWIN
};
enum PCI_EP_REGION_INDEX {
@@ -72,6 +73,7 @@ struct pci_ep_info {
uint32_t ow_num;
uint32_t vf_iw_num;
uint32_t vf_ow_num;
+ bool msix_enable;
};
#endif