From: Laurentiu Tudor <laurentiu.tu...@nxp.com>

Add a few defines related to ARI and SRIOV configuration.

Signed-off-by: Laurentiu Tudor <laurentiu.tu...@nxp.com>
---
 include/pci.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/include/pci.h b/include/pci.h
index 281f353916..c76b73497d 100644
--- a/include/pci.h
+++ b/include/pci.h
@@ -492,8 +492,19 @@
 #define  PCI_EXP_LNKSTA_DLLLA  0x2000  /* Data Link Layer Link Active */
 #define PCI_EXP_SLTCAP         20      /* Slot Capabilities */
 #define  PCI_EXP_SLTCAP_PSN    0xfff80000 /* Physical Slot Number */
+#define PCI_EXP_DEVCAP2                36      /* Device Capabilities 2 */
+#define  PCI_EXP_DEVCAP2_ARI   0x00000020 /* ARI Forwarding Supported */
 #define PCI_EXP_LNKCTL2                48      /* Link Control 2 */
 
+/* PCI SR-IOV Configuration */
+#define PCI_SRIOV_CTRL         8       /* SR-IOV Control Register */
+#define  PCI_SRIOV_CTRL_VF_EN  0x00000001 /* VF Enable */
+#define  PCI_SRIOV_CTRL_ARI    0x00000010 /* ARI Capable Hierarchy */
+#define PCI_SRIOV_TOTAL_VFS    14 /* TotalVFs */
+#define PCI_SRIOV_NUM_VFS      16 /* NumVFs */
+#define PCI_SRIOV_VF_OFFSET    20 /* First VF Offset */
+#define PCI_SRIOV_VF_STRIDE    22 /* VF Stride */
+
 /* Include the ID list */
 
 #include <pci_ids.h>
-- 
2.17.1

Reply via email to